|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdom.Document
org.codehaus.cargo.module.AbstractDescriptor
org.codehaus.cargo.module.webapp.WebXml
public class WebXml
Encapsulates the DOM representation of a web deployment descriptor web.xml to
provide convenience methods for easy access and manipulation.
| Field Summary |
|---|
| Fields inherited from class org.jdom.Document |
|---|
baseURI |
| Constructor Summary | |
|---|---|
WebXml()
Constructor. |
|
WebXml(org.jdom.Element rootElement,
DescriptorType type)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addTag(DescriptorElement element)
Add a tag into the document. |
void |
addVendorDescriptor(VendorWebAppDescriptor descr)
Associates a vendor specific descriptor with this web.xml. |
java.lang.String |
getFileName()
Returns the file name of this descriptor. |
org.jdom.Element |
getTag(java.lang.String tag)
Get a tag by name. |
protected org.jdom.Namespace |
getTagNamespace()
Get the namespace that tags in this descriptor live in. |
java.util.Iterator |
getVendorDescriptors()
Returns all vendor descriptors associated with this web.xml. |
WebXmlVersion |
getVersion()
Returns the servlet API version. |
| Methods inherited from class org.codehaus.cargo.module.AbstractDescriptor |
|---|
addElement, checkElement, createNestedText, getChildText, getChildText, getDescriptorType, getDocument, getElements, getElements, getImmediateChild, getInsertionPointFor, getNestedElements, getNestedText, getTagByIdentifier, getTagByIdentifier, getTags, getTags, getText |
| Methods inherited from class org.jdom.Document |
|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.codehaus.cargo.module.Descriptor |
|---|
addElement, getDescriptorType, getDocument, getRootElement, getTagByIdentifier, getTags |
| Methods inherited from interface org.jdom.Parent |
|---|
clone, cloneContent, getContent, getContent, getContent, getContentSize, getDescendants, getDescendants, getParent, indexOf, removeContent, removeContent, removeContent, removeContent |
| Constructor Detail |
|---|
public WebXml()
public WebXml(org.jdom.Element rootElement,
DescriptorType type)
rootElement - The root webxml elementtype - The descriptor type to use| Method Detail |
|---|
public java.lang.String getFileName()
getFileName in interface DescriptorDescriptor.getFileName()public void addVendorDescriptor(VendorWebAppDescriptor descr)
descr - the vendor specific dexcriptor to associatepublic java.util.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(java.lang.String tag)
tag - The tag name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||