NodeInfo
, javax.xml.transform.dom.DOMLocator
, javax.xml.transform.Source
, javax.xml.transform.SourceLocator
, org.w3c.dom.Node
final class NamespaceImpl extends NodeImpl
NODE_LETTER
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
emptyArray, parent
Constructor | Description |
---|---|
NamespaceImpl(ElementImpl element,
int nsCode,
int index) |
Construct a Namespace node
|
Modifier and Type | Method | Description |
---|---|---|
void |
copy(Outputter out) |
Copy this node to a given outputter
|
java.lang.String |
generateId() |
Get sequential key.
|
java.lang.String |
getLocalName() |
Get the prefix of the namespace that this node relates to
|
int |
getNameCode() |
Get the namecode for this name.
|
int |
getNamespaceCode() |
Get the namespace code for this prefix/uri pair.
|
NodeImpl |
getNextInDocument(NodeImpl anchor) |
Get the next node in document order (skipping namespace nodes)
|
org.w3c.dom.Node |
getNextSibling() |
Get next sibling - not defined for namespace nodes
|
java.lang.String |
getNodeName() |
Get the name of this node, following the DOM rules (which aren't actually defined
for Namespace nodes...)
|
short |
getNodeType() |
Return the type of node.
|
NodeImpl |
getPreviousInDocument() |
Get the previous node in document order (skipping namespace nodes)
|
org.w3c.dom.Node |
getPreviousSibling() |
Get previous sibling - not defined for namespace nodes
|
protected long |
getSequenceNumber() |
Get the node sequence number (in document order).
|
java.lang.String |
getStringValue() |
Return the string value of the node.
|
boolean |
isSameNodeInfo(NodeInfo other) |
Determine whether this is the same node as another node
|
void |
setNamespaceCode(int nsCode) |
Change the uri of the namespace that this node relates to
(used to implement xsl:namespace-alias)
|
appendChild, appendData, cloneNode, compareDocumentPosition, copyStringValue, createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, deleteData, disallowUpdate, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getColumnNumber, getData, getDoctype, getElementById, getElementsByTagName, getElementsByTagNameNS, getFeature, getImplementation, getLength, getName, getNamespaceURI, getNodeValue, getOwnerDocument, getOwnerElement, getParentNode, getPublicId, getSchemaTypeInfo, getSpecified, getTagName, getTextContent, getUserData, getValue, getWholeText, hasAttribute, hasAttributeNS, importNode, insertBefore, insertData, isDefaultNamespace, isElementContentWhitespace, isEqualNode, isId, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeAttribute, removeAttributeNode, removeAttributeNS, removeChild, replaceChild, replaceData, replaceWholeText, setAttributeNode, setAttributeNodeNS, setAttributeNS, setData, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setNodeValue, setPrefix, setTextContent, setUserData, setValue, splitText, substringData, supports
compareOrder, getAttributes, getAttributeValue, getAttributeValue, getBaseURI, getChildNodes, getDisplayName, getDocumentElement, getDocumentRoot, getEnumeration, getFingerprint, getFirstChild, getLastChild, getLineNumber, getNamePool, getOriginatingNode, getParent, getPrefix, getSystemId, getURI, hasAttributes, hasChildNodes, outputNamespaceNodes, removeNode, setSystemId
public NamespaceImpl(ElementImpl element, int nsCode, int index)
element
- The element owning the namespace nodensCode
- The namespace codeindex
- Integer identifying this namespace node among the nodes for its parentpublic int getNameCode()
getNameCode
in interface NodeInfo
getNameCode
in class NodeImpl
allocate
,
getFingerprint
public int getNamespaceCode()
public boolean isSameNodeInfo(NodeInfo other)
isSameNodeInfo
in interface NodeInfo
isSameNodeInfo
in class NodeImpl
public java.lang.String getLocalName()
getLocalName
in interface org.w3c.dom.Node
getLocalName
in interface NodeInfo
getLocalName
in class NodeImpl
public void setNamespaceCode(int nsCode)
public final short getNodeType()
public java.lang.String getStringValue()
public java.lang.String getNodeName()
getNodeName
in interface org.w3c.dom.Node
getNodeName
in class AbstractNode
public org.w3c.dom.Node getNextSibling()
getNextSibling
in interface org.w3c.dom.Node
getNextSibling
in class NodeImpl
public org.w3c.dom.Node getPreviousSibling()
getPreviousSibling
in interface org.w3c.dom.Node
getPreviousSibling
in class NodeImpl
public NodeImpl getPreviousInDocument()
getPreviousInDocument
in class NodeImpl
public NodeImpl getNextInDocument(NodeImpl anchor)
getNextInDocument
in class NodeImpl
anchor
- : the scan stops when it reaches a node that is not a descendant of the specified
anchor nodepublic java.lang.String generateId()
generateId
in interface NodeInfo
generateId
in class NodeImpl
public void copy(Outputter out) throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerException
protected long getSequenceNumber()
getSequenceNumber
in class NodeImpl