Enum Class SCVersion
- All Implemented Interfaces:
Serializable,Comparable<SCVersion>,Constable
A99.99-999 (Ex. V2.4-265)
| | | |
| | | +-- revision number
| | +-- version number
| +-- release number
+-- version type
Version type designates the target and scope and can be: - X � experimental, usually not distributed
- T � field test, deployed to selected customers
- V � final version, publicly available
Release number designates the major release (design) of the product. It starts at 1 and is incremented by 1. New release is usually a complete rewrite. V(i+1).xx-zzz is not compatible with V(i).xx-zzz
Version number designates the interface signature. It starts at 0 and is incremented by 1. New versions are compatible, but may contain additional features. V2.(x+1)-zzz is compatible with V2.(x)-zzz but not the other way round. It is recommended to recompile and review of the application code.
Revision number designates the actual development stage. It starts at 1 and is incremented by 1. New versions are fully compatible. V2.4-(z+1) is compatible with V2.4-z but not
the other way round.
See the SC_0_SCMP_E.PDF for more details.
- Author:
- JTraber
-
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 TypeMethodDescriptionvoidisSupported(String scVersion) Checks if is supported.toString()static SCVersionReturns the enum constant of this class with the specified name.static SCVersion[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CURRENT
The current version. -
TEST
The version to make tests - DO NOT CHANGE !
-
-
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
-
isSupported
Checks if is supported.- Parameters:
scVersion- the text in format 999.999-999 e.g. 1.5-003- Throws:
SCMPValidatorException- the SCMP validator exception
-
toString
-