Package com.saxonica.ee.stream.om
Class FleetingElementNode
java.lang.Object
com.saxonica.ee.stream.om.FleetingNode
com.saxonica.ee.stream.om.FleetingParentNode
com.saxonica.ee.stream.om.FleetingElementNode
- All Implemented Interfaces:
- Source,- SourceLocator,- ActiveSource,- GroundedValue,- Item,- NodeInfo,- Sequence,- Location,- Locator
Represents an element node available transiently within a streamed document
- 
Field SummaryFields inherited from class com.saxonica.ee.stream.om.FleetingNoderoot
- 
Constructor SummaryConstructorsConstructorDescriptionFleetingElementNode(NodeName name, SchemaType type) FleetingElementNode(NodeName name, SchemaType type, AttributeMap attributes, NamespaceMap namespaces) 
- 
Method SummaryModifier and TypeMethodDescriptionintcompareAttributeOrder(NodeName one, NodeName two) voidCopy this node to a given Receiver.Get all the namespace bindings that are in-scope for this element.intgetAttributeIndex(NamespaceUri uri, String local) Get the index position of an attribute with given local name and fingerprintGet the attributes defined on this elementgetAttributeValue(NamespaceUri uri, String local) Get the string value of a given attribute of this nodeGet all in-scope namespaces defined on this element.intgetNamespaceNodeIndex(String prefix) Get the index position of a namespace node with given local name (=prefixiterateAxis(int axisNumber, NodePredicate nodeTest) Return an iteration over all the nodes reached by the given axis from this node that match a given NodeTestmakeAttributeNode(AttributeInfo attInfo) Make an attribute nodevoidNotify the event to a ReceivervoidsetAttributes(AttributeMap attributes) Set the attributes that appear on this elementvoidsetNamespaceMap(NamespaceMap namespaces) Set the in-scope namespaces for this elementMethods inherited from class com.saxonica.ee.stream.om.FleetingParentNodeequals, hasChildNodes, hashCode, setHasChildrenMethods inherited from class com.saxonica.ee.stream.om.FleetingNodeatomize, compareOrder, generateId, getBaseURI, getConfiguration, getDeclaredNamespaces, getDepth, getDisplayName, getFingerprint, getLocalPart, getNamePool, getNamespaceUri, getNodeKind, getNodeName, getNodeNumber, getParent, getPrefix, getRoot, getSchemaType, getSystemId, getTreeInfo, getUnicodeStringValue, hasFingerprint, head, isStreamed, saveLocation, setNodeKind, setNodeName, setParent, setStringValue, setSystemId, setTypeAnnotationMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sf.saxon.om.GroundedValueasIterable, concatenate, containsNode, effectiveBooleanValue, materializeMethods inherited from interface net.sf.saxon.om.ItemgetLength, getStringValue, itemAt, iterate, reduce, subsequenceMethods inherited from interface net.sf.saxon.om.NodeInfoasActiveSource, attributes, children, children, deliver, getAttributeValue, getColumnNumber, getGenre, getLineNumber, getPublicId, getURI, isId, isIdref, isNilled, isSameNodeInfo, iterateAxis, toShortStringMethods inherited from interface net.sf.saxon.om.SequencemakeRepeatable
- 
Constructor Details- 
FleetingElementNode
- 
FleetingElementNodepublic FleetingElementNode(NodeName name, SchemaType type, AttributeMap attributes, NamespaceMap namespaces) 
 
- 
- 
Method Details- 
setNamespaceMapSet the in-scope namespaces for this element- Parameters:
- namespaces- the in-scope namespaces. This includes all namespace bindings that are in scope, not just the local namespace declarations
 
- 
getAllNamespacesDescription copied from class:FleetingNodeGet all the namespace bindings that are in-scope for this element.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. - Specified by:
- getAllNamespacesin interface- NodeInfo
- Overrides:
- getAllNamespacesin class- FleetingNode
- Returns:
- the in-scope namespaces for an element, or null for any other kind of node.
 
- 
setAttributesSet the attributes that appear on this element- Parameters:
- attributes- the element's attributes
 
- 
copyCopy this node to a given Receiver.This method is primarily for internal use. It should not be considered a stable part of the Saxon API. - Parameters:
- out- the Receiver to which the node should be copied. It is the caller's responsibility to ensure that this Receiver is open before the method is called (or that it is self-opening), and that it is closed after use.
- copyOptions- a selection of the options defined in- CopyOptions
- locationId- If non-zero, identifies the location of the instruction that requested this copy. If zero, indicates that the location information for the original node is to be copied; in this case the Receiver must be
- Throws:
- UnsupportedOperationException- (always)
- XPathException- if any downstream error occurs
 
- 
iterateAxisReturn an iteration over all the nodes reached by the given axis from this node that match a given NodeTest- Specified by:
- iterateAxisin interface- NodeInfo
- Overrides:
- iterateAxisin class- FleetingNode
- Parameters:
- axisNumber- an integer identifying the axis; one of the constants defined in class- AxisInfo
- nodeTest- A condition to be satisfied by the returned nodes; nodes that do not satisfy this condition are not included in the result
- Returns:
- an AxisIterator that delivers the nodes reached by the axis in turn. The nodes are returned in axis order (document order for a forwards axis, reverse document order for a reverse axis).
- Throws:
- UnsupportedOperationException- if the namespace axis is requested and this axis is not supported for this implementation.
- Since:
- 8.4
- See Also:
 
- 
makeAttributeNodeMake an attribute node- Parameters:
- attInfo- information about the attribute
- Returns:
- the attribute node.
 
- 
getAttributesGet the attributes defined on this element- Returns:
- the attributes in the form of an AttributeCollection
 
- 
getInScopeNamespacesGet all in-scope namespaces defined on this element.- Overrides:
- getInScopeNamespacesin class- FleetingNode
- Returns:
- a NamespaceMapcontaining all the in-scope namespaces for an element (not just those declared locally on the element itself). Returns null if the node is not an element.
 
- 
getAttributeValueGet the string value of a given attribute of this node- Specified by:
- getAttributeValuein interface- NodeInfo
- Overrides:
- getAttributeValuein class- FleetingNode
- Parameters:
- uri- the namespace URI of the attribute name. Supply the empty string for an attribute that is in no namespace
- local- the local part of the attribute name.
- Returns:
- the attribute value if it exists, or null if it does not exist. Always returns null if this node is not an element.
- Since:
- 9.4
 
- 
getAttributeIndexGet the index position of an attribute with given local name and fingerprint
- 
compareAttributeOrder
- 
getNamespaceNodeIndexGet the index position of a namespace node with given local name (=prefix
- 
notifyNotify the event to a Receiver- Specified by:
- notifyin class- FleetingParentNode
- Parameters:
- out- the receiver to be notified
- Throws:
- XPathException
 
 
-