public class WebXml extends AbstractDescriptor implements J2eeDescriptor
web.xml to
provide convenience methods for easy access and manipulation.| Constructor and Description |
|---|
WebXml()
Constructor.
|
WebXml(org.jdom.Element rootElement,
DescriptorType type)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTag(DescriptorElement element)
Add a tag into the document.
|
void |
addVendorDescriptor(VendorWebAppDescriptor descr)
Associates a vendor specific descriptor with this web.xml.
|
String |
getFileName()
Returns the file name of this descriptor.
|
org.jdom.Element |
getTag(String tag)
Get a tag by name.
|
protected org.jdom.Namespace |
getTagNamespace()
Get the namespace that tags in this descriptor live in.
|
Iterator |
getVendorDescriptors()
Returns all vendor descriptors associated with this web.xml.
|
WebXmlVersion |
getVersion()
Returns the servlet API version.
|
addElement, checkElement, createNestedText, getChildText, getChildText, getDescriptorType, getDocument, getElements, getElements, getImmediateChild, getInsertionPointFor, getNestedElements, getNestedText, getTagByIdentifier, getTagByIdentifier, getTags, getTags, getTextaddContent, 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, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitaddElement, getDescriptorType, getDocument, getRootElement, getTagByIdentifier, getTagspublic WebXml()
public WebXml(org.jdom.Element rootElement,
DescriptorType type)
rootElement - The root webxml elementtype - The descriptor type to usepublic String getFileName()
getFileName in interface DescriptorDescriptor.getFileName()public void addVendorDescriptor(VendorWebAppDescriptor descr)
descr - the vendor specific dexcriptor to associatepublic Iterator getVendorDescriptors()
getVendorDescriptors in interface J2eeDescriptorprotected org.jdom.Namespace getTagNamespace()
public final WebXmlVersion getVersion()
public final void addTag(DescriptorElement element)
element - The element to addpublic org.jdom.Element getTag(String tag)
tag - The tag nameCopyright © 2004-2013 Codehaus. All Rights Reserved.