SequencerReplacement Class Reference

Inheritance diagram for SequencerReplacement:
Collaboration diagram for SequencerReplacement:

List of all members.

Detailed Description

Implementation of an IReplacement for ILabeledElement-annotations, which additionally acts as an ICategory.


Public Methods

 SequencerReplacement ()
Set< Annotation<?> > getLinkedAnnotations ()
 SequencerReplacement (Annotation<?> annotation)
 SequencerReplacement (Annotation<?> annotation, Annotation<?> replacement)
long calcTypeId ()
String getCategory ()
void setCategory (String category)
Annotation<?> getAnnotation ()
Set< Annotation<?> > getReplacements (boolean includeAnnotation)
Set< Annotation<?> > getParadigms ()
void addLinkedItem (Annotation<?> annotation)
String getLabel ()
void setLabel (String label)
long getId ()
void setId (long id)


SequencerReplacement ( Annotation<?>  annotation)

Constructor for a purely reflexive replacement, such that the given annotation is a replacement for itself, but nothing else.

annotationthe annotation, which must not be null.
SequencerReplacement ( Annotation<?>  annotation,
Annotation<?>  replacement 

Constructor for a single replacement.

annotationthe replaced annotation, which must not be null
replacementthe replacement, which must not be null

Method Details

void addLinkedItem ( Annotation<?>  annotation) [inherited]
long calcTypeId ( )

Implements TypeMappingGenerator.

Annotation<?> getAnnotation ( ) [inherited]

Returns the annotation which can be replaced by any of the annotations returned by IReplacement#getReplacements().


Implements IReplacement.

String getCategory ( )

Returns the category-string of this category. Note that this value is not further restricted, and different implementations might return different strings.

the category string

Implements ISingleValueCategory.

long getId ( ) [inherited]

Returns the Id of this DataObject. Might return 0, if the object hasn't been inserted into database yet.


Implements DataObject.

Reimplemented in Tweet, and TwitterEntity.

String getLabel ( ) [inherited]

Returns the label of this token, which can be any kind of string (except null), mainly used for display-reasons only. Note: Components MUST NOT assume that any kind of label (like 'word' or else) is returned by this method.

Implements ILabeledElement.

Reimplemented in TEIDramaSpeaker, TEIDramaSpeechAct, TEIDramaStage, JodaDateTime, JodaInterval, JodaPeriod, Timex, Tweet, and TwitterEntity.

Set<Annotation<?> > getLinkedAnnotations ( )

Returns the list of linked annotations. Never returns null. Depending on the concrete sub-interface, however, the number of elements in the returned collection can vary.

Reimplemented from LinkedAnnotations.

Set<Annotation<?> > getParadigms ( ) [inherited]

Implements IParadigmaticRelation.

Set<Annotation<?> > getReplacements ( boolean  includeAnnotation) [inherited]

Returns the set of annotations which can replace the annotation returned by IReplacement#getAnnotation(). If includeAnnotation is true, the annotation returned by IReplacement#getAnnotation() is included in the returned set.


Implements IReplacement.

void setCategory ( String  category)
void setId ( long  id) [inherited]

Set the Id of this DataObject.


Implements DataObject.

Reimplemented in Tweet, and TwitterEntity.

void setLabel ( String  label) [inherited]