|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasig.portal.tools.versioning.Version
Represents the version of a specific unit of code that is currently installed in the portal. The unit of code is represented by its functional name. For the portal codebase this functional name uses the value of the IPermission interface, PORTAL_FRAMEWORK variable which currently is "UP_FRAMEWORK". The version of a specific piece of code is represented by three integers. In most significant order these are Major, Minor, and Micro.
Constructor Summary | |
Version(java.lang.String fname,
java.lang.String description,
int major,
int minor,
int micro)
Only the versioning package classes are expected to create these objects. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Returns true of the passed in object is a Version object and the functional names of the objects are equal and the version numbers within this class are equal to those of the passed in version object. |
boolean |
equalTo(Version v)
Returns true of the version represented by this class is equal to that represented by the passed in version object. |
java.lang.String |
getDescription()
Returns the description of the unit of code for which this object represents the version of this code that is currently installed in the portal. |
java.lang.String |
getFname()
Returns the functional name of the unit of code for which this object represents the version of this code that is currently installed in the portal. |
int |
getMajor()
The major version of the code represented by this object. |
int |
getMicro()
The micro version of the code represented by this object. |
int |
getMinor()
The minor version of the code represented by this object. |
boolean |
greaterThan(Version v)
Returns true of the version represented by this class is greater than that represented by the passed in version object. |
boolean |
lessThan(Version v)
Returns true of the version represented by this class is less than that represented by the passed in version object. |
java.lang.String |
toString()
Returns a string representation of the version. |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Version(java.lang.String fname, java.lang.String description, int major, int minor, int micro)
fname
- the functional name of the code being representedmajor
- the major version of this codeminor
- the minor version of this codemicro
- the micro version of this codeMethod Detail |
public java.lang.String getFname()
public java.lang.String getDescription()
public int getMajor()
public int getMinor()
public int getMicro()
public java.lang.String toString()
public boolean equals(java.lang.Object obj)
obj
- a Version object to be compared to this one
public boolean equalTo(Version v)
v
- the version to be compared with this version
public boolean lessThan(Version v)
v
- the version to be compared with this version
public boolean greaterThan(Version v)
v
- the version to be compared with this version
|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |