|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objecteclipseme.core.model.Version
Represents the version of a component. Understands a string of the form "major.minor.secondary_patch".
Note: This class/interface is part of an interim API that is still under development and expected to change before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken as the API evolves.
Copyright (c) 2003-2005 Craig Setera
| Constructor Summary | |
Version(java.lang.String versionString)
Construct a new version instance based on the specified version string. |
|
| Method Summary | |
int |
compareTo(java.lang.Object o)
|
int |
compareTo(Version version)
|
java.lang.String |
getMajor()
Get the major version number. |
java.lang.String |
getMinor()
Get the minor version number or null
if not specified. |
java.lang.String |
getPatch()
Get the patch version number or null
if not specified. |
java.lang.String |
getSecondary()
Get the secondary version number or null
if not specified. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Version(java.lang.String versionString)
| Method Detail |
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.ComparableComparable.compareTo(java.lang.Object)public int compareTo(Version version)
Comparable.compareTo(java.lang.Object)public java.lang.String getMajor()
public java.lang.String getMinor()
null
if not specified.
public java.lang.String getPatch()
null
if not specified.
public java.lang.String getSecondary()
null
if not specified.
public java.lang.String toString()
Object.toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||