Class BuilderMonitor

  • All Implemented Interfaces:
    javax.xml.transform.Result, Receiver
    Direct Known Subclasses:
    LinkedBuilderMonitor, TinyBuilderMonitor

    public abstract class BuilderMonitor
    extends ProxyReceiver
    A BuilderMonitor can be inserted into a pipeline immediately in front of a Builder. During tree construction, the method marknext() can be called to request that the next node to be created is treated specially by remembering the current position on the tree; on completion of the tree construction, the method getMarkedNode() can be called to return the NodeInfo that was created immediately after calling marknext().
    • Constructor Detail

      • BuilderMonitor

        public BuilderMonitor​(Receiver next)
    • Method Detail

      • markNextNode

        public abstract void markNextNode​(int nodeKind)
        Indicate that the next node to be created will be of a given type, and request the monitor to remember the identity of this node.
        nodeKind - the kind of node that will be created next. This will always be an element, text, comment, or processing-instruction node
      • getMarkedNode

        public abstract NodeInfo getMarkedNode()
        On completion of tree building, get the node that was marked using marknext().
        the marked node, or null if none was marked