Package com.sas.lsaf.content.repository
Enum Class VersionType
- All Implemented Interfaces:
Serializable,Comparable<VersionType>,Constable
The next logical version type that is generated when creating or checking in a new version of a file.
- Since:
- 1.1
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic VersionTypeReturns the enum constant of this class with the specified name.static VersionType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
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
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
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 nameNullPointerException- if the argument is null
-