@User public class Dumper extends Visitor
ContentHandler
MUST be given for all "substantial" events (= Document and
Element Open and Close Tags, incl. Attributes; PCData;
ProcessingInstructions). LexicalHandler
MAY be given, for
all TypedComment
.visit(..)
method as defined in Visitor
(i.e.: for any Element or sub-content like Choice and Sequence). This will
write out the whole sub-tree starting there. visit(Document_XXX)
for details.)Modifier and Type | Field and Description |
---|---|
protected ContentHandler |
contentHandler |
protected Attributes |
EMPTY_ATTRIBUTES |
protected LexicalHandler |
lexicalHandler |
validating
Constructor and Description |
---|
Dumper(ContentHandler contentHandler)
Uses the contentHandler also as a LexicalHandler (for
TypedComment ), iff it happens to
implement this interface. |
Dumper(ContentHandler contentHandler,
LexicalHandler lexicalHandler)
Set both handlers for substantial and ethereal events, see class
description above.
|
Modifier and Type | Method and Description |
---|---|
protected void |
handleSAXException(SAXException exception) |
void |
visit(Document_optionlist document)
Can be called to visit the complete model instance.
|
void |
visit(Element_and element)
Can be overridden by the user to define particular semantic operations.
|
void |
visit(Element_bool element)
Can be overridden by the user to define particular semantic operations.
|
void |
visit(Element_comment element)
Can be overridden by the user to define particular semantic operations.
|
void |
visit(Element_condition element)
Can be overridden by the user to define particular semantic operations.
|
void |
visit(Element_constant element)
Can be overridden by the user to define particular semantic operations.
|
void |
visit(Element_defaults element)
Can be overridden by the user to define particular semantic operations.
|
void |
visit(Element_desc element)
Can be overridden by the user to define particular semantic operations.
|
void |
visit(Element_dirOnly element)
Can be overridden by the user to define particular semantic operations.
|
void |
visit(Element_enum element)
Can be overridden by the user to define particular semantic operations.
|
void |
visit(Element_enumeration element)
Can be overridden by the user to define particular semantic operations.
|
void |
visit(Element_enumitem element)
Can be overridden by the user to define particular semantic operations.
|
void |
visit(Element_enumset element)
Can be overridden by the user to define particular semantic operations.
|
void |
visit(Element_float element)
Can be overridden by the user to define particular semantic operations.
|
void |
visit(Element_int element)
Can be overridden by the user to define particular semantic operations.
|
void |
visit(Element_isMeta element)
Can be overridden by the user to define particular semantic operations.
|
void |
visit(Element_noGui element)
Can be overridden by the user to define particular semantic operations.
|
void |
visit(Element_not element)
Can be overridden by the user to define particular semantic operations.
|
void |
visit(Element_notDir element)
Can be overridden by the user to define particular semantic operations.
|
void |
visit(Element_optarg element)
Can be overridden by the user to define particular semantic operations.
|
void |
visit(Element_option element)
Can be overridden by the user to define particular semantic operations.
|
void |
visit(Element_optionlist element)
Can be overridden by the user to define particular semantic operations.
|
void |
visit(Element_or element)
Can be overridden by the user to define particular semantic operations.
|
void |
visit(Element_printout_title element)
Can be overridden by the user to define particular semantic operations.
|
void |
visit(Element_rat element)
Can be overridden by the user to define particular semantic operations.
|
void |
visit(Element_rep element)
Can be overridden by the user to define particular semantic operations.
|
void |
visit(Element_simpletypes element)
Can be overridden by the user to define particular semantic operations.
|
void |
visit(Element_string element)
Can be overridden by the user to define particular semantic operations.
|
void |
visit(Element_testequal element)
Can be overridden by the user to define particular semantic operations.
|
void |
visit(Element_testgreater element)
Can be overridden by the user to define particular semantic operations.
|
void |
visit(Element_text element)
Can be overridden by the user to define particular semantic operations.
|
void |
visit(Element_type element)
Can be overridden by the user to define particular semantic operations.
|
void |
visit(Element_uri element)
Can be overridden by the user to define particular semantic operations.
|
void |
visit(Element_v element)
Can be overridden by the user to define particular semantic operations.
|
void |
visit(Element_writable element)
Can be overridden by the user to define particular semantic operations.
|
void |
visit(TypedPCData pcdata) |
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
visit
protected final ContentHandler contentHandler
protected final LexicalHandler lexicalHandler
protected final Attributes EMPTY_ATTRIBUTES
@User public Dumper(ContentHandler contentHandler, LexicalHandler lexicalHandler)
contentHandler
- (never null) for Substantials and PIs.lexicalHandler
- (maybe null) for Comments.@User public Dumper(ContentHandler contentHandler)
TypedComment
), iff it happens to
implement this interface. @param contentHandler (never null) Object
serving as contentHandler for substantial events, and possibly also as a
LexicalHandler.protected void handleSAXException(SAXException exception)
public void visit(TypedPCData pcdata)
visit
in interface PCDataVisitor
visit
in class Visitor
public void visit(Element_constant element)
Visitor
visit(..)
in turn for all selected attributes (see BaseVisitor.validating
)
.public void visit(Element_bool element)
Visitor
visit(..)
in turn for all selected attributes (see BaseVisitor.validating
)
.public void visit(Element_string element)
Visitor
visit(..)
in turn for all selected attributes (see BaseVisitor.validating
)
.public void visit(Element_enumitem element)
Visitor
visit(..)
in turn for all selected attributes (see BaseVisitor.validating
)
and for all components in its contents according to the content model.public void visit(Element_optarg element)
Visitor
visit(..)
in turn for all selected attributes (see BaseVisitor.validating
)
.public void visit(Element_type element)
Visitor
visit(..)
in turn for all components in its contents according to the
content model.public void visit(Element_float element)
Visitor
visit(..)
in turn for all selected attributes (see BaseVisitor.validating
)
.public void visit(Element_writable element)
Visitor
visit(..)
in turn .public void visit(Element_dirOnly element)
Visitor
visit(..)
in turn .public void visit(Element_not element)
Visitor
visit(..)
in turn for all components in its contents according to the
content model.public void visit(Element_and element)
Visitor
visit(..)
in turn for all components in its contents according to the
content model.public void visit(Element_text element)
Visitor
visit(..)
in turn for all selected attributes (see BaseVisitor.validating
)
and for all PCData in its contents.public void visit(Element_enumeration element)
Visitor
visit(..)
in turn for all selected attributes (see BaseVisitor.validating
)
and for all components in its contents according to the content model.public void visit(Element_rep element)
Visitor
visit(..)
in turn for all selected attributes (see BaseVisitor.validating
)
and for all components in its contents according to the content model.public void visit(Element_testequal element)
Visitor
visit(..)
in turn for all components in its contents according to the
content model.public void visit(Element_simpletypes element)
Visitor
visit(..)
in turn for all components in its contents according to the
content model.public void visit(Element_testgreater element)
Visitor
visit(..)
in turn for all components in its contents according to the
content model.public void visit(Element_or element)
Visitor
visit(..)
in turn for all components in its contents according to the
content model.public void visit(Element_rat element)
Visitor
visit(..)
in turn for all selected attributes (see BaseVisitor.validating
)
.public void visit(Element_isMeta element)
Visitor
visit(..)
in turn .public void visit(Element_uri element)
Visitor
visit(..)
in turn for all selected attributes (see BaseVisitor.validating
)
and for all components in its contents according to the content model.public void visit(Element_int element)
Visitor
visit(..)
in turn for all selected attributes (see BaseVisitor.validating
)
.public void visit(Element_enum element)
Visitor
visit(..)
in turn for all selected attributes (see BaseVisitor.validating
)
.public void visit(Element_enumset element)
Visitor
visit(..)
in turn for all selected attributes (see BaseVisitor.validating
)
.public void visit(Element_condition element)
Visitor
visit(..)
in turn for all components in its contents according to the
content model.public void visit(Element_defaults element)
Visitor
visit(..)
in turn for all components in its contents according to the
content model.public void visit(Element_v element)
Visitor
visit(..)
in turn for all PCData in its contents.public void visit(Element_printout_title element)
Visitor
visit(..)
in turn for all components in its contents according to the
content model.public void visit(Element_optionlist element)
Visitor
visit(..)
in turn for all selected attributes (see BaseVisitor.validating
)
and for all components in its contents according to the content model.public void visit(Element_comment element)
Visitor
visit(..)
in turn for all selected attributes (see BaseVisitor.validating
)
and for all components in its contents according to the content model.public void visit(Element_noGui element)
Visitor
visit(..)
in turn .public void visit(Element_notDir element)
Visitor
visit(..)
in turn .public void visit(Element_desc element)
Visitor
visit(..)
in turn for all components in its contents according to the
content model.public void visit(Element_option element)
Visitor
visit(..)
in turn for all selected attributes (see BaseVisitor.validating
)
and for all components in its contents according to the content model.public void visit(Document_optionlist document)
Visitor
see also the complete user documentation .