Class JDFElement.EnumVersion

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable
    Enclosing class:
    JDFElement

    public static final class JDFElement.EnumVersion
    extends org.apache.commons.lang.enums.ValuedEnum
    Enumeration strings for Version NOTE: If not specified the version defaults to Version 1.3
    See Also:
    Serialized Form
    • Method Detail

      • toString

        public java.lang.String toString()
        return the version as a readable string, e.g 1.7 or 2.1
        Overrides:
        toString in class org.apache.commons.lang.enums.ValuedEnum
        See Also:
        Object.toString()
      • getEnum

        public static JDFElement.EnumVersion getEnum​(java.lang.String enumName)
        casts a String into a corresponding EnumVersion hand coded for speed!
        Parameters:
        enumName - the name of the EnumVersion
        Returns:
        the corresponding EnumVersion
      • getEnum

        public static JDFElement.EnumVersion getEnum​(int enumValue)
        casts a EnumVersion into its corresponding String
        Parameters:
        enumValue - the EnumVersion to cast
        Returns:
        the corresponding String
      • getEnum

        public static JDFElement.EnumVersion getEnum​(int major,
                                                     int minor)
        casts a EnumVersion into its corresponding String
        Parameters:
        enumValue - the EnumVersion to cast
        Returns:
        the corresponding String
      • getEnumMap

        public static java.util.Map getEnumMap()
        Returns:
        Map
      • getEnumList

        public static java.util.List getEnumList()
        Returns:
        List
      • iterator

        public static java.util.Iterator iterator()
        gets the EnumVersion iterator
        Returns:
        Iterator
      • isGreater

        public boolean isGreater​(JDFElement.EnumVersion other)
        returns true if this is greater than other
        Parameters:
        other -
        Returns:
        boolean true if this>other
      • isXJDF

        public boolean isXJDF()
        Parameters:
        jdfVersion -
        Returns:
      • getMinorVersion

        public int getMinorVersion()
        gets the integer value of the minor version, e.g 2 for 1.3 etc
        Returns:
      • getMajorVersion

        public int getMajorVersion()
        gets the integer value of the major version, e.g 2 for 1.3 etc
        Returns: