javax.enterprise.deploy.shared
Class ModuleType

java.lang.Object
  extended byjavax.enterprise.deploy.shared.ModuleType

public class ModuleType
extends java.lang.Object

An enumeration of j2ee module types.


Field Summary
static ModuleType (src) CAR
          The module type for an CAR
static ModuleType (src) EAR
          The module type for an EAR
static ModuleType (src) EJB
          The module type for an EJB
static ModuleType (src) RAR
          The module type for an RAR
static ModuleType (src) WAR
          The module type for an WAR
 
Constructor Summary
protected ModuleType(int value)
          Create a new ModuleType
 
Method Summary
protected  ModuleType (src) [] getEnumValueTable()
          Get the enumerated values for module type
 java.lang.String getModuleExtension()
          Get the file extension for this module
static ModuleType (src) getModuleType(int type)
          Get the module type for an integer
protected  int getOffset()
          Return the offset of the first element
protected  java.lang.String[] getStringTable()
          Get the string table for class module type.
 int getValue()
          Get the value
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EAR

public static final ModuleType (src)  EAR
The module type for an EAR


EJB

public static final ModuleType (src)  EJB
The module type for an EJB


CAR

public static final ModuleType (src)  CAR
The module type for an CAR


RAR

public static final ModuleType (src)  RAR
The module type for an RAR


WAR

public static final ModuleType (src)  WAR
The module type for an WAR

Constructor Detail

ModuleType

protected ModuleType(int value)
Create a new ModuleType

Parameters:
value - the value
Method Detail

getValue

public int getValue()
Get the value

Returns:
the value

getStringTable

protected java.lang.String[] getStringTable()
Get the string table for class module type. This is: {"ear", "ejb", "car", "rar", "war"}

Returns:
the string table

getEnumValueTable

protected ModuleType (src) [] getEnumValueTable()
Get the enumerated values for module type

Returns:
the string table

getModuleExtension

public java.lang.String getModuleExtension()
Get the file extension for this module

Returns:
the file extension

getModuleType

public static ModuleType (src)  getModuleType(int type)
Get the module type for an integer

Parameters:
type - the type
Returns:
the module type

toString

public java.lang.String toString()
Returns:
The stringTable entry for this ModuleType value

getOffset

protected int getOffset()
Return the offset of the first element

Returns:
the offset