Package eu.bandm.tools.xslt.base
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 (=
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
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
FieldsModifier and TypeFieldDescription(package private) final Map<eu.bandm.tools.xslt.tdom.Element,
MultiTypeNodeList> Fields inherited from class eu.bandm.tools.tdom.runtime.BaseVisitor
validating
-
Constructor Summary
ConstructorsConstructorDescriptionCombinedVisitor
(Map<eu.bandm.tools.xslt.tdom.Element, MultiTypeNodeList> subtrees) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 !?!? FIXMEvoid
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
-
Field Details
-
subtrees
-
-
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
-
visitMultiListContents
-
visitResultElement
-
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 callingvisit(..)
in turn for all selected attributes (seeBaseVisitor.validating
) and for all components in its contents according to the content model.- Overrides:
visit
in classeu.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 callingvisit(..)
in turn for all selected attributes (seeBaseVisitor.validating
) andfor all PCData and all Elements in its contents.- Overrides:
visit
in classeu.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 callingvisit(..)
in turn for all selected attributes (seeBaseVisitor.validating
) and for all components in its contents according to the content model.- Overrides:
visit
in classeu.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 callingvisit(..)
in turn for all selected attributes (seeBaseVisitor.validating
) and for all components in its contents according to the content model.- Overrides:
visit
in classeu.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 callingvisit(..)
in turn for all selected attributes (seeBaseVisitor.validating
) andfor all PCData and all Elements in its contents.- Overrides:
visit
in classeu.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 callingvisit(..)
in turn for all selected attributes (seeBaseVisitor.validating
) andfor all PCData and all Elements in its contents.- Overrides:
visit
in classeu.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 callingvisit(..)
in turn for all selected attributes (seeBaseVisitor.validating
) andfor all PCData and all Elements in its contents.- Overrides:
visit
in classeu.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 callingvisit(..)
in turn for all selected attributes (seeBaseVisitor.validating
) andfor all PCData and all Elements in its contents.- Overrides:
visit
in classeu.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 callingvisit(..)
in turn for all selected attributes (seeBaseVisitor.validating
) andfor all PCData and all Elements in its contents.- Overrides:
visit
in classeu.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 callingvisit(..)
in turn for all selected attributes (seeBaseVisitor.validating
) andfor all PCData and all Elements in its contents.- Overrides:
visit
in classeu.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 callingvisit(..)
in turn for all selected attributes (seeBaseVisitor.validating
) andfor all PCData and all Elements in its contents.- Overrides:
visit
in classeu.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 callingvisit(..)
in turn for all selected attributes (seeBaseVisitor.validating
) andfor all PCData and all Elements in its contents.- Overrides:
visit
in classeu.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 callingvisit(..)
in turn for all selected attributes (seeBaseVisitor.validating
) andfor all PCData and all Elements in its contents.- Overrides:
visit
in classeu.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 callingvisit(..)
in turn for all selected attributes (seeBaseVisitor.validating
) andfor all PCData and all Elements in its contents.- Overrides:
visit
in classeu.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 callingvisit(..)
in turn for all selected attributes (seeBaseVisitor.validating
) and for all components in its contents according to the content model.- Overrides:
visit
in classeu.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 callingvisit(..)
in turn for all selected attributes (seeBaseVisitor.validating
) andfor all PCData and all Elements in its contents.- Overrides:
visit
in classeu.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 callingvisit(..)
in turn for all selected attributes (seeBaseVisitor.validating
) and for all PCData in its contents.- Overrides:
visit
in classeu.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 classeu.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 callingvisit(..)
in turn for all selected attributes (seeBaseVisitor.validating
) andfor all PCData and all Elements in its contents.- Overrides:
visit
in classeu.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 callingvisit(..)
in turn for all selected attributes (seeBaseVisitor.validating
) andfor all PCData and all Elements in its contents.- Overrides:
visit
in classeu.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 callingvisit(..)
in turn for all selected attributes (seeBaseVisitor.validating
) andfor all PCData and all Elements in its contents.- Overrides:
visit
in classeu.bandm.tools.xslt.tdom.Visitor
-