Class ContextParam

  • All Implemented Interfaces:
    Serializable, Cloneable, org.jdom2.NamespaceAware, org.jdom2.Parent

    public class ContextParam
    extends WebXmlElement
    Context Parameter class for accessing context parameters in a web.xml file.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.jdom2.Content

        org.jdom2.Content.CType
    • Field Summary

      • Fields inherited from class org.jdom2.Element

        name, namespace
      • Fields inherited from class org.jdom2.Content

        ctype, parent
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.jdom2.Element

        addContent, addContent, addContent, addContent, addContent, addNamespaceDeclaration, canContainContent, clone, cloneContent, coalesceText, detach, getAdditionalNamespaces, getAttribute, getAttribute, getAttributes, getAttributesSize, 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, getNamespacesInherited, getNamespacesInScope, getNamespacesIntroduced, getNamespaceURI, getQualifiedName, getText, getTextNormalize, getTextTrim, getValue, getXMLBaseURI, hasAdditionalNamespaces, hasAttributes, indexOf, isAncestor, isRootElement, removeAttribute, removeAttribute, removeAttribute, removeChild, removeChild, removeChildren, removeChildren, removeContent, removeContent, removeContent, removeContent, removeNamespaceDeclaration, setAttribute, setAttribute, setAttribute, setAttributes, setContent, setContent, setContent, setContent, setName, setNamespace, setText, sortAttributes, sortChildren, sortContent, sortContent, toString
      • Methods inherited from class org.jdom2.Content

        equals, getCType, getDocument, getParent, getParentElement, hashCode, setParent
      • Methods inherited from interface org.jdom2.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