|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<VersionType> de.smartics.maven.issues.VersionType
public enum VersionType
Enumeration of version types. The version type identifies a specific part of a version number. The format is major
.minor
. micro
.
Enum Constant Summary | |
---|---|
ALL The all version type. |
|
MAJOR The major version type. |
|
MICRO The micro version type. |
|
MINOR The minor version type. |
Method Summary | |
---|---|
static VersionType |
fromName(String name) Returns the version type identified by the given name. |
String |
getName() Returns the display name of the version. |
abstract boolean |
isSameType(org.apache.maven.artifact.versioning.ArtifactVersion releaseVersion, org.apache.maven.artifact.versioning.ArtifactVersion currentVersion) Checks if the release version and the current version are of the same type. |
static VersionType |
valueOf(String name) Returns the enum constant of this type with the specified name. |
static VersionType[] |
values() Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final VersionType MAJOR
public static final VersionType MINOR
public static final VersionType MICRO
public static final VersionType ALL
Method Detail |
---|
public static VersionType[] values()
for (VersionType c : VersionType.values()) System.out.println(c);
public static VersionType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant with the specified name
NullPointerException
- if the argument is null
public String getName()
public static VersionType fromName(String name) throws IllegalArgumentException, NullPointerException
name
- the name of the version type requested.
IllegalArgumentException
- if there is no version type with the given name.
NullPointerException
- if
name
is
null
.
public abstract boolean isSameType(org.apache.maven.artifact.versioning.ArtifactVersion releaseVersion, org.apache.maven.artifact.versioning.ArtifactVersion currentVersion)
releaseVersion
- the version to compare to.
currentVersion
- the version to check if it is of the same type.
true
if the two versions are of the same type,
false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |