Inheritance diagram for BinaryRelation< A extends DataObject, B extends DataObject >:
Collaboration diagram for BinaryRelation< A extends DataObject, B extends DataObject >:Default implementation of an IBinaryRelation to be used with hibernate. Note that this class is marked abstract, as sub classes should define the generic parameters <A> and <B>.
| <A> | the type of the first annotation |
| <B> | the type of the second annotation |
Public Methods | |
| BinaryRelation () | |
| BinaryRelation (Annotation< A > a, Annotation< B > b, String label) | |
| Annotation<?extends A > | getReferee () |
| Annotation<?extends B > | getReference () |
| List< Annotation<?extends DataObject > > | getLinkedAnnotations () |
| String | getLabel () |
| void | setLabel (String label) |
| long | getId () |
| void | setId (long id) |
| BinaryRelation | ( | ) |
| BinaryRelation | ( | Annotation< A > | a, |
| Annotation< B > | b, | ||
| String | label | ||
| ) |
| long getId | ( | ) | [inherited] |
Returns the Id of this DataObject. Might return 0, if the object hasn't been inserted into database yet.
Implements DataObject.
| 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, and Timex.
| List<Annotation<? extends DataObject> > 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.
Implements ILinkedAnnotations.
| Annotation<? extends A> getReferee | ( | ) |
Returns the first argument, or reference, of the relation. Seeing aRb as an representation of the relation, a is returned.
Implements IBinaryRelation.
| Annotation<? extends B> getReference | ( | ) |
Returns the second argument, or reference, of the relation. Seeing aRb as an representation of the relation, b is returned.
Implements IBinaryRelation.
| void setId | ( | long | id | ) | [inherited] |
| void setLabel | ( | String | label | ) | [inherited] |