|
||||||||||
| 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.application.ApplicationXml
public class ApplicationXml
Encapsulates the DOM representation of an EAR descriptor (application.xml) to
provide convenience methods for easy access and manipulation.
| Field Summary |
|---|
| Fields inherited from class org.jdom.Document |
|---|
baseURI |
| Constructor Summary | |
|---|---|
ApplicationXml(org.jdom.Element rootElement,
DescriptorType type)
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. |
java.util.Iterator |
getVendorDescriptors()
Returns all vendor descriptors associated with this J2EE deployment descriptor. |
ApplicationXmlVersion |
getVersion()
|
org.jdom.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, 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 ApplicationXml(org.jdom.Element rootElement,
DescriptorType type)
rootElement - the root element for this descriptortype - the type of this descriptor| Method Detail |
|---|
public ApplicationXmlVersion getVersion()
public org.jdom.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 J2eeDescriptorJ2eeDescriptor.getVendorDescriptors()public java.lang.String getFileName()
getFileName in interface DescriptorDescriptor.getFileName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||