org.exolab.adaptx.xslt.dom

Class Namespace

Implemented Interfaces:
java.io.Serializable

public class Namespace
extends org.exolab.adaptx.xslt.dom.BaseNode

A class representing a Namespace node
Version:
$Revision: 3633 $ $Date: 2003-03-01 02:38:44 -0500 (Sat, 01 Mar 2003) $
Author:
Keith Visco
See Also:
Serialized Form

Field Summary

Fields inherited from class org.exolab.adaptx.xslt.dom.BaseNode

LOCATION_PROPERTY

Fields inherited from class org.exolab.adaptx.xpath.XPathNode

ATTRIBUTE, COMMENT, ELEMENT, NAMESPACE, PI, ROOT, TEXT

Constructor Summary

Namespace(String prefix, String namespaceURI)
Creates a new Namespace

Method Summary

int
getNodeType()
Returns the type of this node.
String
getStringValue()
Returns the string value of the node.
void
setValue(String value)
Sets the value for this XPathNode

Methods inherited from class org.exolab.adaptx.xslt.dom.BaseNode

getAttribute, getFirstAttribute, getFirstChild, getFirstNamespace, getLocalName, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getNext, getNodeType, getParentNode, getPrevious, getProperty, getRootNode, getStringValue, hasChildNodes, setProperty

Methods inherited from class org.exolab.adaptx.xpath.XPathNode

getAttribute, getFirstAttribute, getFirstChild, getFirstNamespace, getLocalName, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getNext, getNodeType, getParentNode, getPrevious, getRootNode, getStringValue, hasChildNodes

Constructor Details

Namespace

public Namespace(String prefix,
                 String namespaceURI)
Creates a new Namespace
Parameters:
prefix - the prefix of this namespace binding. [May be null]
namespaceURI - the namespace URI mapped to this prefix. [May be null]

Method Details

getNodeType

public int getNodeType()
Returns the type of this node.
Overrides:
getNodeType in interface org.exolab.adaptx.xslt.dom.BaseNode
Returns:
The type of this node

getStringValue

public String getStringValue()
Returns the string value of the node. The string value of a text node or an attribute node is it's text value. The string value of an element or a root node is the concatenation of the string value of all its child nodes. The string value of a namespace node is its namespace URI. The string value of a processing instruction is the instruction, and the string value of a comment is the comment text.
Overrides:
getStringValue in interface org.exolab.adaptx.xslt.dom.BaseNode
Returns:
The string value of the node

setValue

public void setValue(String value)
Sets the value for this XPathNode