Package org.spdx.library
Class Version
java.lang.Object
org.spdx.library.Version
Static class to manage the SPDX versions and the version of the implementation classes
- Author:
- Gary O'Neall
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringverifySpdxVersion(String spdxVersion) static booleanversionLessThan(String specVersion, String compareSpecVersion) Compares versions of the SPDX spec
-
Field Details
-
POINT_EIGHT_SPDX_VERSION
- See Also:
-
POINT_NINE_SPDX_VERSION
- See Also:
-
ONE_DOT_ZERO_SPDX_VERSION
- See Also:
-
ONE_DOT_ONE_SPDX_VERSION
- See Also:
-
ONE_DOT_TWO_SPDX_VERSION
- See Also:
-
TWO_POINT_ZERO_VERSION
- See Also:
-
TWO_POINT_ONE_VERSION
- See Also:
-
TWO_POINT_TWO_VERSION
- See Also:
-
TWO_POINT_THREE_VERSION
- See Also:
-
CURRENT_SPDX_VERSION
- See Also:
-
SUPPORTED_SPDX_VERSIONS
-
CURRENT_IMPLEMENTATION_VERSION
- See Also:
-
-
Method Details
-
verifySpdxVersion
-
versionLessThan
Compares versions of the SPDX spec- Parameters:
specVersion-compareSpecVersion-- Returns:
- true if specVersion is less than compareSpecVersion
-