|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectissrg.utils.Version
This class stores the version information about a given package. Use it to collect the version from a bundle.
Field Summary | |
protected static java.lang.String |
DEFAULT_DATE_PATTERN
The default date pattern, if the pattern is missing in the bundle: "yyyy/MM/dd HH:mm". |
protected static java.lang.String |
RELEASE_DATE_PATTERN_PROPERTY
|
protected static java.lang.String |
RELEASE_DATE_PROPERTY
|
protected static java.lang.String |
VERSION_MAJOR_PROPERTY
|
protected static java.lang.String |
VERSION_MINOR_MINOR_PROPERTY
|
protected static java.lang.String |
VERSION_MINOR_PROPERTY
|
Constructor Summary | |
Version(java.lang.String bundle,
java.lang.String pkg)
This constructor builds a Version object given a resource bundle name and a package name. |
Method Summary | |
java.util.Date |
getReleaseDate()
This method returns the date of releasing the package, as recorded in the resource bundle. |
java.lang.String |
getVersion()
This method returns the version string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final java.lang.String VERSION_MAJOR_PROPERTY
protected static final java.lang.String VERSION_MINOR_PROPERTY
protected static final java.lang.String VERSION_MINOR_MINOR_PROPERTY
protected static final java.lang.String RELEASE_DATE_PATTERN_PROPERTY
protected static final java.lang.String RELEASE_DATE_PROPERTY
protected static final java.lang.String DEFAULT_DATE_PATTERN
Constructor Detail |
public Version(java.lang.String bundle, java.lang.String pkg)
bundle
- - the bundle namepkg
- - the package name, which is the prefix used to get the version
information properties in the bundle (e.g. "acm" is prefixed to
get "version.major" for ACM)Method Detail |
public java.lang.String getVersion()
public java.util.Date getReleaseDate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |