The "SimpleRelationType" class shows how to define a relation type, to
avoid to have to describe the role infos each time and to doCreate an
internal RelationTypeSupport object in the Relation Service.
Here an instance of SimpleRelationType will represent the relation type
and be stored in the Relation Service.
As any class expected to represent a relation type, it has to implement
the RelationType interface. It is achieved by extending the
RelationTypeSupport class.
Another relation type extending SimpleRelationType would simply extend
the class SimpleRelationType, thus inheriting the implementation of
RelationType interface.
|