com.languagecomputer.api.text
Class GenericDefaultText

java.lang.Object
  extended by com.languagecomputer.api.text.DefaultText
      extended by com.languagecomputer.api.text.GenericDefaultText
All Implemented Interfaces:
Text

public class GenericDefaultText
extends DefaultText

Generic implementation of a Text object for annotations or other types of Text objects which are not included in either the DocumentXML or QueryXML specifications.

Since:
1.0
Author:
Matthew Titsworth

Constructor Summary
GenericDefaultText()
           
 
Method Summary
 String getValue()
          Returns the value contained by this object.
 void setValue(String value)
          Sets the value.
 
Methods inherited from class com.languagecomputer.api.text.DefaultText
getAnnotationType, getCongruentAnnotations, getDocument, getDocumentID, getEndCharOffset, getIntersectingAnnotations, getRawString, getStartCharOffset, getSubAnnotations, getSuperAnnotations, setAnnotationType, setDocument, setEndCharOffset, setRawString, setStartCharOffset, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenericDefaultText

public GenericDefaultText()
Method Detail

setValue

public void setValue(String value)
Sets the value. The value for this object is abstract in that it can be used for whatever purpose the implementor sees fit to use it for. It is meant to represent quantities not covered within the previously defined annotations.

Parameters:
value - The String representing the value to be contained on this GenericDefaultText.

getValue

public String getValue()
Returns the value contained by this object.

Returns:
The value contained by the object.


Copyright © 2009. All Rights Reserved.