public class Role extends Object implements Serializable
The serialVersionUID of this class is -279985518429862552L
.
Constructor and Description |
---|
Role(String roleName,
List<ObjectName> roleValue)
Make a new Role object.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Clone the role object.
|
String |
getRoleName()
Retrieves role name.
|
List<ObjectName> |
getRoleValue()
Retrieves role value.
|
static String |
roleValueToString(List<ObjectName> roleValue)
Returns a string for the given role value.
|
void |
setRoleName(String roleName)
Sets role name.
|
void |
setRoleValue(List<ObjectName> roleValue)
Sets role value.
|
String |
toString()
Returns a string describing the role.
|
public Role(String roleName, 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 nameroleValue
- role value (List of ObjectName objects)IllegalArgumentException
- if null parameterpublic String getRoleName()
setRoleName(java.lang.String)
public List<ObjectName> getRoleValue()
setRoleValue(java.util.List<javax.management.ObjectName>)
public void setRoleName(String roleName) throws IllegalArgumentException
roleName
- role nameIllegalArgumentException
- if null parametergetRoleName()
public void setRoleValue(List<ObjectName> roleValue) throws IllegalArgumentException
roleValue
- List of ObjectName objects for referenced
MBeans.IllegalArgumentException
- if null parametergetRoleValue()
public String toString()
public Object clone()
public static String roleValueToString(List<ObjectName> roleValue) throws IllegalArgumentException
roleValue
- List of ObjectName objectsIllegalArgumentException
- if null parameter Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2022, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.