com.atlassian.maven.plugins.sourcerelease.util
Enum MavenVersion

java.lang.Object
  extended by java.lang.Enum<MavenVersion>
      extended by com.atlassian.maven.plugins.sourcerelease.util.MavenVersion
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MavenVersion>

public enum MavenVersion
extends java.lang.Enum<MavenVersion>


Enum Constant Summary
MAVEN2
           
MAVEN3
           
 
Method Summary
 java.lang.String getCmd()
           
static MavenVersion valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MavenVersion[] 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

MAVEN2

public static final MavenVersion MAVEN2

MAVEN3

public static final MavenVersion MAVEN3
Method Detail

values

public static MavenVersion[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (MavenVersion c : MavenVersion.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static MavenVersion valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getCmd

public java.lang.String getCmd()


Copyright © 2012 Atlassian. All Rights Reserved.