|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A generic interface to a version object.
The notion of version supported includes a major, minor and micro number, a quality state (alpha, beta, etc), a build number and a build timestamp.
A typical string denotation has the format major.minor.micro[quality] build [build number, [build timestamp]].
Specific implementation may be created manually, or usually generated at compiletime and included in the versioned package.
Field Summary | |
static int |
NOT_VALUED
A constant that can be compared to any of the numeric attributes exposed by this class to check wether a valid value or not is assigned to the attribute. |
Method Summary | |
long |
getBuildNumber()
Return the build number, or NOT_VALUED if there is no such number. |
long |
getBuildTimestamp()
Return the build timestamp, or NOT_VALUED if there is no such timestamp. |
java.lang.String |
getFullDescription()
Return a full description of the version. |
int |
getMajorNumber()
Return the major version number, or NOT_VALUED if there is no such number. |
int |
getMicroNumber()
Return the micro version number, or NOT_VALUED if there is no such number. |
int |
getMinorNumber()
Return the minor version number, or NOT_VALUED if there is no such number. |
java.lang.String |
getQualityState()
Return the quality state string, or null if none is set. |
java.lang.String |
getShortDescription()
Return a short description of the version. |
Field Detail |
public static final int NOT_VALUED
For example, code like if (getMicroNumber()==Version.NOT_VALUED)) ... can be used as necessary to verify if an attribute is valued or not.
Method Detail |
public int getMajorNumber()
NOT_VALUED
if there is no such number.
NOT_VALUED
if there is no such number.public int getMinorNumber()
NOT_VALUED
if there is no such number.
NOT_VALUED
if there is no such number.public int getMicroNumber()
NOT_VALUED
if there is no such number.
NOT_VALUED
if there is no such number.public java.lang.String getQualityState()
public long getBuildNumber()
NOT_VALUED
if there is no such number.
NOT_VALUED
if there is no such number.public long getBuildTimestamp()
NOT_VALUED
if there is no such timestamp.
NOT_VALUED
if there is no such timestamp.public java.lang.String getShortDescription()
public java.lang.String getFullDescription()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |