| 
 | J2EE1.4 SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.management.relation.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.
| Constructor Summary | |
| Role(java.lang.String theRoleName,
     java.util.List theRoleValue)Make a new Role object. | |
| Method Summary | |
|  java.lang.Object | clone()Clone the role object. | 
|  java.lang.String | getRoleName()Retrieves role name. | 
|  java.util.List | getRoleValue()Retrieves role value. | 
| static java.lang.String | roleValueToString(java.util.List theRoleValue)Returns a string for the given role value. | 
|  void | setRoleName(java.lang.String theRoleName)Sets role name. | 
|  void | setRoleValue(java.util.List theRoleValue)Sets role value. | 
|  java.lang.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(java.lang.String theRoleName,
            java.util.List theRoleValue)
     throws java.lang.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.
theRoleName - role nametheRoleValue - role value (List of ObjectName objects)
java.lang.IllegalArgumentException - if null parameter| Method Detail | 
public java.lang.String getRoleName()
setRoleName(java.lang.String)public java.util.List getRoleValue()
setRoleValue(java.util.List)
public void setRoleName(java.lang.String theRoleName)
                 throws java.lang.IllegalArgumentException
theRoleName - role name
java.lang.IllegalArgumentException - if null parametergetRoleName()
public void setRoleValue(java.util.List theRoleValue)
                  throws java.lang.IllegalArgumentException
theRoleValue - List of ObjectName objects for referenced
 MBeans.
java.lang.IllegalArgumentException - if null parametergetRoleValue()public java.lang.String toString()
public java.lang.Object clone()
public static java.lang.String roleValueToString(java.util.List theRoleValue)
                                          throws java.lang.IllegalArgumentException
theRoleValue - List of ObjectName objects
java.lang.IllegalArgumentException - if null parameter| 
 | J2EE1.4 SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2003 Sun Microsystems, Inc. All rights reserved.