Class Transformation.Loader

java.lang.Object
eu.bandm.tools.tdom.runtime.BaseVisitor
eu.bandm.tools.xslt.tdom.Visitor
eu.bandm.tools.xslt.base.CombinedVisitor
eu.bandm.tools.xslt.base.Transformation.Loader
All Implemented Interfaces:
PCDataVisitor
Enclosing class:
Transformation

protected class Transformation.Loader extends CombinedVisitor
Copies top-level definitions from template into its own, structured directories, for named templates, pattern controlled templates, attribute value sets, top-level parameters and variables.
Executes Element_xsl_include by visiting source level Templates objects.
Executes Element_xsl_import by merging directories after their completion.
Does not perform any context check beyond NamespaceName resolution.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected Templates
    Top-level Templates object.

    Fields inherited from class eu.bandm.tools.xslt.base.CombinedVisitor

    subtrees

    Fields inherited from class eu.bandm.tools.tdom.runtime.BaseVisitor

    validating
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) void
     
    (package private) <T extends TypedElement<?, ?>>
    void
    topParam(CDataAttribute att, T el, String cat, Map<NamespaceName,T> map)
     
    void
    visit(eu.bandm.tools.xslt.tdom.Element_xsl_attribute_set as)
    ATTENTION assume evaluation of attribute value templates for attribute (local-)name and namespaceUri are FUNCTIONAL TRANSPARENT and only rely on "xpath current context node".
    void
    visit(eu.bandm.tools.xslt.tdom.Element_xsl_import t)
    Can be overridden by the user to define particular semantic operations.
    void
    visit(eu.bandm.tools.xslt.tdom.Element_xsl_include t)
    Can be overridden by the user to define particular semantic operations.
    void
    visit(eu.bandm.tools.xslt.tdom.Element_xsl_output e)
    Can be overridden by the user to define particular semantic operations.
    void
    visit(eu.bandm.tools.xslt.tdom.Element_xsl_param p)
    Can be overridden by the user to define particular semantic operations.
    void
    visit(eu.bandm.tools.xslt.tdom.Element_xsl_template t)
    Can be overridden by the user to define particular semantic operations.
    void
    visit(eu.bandm.tools.xslt.tdom.Element_xsl_variable p)
    Can be overridden by the user to define particular semantic operations.

    Methods inherited from class eu.bandm.tools.xslt.tdom.Visitor

    visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit

    Methods inherited from class eu.bandm.tools.tdom.runtime.BaseVisitor

    visit

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • origin

      protected Templates origin
      Top-level Templates object.
  • Constructor Details

  • Method Details

    • execute

      void execute()
    • visit

      public void visit(eu.bandm.tools.xslt.tdom.Element_xsl_attribute_set as)
      ATTENTION assume evaluation of attribute value templates for attribute (local-)name and namespaceUri are FUNCTIONAL TRANSPARENT and only rely on "xpath current context node". Thus identic source texts violate the uniqueness condition => differences in source texts are necessary (but not sufficient!)
      Overrides:
      visit in class eu.bandm.tools.xslt.tdom.Visitor
    • visit

      public void visit(eu.bandm.tools.xslt.tdom.Element_xsl_include t)
      Description copied from class: eu.bandm.tools.xslt.tdom.Visitor
      Can be overridden by the user to define particular semantic operations. Will be called whenever the default model instance traversal (as implemented by the methods in this class) reaches such an element.
      This default implementation descends into the element by calling visit(..) in turn for all selected attributes (see BaseVisitor.validating) .
      Overrides:
      visit in class eu.bandm.tools.xslt.tdom.Visitor
    • visit

      public void visit(eu.bandm.tools.xslt.tdom.Element_xsl_import t)
      Description copied from class: eu.bandm.tools.xslt.tdom.Visitor
      Can be overridden by the user to define particular semantic operations. Will be called whenever the default model instance traversal (as implemented by the methods in this class) reaches such an element.
      This default implementation descends into the element by calling visit(..) in turn for all selected attributes (see BaseVisitor.validating) .
      Overrides:
      visit in class eu.bandm.tools.xslt.tdom.Visitor
    • visit

      public void visit(eu.bandm.tools.xslt.tdom.Element_xsl_output e)
      Description copied from class: eu.bandm.tools.xslt.tdom.Visitor
      Can be overridden by the user to define particular semantic operations. Will be called whenever the default model instance traversal (as implemented by the methods in this class) reaches such an element.
      This default implementation descends into the element by calling visit(..) in turn for all selected attributes (see BaseVisitor.validating) .
      Overrides:
      visit in class eu.bandm.tools.xslt.tdom.Visitor
    • visit

      public void visit(eu.bandm.tools.xslt.tdom.Element_xsl_template t)
      Description copied from class: eu.bandm.tools.xslt.tdom.Visitor
      Can be overridden by the user to define particular semantic operations. Will be called whenever the default model instance traversal (as implemented by the methods in this class) reaches such an element.
      This default implementation descends into the element by calling visit(..) in turn for all selected attributes (see BaseVisitor.validating) andfor all PCData and all Elements in its contents.
      Overrides:
      visit in class CombinedVisitor
    • topParam

      <T extends TypedElement<?, ?>> void topParam(CDataAttribute att, T el, String cat, Map<NamespaceName,T> map)
    • visit

      public void visit(eu.bandm.tools.xslt.tdom.Element_xsl_param p)
      Description copied from class: eu.bandm.tools.xslt.tdom.Visitor
      Can be overridden by the user to define particular semantic operations. Will be called whenever the default model instance traversal (as implemented by the methods in this class) reaches such an element.
      This default implementation descends into the element by calling visit(..) in turn for all selected attributes (see BaseVisitor.validating) andfor all PCData and all Elements in its contents.
      Overrides:
      visit in class CombinedVisitor
    • visit

      public void visit(eu.bandm.tools.xslt.tdom.Element_xsl_variable p)
      Description copied from class: eu.bandm.tools.xslt.tdom.Visitor
      Can be overridden by the user to define particular semantic operations. Will be called whenever the default model instance traversal (as implemented by the methods in this class) reaches such an element.
      This default implementation descends into the element by calling visit(..) in turn for all selected attributes (see BaseVisitor.validating) andfor all PCData and all Elements in its contents.
      Overrides:
      visit in class CombinedVisitor