Class Version
java.lang.Object
org.apache.maven.shared.release.versions.Version
- All Implemented Interfaces:
Cloneable
,Comparable<Version>
Version class.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compareTo.Getter for the fieldannotation
.Getter for the fieldannotationRevision
.Getter for the fieldannotationRevSeparator
.Getter for the fieldbuildSeparator
.Getter for the fieldbuildSpecifier
.Getter for the fielddigits
.protected static String
getVersionString
(Version info, String buildSpecifier, String buildSeparator) getVersionString.boolean
isSnapshot.protected static String
joinDigitString
(List<String> digits) Simply joins the items in the list with "." periodsetAnnotationRevision
(String newAnnotationRevision) Setter for the fieldannotationRevision
.setBuildSpecifier
(String newBuildSpecifier) Setter for the fieldbuildSpecifier
.Setter for the fielddigits
.toString()
toString.
-
Field Details
-
STANDARD_PATTERN
ConstantSTANDARD_PATTERN
-
ALTERNATE_PATTERN
ConstantALTERNATE_PATTERN
-
-
Constructor Details
-
Version
Constructor for Version.
- Parameters:
version
- aString
object- Throws:
VersionParseException
- if any.
-
-
Method Details
-
isSnapshot
public boolean isSnapshot()isSnapshot.
- Returns:
- a boolean
-
toString
toString.
-
joinDigitString
Simply joins the items in the list with "." period- Parameters:
digits
- the list of digitsList<String>
- Returns:
- a
String
containing the items in the list joined by "." period
-
getDigits
Getter for the field
digits
.- Returns:
- a
List
object
-
getAnnotation
Getter for the field
annotation
.- Returns:
- a
String
object
-
getAnnotationRevSeparator
Getter for the field
annotationRevSeparator
.- Returns:
- a
String
object
-
getAnnotationRevision
Getter for the field
annotationRevision
.- Returns:
- a
String
object
-
getBuildSeparator
Getter for the field
buildSeparator
.- Returns:
- a
String
object
-
getBuildSpecifier
Getter for the field
buildSpecifier
.- Returns:
- a
String
object
-
setDigits
Setter for the field
digits
.- Parameters:
newDigits
- the new list of digits- Returns:
- a new instance of Version
-
setAnnotationRevision
Setter for the field
annotationRevision
.- Parameters:
newAnnotationRevision
- the new annotation revision- Returns:
- a new instance of Version
-
setBuildSpecifier
Setter for the field
buildSpecifier
.- Parameters:
newBuildSpecifier
- the new build specifier- Returns:
- a new instance of Version
-