|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.relation.Role
A role is a role name and an ordered list of object names to the MBeans in the role.
Constructor Summary | |
Role(java.lang.String roleName,
java.util.List roleValue)
Construct a new role. |
Method Summary | |
java.lang.Object |
clone()
Clones the object. |
java.lang.String |
getRoleName()
Retrieve the role name. |
java.util.List |
getRoleValue()
Retrieve the role value. |
static java.lang.String |
roleValueToString(java.util.List roleValue)
Formats the role value for output. |
void |
setRoleName(java.lang.String roleName)
Set the role name. |
void |
setRoleValue(java.util.List roleValue)
Set the role value it must be an ArrayList. |
java.lang.String |
toString()
Formats the role for output. |
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 validation is performed until the role is set of in a relation. Passed parameters must not be null.
The passed list must be an ArrayList.
roleName
- the role nameroleValue
- the MBean object names in the role
java.lang.IllegalArgumentException
- for null values.Method Detail |
public static java.lang.String roleValueToString(java.util.List roleValue) throws java.lang.IllegalArgumentException
The spec says it should be a comma separated list of object names. But the RI uses new lines which makes more sense for object names.
roleValue
- the role value to print
java.lang.IllegalArgumentException
- for null value.public java.lang.String getRoleName()
public java.util.List getRoleValue()
public void setRoleName(java.lang.String roleName) throws java.lang.IllegalArgumentException
roleName
- the role name.
java.lang.IllegalArgumentException
- for a null valuepublic void setRoleValue(java.util.List roleValue) throws java.lang.IllegalArgumentException
roleValue
- the role value.
java.lang.IllegalArgumentException
- for a null value or not an
array listpublic java.lang.Object clone()
java.lang.CloneNotSupportedException
public java.lang.String toString()
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |