|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.languagecomputer.api.text.DefaultText com.languagecomputer.api.text.DefaultEntity
public class DefaultEntity
Default implementation of an Entity
.
DefaultText
Field Summary |
---|
Fields inherited from interface com.languagecomputer.api.text.Entity |
---|
TYPE |
Constructor Summary | |
---|---|
DefaultEntity()
Creates a new DefaultEntity . |
Method Summary | |
---|---|
String |
getType()
Returns the type of this Entity . |
void |
setAnnotationType(AnnotationType annType)
Not necessary: defaults to Entity.TYPE . |
void |
setType(String type)
Sets the type of this Entity . |
String |
toString()
Returns a String representation of a
DefaultEntity . |
Methods inherited from class com.languagecomputer.api.text.DefaultText |
---|
getAnnotationType, getCongruentAnnotations, getDocument, getDocumentID, getEndCharOffset, getIntersectingAnnotations, getRawString, getStartCharOffset, getSubAnnotations, getSuperAnnotations, setDocument, setEndCharOffset, setRawString, setStartCharOffset |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.languagecomputer.api.text.Text |
---|
getAnnotationType, getCongruentAnnotations, getDocument, getDocumentID, getEndCharOffset, getIntersectingAnnotations, getRawString, getStartCharOffset, getSubAnnotations, getSuperAnnotations |
Constructor Detail |
---|
public DefaultEntity()
DefaultEntity
.
Method Detail |
---|
public void setAnnotationType(AnnotationType annType)
Entity.TYPE
.
setAnnotationType
in class DefaultText
annType
- AnnotationType
to use for this
DefaultEntity
.Text.getAnnotationType()
,
AnnotationType
public void setType(String type)
Entity
.
type
- The entity type String
.Entity.getType()
public String getType()
Entity
.
getType
in interface Entity
String
representation of this
Entity
's type.public String toString()
String
representation of a
DefaultEntity
.
toString
in class DefaultText
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |