|
||||||||||
PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is implemented by a class that represents a relation.
The class RelationTypeSupport
(src) is available to help
implement this interface.
A relation type has a name and a list of role info objects for the relation.
A relation type has to registered in the relation service. This is done either by using createRelationType() to get a RelationTypeSupport object kepy in the relation service, or by using addRelationType() to add an external relation type to the relation service.
Method Summary | |
java.lang.String |
getRelationTypeName()
Retrieves the name of this relation type. |
RoleInfo (src) |
getRoleInfo(java.lang.String roleInfoName)
Retrieves the role info for a role name. |
java.util.List |
getRoleInfos()
Retrieves the list of role definitions in this relation type. |
Method Detail |
public java.lang.String getRelationTypeName()
public java.util.List getRoleInfos()
The return value is a list of RoleInfo objects. The list must be an ArrayList.
public RoleInfo (src) getRoleInfo(java.lang.String roleInfoName) throws java.lang.IllegalArgumentException, RoleInfoNotFoundException (src)
java.lang.IllegalArgumentException
- for a null role info name.
RoleInfoNotFoundException (src)
- for no role info with the
passed name in the relation type.
|
||||||||||
PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |