BinaryRelation< A extends DataObject, B extends DataObject > Class Reference

Inheritance diagram for BinaryRelation< A extends DataObject, B extends DataObject >:
Collaboration diagram for BinaryRelation< A extends DataObject, B extends DataObject >:

List of all members.


Detailed Description

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>.

Author:
sschwieb
Parameters:
<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)

Constructors

BinaryRelation ( )
BinaryRelation ( Annotation< A >  a,
Annotation< B >  b,
String  label 
)

Method Details

long getId ( ) [inherited]

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

Returns:
id

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.

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.

Returns:

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.

Returns:

Implements IBinaryRelation.

void setId ( long  id) [inherited]

Set the Id of this DataObject.

Parameters:
id

Implements DataObject.

Reimplemented in Tweet, and TwitterEntity.

void setLabel ( String  label) [inherited]