| Method from org.jboss.Version Detail: |
public String getBuildDate() {
return props.getProperty(BUILD_DATE);
}
Returns the build date for this version. |
public String getBuildID() {
return props.getProperty(BUILD_ID);
}
Returns the build identifier for this version. |
public String getBuildJVM() {
String vm = props.getProperty(BUILD_JVM_VERSION);
String vendor = props.getProperty(BUILD_JVM_VENDOR);
return vm + '(" + vendor + ')";
}
Returns the BUILD_JVM_VERSION (BUILD_JVM_VENDOR) which should look like:
1.4.2_05-b04 (Sun Microsystems Inc.) |
public String getBuildNumber() {
return props.getProperty(BUILD_NUMBER);
}
Returns the build number for this version. |
public String getBuildOS() {
String os = props.getProperty(BUILD_OS);
String arch = props.getProperty(BUILD_OS_ARCH);
String version = props.getProperty(BUILD_OS_VERSION);
return os + '(" + arch +'," + version + ')";
}
Returns the BUILD_OS (BUILD_OS_ARCH,BUILD_OS_VERSION) which should look
like:
Windows XP (x86,5.1)
Linux (i386,2.4.21-4.ELsmp) |
public String getCvsTag() {
return props.getProperty(VERSION_CVSTAG);
}
Returns the CVS tag of the version. |
public static Version getInstance() {
if (instance == null)
{
instance = new Version();
}
return instance;
}
Get the single Version instance. |
public int getMajor() {
return getIntProperty(VERSION_MAJOR);
}
Returns the major number of the version. |
public int getMinor() {
return getIntProperty(VERSION_MINOR);
}
Returns the minor number of the version. |
public String getName() {
return props.getProperty(VERSION_NAME);
}
Returns the name number of the version. |
public Map getProperties() {
return Collections.unmodifiableMap(props);
}
Returns an unmodifiable map of version properties. |
public String getProperty(String name) {
return props.getProperty(name);
}
Returns the value for the given property name. |
public int getRevision() {
return getIntProperty(VERSION_REVISION);
}
Returns the revision number of the version. |
public String getTag() {
return props.getProperty(VERSION_TAG);
}
Returns the tag of the version. |
public String getVersionNumber() {
StringBuffer buff = new StringBuffer();
buff.append(getMajor()).append(".");
buff.append(getMinor()).append(".");
buff.append(getRevision()).append(".");
buff.append(getTag());
return buff.toString();
}
Returns the full version number, e.g. 5.0.0.GA |
public String toString() {
StringBuffer buff = new StringBuffer();
buff.append(getVersionNumber());
buff.append(" (build: SVNTag=");
buff.append(getCvsTag());
buff.append(" date=");
buff.append(getBuildID());
buff.append(")");
return buff.toString();
}
Returns the version information as a string. |