Class JDFElement.EnumVersion

All Implemented Interfaces:
Serializable, Comparable
Enclosing class:
JDFElement

public static final class JDFElement.EnumVersion extends ValuedEnum
Enumeration strings for Version NOTE: If not specified the version defaults to Version 1.3
See Also:
  • Field Details

  • Method Details

    • toString

      public String toString()
      return the version as a readable string, e.g 1.7 or 2.1
      Overrides:
      toString in class ValuedEnum
      Returns:
      String in the form type[name=value], for example: JavaVersion[Java 1.0=100]. Note that the package name is stripped from the type name.
      See Also:
    • getXJDFVersion

      public JDFElement.EnumVersion getXJDFVersion()
    • getJDFVersion

      public JDFElement.EnumVersion getJDFVersion()
    • getEnum

      public static JDFElement.EnumVersion getEnum(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 Map getEnumMap()
      Returns:
      Map
    • getEnumList

      public static List getEnumList()
      Returns:
      List
    • iterator

      public static 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: