|
|||||||||
| 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 homogenise the access.
| Constructor Summary | |
Role(java.lang.String theRoleName,
java.util.List theRoleValue)
Make a new Role object. |
|
| Method Summary | |
(package private) static void |
|
java.lang.Object |
clone()
Cloning.Creates a duplicate copy for the current Role object Overrides: clone in class java.lang.Object |
java.lang.String |
getRoleName()
Retrieves role name. |
java.util.List |
getRoleValue()
Retrieves role value. |
static java.lang.String |
roleValueToString(java.util.List theRoleValue)
Returns a string for the given role value. |
void |
setRoleName(java.lang.String theRoleName)
Sets role name. |
void |
setRoleValue(java.util.List theRoleValue)
Sets role value. |
java.lang.String |
toString()
Returns 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 theRoleName,
java.util.List theRoleValue)
throws java.lang.IllegalArgumentException
Make a new Role object. No check is made that the ObjectNames in the role value exist in an MBean server. That check will be made when the role is set in a relation.
theRoleName - role nametheRoleValue - role value (ArrayList of ObjectName objects)| Method Detail |
static void()
public java.lang.String getRoleName()
setRoleName(java.lang.String)public java.util.List getRoleValue()
setRoleValue(java.util.List)
public static java.lang.String roleValueToString(java.util.List theRoleValue)
throws java.lang.IllegalArgumentException
theRoleValue - ArrayList of ObjectName objects
public void setRoleName(java.lang.String theRoleName)
throws java.lang.IllegalArgumentException
theRoleName - role namegetRoleName()
public void setRoleValue(java.util.List theRoleValue)
throws java.lang.IllegalArgumentException
theRoleValue - ArrayList of ObjectName objects for referenced MBeans.getRoleValue()public java.lang.Object clone()
public java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||