Class TextInput

  • Direct Known Subclasses:
    DocInput

    public class TextInput
    extends java.lang.Object
    TextInput is a unit of data -- a tuple that represents the text and its language and an identifier for downstream processing, export formatting, databasing results keyed by text identifier, etc.
    Author:
    Marc C. Ubaldino, MITRE, ubaldino at mitre dot org
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String buffer  
      java.lang.String id  
      boolean isLower
      writable flags that represent some basic assement of your input text.
      boolean isUpper  
      java.lang.String langid  
    • Constructor Summary

      Constructors 
      Constructor Description
      TextInput​(java.lang.String tid, java.lang.String buf)
      A simple input.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • buffer

        public java.lang.String buffer
      • id

        public java.lang.String id
      • langid

        public java.lang.String langid
      • isLower

        public boolean isLower
        writable flags that represent some basic assement of your input text. Default is mixed case where text is neither upper or lower.
      • isUpper

        public boolean isUpper
    • Constructor Detail

      • TextInput

        public TextInput​(java.lang.String tid,
                         java.lang.String buf)
        A simple input. If this input is to be used with the normal OpenSextant pipelines, the caller must ensure the input text is UTF-8 encoded content.
        Parameters:
        tid - any identifier for the text buffer
        buf - any textual content; any format or encoding.