|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.relation.Role
public class 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 homogenize the access.
The serialVersionUID of this class is -279985518429862552L
.
Constructor Summary | |
---|---|
Role(String roleName,
List<ObjectName> roleValue)
Make a new Role object. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 parameterMethod Detail |
---|
public String getRoleName()
setRoleName(java.lang.String)
public List<ObjectName> getRoleValue()
setRoleValue(java.util.List)
public void setRoleName(String roleName) throws IllegalArgumentException
roleName
- role name
IllegalArgumentException
- 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()
toString
in class Object
public Object clone()
clone
in class Object
Cloneable
public static String roleValueToString(List<ObjectName> roleValue) throws IllegalArgumentException
roleValue
- List of ObjectName objects
IllegalArgumentException
- if null parameter
|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.