|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--javax.management.relation.Role
Represents a role: includes a role name and referenced MBeans (via their ObjectNames). The role value is always represented as an ArrayList collection (of ObjectNames) to homogeneise the access.
| Constructor Summary | |
Role(java.lang.String roleName,
java.util.List roleValue)
Constructor No verification about the provided ObjectNames, no need for them to be registered at this level. |
|
| Method Summary | |
java.lang.Object |
clone()
Cloning |
java.lang.String |
getRoleName()
Retrieves role name |
java.util.List |
getRoleValue()
Retrieves role value |
static java.lang.String |
roleValueToString(java.util.List roleValue)
Returns a string for the given role value |
void |
setRoleName(java.lang.String roleName)
Sets role name |
void |
setRoleValue(java.util.List roleValue)
Sets role value |
java.lang.String |
toString()
Prints a string describing the role |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Role(java.lang.String roleName,
java.util.List roleValue)
throws java.lang.IllegalArgumentException
No verification about the provided ObjectNames, no need for them to be registered at this level. This checking will be made when trying to set a relation role.
roleName - role nameroleValue - role value (ArrayList of ObjectName objects)java.lang.IllegalArgumentException - if null parameter| Method Detail |
public java.lang.String getRoleName()
public java.util.List getRoleValue()
public void setRoleName(java.lang.String roleName)
throws java.lang.IllegalArgumentException
roleName - role namejava.lang.IllegalArgumentException - if null parameter
public void setRoleValue(java.util.List roleValue)
throws java.lang.IllegalArgumentException
roleValue - ArrayList of ObjectName objects for referenced
MBeans.java.lang.IllegalArgumentException - if null parameterpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object clone()
clone in class java.lang.Object
public static java.lang.String roleValueToString(java.util.List roleValue)
throws java.lang.IllegalArgumentException
roleValue - ArrayList of ObjectName objectsjava.lang.IllegalArgumentException - if null parameter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||