FileDocCategorySizeDatePackage
XModuleType.javaAPI DocGlassfish v2 API3723Fri May 04 22:31:58 BST 2007com.sun.enterprise.deployment.util

XModuleType

public class XModuleType extends javax.enterprise.deploy.shared.ModuleType
Extended module types which are specific to SJSAS
author
Sreenivas Munnangi

Fields Summary
private static final int
offset
public static final XModuleType
LCM
public static final XModuleType
CMB
private static final String[]
stringTable
private static final XModuleType[]
enumValueTable
private static final String[]
moduleExtension
Constructors Summary
protected XModuleType(int value)


       
        super(value);
    
Methods Summary
protected javax.enterprise.deploy.shared.ModuleType[]getEnumValueTable()

        return this.enumValueTable;
    
public java.lang.StringgetModuleExtension()

        if (super.getValue() >= this.getOffset()) {
            return (this.moduleExtension[super.getValue() - this.getOffset()]);
        } else {
            return super.getModuleExtension();
        }
    
public static javax.enterprise.deploy.shared.ModuleTypegetModuleType(int value)

        if (value >= offset) {
            return enumValueTable[value-offset];
        } else {
            return ModuleType.getModuleType(value);
        }
    
protected intgetOffset()

        return offset; 
    
protected java.lang.String[]getStringTable()

        return this.stringTable;
    
public java.lang.StringtoString()

        String[] strTable = this.getStringTable();
        int index = super.getValue() - this.getOffset();
        if (strTable != null && index >= 0 && index < strTable.length)
            return strTable[index];
        else
            super.toString();
        return null;