org.apache.maven.mercury.artifact
Enum QualityEnum

java.lang.Object
  extended by java.lang.Enum<QualityEnum>
      extended by org.apache.maven.mercury.artifact.QualityEnum
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<QualityEnum>

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

Version:
$Id: QualityEnum.java 744245 2009-02-13 21:23:44Z hboutemy $
Author:
Oleg Gusakov

Enum Constant Summary
alpha
           
beta
           
release
           
snapshot
           
unknown
           
 
Field Summary
static QualityEnum DEFAULT_QUALITY
           
 
Method Summary
static QualityEnum valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static QualityEnum[] 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

unknown

public static final QualityEnum unknown

snapshot

public static final QualityEnum snapshot

alpha

public static final QualityEnum alpha

beta

public static final QualityEnum beta

release

public static final QualityEnum release
Field Detail

DEFAULT_QUALITY

public static final QualityEnum DEFAULT_QUALITY
Method Detail

values

public static QualityEnum[] 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 (QualityEnum c : QualityEnum.values())
    System.out.println(c);

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

valueOf

public static QualityEnum 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


Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.