Class Version
- java.lang.Object
-
- fr.paris.lutece.plugins.lutecetools.service.version.Version
-
- All Implemented Interfaces:
Comparable
public class Version extends Object implements Comparable
Version
-
-
Constructor Summary
Constructors Constructor Description Version()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Object object)intgetMajor()intgetMinor()intgetPatch()StringgetQualifier()StringgetVersion()static Versionparse(String strSource)voidsetMajor(int nMajor)voidsetMinor(int nMinor)voidsetPatch(int nPatch)voidsetQualifier(String strQualifier)
-
-
-
Method Detail
-
getMajor
public int getMajor()
- Returns:
- the nMajor
-
setMajor
public void setMajor(int nMajor)
- Parameters:
nMajor- the nMajor to set
-
getMinor
public int getMinor()
- Returns:
- the nMinor
-
setMinor
public void setMinor(int nMinor)
- Parameters:
nMinor- the nMinor to set
-
getPatch
public int getPatch()
- Returns:
- the nPatch
-
setPatch
public void setPatch(int nPatch)
- Parameters:
nPatch- the nPatch to set
-
getQualifier
public String getQualifier()
- Returns:
- the Qualifier
-
setQualifier
public void setQualifier(String strQualifier)
- Parameters:
strQualifier- the Qualifier to set
-
compareTo
public int compareTo(Object object)
- Specified by:
compareToin interfaceComparable
-
getVersion
public String getVersion()
-
parse
public static Version parse(String strSource) throws VersionParsingException
- Throws:
VersionParsingException
-
-