|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.securitycentric.metacoretex.lib.Version
The Version object can be used by Probes to quickly determine if a version is greater or less than itself.
Constructor Summary | |
Version(java.lang.String verStr)
Creates a new instance of Version by parsing the specified string for a versionish segment of numbers seperated by [._] |
Method Summary | |
boolean |
isNewerThan(Version ver)
Tests to see if this version is newer than the specified version object (non-Inclusive). |
boolean |
isOlderThan(Version ver)
Tests to see if this version is older than the specified version object (non-Inclusive). |
java.lang.String |
toString()
Returns the string representation of this version in dot notation. |
int |
verCount()
Returns the number of indices in the version string. |
int |
verInt(int index)
Returns the integer value of the specified index in the underlying version string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Version(java.lang.String verStr) throws VersionException
verStr
- String representation of the version (ie. 1.354.3_3)
VersionException
- VersionException is thrown if specified string for constructor cannot be
parsed to find a version string.Method Detail |
public boolean isNewerThan(Version ver)
ver
- Version object to compare to
public boolean isOlderThan(Version ver)
public int verInt(int index)
public int verCount()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |