ShrinkWrap Resolver Maven API 2.0.0-cr-1

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

java.lang.Object
  extended by org.jboss.shrinkwrap.resolver.api.maven.PackagingType

public class PackagingType
extends Object

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

Author:
Andrew Lee Rubinger, George Gastaldi

Field Summary
static PackagingType EAR
           
static PackagingType EJB
           
static PackagingType JAR
           
static PackagingType MAVEN_PLUGIN
           
static PackagingType PAR
           
static PackagingType POM
           
static PackagingType RAR
           
static PackagingType TEST_JAR
           
static PackagingType WAR
           
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
static PackagingType of(String typeName)
          Builds a PackagingType object
 String toString()
          Returns the canonical String value of this PackagingType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

POM

public static final PackagingType POM

JAR

public static final PackagingType JAR

TEST_JAR

public static final PackagingType TEST_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

toString

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

Overrides:
toString in class Object

of

public static PackagingType of(String typeName)
                        throws IllegalArgumentException
Builds a PackagingType object

Parameters:
typeName - String name of the packaging type
Returns:
Corresponding PackagingType object
Throws:
IllegalArgumentException - Thrown if typeName is null or empty

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

ShrinkWrap Resolver Maven API 2.0.0-cr-1

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