public class Role extends Objectimplements Serializable
The serialVersionUID of this class is -279985518429862552L.
| Constructor and Description |
|---|
Role(String
Make a new Role object.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Clone the role object.
|
String |
getRoleName()
Retrieves role name.
|
List |
getRoleValue()
Retrieves role value.
|
static String |
roleValueToString(List
Returns a string for the given role value.
|
void |
setRoleName(String
Sets role name.
|
void |
setRoleValue(List
Sets role value.
|
String |
toString()
Returns a string describing the role.
|
public Role(StringroleName, List <ObjectName > 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 name
roleValue - role value (List of ObjectName objects)
IllegalArgumentException - if null parameter
public StringgetRoleName()
setRoleName(java.lang.String)
public List<ObjectName > getRoleValue()
setRoleValue(java.util.List<javax.management.ObjectName>)
public void setRoleName(StringroleName) throws IllegalArgumentException
roleName - role name
IllegalArgumentException - if null parameter
getRoleName()
public void setRoleValue(List<ObjectName > roleValue) throws IllegalArgumentException
roleValue - List of ObjectName objects for referenced MBeans.
IllegalArgumentException - if null parameter
getRoleValue()
public StringtoString()
public Objectclone()
public static StringroleValueToString(List <ObjectName > roleValue) throws IllegalArgumentException
roleValue - List of ObjectName objects
IllegalArgumentException - if null parameter