Class ElementCreator.ElementCreationDetails

java.lang.Object
net.sf.saxon.expr.instruct.ElementCreator.ElementCreationDetails
Direct Known Subclasses:
Copy.CopyElementDetails
Enclosing class:
ElementCreator

public abstract static class ElementCreator.ElementCreationDetails extends 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.
  • Constructor Details

    • ElementCreationDetails

      public ElementCreationDetails()
  • Method Details

    • 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 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