electric.xml.xpath
Class XPathNamespace

java.lang.Object
  extended byelectric.xml.Node
      extended byelectric.xml.xpath.XPathNamespace
All Implemented Interfaces:
IDOMConstants, IXMLConstants, org.w3c.dom.Node, java.io.Serializable

public class XPathNamespace
extends Node

XPathNamespace is the DOM Level 3 implementation of an XPath namespace node.

Author:
webMethods
See Also:
Serialized Form

Field Summary
protected  java.lang.String namespaceURI
           
protected  Element ownerElement
           
protected  java.lang.String prefix
           
static short XPATH_NAMESPACE_NODE
           
 
Fields inherited from class electric.xml.Node
list, next, prev
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Fields inherited from interface electric.xml.IXMLConstants
ATTLIST_START, ATTLIST_STOP, CDATA, CDATA_START, CDATA_STOP, CLOSE_TAG, COLON, COMMENT_START, COMMENT_STOP, DOCTYPE_START, DOCTYPE_STOP, ELEMENTDECL_START, ELEMENTDECL_STOP, ENCODING, ENTITYDECL_START, ENTITYDECL_STOP, ID, ID_CASE, INSTRUCTION_START, INSTRUCTION_STOP, NEGATIVE_INFINITY, NOT_A_NUMBER, NOTATIONDECL_START, NOTATIONDECL_STOP, NULL, OPEN_TAG, POSITIVE_INFINITY, PUBLIC, SPECIALS, STANDALONE, SUBSTITUTES, SYSTEM, UNDEFINED, VERSION, XML, XML_NAMESPACE, XMLDECL_START, XMLDECL_STOP, XMLNS, XMLNS_NAMESPACE
 
Fields inherited from interface electric.xml.IDOMConstants
CDATA_SECTION_NAME, COMMENT_NAME, CORE, DOCUMENT_FRAGMENT_NAME, DOCUMENT_NAME, HIERARCHY_REQUEST_ERR, TEXT_NAME
 
Constructor Summary
XPathNamespace(Element ownerElement, java.lang.String prefix, java.lang.String namespaceURI)
           
XPathNamespace(java.lang.String prefix, java.lang.String namespaceURI)
           
 
Method Summary
 boolean equals(java.lang.Object object)
           
 java.lang.String getNamespaceURI()
          Return the namespace URI of this node, or null if it is unspecified.
 short getNodeType()
          Return a code representing the type of the underlying object.
 Element getOwnerElement()
           
 java.lang.String getPrefix()
          Return the namespace prefix of this node, or null if it is unspecified.
 java.lang.String toString()
          Return my description.
 
Methods inherited from class electric.xml.Node
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNextSibling, getNextSiblingNode, getNode, getNode, getNodeName, getNodes, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, getPreviousSiblingNode, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, read, remove, removeChild, replaceChild, setNextSiblingNode, setNodeValue, setPrefix, setPreviousSiblingNode, size, write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

XPATH_NAMESPACE_NODE

public static final short XPATH_NAMESPACE_NODE
See Also:
Constant Field Values

ownerElement

protected Element ownerElement

prefix

protected java.lang.String prefix

namespaceURI

protected java.lang.String namespaceURI
Constructor Detail

XPathNamespace

public XPathNamespace(java.lang.String prefix,
                      java.lang.String namespaceURI)
Parameters:
prefix -
namespaceURI -

XPathNamespace

public XPathNamespace(Element ownerElement,
                      java.lang.String prefix,
                      java.lang.String namespaceURI)
Parameters:
ownerElement -
prefix -
namespaceURI -
Method Detail

equals

public boolean equals(java.lang.Object object)
Parameters:
object -

toString

public java.lang.String toString()
Return my description.


getOwnerElement

public Element getOwnerElement()

getPrefix

public java.lang.String getPrefix()
Description copied from class: Node
Return the namespace prefix of this node, or null if it is unspecified. Note that setting this attribute, when permitted, changes the nodeName attribute, which holds the qualified name, as well as the tagName and name attributes of the Element and Attr interfaces, when applicable. Note also that changing the prefix of an attribute that is known to have a default value, does not make a new attribute with the default value and the original prefix appear, since the namespaceURI and localName do not change. For nodes of any type other than ELEMENT_NODE and ATTRIBUTE_NODE and nodes created with a DOM Level 1 method, such as createElement from the Document interface, this is always null.

Specified by:
getPrefix in interface org.w3c.dom.Node
Overrides:
getPrefix in class Node

getNamespaceURI

public java.lang.String getNamespaceURI()
Description copied from class: Node
Return the namespace URI of this node, or null if it is unspecified. This is not a computed value that is the result of a namespace lookup based on an examination of the namespace declarations in scope. It is merely the namespace URI given at creation time. For nodes of any type other than ELEMENT_NODE and ATTRIBUTE_NODE and nodes created with a DOM Level 1 method, such as createElement from the Document interface, this is always null. Per the Namespaces in XML Specification an attribute does not inherit its namespace from the element it is attached to. If an attribute is not explicitly given a namespace, it simply has no namespace.

Specified by:
getNamespaceURI in interface org.w3c.dom.Node
Overrides:
getNamespaceURI in class Node

getNodeType

public short getNodeType()
Return a code representing the type of the underlying object.

Specified by:
getNodeType in interface org.w3c.dom.Node
Overrides:
getNodeType in class Node


copyright© 2001-2004 by webMethods All Rights Reserved.