|
|||||||||
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 theRoleName,
java.util.List theRoleValue)
Constructor |
Method Summary | |
java.lang.Object |
clone()
Cloning. |
java.lang.String |
getRoleName()
Retrieves role name |
java.util.List |
getRoleValue()
Retrieves role value |
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()
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 theRoleName, java.util.List theRoleValue) 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.
theRoleName
- role name.theRoleValue
- role value.Method Detail |
public java.lang.String getRoleName()
public java.util.List getRoleValue()
public void setRoleName(java.lang.String theRoleName) throws java.lang.IllegalArgumentException
theRoleName
- role name.public void setRoleValue(java.util.List theRoleValue) throws java.lang.IllegalArgumentException
theRoleValue
- ArrayList of ObjectName objects for referenced MBeanspublic java.lang.Object clone()
public java.lang.String toString()
. The string representation consists of the name of the role and a list of the role value (ObjectName), enclosed in square brackets ("[]").
public java.lang.String roleValueToString(java.util.List theRoleValue) throws java.lang.IllegalArgumentException
theRoleValue
- ArrayList of ObjectName objects
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |