org.codehaus.cargo.module.webapp.jboss
Class JBossWebXml

java.lang.Object
  extended byorg.codehaus.cargo.module.AbstractDescriptor
      extended byorg.codehaus.cargo.module.webapp.jboss.JBossWebXml
All Implemented Interfaces:
Descriptor

public class JBossWebXml
extends AbstractDescriptor

Encapsulates the DOM representation of a web deployment descriptor jboss-web.xml to provide convenience methods for easy access and manipulation.

Version:
$Id: JBossWebXml.java 1124 2006-07-22 18:23:18Z vmassol $

Constructor Summary
JBossWebXml(org.w3c.dom.Document document)
          Constructor.
 
Method Summary
 java.lang.String getContextRoot()
           
 java.lang.String getFileName()
          Returns the file name of this descriptor. For example "web.xml", "weblogic.xml", etc.
 
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
 

Constructor Detail

JBossWebXml

public JBossWebXml(org.w3c.dom.Document document)
Constructor.

Parameters:
document - The DOM document representing the parsed deployment descriptor
Method Detail

getContextRoot

public java.lang.String getContextRoot()
Returns:
the context root element found in the jboss-web.xml file or null if not defined

getFileName

public final java.lang.String getFileName()
Returns the file name of this descriptor. For example "web.xml", "weblogic.xml", etc.

Returns:
the file name
See Also:
Descriptor.getFileName()


Copyright © 2004-2007 Codehaus. All Rights Reserved.