|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.saxon.om.AbstractNode
net.sf.saxon.tree.NodeImpl
net.sf.saxon.tree.NamespaceImpl
final class NamespaceImpl
A node in the XML parse tree representing a Namespace. Note that this is generated only "on demand", when the namespace axis is expanded.
| Field Summary |
|---|
| Fields inherited from class net.sf.saxon.tree.NodeImpl |
|---|
parent |
| Fields inherited from class net.sf.saxon.om.AbstractNode |
|---|
NODE_LETTER |
| Fields inherited from interface net.sf.saxon.om.NodeInfo |
|---|
ALL_NAMESPACES, LOCAL_NAMESPACES, NO_NAMESPACES |
| Constructor Summary | |
|---|---|
NamespaceImpl(ElementImpl element,
int nsCode,
int index)
Construct a Namespace node |
|
| Method Summary | |
|---|---|
void |
copy(Receiver out,
int whichNamespaces)
Copy this node to a given outputter |
String |
generateId()
Get sequential key. |
String |
getBaseURI()
Get the base URI for the node. |
String |
getLocalPart()
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) |
Node |
getNextSibling()
Get next sibling - not defined for namespace nodes |
int |
getNodeKind()
Return the type of node. |
String |
getNodeName()
Get the name of this node, following the DOM rules (which aren't actually defined for Namespace nodes...) |
NodeImpl |
getPreviousInDocument()
Get the previous node in document order (skipping namespace nodes) |
Node |
getPreviousSibling()
Get previous sibling - not defined for namespace nodes |
protected long |
getSequenceNumber()
Get the node sequence number (in document order). |
String |
getStringValue()
Return the string value of the node. |
boolean |
isSameNode(NodeInfo other)
Determine whether this is the same node as another node |
| Methods inherited from class net.sf.saxon.tree.NodeImpl |
|---|
compareOrder, copy, getAttributeValue, getDisplayName, getDocumentElement, getDocumentRoot, getFingerprint, getFirstChild, getLastChild, getLineNumber, getNamePool, getOriginatingNode, getParent, getPrefix, getRoot, getSystemId, getURI, hasAttributes, hasChildNodes, iterateAxis, iterateAxis, outputNamespaceNodes, setSystemId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.w3c.dom.Node |
|---|
compareDocumentPosition, getFeature, getTextContent, getUserData, isDefaultNamespace, isEqualNode, isSameNode, lookupNamespaceURI, lookupPrefix, setTextContent, setUserData |
| Constructor Detail |
|---|
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 parent| Method Detail |
|---|
public int getNameCode()
getNameCode in interface NodeInfogetNameCode in class NodeImplallocate,
getFingerprintpublic int getNamespaceCode()
public boolean isSameNode(NodeInfo other)
isSameNode in interface NodeInfoisSameNode in class NodeImplother - the node to be compared with this node
public String getLocalPart()
getLocalPart in interface NodeInfogetLocalPart in class NodeImplpublic final int getNodeKind()
Typepublic String getStringValue()
getStringValue in interface ItemgetStringValue in interface NodeInfogetStringValue in class AbstractNodepublic String getNodeName()
getNodeName in interface NodegetNodeName in class AbstractNodepublic Node getNextSibling()
getNextSibling in interface NodegetNextSibling in class NodeImplpublic Node getPreviousSibling()
getPreviousSibling in interface NodegetPreviousSibling in class NodeImplpublic NodeImpl getPreviousInDocument()
getPreviousInDocument in class NodeImplpublic NodeImpl getNextInDocument(NodeImpl anchor)
getNextInDocument in class NodeImplpublic String getBaseURI()
getBaseURI in interface NodeInfogetBaseURI in interface NodegetBaseURI in class NodeImplpublic String generateId()
generateId in interface NodeInfogenerateId in class NodeImpl
public void copy(Receiver out,
int whichNamespaces)
throws TransformerException
copy in class NodeImplTransformerExceptionprotected long getSequenceNumber()
getSequenceNumber in class NodeImpl
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||