|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xlattice.Version
public abstract class Version
This is a first step towards a standard approach to version
management for all XLattice components. What's wanted is
automatic versioning, with the build number incremented by Ant
or Eclipse.
There should be a subclass of Version in the main source
directory of each XLattice component. For example, CoreXml
has one as org.xlattice.corexml.Version. The source files for
these
| Constructor Summary | |
|---|---|
Version(java.lang.String pkg,
int major,
int minor,
int build)
|
|
Version(java.lang.String pkg,
int major,
int minor,
int decimal,
int build)
|
|
| Method Summary | |
|---|---|
int |
getBuild()
Returns the build number. |
int |
getDecimal()
Returns the third part of the version number. |
int |
getMajor()
Returns the first part of the version number. |
int |
getMinor()
Returns the second part of the version number. |
java.lang.String |
getPackage()
Returns the fully qualified package name in dotted form, such as "org.xlattice.util". |
java.lang.String |
getVersion()
Returns the package name, version number, and the build number if it is non-zero. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Version(java.lang.String pkg,
int major,
int minor,
int decimal,
int build)
pkg - package name in dotted form (a.b.c.d)major - major part of version numberminor - minor part of version numberdecimal - decimal part of version numberbuild - build number
public Version(java.lang.String pkg,
int major,
int minor,
int build)
| Method Detail |
|---|
public final java.lang.String getVersion()
public java.lang.String getPackage()
public int getMajor()
public int getMinor()
public int getDecimal()
public int getBuild()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||