|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.management.relation.RelationTypeSupport
This class can be used to implement relation types.
It holds RoleInfo objects for all roles in the relation.
Revisions:
20020312 Adrian Brock:
20020715 Adrian Brock:
Constructor Summary | |
protected |
RelationTypeSupport(java.lang.String name)
Create a relation type with a name but no role infos. |
|
RelationTypeSupport(java.lang.String name,
RoleInfo (src) [] infos)
Create a relation type with a name and the passed role infos. |
Method Summary | |
protected void |
addRoleInfo(RoleInfo (src) roleInfo)
Add a role information object to the relation type. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected RelationTypeSupport(java.lang.String name)
WARNING: No check is made on the arguments.
name
- the relation type name.public RelationTypeSupport(java.lang.String name, RoleInfo (src) [] infos) throws java.lang.IllegalArgumentException, InvalidRelationTypeException (src)
A relation type is invalid if the same name is used in two different role infos, no role information is provided or a null role is passed.
name
- the relation type name.
java.lang.IllegalArgumentException
- for null parameters
InvalidRelationTypeException (src)
- for an invalid relationMethod Detail |
public java.lang.String getRelationTypeName()
RelationType (src)
getRelationTypeName
in interface RelationType (src)
public java.util.List getRoleInfos()
RelationType (src)
The return value is a list of RoleInfo objects. The list must be an ArrayList.
getRoleInfos
in interface RelationType (src)
public RoleInfo (src) getRoleInfo(java.lang.String roleInfoName) throws java.lang.IllegalArgumentException, RoleInfoNotFoundException (src)
RelationType (src)
getRoleInfo
in interface RelationType (src)
RoleInfoNotFoundException (src)
- for no role info with the
passed name in the relation type.
java.lang.IllegalArgumentException
- for a null role info name.protected void addRoleInfo(RoleInfo (src) roleInfo) throws java.lang.IllegalArgumentException, InvalidRelationTypeException (src)
java.lang.IllegalArgumentException
- for null parameters
InvalidRelationTypeException (src)
- for a duplicate role name.
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |