|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.icl.saxon.om.AbstractNode
|
+--com.icl.saxon.tinytree.TinyNodeImpl
|
+--com.icl.saxon.tinytree.TinyNamespaceImpl
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 | |
|---|---|
protected TinyDocumentImpl |
document
|
protected int |
nodeNr
|
protected TinyNodeImpl |
parent
|
| Fields inherited from class com.icl.saxon.om.AbstractNode |
|---|
NODE_LETTER |
| 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 com.icl.saxon.om.NodeInfo |
|---|
ATTRIBUTE, COMMENT, ELEMENT, NAMESPACE, NODE, NONE, NUMBER_OF_TYPES, PI, ROOT, TEXT |
| Constructor Summary | |
|---|---|
TinyNamespaceImpl(TinyDocumentImpl doc,
int nodeNr)
|
|
| Method Summary | |
|---|---|
int |
compareOrder(NodeInfo other)
Determine the relative position of this node and another node, in document order. |
void |
copy(Outputter out)
Copy this node to a given outputter |
java.lang.String |
generateId()
Get unique identifier. |
java.lang.String |
getAttributeValue(int fingerprint)
Get the value of a given attribute of this node |
java.lang.String |
getAttributeValue(java.lang.String uri,
java.lang.String localName)
Find the value of a given attribute of this node. |
java.lang.String |
getBaseURI()
Get the base URI for the node. |
java.lang.String |
getDisplayName()
Get the display name of this node. |
DocumentInfo |
getDocumentRoot()
Get the root (document) node |
AxisEnumeration |
getEnumeration(byte axisNumber,
NodeTest nodeTest)
Return an enumeration over the nodes reached by the given axis from this node |
int |
getFingerprint()
Get the fingerprint |
int |
getLineNumber()
Get the line number of the node within its source document entity |
java.lang.String |
getLocalName()
Get the local name of this node. |
int |
getNameCode()
Get the nameCode, for name matching |
int |
getNamespaceCode()
Get the namespace code (a numeric representation of the prefix and URI) |
short |
getNodeType()
Return the type of node. |
Node |
getOriginatingNode()
Get the node corresponding to this javax.xml.transform.dom.DOMLocator |
NodeInfo |
getParent()
Get the parent element of this namespace node |
java.lang.String |
getPrefix()
Get the prefix part of the name of this node. |
protected long |
getSequenceNumber()
Get the node sequence number (in document order). |
java.lang.String |
getStringValue()
Return the string value of the node. |
java.lang.String |
getSystemId()
Get the system ID for the entity containing the node. |
java.lang.String |
getURI()
Get the URI part of the name of this node. |
boolean |
hasAttributes()
Returns whether this node has any attributes. |
boolean |
hasChildNodes()
Determine whether the node has any children. |
boolean |
isSameNode(NodeInfo other)
Determine whether this is the same node as another node |
void |
outputNamespaceNodes(Outputter out,
boolean includeAncestors)
Output all namespace nodes associated with this element. |
void |
setLineNumber(int line)
Set the line number of the node within its source document entity |
protected void |
setParentNode(int nodeNr)
Set the parent element for this namespace node |
protected void |
setParentNode(TinyNodeImpl parent)
Set the parent of this node. |
void |
setSystemId(java.lang.String uri)
Set the system id of this node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected TinyDocumentImpl document
protected int nodeNr
protected TinyNodeImpl parent
| Constructor Detail |
public TinyNamespaceImpl(TinyDocumentImpl doc,
int nodeNr)
| Method Detail |
public int getNamespaceCode()
public int getFingerprint()
getFingerprint in interface NodeInfogetFingerprint in class TinyNodeImplprotected void setParentNode(int nodeNr)
public int getNameCode()
getNameCode in interface NodeInfogetNameCode in class TinyNodeImplallocate,
getFingerprintpublic java.lang.String getPrefix()
getPrefix in interface NodegetPrefix in class TinyNodeImplpublic java.lang.String getDisplayName()
getDisplayName in interface NodeInfogetDisplayName in class TinyNodeImplpublic java.lang.String getLocalName()
getLocalName in interface NodegetLocalName in class TinyNodeImplpublic java.lang.String getURI()
getURI in interface NodeInfogetURI in class TinyNodeImplpublic NodeInfo getParent()
getParent in interface NodeInfogetParent in class TinyNodeImplpublic final boolean isSameNode(NodeInfo other)
isSameNode in interface NodeInfoisSameNode in class TinyNodeImplpublic final short getNodeType()
public final java.lang.String getStringValue()
public java.lang.String generateId()
generateId in interface NodeInfogenerateId in class TinyNodeImpl
public void copy(Outputter out)
throws TransformerException
TransformerExceptionprotected long getSequenceNumber()
getSequenceNumber in class TinyNodeImplpublic void setSystemId(java.lang.String uri)
protected void setParentNode(TinyNodeImpl parent)
public java.lang.String getSystemId()
getSystemId in interface NodeInfogetSystemId in class AbstractNodepublic java.lang.String getBaseURI()
getBaseURI in interface NodeInfogetBaseURI in class AbstractNodepublic Node getOriginatingNode()
getOriginatingNode in interface DOMLocatorgetOriginatingNode in class AbstractNodepublic void setLineNumber(int line)
public int getLineNumber()
getLineNumber in interface NodeInfogetLineNumber in class AbstractNodepublic final int compareOrder(NodeInfo other)
compareOrder in interface NodeInfocompareOrder in class AbstractNodeother - The other node, whose position is to be compared with this node
public AxisEnumeration getEnumeration(byte axisNumber,
NodeTest nodeTest)
getEnumeration in interface NodeInfogetEnumeration in class AbstractNodeaxisNumber - Identifies the required axis, eg. Axis.CHILD or Axis.PARENTnodeTest - A pattern to be matched by the returned nodes
public boolean hasChildNodes()
hasChildNodes in interface NodehasChildNodes in class AbstractNodetrue if this node has any attributes,
false otherwise.public boolean hasAttributes()
hasAttributes in interface NodehasAttributes in class AbstractNodetrue if this node has any attributes,
false otherwise.
public java.lang.String getAttributeValue(java.lang.String uri,
java.lang.String localName)
getAttributeValue in interface NodeInfogetAttributeValue in class AbstractNodeuri - the namespace uri of an attributelocalName - the local name of an attribute
public java.lang.String getAttributeValue(int fingerprint)
getAttributeValue in interface NodeInfogetAttributeValue in class AbstractNodefingerprint - The fingerprint of the attribute name
public DocumentInfo getDocumentRoot()
getDocumentRoot in interface NodeInfogetDocumentRoot in class AbstractNode
public void outputNamespaceNodes(Outputter out,
boolean includeAncestors)
throws TransformerException
outputNamespaceNodes in interface NodeInfooutputNamespaceNodes in class AbstractNodeout - The relevant outputterincludeAncestors - True if namespaces declared on ancestor elements must
be output; false if it is known that these are already on the result tree
TransformerException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||