Package net.sf.saxon.tree.linked
Interface NodeFactory
- All Known Implementing Classes:
SchemaNodeFactory,StyleNodeFactory,StyleNodeFactoryEE,StyleNodeFactoryPE
public interface NodeFactory
Interface NodeFactory.
A Factory for nodes used to build a tree.
Currently only allows Element nodes to be user-constructed.
A Factory for nodes used to build a tree.
Currently only allows Element nodes to be user-constructed.
-
Method Summary
Modifier and TypeMethodDescriptionmakeElementNode(NodeInfo parent, NodeName nameCode, SchemaType elementType, boolean isNilled, AttributeMap attlist, NamespaceMap namespaces, PipelineConfiguration pipe, Location locationId, int sequenceNumber) Create an Element nodemakeTextNode(NodeInfo parent, UnicodeString content) Make a text node
-
Method Details
-
makeElementNode
ElementImpl makeElementNode(NodeInfo parent, NodeName nameCode, SchemaType elementType, boolean isNilled, AttributeMap attlist, NamespaceMap namespaces, PipelineConfiguration pipe, Location locationId, int sequenceNumber) Create an Element node- Parameters:
parent- The parent elementnameCode- The element nameelementType- The type annotation of the elementisNilled- true if the element is to be marked as nilledattlist- The attribute collection, excluding any namespace attributesnamespaces- in-scope namespace declarations for this elementpipe- The pipeline configuration (provides access to the error listener and the location provider)locationId- Indicates the source document and line number containing the nodesequenceNumber- Sequence number to be assigned to represent document order.- Returns:
- the element node
-
makeTextNode
Make a text node- Parameters:
parent- the parent elementcontent- the content of the text node- Returns:
- the constructed text node
-