Class Version
java.lang.Object
org.apache.maven.shared.release.versions.Version
- All Implemented Interfaces:
Cloneable,Comparable<Version>
Version class.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo.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 StringgetVersionString(Version info, String buildSpecifier, String buildSeparator) getVersionString.booleanisSnapshot.protected static StringjoinDigitString(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- aStringobject- 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
Stringcontaining the items in the list joined by "." period
-
getDigits
Getter for the field
digits.- Returns:
- a
Listobject
-
getAnnotation
Getter for the field
annotation.- Returns:
- a
Stringobject
-
getAnnotationRevSeparator
Getter for the field
annotationRevSeparator.- Returns:
- a
Stringobject
-
getAnnotationRevision
Getter for the field
annotationRevision.- Returns:
- a
Stringobject
-
getBuildSeparator
Getter for the field
buildSeparator.- Returns:
- a
Stringobject
-
getBuildSpecifier
Getter for the field
buildSpecifier.- Returns:
- a
Stringobject
-
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
-