public class ApplicationXml extends AbstractDescriptor implements J2eeDescriptor
application.xml) to
provide convenience methods for easy access and manipulation.| Constructor and Description |
|---|
ApplicationXml(Document theDocument)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEjbModule(String name)
Adds a ejb module to the deployment descriptor.
|
void |
addWebModule(String uri,
String context)
Adds a web module to the deployment descriptor.
|
Iterator |
getEjbModules()
Returns an iterator over the ejb modules defined in the descriptor.
|
Iterator |
getElements(ApplicationXmlTag tag)
Returns an iterator over the elements that match the specified tag.
|
String |
getFileName()
Returns the file name of this descriptor.
|
Iterator |
getVendorDescriptors()
Returns all vendor descriptors associated with this J2EE deployment descriptor.
|
ApplicationXmlVersion |
getVersion() |
Element |
getWebModule(String webUri)
Returns the element that contains the definition of a specific web module, or
null if a web module with the specified web-uri is not defined. |
String |
getWebModuleContextRoot(String webUri)
Returns the context root of the the specified web module.
|
Iterator |
getWebModuleUris()
Returns an iterator over the URIs of the web modules defined in the descriptor.
|
addElement, checkElement, createNestedText, getChildText, getDocument, getElements, getImmediateChild, getInsertionPointFor, getNestedElements, getNestedText, getRootElement, getText, replaceElementclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDocumentpublic ApplicationXml(Document theDocument)
theDocument - The DOM document representing the parsed deployment descriptorpublic ApplicationXmlVersion getVersion()
public Element getWebModule(String webUri)
null if a web module with the specified web-uri is not defined.webUri - The uri of the web modulepublic String getWebModuleContextRoot(String webUri)
webUri - The uri of the web modulepublic Iterator getWebModuleUris()
public Iterator getEjbModules()
public Iterator getElements(ApplicationXmlTag tag)
tag - The descriptor tag of which the elements should be returnedpublic void addWebModule(String uri, String context)
uri - the uri of the new modulecontext - the context of the new modulepublic void addEjbModule(String name)
name - the name of the new modulepublic Iterator getVendorDescriptors()
web.xml is
jboss-web.xml.getVendorDescriptors in interface J2eeDescriptorJ2eeDescriptor.getVendorDescriptors()public String getFileName()
getFileName in interface DescriptorDescriptor.getFileName()Copyright © 2004-2013 Codehaus. All Rights Reserved.