Enum Class VersionType

java.lang.Object
java.lang.Enum<VersionType>
com.sas.lsaf.content.repository.VersionType
All Implemented Interfaces:
Serializable, Comparable<VersionType>, Constable

public enum VersionType extends Enum<VersionType>
The next logical version type that is generated when creating or checking in a new version of a file.
Since:
1.1
  • Enum Constant Details

    • MAJOR

      public static final VersionType MAJOR
      The file version that is created is the next logical major version. This implies incrementing the major version and resetting the minor version to 0.

      Example:
      The current version is 3.27.
      The next major version will be 4.0.

    • MINOR

      public static final VersionType MINOR
      The file version that is created is the next logical minor version. This implies not changing the current major version and incrementing the minor version.

      Example:
      The current version is 3.27.
      The next minor version will be 3.28.

    • CUSTOM

      public static final VersionType CUSTOM
      The file version that is created is specified by the user. The version specified must be logically larger than the current version, if one exists.

      Example:
      The current version is 3.27.
      The next version must be greater than the current version, such as 3.28, or 24.0. 3.2 would be as invalid, since it is less than the current version.

  • Method Details

    • values

      public static VersionType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static VersionType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null