This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.management.relation
class RoleUnresolved

java.lang.Object extended by javax.management.relation.RoleUnresolved
All Implemented Interfaces:
Serializable

public class RoleUnresolved
extends Object
implements Serializable

Represents an unresolved role: a role not retrieved from a relation due to a problem. It provides the role name, value (if problem when trying to set the role) and an integer defining the problem (constants defined in RoleStatus).

The serialVersionUID of this class is -48350262537070138L.


Constructor Summary
RoleUnresolved(String name, List value, int pbType)

          Constructor.
 
Method Summary
 Object

          Clone this object.
 int

          Retrieves problem type.
 String

          Retrieves role name.
 List

          Retrieves role value.
 void
setProblemType(int pbType)

          Sets problem type.
 void

          Sets role name.
 void

          Sets role value.
 String

          Return a string describing this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoleUnresolved

public RoleUnresolved(String name,
                      List value,
                      int pbType)
               throws IllegalArgumentException
Constructor.

Parameters:
name - name of the role
value - value of the role (if problem when setting the role)
pbType - type of problem (according to known problem types, listed as static final members).
Throws:
IllegalArgumentException - if null parameter or incorrect problem type
Method Detail

clone

public Object clone()
Clone this object.

Overrides:
clone in class Object
Returns:
an independent clone.

getProblemType

public int getProblemType()
Retrieves problem type.

Returns:
an integer corresponding to a problem, those being described as static final members of current class.

getRoleName

public String getRoleName()
Retrieves role name.

Returns:
the role name.

getRoleValue

public List getRoleValue()
Retrieves role value.

Returns:
an ArrayList of ObjectName objects, the one provided to be set in given role. Null if the unresolved role is returned for a read access.

setProblemType

public void setProblemType(int pbType)
                    throws IllegalArgumentException
Sets problem type.

Parameters:
pbType - integer corresponding to a problem. Must be one of those described as static final members of current class.
Throws:
IllegalArgumentException - if incorrect problem type

setRoleName

public void setRoleName(String name)
                 throws IllegalArgumentException
Sets role name.

Parameters:
name - the new role name.
Throws:
IllegalArgumentException - if null parameter

setRoleValue

public void setRoleValue(List value)
Sets role value.

Parameters:
value - List of ObjectName objects for referenced MBeans not set in role.

toString

public String toString()
Return a string describing this object.

Overrides:
toString in class Object
Returns:
a description of this RoleUnresolved object.


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.