|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.icl.saxon.om.AbstractNode
com.icl.saxon.tree.NodeImpl
com.icl.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 com.icl.saxon.tree.NodeImpl |
---|
emptyArray, parent |
Fields inherited from class com.icl.saxon.om.AbstractNode |
---|
NODE_LETTER |
Fields inherited from interface com.icl.saxon.om.NodeInfo |
---|
ATTRIBUTE, COMMENT, ELEMENT, NAMESPACE, NODE, NONE, NUMBER_OF_TYPES, PI, ROOT, TEXT |
Constructor Summary | |
---|---|
NamespaceImpl(ElementImpl element,
int nsCode,
int index)
Construct a Namespace node |
Method Summary | |
---|---|
void |
copy(Outputter out)
Copy this node to a given outputter |
String |
generateId()
Get sequential key. |
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) |
Node |
getNextSibling()
Get next sibling - not defined for namespace nodes |
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) |
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 |
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) |
Methods inherited from class com.icl.saxon.tree.NodeImpl |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 parentMethod Detail |
---|
public 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 String getLocalName()
getLocalName
in interface NodeInfo
getLocalName
in interface Node
getLocalName
in class NodeImpl
public void setNamespaceCode(int nsCode)
public final short getNodeType()
public String getStringValue()
public String getNodeName()
getNodeName
in interface Node
getNodeName
in class AbstractNode
public Node getNextSibling()
getNextSibling
in interface Node
getNextSibling
in class NodeImpl
public Node getPreviousSibling()
getPreviousSibling
in interface Node
getPreviousSibling
in class NodeImpl
public NodeImpl getPreviousInDocument()
getPreviousInDocument
in class NodeImpl
public NodeImpl getNextInDocument(NodeImpl anchor)
getNextInDocument
in class NodeImpl
public String generateId()
generateId
in interface NodeInfo
generateId
in class NodeImpl
public void copy(Outputter out) throws TransformerException
TransformerException
protected long getSequenceNumber()
getSequenceNumber
in class NodeImpl
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |