|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--net.sf.saxon.om.AbstractNode
|
+--net.sf.saxon.value.TextFragmentValue
This class represents a temporary tree whose root document node owns a single text node.
| Field Summary |
| 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 |
| 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 |
| Constructor Summary | |
TextFragmentValue(java.lang.CharSequence value,
java.lang.String systemId)
Constructor: create a result tree fragment containing a single text node |
|
| 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,
int locationId)
Copy the result tree fragment value to a given Outputter |
java.lang.String |
generateId()
Get a character string that uniquely identifies this node |
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. |
Configuration |
getConfiguration()
Get the configuration previously set using setConfiguration (or the default configuraton allocated automatically) |
java.lang.String |
getDisplayName()
Get the display name of this node. |
int |
getDocumentNumber()
Get the unique document number |
DocumentInfo |
getDocumentRoot()
Get the root (document) node |
int |
getFingerprint()
Get the fingerprint of the node, used for matching names |
java.lang.String |
getLocalPart()
Get the local name of this node. |
int |
getNameCode()
Get the name code of the node, used for displaying names |
NamePool |
getNamePool()
Get the name pool used for the names in this document |
int |
getNodeKind()
Return the type of node. |
NodeInfo |
getParent()
Find the parent node of this node. |
java.lang.String |
getPrefix()
Get the prefix part of the name of this node. |
NodeInfo |
getRoot()
Get the root node |
java.lang.String |
getStringValue()
Get the String Value |
java.lang.String |
getSystemId()
Get the system ID for the entity containing the node. |
java.lang.String[] |
getUnparsedEntity(java.lang.String name)
Get the unparsed entity with a given name |
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 |
isSameNodeInfo(NodeInfo other)
Determine whether this is the same node as another node |
AxisIterator |
iterateAxis(byte axisNumber)
Return an iteration over the nodes reached by the given axis from this node |
AxisIterator |
iterateAxis(byte axisNumber,
NodeTest nodeTest)
Return an enumeration over the nodes reached by the given axis from this node |
NodeInfo |
selectID(java.lang.String id)
Get the element with a given ID. |
void |
setConfiguration(Configuration config)
Set the configuration (containing the name pool used for all names in this document) |
void |
setSystemId(java.lang.String systemId)
Set the system ID for the entity containing the node. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.saxon.om.NodeInfo |
getLineNumber, getTypeAnnotation, outputNamespaceNodes |
| Methods inherited from interface net.sf.saxon.om.Item |
getTypedValue |
| Constructor Detail |
public TextFragmentValue(java.lang.CharSequence value,
java.lang.String systemId)
| Method Detail |
public void setConfiguration(Configuration config)
setConfiguration in interface DocumentInfoconfig - The configuration to be usedpublic Configuration getConfiguration()
getConfiguration in interface DocumentInfopublic NamePool getNamePool()
getNamePool in interface DocumentInfopublic int getDocumentNumber()
getDocumentNumber in interface DocumentInfogetDocumentNumber in class AbstractNodepublic final int getNodeKind()
getNodeKind in interface NodeInfoTypepublic java.lang.String getStringValue()
getStringValue in interface NodeInfogetStringValue in class AbstractNodepublic boolean isSameNodeInfo(NodeInfo other)
isSameNodeInfo in interface NodeInfoisSameNodeInfo in class AbstractNodeother - the node to be compared with this node
public java.lang.String generateId()
generateId in interface NodeInfogenerateId in class AbstractNodepublic void setSystemId(java.lang.String systemId)
setSystemId in interface javax.xml.transform.Sourcepublic java.lang.String getSystemId()
getSystemId in interface NodeInfogetSystemId in class AbstractNodepublic java.lang.String getBaseURI()
getBaseURI in interface NodeInfogetBaseURI in class AbstractNodepublic int compareOrder(NodeInfo other)
compareOrder in interface NodeInfocompareOrder in class AbstractNodeother - The other node, whose position is to be compared with this node
public int getNameCode()
getNameCode in interface NodeInfogetNameCode in class AbstractNodeallocate,
getFingerprintpublic int getFingerprint()
getFingerprint in interface NodeInfogetFingerprint in class AbstractNodepublic java.lang.String getPrefix()
getPrefix in interface org.w3c.dom.Nodepublic java.lang.String getURI()
getURI in interface NodeInfogetURI in class AbstractNodepublic java.lang.String getDisplayName()
getDisplayName in interface NodeInfogetDisplayName in class AbstractNodepublic java.lang.String getLocalPart()
getLocalPart in interface NodeInfogetLocalPart in class AbstractNodepublic boolean hasChildNodes()
hasChildNodes in interface NodeInfohasChildNodes 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 AxisIterator iterateAxis(byte axisNumber)
iterateAxis in interface NodeInfoaxisNumber - The axis to be iterated over
Axis
public AxisIterator iterateAxis(byte axisNumber,
NodeTest nodeTest)
iterateAxis in interface NodeInfoiterateAxis in class AbstractNodeaxisNumber - The axis to be iterated overnodeTest - A pattern to be matched by the returned nodes
Axispublic NodeInfo getParent()
getParent in interface NodeInfogetParent in class AbstractNodepublic NodeInfo getRoot()
getRoot in interface NodeInfogetRoot in class AbstractNodepublic DocumentInfo getDocumentRoot()
getDocumentRoot in interface NodeInfogetDocumentRoot in class AbstractNode
public void copy(Receiver out,
int whichNamespaces,
boolean copyAnnotations,
int locationId)
throws XPathException
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 copiedlocationId - Identifies the location of the instruction
that requested this copy. Pass zero if no other information is available
XPathExceptionpublic NodeInfo selectID(java.lang.String id)
selectID in interface DocumentInfoid - The unique ID of the required element
public java.lang.String[] getUnparsedEntity(java.lang.String name)
getUnparsedEntity in interface DocumentInfoname - the name of the entity
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||