Top Description Fields Constructors Methods
javax.enterprise.deploy.shared

public Class ModuleType

extends Object
Class Inheritance

Class ModuleTypes defines enumeration values for the Java EE module types.
Author
Rebecca Searls

Field Summary

Modifier and TypeField and Description
public static final ModuleType
CAR

The module is an Client Application archive.

public static final ModuleType
EAR

The module is an EAR archive.

public static final ModuleType
EJB

The module is an Enterprise Java Bean archive.

private static final ModuleType[]
private static final String[]
public static final ModuleType
RAR

The module is an Connector archive.

private static final String[]
private int
public static final ModuleType
WAR

The module is an Web Application archive.

Constructor Summary

AccessConstructor and Description
protected
ModuleType(int
Integer value.
value
)

Construct a new enumeration value with the given integer value.

Method Summary

Modifier and TypeMethod and Description
protected ModuleType[]
getEnumValueTable()

Returns the enumeration value table for class ModuleType

public String
getModuleExtension()

Return the file extension string for this enumeration.

public static ModuleType
getModuleType(int
a designator for the object.
value
)

Return an object of the specified value.

protected int

Returns:

the offset of the lowest enumeration value.
getOffset
()

Returns the lowest integer value used by this enumeration value's enumeration class.

protected String[]
getStringTable()

Returns the string table for class ModuleType

public int

Returns:

the value
getValue
()

Returns this enumeration value's integer value.

public String
toString()

Overrides java.lang.Object.toString.

Return the string name of this ModuleType or the integer value if outside the bounds of the table
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

CARback to summary
public static final ModuleType CAR

The module is an Client Application archive.

EARback to summary
public static final ModuleType EAR

The module is an EAR archive.

EJBback to summary
public static final ModuleType EJB

The module is an Enterprise Java Bean archive.

enumValueTableback to summary
private static final ModuleType[] enumValueTable
moduleExtensionback to summary
private static final String[] moduleExtension
RARback to summary
public static final ModuleType RAR

The module is an Connector archive.

stringTableback to summary
private static final String[] stringTable
valueback to summary
private int value
WARback to summary
public static final ModuleType WAR

The module is an Web Application archive.

Constructor Detail

ModuleTypeback to summary
protected ModuleType(int value)

Construct a new enumeration value with the given integer value.

Parameters
value:int

Integer value.

Method Detail

getEnumValueTableback to summary
protected ModuleType[] getEnumValueTable()

Returns the enumeration value table for class ModuleType

getModuleExtensionback to summary
public String getModuleExtension()

Return the file extension string for this enumeration.

getModuleTypeback to summary
public static ModuleType getModuleType(int value)

Return an object of the specified value.

Parameters
value:int

a designator for the object.

getOffsetback to summary
protected int getOffset()

Returns the lowest integer value used by this enumeration value's enumeration class.

The default implementation returns 0. If the enumeration class (a subclass of class EnumSyntax) uses integer values starting at other than 0, override this method in the subclass.

Returns:int

the offset of the lowest enumeration value.

getStringTableback to summary
protected String[] getStringTable()

Returns the string table for class ModuleType

getValueback to summary
public int getValue()

Returns this enumeration value's integer value.

Returns:int

the value

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Return the string name of this ModuleType or the integer value if outside the bounds of the table

Returns:String

Doc from java.lang.Object.toString.

a string representation of the object.