Class ElementCreator.ElementCreationDetails

  • Direct Known Subclasses:
    Copy.CopyElementDetails
    Enclosing class:
    ElementCreator

    public abstract static class ElementCreator.ElementCreationDetails
    extends java.lang.Object
    ElementCreationDetails is a package of information and callbacks designed to parameterize the element construction process, to allow maximum use of common code for direct interpreted evaluation, elaborated evaluation, streamed evaluation, etc; supporting the variations that exist between computed element constructors, fixed element constructors, and shallow copy.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract NodeName getNodeName​(XPathContext context)
      Get the name of the element node to be constructed
      abstract java.lang.String getSystemId​(XPathContext context)
      Get the base URI to be assigned to the new element node
      abstract void processContent​(Outputter out, XPathContext context)
      Callback to process the content expression, generating attributes, children and descendants (but not namespaces) of the new element node
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ElementCreationDetails

        public ElementCreationDetails()
    • Method Detail

      • getNodeName

        public abstract NodeName getNodeName​(XPathContext context)
                                      throws XPathException
        Get the name of the element node to be constructed
        Parameters:
        context - evaluation context
        Returns:
        the element name
        Throws:
        XPathException - if computation of the element name fails
      • getSystemId

        public abstract java.lang.String getSystemId​(XPathContext context)
                                              throws XPathException
        Get the base URI to be assigned to the new element node
        Parameters:
        context - evaluation context
        Returns:
        the base URI
        Throws:
        XPathException - if computation of the base URI fails
      • processContent

        public abstract void processContent​(Outputter out,
                                            XPathContext context)
                                     throws XPathException
        Callback to process the content expression, generating attributes, children and descendants (but not namespaces) of the new element node
        Parameters:
        out - the output destination
        context - evaluation context
        Throws:
        XPathException - if processing fails