edu.cmu.minorthird.text
Class CharAnnotation
java.lang.Object
edu.cmu.minorthird.text.CharAnnotation
public class CharAnnotation
- extends java.lang.Object
Represents a stand-off annotation by character ie offset, length, and type
The stand-off annotation is generally immutable
- Author:
- ksteppe
Constructor Summary |
CharAnnotation(int offset,
int length,
java.lang.String type)
create the annotation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CharAnnotation
public CharAnnotation(int offset,
int length,
java.lang.String type)
- create the annotation
- Parameters:
offset
- - start index in the stringlength
- - # of chars coveredtype
- - the name of the annotation applied
getLength
public int getLength()
setLength
public void setLength(int length)
getOffset
public int getOffset()
setOffset
public void setOffset(int offset)
getType
public java.lang.String getType()
setType
public void setType(java.lang.String type)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object