public class VersionInfo
extends java.lang.Object
| Constructor and Description |
|---|
VersionInfo(java.lang.String plugInID,
java.lang.String applicationTitle)
Instantiates a new version info.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFullVersionInfo(boolean includeApplicationTitle,
java.lang.String newLineString)
This method returns the full version information of Agent.Workbench.
|
java.lang.String |
getJavaInfo()
Returns the current java version and vendor.
|
org.osgi.framework.Version |
getVersion()
Loads the version information to this instance.
|
java.util.Date |
getVersionDate()
Provides the date where this version was build as Date.
|
java.lang.String |
getVersionDateAsString()
Provides the date where this version was build as a String.
|
java.lang.String |
getVersionInfo()
Returns the version, build and Java information as String.
|
java.lang.Integer |
getVersionMajor()
Provides the major version number.
|
java.lang.Integer |
getVersionMicro()
Provides the build number of the version.
|
java.lang.Integer |
getVersionMinor()
Provides the minor version number.
|
boolean |
isUpToDate(java.lang.Integer foreignMajorRevision,
java.lang.Integer foreignMinorRevision,
java.lang.Integer foreignMicroRevision)
Checks if a foreign is up to date.
|
void |
printVersionInfo()
Prints out the current version and build information.
|
public VersionInfo(java.lang.String plugInID,
java.lang.String applicationTitle)
plugInID - the plug in IDapplicationTitle - the application titlepublic org.osgi.framework.Version getVersion()
public void printVersionInfo()
public java.lang.String getVersionInfo()
public java.lang.String getFullVersionInfo(boolean includeApplicationTitle,
java.lang.String newLineString)
includeApplicationTitle - the include application titlenewLineString - the new line stringpublic java.lang.Integer getVersionMajor()
public java.lang.Integer getVersionMinor()
public java.lang.Integer getVersionMicro()
public java.util.Date getVersionDate()
public java.lang.String getVersionDateAsString()
public java.lang.String getJavaInfo()
public boolean isUpToDate(java.lang.Integer foreignMajorRevision,
java.lang.Integer foreignMinorRevision,
java.lang.Integer foreignMicroRevision)
foreignMajorRevision - the major revision to compareforeignMinorRevision - the minor revision to compareforeignMicroRevision - the micro revision number to compare