public enum ModuleType extends Enum<ModuleType>
| Enum Constant and Description |
|---|
EJB
EJB archive.
|
JAR
JAR archive.
|
WAR
WAR archive.
|
| Modifier and Type | Method and Description |
|---|---|
static ModuleType |
fromString(String packaging)
Tworzy enum ze stringa.
|
String |
getExtension()
Pobiera rozszerzenie dla danego modułu.
|
Class<? extends org.jboss.shrinkwrap.api.Archive<?>> |
getType()
Pobiera typ archiwum.
|
boolean |
isModule()
Sprawdza czy jest modułem czy bibioteką.
|
String |
toString() |
static ModuleType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ModuleType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ModuleType WAR
public static final ModuleType EJB
public static final ModuleType JAR
public static ModuleType[] values()
for (ModuleType c : ModuleType.values()) System.out.println(c);
public static ModuleType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic String toString()
toString in class Enum<ModuleType>public static ModuleType fromString(String packaging)
packaging - nazwa typu pakowaniapublic Class<? extends org.jboss.shrinkwrap.api.Archive<?>> getType()
public boolean isModule()
public String getExtension()
Copyright © 2013-2014 Ingwar & co.. All Rights Reserved.