Top Fields Constructors Methods
org.apache.xerces.impl.xs.opti

public Class NodeImpl

extends DefaultNode
Class Inheritance
Known Direct Subclasses
org.apache.xerces.impl.xs.opti.AttrImpl, org.apache.xerces.impl.xs.opti.DefaultDocument, org.apache.xerces.impl.xs.opti.DefaultElement, org.apache.xerces.impl.xs.opti.DefaultText

Author
Rahul Srivastava, Sun Microsystems Inc.
Version
$Id: NodeImpl.java 705596 2008-10-17 13:05:10Z mrglavas $

Field Summary

Modifier and TypeField and Description
pack-priv boolean
pack-priv String
pack-priv short
pack-priv String
pack-priv String
pack-priv String

Constructor Summary

AccessConstructor and Description
public
public
NodeImpl(String prefix, String localpart, String rawname, String uri, short nodeType)

Method Summary

Modifier and TypeMethod and Description
public String
getLocalName()

Overrides org.apache.xerces.impl.xs.opti.DefaultNode.getLocalName.

Implements org.w3c.dom.Node.getLocalName.

Returns the local part of the qualified name of this node.
public String
getNamespaceURI()

Overrides org.apache.xerces.impl.xs.opti.DefaultNode.getNamespaceURI.

Implements org.w3c.dom.Node.getNamespaceURI.

The namespace URI of this node, or null if it is unspecified (see ).
public String
getNodeName()

Overrides org.apache.xerces.impl.xs.opti.DefaultNode.getNodeName.

Implements org.w3c.dom.Node.getNodeName.

The name of this node, depending on its type; see the table above.
public short
getNodeType()

Overrides org.apache.xerces.impl.xs.opti.DefaultNode.getNodeType.

Implements org.w3c.dom.Node.getNodeType.

A code representing the type of the underlying object, as defined above.
public String
getPrefix()

Overrides org.apache.xerces.impl.xs.opti.DefaultNode.getPrefix.

Implements org.w3c.dom.Node.getPrefix.

The namespace prefix of this node, or null if it is unspecified.
public boolean
public void
setReadOnly(boolean hide, boolean deep)

public String
toString()

Overrides java.lang.Object.toString.

NON-DOM method for debugging convenience.
Inherited from org.apache.xerces.impl.xs.opti.DefaultNode:
appendChildcloneNodecompareDocumentPositiongetAttributesgetBaseURIgetChildNodesgetFeaturegetFirstChildgetLastChildgetNextSiblinggetNodeValuegetOwnerDocumentgetParentNodegetPreviousSiblinggetTextContentgetUserDatahasAttributeshasChildNodesinsertBeforeisDefaultNamespaceisEqualNodeisSameNodeisSupportedlookupNamespaceURIlookupPrefixnormalizeremoveChildreplaceChildsetNodeValuesetPrefixsetTextContentsetUserData

Field Detail

hiddenback to summary
pack-priv boolean hidden
localpartback to summary
pack-priv String localpart
nodeTypeback to summary
pack-priv short nodeType
prefixback to summary
pack-priv String prefix
rawnameback to summary
pack-priv String rawname
uriback to summary
pack-priv String uri

Constructor Detail

NodeImplback to summary
public NodeImpl()
NodeImplback to summary
public NodeImpl(String prefix, String localpart, String rawname, String uri, short nodeType)

Method Detail

getLocalNameback to summary
public String getLocalName()

Overrides org.apache.xerces.impl.xs.opti.DefaultNode.getLocalName.

Implements org.w3c.dom.Node.getLocalName.

Doc from org.w3c.dom.Node.getLocalName.

Returns the local part of the qualified name of this node.
For nodes of any type other than ELEMENT_NODE and ATTRIBUTE_NODE and nodes created with a DOM Level 1 method, such as Document.createElement(), this is always null.

getNamespaceURIback to summary
public String getNamespaceURI()

Overrides org.apache.xerces.impl.xs.opti.DefaultNode.getNamespaceURI.

Implements org.w3c.dom.Node.getNamespaceURI.

Doc from org.w3c.dom.Node.getNamespaceURI.

The namespace URI of this node, or null if it is unspecified (see ).
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 Document.createElement(), this is always null.

Note

Per the Namespaces in XML Specification [XML Namespaces] 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.

getNodeNameback to summary
public String getNodeName()

Overrides org.apache.xerces.impl.xs.opti.DefaultNode.getNodeName.

Implements org.w3c.dom.Node.getNodeName.

Doc from org.w3c.dom.Node.getNodeName.

The name of this node, depending on its type; see the table above.

getNodeTypeback to summary
public short getNodeType()

Overrides org.apache.xerces.impl.xs.opti.DefaultNode.getNodeType.

Implements org.w3c.dom.Node.getNodeType.

Doc from org.w3c.dom.Node.getNodeType.

A code representing the type of the underlying object, as defined above.

getPrefixback to summary
public String getPrefix()

Overrides org.apache.xerces.impl.xs.opti.DefaultNode.getPrefix.

Implements org.w3c.dom.Node.getPrefix.

Doc from org.w3c.dom.Node.getPrefix.

The namespace prefix of this node, or null if it is unspecified. When it is defined to be null, setting it has no effect, including if the node is read-only.
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.
Setting the prefix to null makes it unspecified, setting it to an empty string is implementation dependent.
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.

getReadOnlyback to summary
public boolean getReadOnly()
setReadOnlyback to summary
public void setReadOnly(boolean hide, boolean deep)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

NON-DOM method for debugging convenience.

Returns:String

Doc from java.lang.Object.toString.

a string representation of the object.