|
||||||||||
| 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.tinytree.TinyNodeImpl
net.sf.saxon.tinytree.TinyAttributeImpl
A node in the XML parse tree representing an attribute. Note that this is generated only "on demand", when the attribute is selected by a select pattern.
| Field Summary | |
protected TinyDocumentImpl |
document
|
protected int |
nodeNr
|
protected TinyNodeImpl |
parent
|
| Fields inherited from class net.sf.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 net.sf.saxon.om.NodeInfo |
ALL_NAMESPACES, LOCAL_NAMESPACES, NO_NAMESPACES |
| Constructor Summary | |
TinyAttributeImpl(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(Receiver out,
int whichNamespaces,
boolean copyAnnotations)
Copy this node to a given outputter |
java.lang.String |
generateId()
Generate id. |
java.lang.String |
getAttributeValue(int fingerprint)
Get 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. |
int |
getDocumentNumber()
Get the document number of the document containing this node (Needed when the document isn't a real node, for sorting free-standing elements) |
DocumentInfo |
getDocumentRoot()
Get the root (document) node |
int |
getFingerprint()
Get the fingerprint of the node, used for matching names |
int |
getLineNumber()
Get the line number of the node within its source document entity |
java.lang.String |
getLocalPart()
Get the local name of this node. |
int |
getNameCode()
Get the name code of the node, used for finding names in the name pool |
NamePool |
getNamePool()
Get the NamePool for the tree containing this node |
int |
getNodeKind()
Return the type of node. |
org.w3c.dom.Node |
getOriginatingNode()
Get the node corresponding to this javax.xml.transform.dom.DOMLocator |
NodeInfo |
getParent()
Get the parent node |
java.lang.String |
getPrefix()
Get the prefix part of the name of this node. |
NodeInfo |
getRoot()
Get the root node of the tree (not necessarily a document node) |
protected long |
getSequenceNumber()
Get the node sequence number (in document order). |
java.lang.String |
getStringValue()
Return the character value of the node. |
java.lang.String |
getSystemId()
Get the system ID for the entity containing the node. |
int |
getTypeAnnotation()
Get the type annotation of this node, if any Returns 0 if there is no type annotation |
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 |
AxisIterator |
iterateAxis(byte axisNumber)
Return an iterator over all the nodes reached by the given axis from this node |
AxisIterator |
iterateAxis(byte axisNumber,
NodeTest nodeTest)
Return an iterator over the nodes reached by the given axis from this node |
void |
outputNamespaceNodes(Receiver out,
boolean includeAncestors)
Output all namespace nodes associated with this element. |
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 |
| Methods inherited from interface org.w3c.dom.Attr |
getName, getOwnerElement, getSpecified, getValue, setValue |
| Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
| Field Detail |
protected TinyDocumentImpl document
protected int nodeNr
protected TinyNodeImpl parent
| Constructor Detail |
public TinyAttributeImpl(TinyDocumentImpl doc,
int nodeNr)
| Method Detail |
public NodeInfo getParent()
getParent in interface NodeInfogetParent in class TinyNodeImplprotected long getSequenceNumber()
getSequenceNumber in class TinyNodeImplpublic final int getNodeKind()
getNodeKind in interface NodeInfoTypepublic java.lang.String getStringValue()
getStringValue in interface NodeInfogetStringValue in class AbstractNodepublic int getFingerprint()
getFingerprint in interface NodeInfogetFingerprint in class TinyNodeImplpublic int getNameCode()
getNameCode in interface NodeInfogetNameCode in class TinyNodeImplpublic java.lang.String getPrefix()
getPrefix in interface org.w3c.dom.NodegetPrefix in class TinyNodeImplpublic java.lang.String getDisplayName()
getDisplayName in interface NodeInfogetDisplayName in class TinyNodeImplpublic java.lang.String getLocalPart()
getLocalPart in interface NodeInfogetLocalPart in class TinyNodeImplpublic final java.lang.String getURI()
getURI in interface NodeInfogetURI in class TinyNodeImplpublic int getTypeAnnotation()
getTypeAnnotation in interface NodeInfogetTypeAnnotation in class AbstractNodepublic java.lang.String generateId()
generateId in interface NodeInfogenerateId in class TinyNodeImpl
public void copy(Receiver out,
int whichNamespaces,
boolean copyAnnotations)
throws javax.xml.transform.TransformerException
copy in interface NodeInfoout - the Receiver to which the node should be copiedwhichNamespaces - in the case of an element, controls
which namespace nodes should be copied. Values are NO_NAMESPACES,
LOCAL_NAMESPACES, ALL_NAMESPACEScopyAnnotations - indicates whether the type annotations
of element and attribute nodes should be copied
javax.xml.transform.TransformerExceptionpublic int getLineNumber()
getLineNumber in interface NodeInfogetLineNumber in class TinyNodeImplpublic void setSystemId(java.lang.String uri)
protected void setParentNode(TinyNodeImpl parent)
public boolean isSameNode(NodeInfo other)
isSameNode in interface NodeInfoisSameNode in class AbstractNodepublic java.lang.String getSystemId()
getSystemId in interface NodeInfogetSystemId in class AbstractNodepublic java.lang.String getBaseURI()
getBaseURI in interface NodeInfogetBaseURI in class AbstractNodepublic org.w3c.dom.Node getOriginatingNode()
getOriginatingNode in interface javax.xml.transform.dom.DOMLocatorgetOriginatingNode 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 AxisIterator iterateAxis(byte axisNumber)
axisNumber - Identifies the required axis, eg. Axis.CHILD or Axis.PARENT
Axis
public AxisIterator iterateAxis(byte axisNumber,
NodeTest nodeTest)
iterateAxis in interface NodeInfoiterateAxis 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 org.w3c.dom.NodehasChildNodes in class AbstractNodetrue if this node has any attributes,
false otherwise.public boolean hasAttributes()
hasAttributes in interface org.w3c.dom.NodehasAttributes in class AbstractNodetrue if this node has any attributes,
false otherwise.public java.lang.String getAttributeValue(int fingerprint)
getAttributeValue in interface NodeInfogetAttributeValue in class AbstractNodefingerprint - The fingerprint of the attribute name
public NodeInfo getRoot()
getRoot in interface NodeInfogetRoot in class AbstractNodepublic DocumentInfo getDocumentRoot()
getDocumentRoot in interface NodeInfogetDocumentRoot in class AbstractNodepublic NamePool getNamePool()
public void outputNamespaceNodes(Receiver out,
boolean includeAncestors)
throws javax.xml.transform.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
javax.xml.transform.TransformerExceptionpublic int getDocumentNumber()
getDocumentNumber in interface NodeInfogetDocumentNumber in class AbstractNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||