| |
|
| java.lang.Object javax.management.relation.Role
Role | public class Role implements Serializable(Code) | | 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 | |
public | Role(String theRoleName, List theRoleValue) Constructor. |
Role | public Role(String theRoleName, List theRoleValue) throws IllegalArgumentException(Code) | | Constructor. 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.
Parameters: theRoleName - - role name Parameters: theRoleValue - - role value (ArrayList of ObjectName objects) exception: java.lang.IllegalArgumentException - - if null parameter |
clone | public Object clone()(Code) | | Cloning.Creates a duplicate copy for the current Role object
Overrides:
clone in class java.lang.Object
a Role being an independent copy of the current Role object. |
getRoleName | public String getRoleName()(Code) | | Retrieves role name
This gets the name of role |
getRoleValue | public List getRoleValue()(Code) | | Retrieves role value
ArrayList of ObjectName objects for referenced MBeans. |
toString | public String toString()(Code) | | Prints a string describing the role
Overrides: toString in class java.lang.Object
String format of the role |
|
|
|