Package net.sf.saxon.tree.tiny
Class TinyBuilderCondensed
java.lang.Object
net.sf.saxon.event.Builder
net.sf.saxon.tree.tiny.TinyBuilder
net.sf.saxon.tree.tiny.TinyBuilderCondensed
Variant of the TinyBuilder to create a tiny tree in which multiple text nodes or attribute
nodes sharing the same string value economize on space by only holding the value once.
-
Field Summary
FieldsFields inherited from class net.sf.saxon.tree.tiny.TinyBuilder
PARENT_POINTER_INTERVALFields inherited from class net.sf.saxon.event.Builder
AXIOM_TREE, baseURI, config, currentRoot, DOMINO_TREE, JDOM_TREE, JDOM2_TREE, K_TREE, lineNumbering, LINKED_TREE, namePool, open, pipe, STANDARD_TREE, started, systemId, timing, TINY_TREE, TINY_TREE_CONDENSED, UNSPECIFIED_TREE_MODEL, useEventLocationFields inherited from interface javax.xml.transform.Result
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidattribute(NodeName nameCode, SimpleType typeCode, CharSequence value, Location locationId, int properties) For attribute nodes, the commoning-up of stored values is achieved simply by calling intern() on the string value of the attribute.voidNotify the end of an element nodeMethods inherited from class net.sf.saxon.tree.tiny.TinyBuilder
bulkCopy, characters, close, comment, endDocument, getBuilderMonitor, getCurrentDepth, getLastCompletedElement, getTree, graft, isPositionedAtElement, makeTextNode, namespace, open, processingInstruction, reset, setStatistics, setUnparsedEntity, startContent, startDocument, startElementMethods inherited from class net.sf.saxon.event.Builder
getBaseURI, getConfiguration, getCurrentRoot, getPipelineConfiguration, getSystemId, isTiming, isUseEventLocation, setBaseURI, setLineNumbering, setPipelineConfiguration, setSystemId, setTiming, setUseEventLocation, usesTypeAnnotationsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sf.saxon.event.Receiver
append, append, handlesAppend
-
Field Details
-
textValues
-
-
Constructor Details
-
TinyBuilderCondensed
-
-
Method Details
-
endElement
Description copied from class:TinyBuilderNotify the end of an element node- Specified by:
endElementin interfaceReceiver- Overrides:
endElementin classTinyBuilder- Throws:
XPathException- if an error occurs
-
attribute
public void attribute(NodeName nameCode, SimpleType typeCode, CharSequence value, Location locationId, int properties) throws XPathException For attribute nodes, the commoning-up of stored values is achieved simply by calling intern() on the string value of the attribute.- Specified by:
attributein interfaceReceiver- Overrides:
attributein classTinyBuilder- Parameters:
nameCode- The name of the attributetypeCode- The type annotation of the attributevalue- the string value of the attributelocationId- provides information such as line number and system ID.properties- Bit significant value. The following bits are defined:- DISABLE_ESCAPING
- Disable escaping for this attribute
- NO_SPECIAL_CHARACTERS
- Attribute value contains no special characters
- Throws:
XPathException- if an error occurs
-