org.jboss.deployment
Class J2eeModuleMetaData

java.lang.Object
  extended by org.jboss.metadata.MetaData
      extended by org.jboss.deployment.J2eeModuleMetaData
All Implemented Interfaces:
Cloneable, XmlLoadable

public class J2eeModuleMetaData
extends org.jboss.metadata.MetaData

The metadata for an application/module element

Version:
$Revision: 81030 $
Author:
Daniel Schulze, Thomas.Diesler@jboss.org

Field Summary
static int CLIENT
           
static int CONNECTOR
           
static int EJB
           
static int HAR
           
static int SERVICE
           
static int WEB
           
 
Fields inherited from class org.jboss.metadata.MetaData
log, TX_MANDATORY, TX_NEVER, TX_NOT_SUPPORTED, TX_REQUIRED, TX_REQUIRES_NEW, TX_SUPPORTS, TX_UNKNOWN
 
Constructor Summary
J2eeModuleMetaData()
          Default ctor used when populating the metadata via xml descriptors
J2eeModuleMetaData(int type, String fileName)
          Ctor used when populating the metadata without a descriptor
 
Method Summary
 String getAlternativeDD()
           
 String getFileName()
           
 int getType()
           
 String getWebContext()
           
 void importXml(Element rootElement)
           
protected  void importXml(Element element, boolean jbossSpecific)
           
 boolean isConnector()
           
 boolean isEjb()
           
 boolean isJava()
           
 boolean isWeb()
           
 void setAlternativeDD(String dd)
           
 void setFileName(String name)
           
 void setType(int type)
           
 void setWebContext(String context)
           
 String toString()
           
 
Methods inherited from class org.jboss.metadata.MetaData
clone, getChildrenByTagName, getElementAttribute, getElementAttribute, getElementContent, getElementContent, getElementContent, getFirstElementContent, getFirstElementContent, getOptionalChild, getOptionalChild, getOptionalChildBooleanContent, getOptionalChildBooleanContent, getOptionalChildContent, getOptionalChildContent, getUniqueChild, getUniqueChildContent, importEjbJarXml, importJbossXml, jdk13Enabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EJB

public static final int EJB
See Also:
Constant Field Values

WEB

public static final int WEB
See Also:
Constant Field Values

CLIENT

public static final int CLIENT
See Also:
Constant Field Values

CONNECTOR

public static final int CONNECTOR
See Also:
Constant Field Values

SERVICE

public static final int SERVICE
See Also:
Constant Field Values

HAR

public static final int HAR
See Also:
Constant Field Values
Constructor Detail

J2eeModuleMetaData

public J2eeModuleMetaData()
Default ctor used when populating the metadata via xml descriptors


J2eeModuleMetaData

public J2eeModuleMetaData(int type,
                          String fileName)
Ctor used when populating the metadata without a descriptor

Parameters:
type - - one of EJB, WEB, CLIENT, CONNECTOR, SERVICE, HAR
fileName - - the module name
Method Detail

getType

public int getType()

setType

public void setType(int type)

isEjb

public boolean isEjb()

isWeb

public boolean isWeb()

isJava

public boolean isJava()

isConnector

public boolean isConnector()

getFileName

public String getFileName()

setFileName

public void setFileName(String name)

getAlternativeDD

public String getAlternativeDD()

setAlternativeDD

public void setAlternativeDD(String dd)

getWebContext

public String getWebContext()

setWebContext

public void setWebContext(String context)

importXml

public void importXml(Element rootElement)
               throws DeploymentException
Specified by:
importXml in interface XmlLoadable
Overrides:
importXml in class org.jboss.metadata.MetaData
Throws:
DeploymentException

importXml

protected void importXml(Element element,
                         boolean jbossSpecific)
                  throws DeploymentException
Throws:
DeploymentException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.