|
|||||||||||
PREV CLASS NEXT CLASS | 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.
Revisions:
20020716 Adrian Brock:
Constructor Summary | |
Role(String roleName,
List roleValue)
Construct a new role. |
Method Summary | |
Object |
clone()
Clones the object. |
String |
getRoleName()
Retrieve the role name. |
List |
getRoleValue()
Retrieve the role value. |
static String |
roleValueToString(List roleValue)
Formats the role value for output. |
void |
setRoleName(String roleName)
Set the role name. |
void |
setRoleValue(List roleValue)
Set the role value it must be an ArrayList. |
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(String roleName, List roleValue) throws 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
IllegalArgumentException
- for null values.Method Detail |
public static String roleValueToString(List roleValue) throws 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
IllegalArgumentException
- for null value.public String getRoleName()
public List getRoleValue()
public void setRoleName(String roleName) throws IllegalArgumentException
roleName
- the role name.
IllegalArgumentException
- for a null valuepublic void setRoleValue(List roleValue) throws IllegalArgumentException
roleValue
- the role value.
IllegalArgumentException
- for a null value or not an
array listpublic Object clone()
CloneNotSupportedException
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |