org.codehaus.cargo.module.webapp.resin
Class ResinWebXml

java.lang.Object
  extended by org.jdom.Document
      extended by org.codehaus.cargo.module.AbstractDescriptor
          extended by org.codehaus.cargo.module.webapp.resin.ResinWebXml
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Descriptor, VendorDescriptor, VendorWebAppDescriptor, org.jdom.Parent

public class ResinWebXml
extends AbstractDescriptor
implements VendorWebAppDescriptor

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

Version:
$Id $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jdom.Document
baseURI
 
Constructor Summary
ResinWebXml(org.jdom.Element rootElement, DescriptorType type)
          Constructor.
 
Method Summary
 void addEjbReference(EjbRef ref)
          Adds a ejb reference.
 org.jdom.Element getDirectoryServlet()
          Get the directory servlet.
 java.lang.String getFileName()
          Returns the file name of this descriptor.
 java.util.List getJndiLinks()
          Get the jndi links.
 java.util.List getResourceRefs()
          Get the resource references.
 org.jdom.Element getSessionConfig()
          Get the session config element.
 java.util.List getSystemProperties()
          Get the system properties.
 
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

ResinWebXml

public ResinWebXml(org.jdom.Element rootElement,
                   DescriptorType type)
Constructor.

Parameters:
rootElement - The descriptor root element
type - The descriptor type
Method Detail

addEjbReference

public void addEjbReference(EjbRef ref)
Adds a ejb reference.

Specified by:
addEjbReference in interface VendorWebAppDescriptor
Parameters:
ref - reference to add

getFileName

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

Specified by:
getFileName in interface Descriptor
Returns:
the file name
See Also:
Descriptor.getFileName()

getSystemProperties

public java.util.List getSystemProperties()
Get the system properties.

Returns:
the system properties

getResourceRefs

public java.util.List getResourceRefs()
Get the resource references.

Returns:
the resource refs

getJndiLinks

public java.util.List getJndiLinks()
Get the jndi links.

Returns:
the jndi links

getSessionConfig

public org.jdom.Element getSessionConfig()
Get the session config element.

Returns:
session config element

getDirectoryServlet

public org.jdom.Element getDirectoryServlet()
Get the directory servlet.

Returns:
directory servlet element


Copyright © 2004-2011 Codehaus. All Rights Reserved.