All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.awb.util.Version
java.lang.Object
|
+----com.ibm.awb.util.Version
- public final class Version
- extends Object
Class Version is used to creat version objects that contain release
information, such as MAJOR, MINOR, BUILD, DATE, and KIND.
Version objects can also be created with an expiration date. Any attempt
to create an instance of the version object after the expiration date
will fail and result in a call to System.exit(). Creating the version
object in the period 0 to 15 days before expiration will result in a
warning message written by System.out.println(). Values of
a version object cannot be altered once it has been created.
-
Version(String, String, int)
- Creates a version object which will never expire.
-
Version(String, String, int, Date, String, String)
-
-
getExpiration()
- Gets the date of expiration.
-
getKind()
- Gets the string that describes what is versioned.
-
toString()
- Returns a long text representation of the version numbers:
e.g., Alpha2b, Beta1, V2.0.
Version
public Version(String kind,
String versionName,
int revision)
- Creates a version object which will never expire.
- Parameters:
- kind - product information.
- major - major version number M.x.x
- minor - minor version number x.M.x
- build - build version number x.x.B
- date - date of this version.
Version
public Version(String kind,
String versionName,
int revision,
Date expiration,
String message,
String warning)
getKind
public String getKind()
- Gets the string that describes what is versioned.
getExpiration
public Date getExpiration()
- Gets the date of expiration. Returns null is expiration date is not
set.
toString
public String toString()
- Returns a long text representation of the version numbers:
e.g., Alpha2b, Beta1, V2.0.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index