org.glassfish.gmbal.impl
Enum ManagedObjectManagerInternal.AttributeDescriptorType
java.lang.Object
java.lang.Enum<ManagedObjectManagerInternal.AttributeDescriptorType>
org.glassfish.gmbal.impl.ManagedObjectManagerInternal.AttributeDescriptorType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ManagedObjectManagerInternal.AttributeDescriptorType>
- Enclosing interface:
- ManagedObjectManagerInternal
public static enum ManagedObjectManagerInternal.AttributeDescriptorType
- extends java.lang.Enum<ManagedObjectManagerInternal.AttributeDescriptorType>
Used in getAttributes to indicate type of Attribute being considered.
This matters because JMX (unforunately) defines different rules for
converting method names to attribute ids in MBeans and in CompositeData:
for MBeans, an initial get or set is stripped, leaving an ID with an
initial upper case letter; for CompositeData, JMX follows the JavaBeans
conventions, and converts the first letter of the ID to lower case.
Since getAttributes is used in both cases, it needs to know the difference.
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
MBEAN_ATTR
public static final ManagedObjectManagerInternal.AttributeDescriptorType MBEAN_ATTR
COMPOSITE_DATA_ATTR
public static final ManagedObjectManagerInternal.AttributeDescriptorType COMPOSITE_DATA_ATTR
values
public static ManagedObjectManagerInternal.AttributeDescriptorType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (ManagedObjectManagerInternal.AttributeDescriptorType c : ManagedObjectManagerInternal.AttributeDescriptorType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ManagedObjectManagerInternal.AttributeDescriptorType valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null