|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gate.util.AbstractFeatureBearer | +--gate.annotation.AnnotationImpl
Provides an implementation for the interface gate.Annotation
Method Summary | |
void |
addAnnotationListener(AnnotationListener l)
Adds an annotation listener |
boolean |
coextensive(Annotation anAnnot)
Two Annotation are coextensive if their offsets are the same. |
int |
compareTo(Object o)
Ordering |
boolean |
equals(Object obj)
Returns true if two annotation are Equals. |
Node |
getEndNode()
The end node. |
Integer |
getId()
The ID of the annotation. |
Node |
getStartNode()
The start node. |
String |
getType()
The type of the annotation (corresponds to TIPSTER "name"). |
int |
hashCode()
When equals called on two annotations returns true, is REQUIRED that the value hashCode for each annotation to be the same. |
boolean |
isCompatible(Annotation anAnnot)
This verifies if this annotation is compatible with another one. |
boolean |
isCompatible(Annotation anAnnot,
Set aFeatureNamesSet)
This verifies if this annotation is compatible with another one, given a set with certain keys. |
boolean |
isPartiallyCompatible(Annotation anAnnot)
This method verifies if two annotation and are partially compatible. |
boolean |
isPartiallyCompatible(Annotation anAnnot,
Set aFeatureNamesSet)
This method verifies if two annotation and are partially compatible, given a set with certain keys. |
boolean |
overlaps(Annotation aAnnot)
This method tells if this overlaps aAnnot. |
void |
removeAnnotationListener(AnnotationListener l)
Removes an annotation listener |
void |
setFeatures(FeatureMap features)
Set the feature set. |
String |
toString()
String representation of hte annotation |
Methods inherited from class gate.util.AbstractFeatureBearer |
getFeatures |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface gate.util.FeatureBearer |
getFeatures |
Method Detail |
public Integer getId()
getId
in interface IdBearer
public String getType()
getType
in interface Annotation
public Node getStartNode()
getStartNode
in interface Annotation
public Node getEndNode()
getEndNode
in interface Annotation
public String toString()
toString
in class Object
public int compareTo(Object o) throws ClassCastException
compareTo
in interface Annotation
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public void setFeatures(FeatureMap features)
setFeatures
in interface FeatureBearer
setFeatures
in class AbstractFeatureBearer
public boolean isCompatible(Annotation anAnnot)
isCompatible
in interface Annotation
anAnnot
- a gate Annotation. If anAnnotation is null then false is
returned.true
if aAnnot is compatible with this> and
false
otherwise.public boolean isCompatible(Annotation anAnnot, Set aFeatureNamesSet)
isCompatible
in interface Annotation
anAnnot
- a gate Annotation. If param is null, it will return false.aFeatureNamesSet
- is a set containing certian key that will be
intersected with this's FeatureMap's keys.If param is null then
isCompatible(Annotation) will be called.true
if aAnnot is compatible with this> and
false
otherwise.public boolean isPartiallyCompatible(Annotation anAnnot)
isPartiallyCompatible
in interface Annotation
aAnnot
- a gate Annotation.true
if this is partially compatible with
aAnnot and false
otherwise.public boolean isPartiallyCompatible(Annotation anAnnot, Set aFeatureNamesSet)
isPartiallyCompatible
in interface Annotation
anAnnot
- a gate Annotation. If param is null, the method will return
false.aFeatureNamesSet
- is a set containing certian key that will be
intersected with this's FeatureMap's keys.If param is null then
isPartiallyCompatible(Annotation) will be called.true
if this is partially compatible with
aAnnot and false
otherwise.public boolean coextensive(Annotation anAnnot)
coextensive
in interface Annotation
anAnnot
- A Gate annotation.true
if two annotation hit the same possition and
false
otherwisepublic boolean overlaps(Annotation aAnnot)
overlaps
in interface Annotation
aAnnot
- a gate Annotation.true
if they overlap and false
false if
they don't.public void removeAnnotationListener(AnnotationListener l)
removeAnnotationListener
in interface Annotation
public void addAnnotationListener(AnnotationListener l)
addAnnotationListener
in interface Annotation
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |