|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.ant4eclipse.model.pdesupport.Version
public class Version
Encapsulates the version of an eclipse plugin. The version is build from a string with the following syntax: major.minor.micro.qualifier (as specified in the OSGi Service Platform Core Specification, Release 4).
Constructor Summary | |
---|---|
Version()
Creates a new instance of type Version. |
|
Version(java.lang.String version)
Creates a new instance of type Version. |
|
Version(Version version)
Creates a new instance of type Version. |
Method Summary | |
---|---|
void |
decrementMajor()
Decrements the major field. |
void |
decrementMicro()
Decrements the micro field. |
void |
decrementMinor()
Decrements the minor field. |
boolean |
equals(java.lang.Object o)
|
long |
getMajor()
getting the major field |
long |
getMicro()
getting the release field |
long |
getMinor()
getting the minor field |
java.lang.String |
getQualifier()
getting the build field |
boolean |
greaterThan(Version dest)
is this version geater than the destination version? |
int |
hashCode()
|
void |
incrementMajor()
Increments the major field. |
void |
incrementMicro()
Increments the micro field. |
void |
incrementMinor()
Increments the minor field. |
boolean |
lesserThan(Version dest)
is this version lesser than the destination version? |
void |
setMajor(int major)
Sets the major field. |
void |
setMicro(int micro)
|
void |
setMinor(int minor)
|
void |
setQualifier(java.lang.String qualifier)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Version()
Creates a new instance of type Version.
public Version(java.lang.String version)
Creates a new instance of type Version.
version
- the version as a string representation.public Version(Version version)
Creates a new instance of type Version. All attributes are copied from the given version.
version
- the version to copy.Method Detail |
---|
public final void incrementMajor()
Increments the major field.
public final void incrementMinor()
Increments the minor field.
public final void incrementMicro()
Increments the micro field.
public final void decrementMajor()
Decrements the major field.
public final void decrementMinor()
Decrements the minor field.
public final void decrementMicro()
Decrements the micro field.
public void setMajor(int major)
Sets the major field.
major
- public void setMinor(int minor)
minor
- public void setMicro(int micro)
micro
- public void setQualifier(java.lang.String qualifier)
qualifier
- public final boolean greaterThan(Version dest)
dest
- destination version
true
if this version is greater than the destination version, else false
public final boolean lesserThan(Version dest)
dest
- destination version
true
if this version is lesser than the destination version, else false
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public final java.lang.String toString()
toString
in class java.lang.Object
public final java.lang.String getQualifier()
public final long getMajor()
public final long getMinor()
public final long getMicro()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |