public abstract class AbstractAnnotation extends java.lang.Object implements Annotation, java.io.Serializable
Constructor and Description |
---|
AbstractAnnotation(AnnotationBase annBase)
Public constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addToBase()
Adds this annotation to an associated annotation base.
|
boolean |
equals(java.lang.Object obj) |
AnnotationBase |
getAnnotationBase()
Returns the annotation base which this annotation belongs to.
|
java.lang.String |
getAnnotatorId() |
int |
getId() |
SourceDocument |
getSourceDocument() |
java.lang.String |
getTypeName()
Returns the type name of this annotation.
|
int |
hashCode() |
void |
removeFromBase()
Removes this annotation from an associated annotation base.
|
void |
setAnnotatorId(java.lang.String annotatorId) |
void |
setId(int id) |
public AbstractAnnotation(AnnotationBase annBase)
annBase
- public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public AnnotationBase getAnnotationBase()
Annotation
getAnnotationBase
in interface Annotation
public SourceDocument getSourceDocument()
public java.lang.String getTypeName()
Annotation
getTypeName
in interface Annotation
public void addToBase()
addToBase
in interface Annotation
public void removeFromBase()
Annotation
removeFromBase
in interface Annotation
public int getId()
public void setId(int id)
public java.lang.String getAnnotatorId()
public void setAnnotatorId(java.lang.String annotatorId)