org.codehaus.cargo.module.webapp.elements
Class ContextParam

java.lang.Object
  extended by org.jdom.Content
      extended by org.jdom.Element
          extended by org.codehaus.cargo.module.DescriptorElement
              extended by org.codehaus.cargo.module.webapp.elements.WebXmlElement
                  extended by org.codehaus.cargo.module.webapp.elements.ContextParam
All Implemented Interfaces:
Serializable, Cloneable, org.jdom.Parent

public class ContextParam
extends WebXmlElement

Context Parameter class for accessing context parameters in a web.xml file.

Version:
$Id: ContextParam.java 1705 2008-09-02 13:14:55Z adriana $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jdom.Element
additionalNamespaces, name, namespace
 
Fields inherited from class org.jdom.Content
parent
 
Constructor Summary
ContextParam(WebXmlTag tag)
          Constructor.
ContextParam(WebXmlTag tag, String name, String value)
          Constructor.
 
Method Summary
 String getParamName()
           
 String getParamValue()
           
 void setParamName(String paramName)
          Set the parameter name.
 void setParamValue(String paramValue)
          Set the parameter value.
 
Methods inherited from class org.codehaus.cargo.module.webapp.elements.WebXmlElement
child
 
Methods inherited from class org.codehaus.cargo.module.DescriptorElement
getTag, setTag
 
Methods inherited from class org.jdom.Element
addContent, addContent, addContent, addContent, addContent, addNamespaceDeclaration, clone, cloneContent, getAdditionalNamespaces, getAttribute, getAttribute, getAttributes, getAttributeValue, getAttributeValue, getAttributeValue, getAttributeValue, getChild, getChild, getChildren, getChildren, getChildren, getChildText, getChildText, getChildTextNormalize, getChildTextNormalize, getChildTextTrim, getChildTextTrim, getContent, getContent, getContent, getContentSize, getDescendants, getDescendants, getName, getNamespace, getNamespace, getNamespacePrefix, getNamespaceURI, getQualifiedName, getText, getTextNormalize, getTextTrim, getValue, indexOf, isAncestor, isRootElement, removeAttribute, removeAttribute, removeAttribute, removeChild, removeChild, removeChildren, removeChildren, removeContent, removeContent, removeContent, removeContent, removeNamespaceDeclaration, setAttribute, setAttribute, setAttribute, setAttributes, setAttributes, setContent, setContent, setContent, setContent, setName, setNamespace, setText, toString
 
Methods inherited from class org.jdom.Content
detach, equals, getDocument, getParent, getParentElement, hashCode, setParent
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jdom.Parent
getDocument, getParent
 

Constructor Detail

ContextParam

public ContextParam(WebXmlTag tag)
Constructor.

Parameters:
tag - web xml tag

ContextParam

public ContextParam(WebXmlTag tag,
                    String name,
                    String value)
Constructor.

Parameters:
tag - web xml tag
name - Name of the parameter
value - Value for the parameter
Method Detail

getParamName

public String getParamName()
Returns:
String of the parameter name

getParamValue

public String getParamValue()
Returns:
String of the parameter value

setParamName

public void setParamName(String paramName)
Set the parameter name.

Parameters:
paramName - Name of the parameter

setParamValue

public void setParamValue(String paramValue)
Set the parameter value.

Parameters:
paramValue - Value for the parameter


Copyright © 2004-2012 Codehaus. All Rights Reserved.