|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.cargo.module.AbstractDescriptor
org.codehaus.cargo.module.application.ApplicationXml
Encapsulates the DOM representation of an EAR descriptor (application.xml
) to
provide convenience methods for easy access and manipulation.
Constructor Summary | |
ApplicationXml(org.w3c.dom.Document theDocument)
Constructor. |
Method Summary | |
void |
addEjbModule(java.lang.String name)
Adds a ejb module to the deployment descriptor. |
void |
addWebModule(java.lang.String uri,
java.lang.String context)
Adds a web module to the deployment descriptor. |
java.util.Iterator |
getEjbModules()
Returns an iterator over the ejb modules defined in the descriptor. |
java.util.Iterator |
getElements(ApplicationXmlTag tag)
Returns an iterator over the elements that match the specified tag. |
java.lang.String |
getFileName()
Returns the file name of this descriptor. For example "web.xml", "weblogic.xml", etc. |
java.util.Iterator |
getVendorDescriptors()
Returns all vendor descriptors associated with this J2EE deployment descriptor. For example for JBoss the vendor descriptor associated with web.xml is
jboss-web.xml . |
ApplicationXmlVersion |
getVersion()
|
org.w3c.dom.Element |
getWebModule(java.lang.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. |
java.lang.String |
getWebModuleContextRoot(java.lang.String webUri)
Returns the context root of the the specified web module. |
java.util.Iterator |
getWebModuleUris()
Returns an iterator over the URIs of the web modules defined in the descriptor. |
Methods inherited from class org.codehaus.cargo.module.AbstractDescriptor |
addElement, checkElement, createNestedText, getChildText, getDocument, getElements, getImmediateChild, getInsertionPointFor, getNestedElements, getNestedText, getRootElement, getText, replaceElement |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.codehaus.cargo.module.Descriptor |
getDocument |
Constructor Detail |
public ApplicationXml(org.w3c.dom.Document theDocument)
theDocument
- The DOM document representing the parsed deployment descriptorMethod Detail |
public ApplicationXmlVersion getVersion()
public org.w3c.dom.Element getWebModule(java.lang.String webUri)
null
if a web module with the specified web-uri is not defined.
webUri
- The uri of the web module
public java.lang.String getWebModuleContextRoot(java.lang.String webUri)
webUri
- The uri of the web module
public java.util.Iterator getWebModuleUris()
public java.util.Iterator getEjbModules()
public java.util.Iterator getElements(ApplicationXmlTag tag)
tag
- The descriptor tag of which the elements should be returned
public void addWebModule(java.lang.String uri, java.lang.String context)
uri
- the uri of the new modulecontext
- the context of the new modulepublic void addEjbModule(java.lang.String name)
name
- the name of the new modulepublic java.util.Iterator getVendorDescriptors()
web.xml
is
jboss-web.xml
.
getVendorDescriptors
in interface J2eeDescriptor
J2eeDescriptor.getVendorDescriptors()
public java.lang.String getFileName()
getFileName
in interface Descriptor
Descriptor.getFileName()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |