ShrinkWrap Resolver Maven API 2.0.0-alpha-4

org.jboss.shrinkwrap.resolver.api.maven
Enum PackagingType

java.lang.Object
  extended by java.lang.Enum<PackagingType>
      extended by org.jboss.shrinkwrap.resolver.api.maven.PackagingType
All Implemented Interfaces:
Serializable, Comparable<PackagingType>

public enum PackagingType
extends Enum<PackagingType>

Represents the valid values for the "packaging" portion of a MavenCoordinate

Author:
Andrew Lee Rubinger

Enum Constant Summary
EAR
           
EJB
           
JAR
           
MAVEN_PLUGIN
           
PAR
           
POM
           
RAR
           
WAR
           
 
Method Summary
static PackagingType fromPackagingType(String typeName)
          Maps a string to PackagingType
 String toString()
          Returns the canonical String value of this PackagingType
static PackagingType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PackagingType[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

POM

public static final PackagingType POM

JAR

public static final PackagingType JAR

MAVEN_PLUGIN

public static final PackagingType MAVEN_PLUGIN

EJB

public static final PackagingType EJB

WAR

public static final PackagingType WAR

EAR

public static final PackagingType EAR

RAR

public static final PackagingType RAR

PAR

public static final PackagingType PAR
Method Detail

values

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

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

valueOf

public static PackagingType valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

toString

public String toString()
Returns the canonical String value of this PackagingType

Overrides:
toString in class Enum<PackagingType>
See Also:
Enum.toString()

fromPackagingType

public static PackagingType fromPackagingType(String typeName)
                                       throws IllegalArgumentException
Maps a string to PackagingType

Parameters:
typeName - String name of the packaging type
Returns:
Corresponding PackagingType object
Throws:
IllegalArgumentException - Thrown if typeName is null, empty or does not represent a valid packaging type

ShrinkWrap Resolver Maven API 2.0.0-alpha-4

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.