public class JBossWebXml extends AbstractDescriptor implements VendorWebAppDescriptor
jboss-web.xml
to provide convenience methods for easy access and
manipulation.Constructor and Description |
---|
JBossWebXml(org.jdom.Element rootElement,
DescriptorType type)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addEjbReference(EjbRef ref)
Adds an ejb reference to the descriptor.
|
String |
getContextRoot() |
String |
getFileName()
Returns the file name of this descriptor.
|
addElement, checkElement, createNestedText, getChildText, getChildText, getDescriptorType, getDocument, getElements, getElements, getImmediateChild, getInsertionPointFor, getNestedElements, getNestedText, getTagByIdentifier, getTagByIdentifier, getTags, getTags, getText
addContent, addContent, addContent, addContent, clone, cloneContent, detachRootElement, equals, getBaseURI, getContent, getContent, getContent, getContentSize, getDescendants, getDescendants, getDocType, getParent, getProperty, getRootElement, hashCode, hasRootElement, indexOf, removeContent, removeContent, removeContent, removeContent, setBaseURI, setContent, setContent, setContent, setContent, setDocType, setProperty, setRootElement, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
addElement, getDescriptorType, getDocument, getRootElement, getTagByIdentifier, getTags
public JBossWebXml(org.jdom.Element rootElement, DescriptorType type)
rootElement
- The root document elementtype
- The document typepublic String getContextRoot()
jboss-web.xml
file or null if not definedpublic final String getFileName()
getFileName
in interface Descriptor
Descriptor.getFileName()
public void addEjbReference(EjbRef ref)
addEjbReference
in interface VendorWebAppDescriptor
ref
- ejb reference to add to the descriptorCopyright © 2004-2013 Codehaus. All Rights Reserved.