public class TinyTextualElement extends TinyElementImpl
Modifier and Type | Class and Description |
---|---|
class |
TinyTextualElement.TinyTextualElementText
Inner class representing the text node; this is created on demand
|
NODE_LETTER, nodeNr, parent, tree
IS_DTD_TYPE, IS_NILLED
Constructor and Description |
---|
TinyTextualElement(TinyTree tree,
int nodeNr) |
Modifier and Type | Method and Description |
---|---|
void |
copy(Receiver receiver,
int copyOptions,
Location location)
Copy this node to a given receiver
|
NamespaceMap |
getAllNamespaces()
Get all the namespace bindings that are in-scope for this element.
|
java.lang.String |
getAttributeValue(int fp)
Get the value of the attribute with a given fingerprint.
|
java.lang.String |
getAttributeValue(java.lang.String uri,
java.lang.String local)
Get the string value of a given attribute of this node
|
NamespaceBinding[] |
getDeclaredNamespaces(NamespaceBinding[] buffer)
Get all namespace undeclarations and undeclarations defined on this element.
|
java.lang.String |
getStringValue()
Return the string-value of the node, that is, the concatenation
of the character content of all descendent elements and text nodes.
|
java.lang.CharSequence |
getStringValueCS()
Get the value of the item as a CharSequence.
|
TinyTextualElement.TinyTextualElementText |
getTextNode()
Make an instance of the text node
|
boolean |
hasChildNodes()
Determine if the node has children.
|
boolean |
isAncestorOrSelf(TinyNodeImpl d)
Test if this node is an ancestor-or-self of another
|
AxisIterator |
iterateAxis(int axisNumber)
Return an iterator over all the nodes reached by the given axis from this node
|
AxisIterator |
iterateAxis(int axisNumber,
java.util.function.Predicate<? super NodeInfo> nodeTest)
Return an iterator over the nodes reached by the given axis from this node
|
atomize, checkNotNamespaceSensitiveElement, getBaseURI, getNodeKind, getSchemaType, getURIForPrefix, hasUniformNamespaces, isId, isIdref
getStringValueCS
compareOrder, equals, generateId, getColumnNumber, getConfiguration, getDisplayName, getFingerprint, getGenre, getLineNumber, getLocalPart, getNamePool, getNodeNumber, getParent, getPrefix, getRoot, getSequenceNumber, getSystemId, getTree, getTreeInfo, getURI, hasFingerprint, hashCode, head, isNilled, isSameNodeInfo, isStreamed, saveLocation, setParentNode, setSystemId
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
attributes, children, children, getPublicId, toShortString
getLength, itemAt, iterate, reduce, subsequence, toGroundedValue
asIterable, concatenate, containsNode, effectiveBooleanValue, materialize
makeRepeatable
public TinyTextualElement(TinyTree tree, int nodeNr)
public NamespaceBinding[] getDeclaredNamespaces(NamespaceBinding[] buffer)
TinyElementImpl
getDeclaredNamespaces
in interface NodeInfo
getDeclaredNamespaces
in class TinyElementImpl
buffer
- If this is non-null, and the result array fits in this buffer, then the result
may overwrite the contents of this array, to avoid the cost of allocating a new array on the heap.public NamespaceMap getAllNamespaces()
TinyNodeImpl
For an element return all the prefix-to-uri bindings that are in scope. This may include a binding to the default namespace (represented by a prefix of ""). It will never include "undeclarations" - that is, the namespace URI will never be empty; the effect of an undeclaration is to remove a binding from the in-scope namespaces, not to add anything.
For a node other than an element, returns null.
getAllNamespaces
in interface NodeInfo
getAllNamespaces
in class TinyElementImpl
public java.lang.String getAttributeValue(java.lang.String uri, java.lang.String local)
TinyElementImpl
getAttributeValue
in interface NodeInfo
getAttributeValue
in class TinyElementImpl
uri
- the namespace URI of the attribute name. Supply the empty string for an attribute
that is in no namespacelocal
- the local part of the attribute name.public java.lang.String getAttributeValue(int fp)
TinyElementImpl
getAttributeValue
in class TinyElementImpl
fp
- the fingerprint of the required attributepublic void copy(Receiver receiver, int copyOptions, Location location) throws XPathException
TinyElementImpl
copy
in interface NodeInfo
copy
in class TinyElementImpl
receiver
- the destination of the copycopyOptions
- determines handling of namespaces, etclocation
- location information associated with the eventXPathException
- if any downstream error occurspublic boolean hasChildNodes()
TinyParentNodeImpl
hasChildNodes
in interface NodeInfo
hasChildNodes
in class TinyParentNodeImpl
true
if this node has any attributes,
false
otherwise.public java.lang.CharSequence getStringValueCS()
TinyParentNodeImpl
getStringValueCS
in interface GroundedValue
getStringValueCS
in interface Item
getStringValueCS
in class TinyParentNodeImpl
Item.getStringValue()
public java.lang.String getStringValue()
TinyParentNodeImpl
getStringValue
in interface GroundedValue
getStringValue
in interface Item
getStringValue
in interface NodeInfo
getStringValue
in class TinyParentNodeImpl
Item.getStringValueCS()
public AxisIterator iterateAxis(int axisNumber)
TinyNodeImpl
iterateAxis
in interface NodeInfo
iterateAxis
in class TinyNodeImpl
axisNumber
- Identifies the required axis, eg. Axis.CHILD or Axis.PARENTAxisInfo
public AxisIterator iterateAxis(int axisNumber, java.util.function.Predicate<? super NodeInfo> nodeTest)
TinyNodeImpl
iterateAxis
in interface NodeInfo
iterateAxis
in class TinyNodeImpl
axisNumber
- Identifies the required axis, eg. Axis.CHILD or Axis.PARENTnodeTest
- A condition to be matched by the returned nodes.AxisInfo
public boolean isAncestorOrSelf(TinyNodeImpl d)
TinyNodeImpl
isAncestorOrSelf
in class TinyNodeImpl
d
- the putative descendant-or-self nodepublic TinyTextualElement.TinyTextualElementText getTextNode()
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.