Enum XMLAttribute.Use

    • Method Detail

      • values

        public static XMLAttribute.Use[] 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 (XMLAttribute.Use c : XMLAttribute.Use.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static XMLAttribute.Use valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • isRequired

        public boolean isRequired()
        Description copied from interface: XMLUsage
        Indicates whether or not the associated XML component is required.
        Specified by:
        isRequired in interface XMLUsage
        Returns:
        true, if the associated XML component is required, false otherwise.
      • isEnabled

        public boolean isEnabled()
        Description copied from interface: XMLUsage
        Indicates whether or not the associated XML component is enabled.
        Specified by:
        isEnabled in interface XMLUsage
        Returns:
        true, if the associated XML component is enabled, false otherwise.