Class CombinedVisitor

java.lang.Object
eu.bandm.tools.tdom.runtime.BaseVisitor
eu.bandm.tools.xslt.tdom.Visitor
eu.bandm.tools.xslt.base.CombinedVisitor
All Implemented Interfaces:
PCDataVisitor
Direct Known Subclasses:
Application, Transformation.ContextChecker, Transformation.Loader

class CombinedVisitor extends eu.bandm.tools.xslt.tdom.Visitor
Descends through an xslt tdom, and switches automatically to result tree fragment visitation (= MultiTypeNodeList visitation), if those are found as contents of xslt leaf elements (of particular types only!), as indicated by the map subtrees.
It holds for each xslt element that either the tdom contents or the subtrees contents are empty. But in any case ATTRIBUTES are represented in the tdom object, so this must be visited anyhow!
The visitor of the result tdom is NOT called automatically, but the hook method visitResultElement(TypedElement), which can be overridden. The methods for xslt elements which DO NOT legally contain result elements are trivially inherited.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) final Map<eu.bandm.tools.xslt.tdom.Element,MultiTypeNodeList>
     

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

    validating
  • Constructor Summary

    Constructors
    Constructor
    Description
    CombinedVisitor(Map<eu.bandm.tools.xslt.tdom.Element,MultiTypeNodeList> subtrees)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    testMulti(eu.bandm.tools.xslt.tdom.Element el)
     
    void
    visit(eu.bandm.tools.xslt.tdom.Element_xsl_apply_templates el)
    Can be overridden by the user to define particular semantic operations.
    void
    visit(eu.bandm.tools.xslt.tdom.Element_xsl_attribute el)
    Can be overridden by the user to define particular semantic operations.
    void
    visit(eu.bandm.tools.xslt.tdom.Element_xsl_call_template el)
    Can be overridden by the user to define particular semantic operations.
    void
    visit(eu.bandm.tools.xslt.tdom.Element_xsl_choose el)
    Can be overridden by the user to define particular semantic operations.
    void
    visit(eu.bandm.tools.xslt.tdom.Element_xsl_comment el)
    Can be overridden by the user to define particular semantic operations.
    void
    visit(eu.bandm.tools.xslt.tdom.Element_xsl_copy el)
    Can be overridden by the user to define particular semantic operations.
    void
    visit(eu.bandm.tools.xslt.tdom.Element_xsl_element el)
    Can be overridden by the user to define particular semantic operations.
    void
    visit(eu.bandm.tools.xslt.tdom.Element_xsl_fallback el)
    Can be overridden by the user to define particular semantic operations.
    void
    visit(eu.bandm.tools.xslt.tdom.Element_xsl_for_each el)
    Can be overridden by the user to define particular semantic operations.
    void
    visit(eu.bandm.tools.xslt.tdom.Element_xsl_if el)
    Can be overridden by the user to define particular semantic operations.
    void
    visit(eu.bandm.tools.xslt.tdom.Element_xsl_message el)
    Can be overridden by the user to define particular semantic operations.
    void
    visit(eu.bandm.tools.xslt.tdom.Element_xsl_otherwise el)
    Can be overridden by the user to define particular semantic operations.
    void
    visit(eu.bandm.tools.xslt.tdom.Element_xsl_param el)
    Can be overridden by the user to define particular semantic operations.
    void
    visit(eu.bandm.tools.xslt.tdom.Element_xsl_processing_instruction el)
    Can be overridden by the user to define particular semantic operations.
    void
    visit(eu.bandm.tools.xslt.tdom.Element_xsl_stylesheet el)
    Can be overridden by the user to define particular semantic operations.
    void
    visit(eu.bandm.tools.xslt.tdom.Element_xsl_template el)
    Can be overridden by the user to define particular semantic operations.
    void
    visit(eu.bandm.tools.xslt.tdom.Element_xsl_text el)
    Can be overridden by the user to define particular semantic operations.
    void
    visit(eu.bandm.tools.xslt.tdom.Element_xsl_value_of el)
    LOST IN TRANSLATION from .dd2 to .dtd !?!? FIXME
    void
    visit(eu.bandm.tools.xslt.tdom.Element_xsl_variable el)
    Can be overridden by the user to define particular semantic operations.
    void
    visit(eu.bandm.tools.xslt.tdom.Element_xsl_when el)
    Can be overridden by the user to define particular semantic operations.
    void
    visit(eu.bandm.tools.xslt.tdom.Element_xsl_with_param el)
    Can be overridden by the user to define particular semantic operations.
    void
     
    void
     
    void
     

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

  • Constructor Details

    • CombinedVisitor

      CombinedVisitor(Map<eu.bandm.tools.xslt.tdom.Element,MultiTypeNodeList> subtrees)
  • Method Details

    • testMulti

      protected boolean testMulti(eu.bandm.tools.xslt.tdom.Element el)
    • visitMultiList

      public void visitMultiList(MultiTypeNodeList list)
    • visitMultiListContents

      public void visitMultiListContents(MultiTypeNodeList list)
    • visitResultElement

      public void visitResultElement(TypedElement sub)
    • visit

      public void visit(eu.bandm.tools.xslt.tdom.Element_xsl_apply_templates el)
      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) and for all components in its contents according to the content model.
      Overrides:
      visit in class eu.bandm.tools.xslt.tdom.Visitor
    • visit

      public void visit(eu.bandm.tools.xslt.tdom.Element_xsl_attribute el)
      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 eu.bandm.tools.xslt.tdom.Visitor
    • visit

      public void visit(eu.bandm.tools.xslt.tdom.Element_xsl_call_template el)
      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) and for all components in its contents according to the content model.
      Overrides:
      visit in class eu.bandm.tools.xslt.tdom.Visitor
    • visit

      public void visit(eu.bandm.tools.xslt.tdom.Element_xsl_choose el)
      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) and for all components in its contents according to the content model.
      Overrides:
      visit in class eu.bandm.tools.xslt.tdom.Visitor
    • visit

      public void visit(eu.bandm.tools.xslt.tdom.Element_xsl_comment el)
      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 eu.bandm.tools.xslt.tdom.Visitor
    • visit

      public void visit(eu.bandm.tools.xslt.tdom.Element_xsl_copy el)
      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 eu.bandm.tools.xslt.tdom.Visitor
    • visit

      public void visit(eu.bandm.tools.xslt.tdom.Element_xsl_element el)
      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 eu.bandm.tools.xslt.tdom.Visitor
    • visit

      public void visit(eu.bandm.tools.xslt.tdom.Element_xsl_fallback el)
      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 eu.bandm.tools.xslt.tdom.Visitor
    • visit

      public void visit(eu.bandm.tools.xslt.tdom.Element_xsl_for_each el)
      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 eu.bandm.tools.xslt.tdom.Visitor
    • visit

      public void visit(eu.bandm.tools.xslt.tdom.Element_xsl_if el)
      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 eu.bandm.tools.xslt.tdom.Visitor
    • visit

      public void visit(eu.bandm.tools.xslt.tdom.Element_xsl_message el)
      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 eu.bandm.tools.xslt.tdom.Visitor
    • visit

      public void visit(eu.bandm.tools.xslt.tdom.Element_xsl_otherwise el)
      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 eu.bandm.tools.xslt.tdom.Visitor
    • visit

      public void visit(eu.bandm.tools.xslt.tdom.Element_xsl_param el)
      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 eu.bandm.tools.xslt.tdom.Visitor
    • visit

      public void visit(eu.bandm.tools.xslt.tdom.Element_xsl_processing_instruction el)
      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 eu.bandm.tools.xslt.tdom.Visitor
    • visit

      public void visit(eu.bandm.tools.xslt.tdom.Element_xsl_stylesheet el)
      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) and for all components in its contents according to the content model.
      Overrides:
      visit in class eu.bandm.tools.xslt.tdom.Visitor
    • visit

      public void visit(eu.bandm.tools.xslt.tdom.Element_xsl_template el)
      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 eu.bandm.tools.xslt.tdom.Visitor
    • visit

      public void visit(eu.bandm.tools.xslt.tdom.Element_xsl_text el)
      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) and for all PCData in its contents.
      Overrides:
      visit in class eu.bandm.tools.xslt.tdom.Visitor
    • visit

      public void visit(eu.bandm.tools.xslt.tdom.Element_xsl_value_of el)
      LOST IN TRANSLATION from .dd2 to .dtd !?!? FIXME
      Overrides:
      visit in class eu.bandm.tools.xslt.tdom.Visitor
    • visit

      public void visit(eu.bandm.tools.xslt.tdom.Element_xsl_variable el)
      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 eu.bandm.tools.xslt.tdom.Visitor
    • visit

      public void visit(eu.bandm.tools.xslt.tdom.Element_xsl_when el)
      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 eu.bandm.tools.xslt.tdom.Visitor
    • visit

      public void visit(eu.bandm.tools.xslt.tdom.Element_xsl_with_param el)
      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 eu.bandm.tools.xslt.tdom.Visitor