|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.updater.business.Version
public class Version
Version of a component
| Constructor Summary | |
|---|---|
Version()
|
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object o)
Compare two version object |
int |
getMajor()
Returns the Major |
int |
getMinor()
Returns the Minor |
int |
getRevision()
Returns the Revision |
java.lang.String |
getStatus()
Returns the Status |
static Version |
parse(java.lang.String strVersion)
Parse a version as a string to convert it as a Version object |
void |
setMajor(int nMajor)
Sets the Major |
void |
setMinor(int nMinor)
Sets the Minor |
void |
setRevision(int nRevision)
Sets the Revision |
void |
setStatus(java.lang.String strStatus)
Sets the Status |
java.lang.String |
toString()
Returns the version as a string |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Version()
| Method Detail |
|---|
public static Version parse(java.lang.String strVersion)
throws InvalidVersionException
strVersion - The string to parse
InvalidVersionException - If the string is not a valid Versionpublic int getMajor()
public void setMajor(int nMajor)
nMajor - The Majorpublic int getMinor()
public void setMinor(int nMinor)
nMinor - The Minorpublic int getRevision()
public void setRevision(int nRevision)
nRevision - The Revisionpublic java.lang.String getStatus()
public void setStatus(java.lang.String strStatus)
strStatus - The Statuspublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparableo - The object to compare to
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||