Package eu.bandm.tools.xslt.base
Class CombinedDumper
java.lang.Object
eu.bandm.tools.tdom.runtime.BaseVisitor
eu.bandm.tools.xslt.tdom.Visitor
eu.bandm.tools.xslt.tdom.Dumper
eu.bandm.tools.xslt.base.CombinedDumper
- All Implemented Interfaces:
PCDataVisitor
class CombinedDumper
extends eu.bandm.tools.xslt.tdom.Dumper
Descends through an xslt tdom, and dumps the SAX events to some
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 dump method for the result tdom is called automatically. The methods for xslt elements which DO NOT legally contain result elements are trivially inherited.
FIXME attributes in the xslt element are NOT YET CORRECTLY COMBINED with those in the MultiTypeNodeList.
ContentHandler
.
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 dump method for the result tdom is called automatically. The methods for xslt elements which DO NOT legally contain result elements are trivially inherited.
FIXME attributes in the xslt element are NOT YET CORRECTLY COMBINED with those in the MultiTypeNodeList.
-
Field Summary
Modifier and TypeFieldDescription(package private) Object
(package private) Method
(package private) final Map<eu.bandm.tools.xslt.tdom.Element,
MultiTypeNodeList> Fields inherited from class eu.bandm.tools.xslt.tdom.Dumper
contentHandler, EMPTY_ATTRIBUTES, lexicalHandler
Fields inherited from class eu.bandm.tools.tdom.runtime.BaseVisitor
validating
-
Constructor Summary
ConstructorDescriptionCombinedDumper
(Class<?> class_result_dumper, Map<eu.bandm.tools.xslt.tdom.Element, MultiTypeNodeList> subtrees, ContentHandler p) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
dumpResult
(TypedNode sub) 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 !?!? 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.Methods inherited from class eu.bandm.tools.xslt.tdom.Dumper
handleSAXException, 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.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
Methods inherited from class eu.bandm.tools.tdom.runtime.BaseVisitor
visit
-
Field Details
-
Constructor Details
-
CombinedDumper
public CombinedDumper(Class<?> class_result_dumper, Map<eu.bandm.tools.xslt.tdom.Element, MultiTypeNodeList> subtrees, ContentHandler p)
-
-
Method Details
-
dump
-
testMulti
protected boolean testMulti(eu.bandm.tools.xslt.tdom.Element el) -
dumpMultiList
-
dumpMultiListContents
-
dumpResult
-
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.Dumper
-
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.Dumper
-
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.Dumper
-
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.Dumper
-
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.Dumper
-
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.Dumper
-
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.Dumper
-
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.Dumper
-
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.Dumper
-
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.Dumper
-
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.Dumper
-
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.Dumper
-
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.Dumper
-
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.Dumper
-
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.Dumper
-
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.Dumper
-
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.Dumper
-
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.Dumper
-
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.Dumper
-
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.Dumper
-
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.Dumper
-