| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Iterator iterator = …;
Role role = (Role)iterator.next();
Based on 14 examples
ArrayList roleValue = …;
Role role = new Role("RoleName", roleValue);
Based on 12 examples
public class Role extends Object implements Serializable
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 homogenize the access.
The serialVersionUID of this class is -279985518429862552L
.
Constructor Summary | |
---|---|
Make a new Role object. |
Method Summary | |
---|---|
Object |
clone() Clone the role object. |
String |
Retrieves role name. |
List |
Retrieves role value. |
static String |
roleValueToString(List roleValue) Returns a string for the given role value. |
void |
setRoleName(String roleName) Sets role name. |
void |
setRoleValue(List roleValue) Sets role value. |
String |
toString() Returns a string describing the role. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Role(String roleName, List roleValue) throws 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.
roleName
- role nameroleValue
- role value (List of ObjectName objects)IllegalArgumentException
- if null parameterMethod Detail |
---|
public Object clone()
clone
in class Object
public String getRoleName()
public List getRoleValue()
public static String roleValueToString(List roleValue) throws IllegalArgumentException
roleValue
- List of ObjectName objectsIllegalArgumentException
- if null parameterpublic void setRoleName(String roleName) throws IllegalArgumentException
roleName
- role nameIllegalArgumentException
- if null parameterpublic void setRoleValue(List roleValue) throws IllegalArgumentException
roleValue
- List of ObjectName objects for referenced
MBeans.IllegalArgumentException
- if null parameterpublic String toString()
toString
in class Object
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |