Enum DataFileElements

  • All Implemented Interfaces:
    Serializable, Comparable<DataFileElements>

    public enum DataFileElements
    extends Enum<DataFileElements>
    Class that holds the elements and attributes of those elements in a data file descriptor. The elements are specified by the enum values in this enumeration. The attributes are specified as inner classes of the name TAG_ATTRS. This unfortunate way of doing this is necessary since enum values cannot have nested static values inside of them.
    Jerry Vos
    • Method Detail

      • values

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

        public static DataFileElements 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.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getTag

        public String getTag()
        Retrieves the tag for this type of element.
        the element's tag
      • getInt

        public static int getInt​(Queryable queryable,
                                 org.jdom.Element node,
                                 String target)