IBinaryRelation Interface Reference

Inheritance diagram for IBinaryRelation:
Collaboration diagram for IBinaryRelation:

List of all members.


Detailed Description

This interface describes a relationship between two annotations. The kind of relation should be specified in sub interfaces of this interface. Developers implementing specific relations should make use of the HasRelation-marker interfaces to define relations as transitivity of reflexivity.

Author:
sschwieb

Public Methods

Annotation<?extends DataObjectgetReferee ()
Annotation<?extends DataObjectgetReference ()
void setId (long id)

Package Functions

Collection< Annotation
<?extends DataObject > > 
getLinkedAnnotations ()
long getId ()

Method Details

long getId ( ) [package, inherited]
Collection<Annotation<? extends DataObject> > getLinkedAnnotations ( ) [package, inherited]

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.

Implemented in BinaryRelation< A extends DataObject, B extends DataObject >, LinkedAnnotations, and SequencerReplacement.

Annotation<? extends DataObject> getReferee ( )

Returns the first argument, or reference, of the relation. Seeing aRb as an representation of the relation, a is returned.

Returns:

Implemented in BinaryRelation< A extends DataObject, B extends DataObject >.

Annotation<? extends DataObject> getReference ( )

Returns the second argument, or reference, of the relation. Seeing aRb as an representation of the relation, b is returned.

Returns:

Implemented in BinaryRelation< A extends DataObject, B extends DataObject >.