|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--openfuture.bugbase.model.VersionLabel
Versions label with three levels: major version, minor version and build. Created: Tue Apr 25 20:52:08 2000
Constructor Summary | |
VersionLabel()
Constructs a version 0.0.0. |
|
VersionLabel(java.lang.String version)
Creates a new version and calls set(java.lang.String) . |
Method Summary | |
int |
compareTo(java.lang.Object other)
Compares this with another object (total ordering). |
int |
getBuild()
Get the value of build. |
int |
getMajorVersion()
Get the value of majorVersion. |
int |
getMinorVersion()
Get the value of minorVersion. |
java.lang.String |
getSuffix()
Get the value of suffix. |
void |
set(java.lang.String version)
Sets version number. version must be of the form "xx.yy.zz", where xx is the major version, yy the minor version and zz the build number. |
void |
setBuild(int v)
Set the value of build. |
void |
setMajorVersion(int v)
Set the value of majorVersion. |
void |
setMinorVersion(int v)
Set the value of minorVersion. |
void |
setSuffix(java.lang.String v)
Set the value of suffix. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public VersionLabel()
public VersionLabel(java.lang.String version)
set(java.lang.String)
.version
- version number.java.lang.NumberFormatException
- if xx, yy or zz are not integers.Method Detail |
public int getMajorVersion()
public void setMajorVersion(int v)
v
- Value to assign to majorVersion.public int getMinorVersion()
public void setMinorVersion(int v)
v
- Value to assign to minorVersion.public int getBuild()
public void setBuild(int v)
v
- Value to assign to build.public java.lang.String getSuffix()
public void setSuffix(java.lang.String v)
v
- Value to assign to suffix.public void set(java.lang.String version)
version
- version number.java.lang.NumberFormatException
- if xx, yy or zz are not integers.public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(java.lang.Object other)
compareTo
in interface java.lang.Comparable
other
- object to compare withjava.lang.IllegalArgumentException
- if other is not an
instance of Version
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |