Enum 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.
    • Constructor Detail

      • AttributeDescriptorType

        private AttributeDescriptorType()
    • Method Detail

      • 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