|
|||||||||
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.value.TextFragmentValue
public final class 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 |
Constructor Summary | |
---|---|
TextFragmentValue(String value,
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)
Copy the result tree fragment value to a given Outputter |
String |
generateId()
Get a character string that uniquely identifies this node |
String |
getAttributeValue(int fingerprint)
Get the value of a given attribute of this node |
String |
getBaseURI()
Get the base URI for the node. |
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 |
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. |
String |
getPrefix()
Get the prefix part of the name of this node. |
NodeInfo |
getRoot()
Get the root node |
String |
getStringValue()
Get the String Value |
String |
getSystemId()
Get the system ID for the entity containing the node. |
String[] |
getUnparsedEntity(String name)
Get the unparsed entity with a given name |
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 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(String id)
Get the element with a given ID. |
void |
setNamePool(NamePool pool)
Set the name pool used for all names in this document (actually, there aren't any, but we have to support the DocumentInfo interface... |
void |
setSystemId(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 |
Methods inherited from interface org.w3c.dom.Node |
---|
compareDocumentPosition, getFeature, getTextContent, getUserData, isDefaultNamespace, isEqualNode, isSameNode, lookupNamespaceURI, lookupPrefix, setTextContent, setUserData |
Constructor Detail |
---|
public TextFragmentValue(String value, String systemId)
value:
- a String containing the valueMethod Detail |
---|
public void setNamePool(NamePool pool)
setNamePool
in interface DocumentInfo
pool
- The name pool to be usedpublic NamePool getNamePool()
getNamePool
in interface DocumentInfo
getNamePool
in interface NodeInfo
public int getDocumentNumber()
getDocumentNumber
in interface DocumentInfo
getDocumentNumber
in interface NodeInfo
getDocumentNumber
in class AbstractNode
public final int getNodeKind()
getNodeKind
in interface NodeInfo
Type
public String getStringValue()
getStringValue
in interface Item
getStringValue
in interface NodeInfo
getStringValue
in class AbstractNode
public boolean isSameNode(NodeInfo other)
isSameNode
in interface NodeInfo
isSameNode
in class AbstractNode
other
- the node to be compared with this node
public String generateId()
generateId
in interface NodeInfo
generateId
in class AbstractNode
public void setSystemId(String systemId)
setSystemId
in interface Source
public String getSystemId()
getSystemId
in interface Source
getSystemId
in interface SourceLocator
getSystemId
in interface NodeInfo
getSystemId
in class AbstractNode
public String getBaseURI()
getBaseURI
in interface NodeInfo
getBaseURI
in interface Node
getBaseURI
in class AbstractNode
public int compareOrder(NodeInfo other)
compareOrder
in interface NodeInfo
compareOrder
in class AbstractNode
other
- The other node, whose position is to be compared with this node
public int getNameCode()
getNameCode
in interface NodeInfo
getNameCode
in class AbstractNode
allocate
,
getFingerprint
public int getFingerprint()
getFingerprint
in interface NodeInfo
getFingerprint
in class AbstractNode
public String getPrefix()
getPrefix
in interface Node
public String getURI()
getURI
in interface NodeInfo
getURI
in class AbstractNode
public String getDisplayName()
getDisplayName
in interface NodeInfo
getDisplayName
in class AbstractNode
public String getLocalPart()
getLocalPart
in interface NodeInfo
getLocalPart
in class AbstractNode
public boolean hasChildNodes()
hasChildNodes
in interface NodeInfo
hasChildNodes
in interface Node
hasChildNodes
in class AbstractNode
true
if this node has any attributes,
false
otherwise.public boolean hasAttributes()
hasAttributes
in interface Node
hasAttributes
in class AbstractNode
true
if this node has any attributes,
false
otherwise.public String getAttributeValue(int fingerprint)
getAttributeValue
in interface NodeInfo
getAttributeValue
in class AbstractNode
fingerprint
- The fingerprint of the attribute name
public AxisIterator iterateAxis(byte axisNumber)
iterateAxis
in interface NodeInfo
axisNumber
- The axis to be iterated over
Axis
public AxisIterator iterateAxis(byte axisNumber, NodeTest nodeTest)
iterateAxis
in interface NodeInfo
iterateAxis
in class AbstractNode
axisNumber
- The axis to be iterated overnodeTest
- A pattern to be matched by the returned nodes
Axis
public NodeInfo getParent()
getParent
in interface NodeInfo
getParent
in class AbstractNode
public NodeInfo getRoot()
getRoot
in interface NodeInfo
getRoot
in class AbstractNode
public DocumentInfo getDocumentRoot()
getDocumentRoot
in interface NodeInfo
getDocumentRoot
in class AbstractNode
public void copy(Receiver out, int whichNamespaces, boolean copyAnnotations) throws TransformerException
copy
in interface NodeInfo
out
- 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
TransformerException
public NodeInfo selectID(String id)
selectID
in interface DocumentInfo
id
- The unique ID of the required element
public String[] getUnparsedEntity(String name)
getUnparsedEntity
in interface DocumentInfo
name
- the name of the entity
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |