Class LocationCopier

  • All Implemented Interfaces:
    CopyInformee<Location>

    public class LocationCopier
    extends java.lang.Object
    implements CopyInformee<Location>
    A Receiver that can be inserted into an event pipeline to copy location information. The class is used when it is necessary to copy a subtree along with its location information; for example, when copying an inline schema within a stylesheet to a separate schema document.

    Note: prior to 9.2, the LocationCopier was a ProxyReceiver that passed all events on the pipeline unchanged. It no longer does this, instead it is found as the LocationProvider on a pipeline, but does not itself see the pipeline events.

    • Constructor Summary

      Constructors 
      Constructor Description
      LocationCopier​(boolean wholeDocument, java.lang.String systemId)  
    • Constructor Detail

      • LocationCopier

        public LocationCopier​(boolean wholeDocument,
                              java.lang.String systemId)
    • Method Detail

      • notifyElementNode

        public Location notifyElementNode​(NodeInfo element)
        Provide information about the node being copied. This method is called immediately before the startElement call for the element node in question.
        Specified by:
        notifyElementNode in interface CopyInformee<Location>
        Parameters:
        element - the node being copied, which must be an element node
        Returns:
        information about this node
      • getSystemId

        public java.lang.String getSystemId()