Package eu.bandm.tools.tdom
Class ChoiceTemplate
java.lang.Object
eu.bandm.tools.tdom.Template
eu.bandm.tools.tdom.NodeTemplate
eu.bandm.tools.tdom.ContainerTemplate
eu.bandm.tools.tdom.ChoiceTemplate
-
Nested Class Summary
Nested classes/interfaces inherited from class eu.bandm.tools.tdom.ContainerTemplate
ContainerTemplate.ContentModelRenderer, ContainerTemplate.ContentProperties
-
Field Summary
Fields inherited from class eu.bandm.tools.tdom.ContainerTemplate
childIndex, children, decodeMethod, disambigConstructor, disambigConstructorSafe, dumpElementsMethod, dumpMethod, elementTemplate, encodeMethod, innerContainerPrefix, mandatoryDirector, optionalDirector, parentContainer, setMethod, typedConstructor, untypedConstructor, visitMethod
Fields inherited from class eu.bandm.tools.tdom.NodeTemplate
actionMethod, decodeClosure, getDecodeClosure, getParseClosure, nodeClass, packageTemplate, parseClosure, parseSAX, parseSAXArguments, parseSAXAttributes, semiparseArguments, semiparseStatements, usingSemiparser
-
Constructor Summary
ConstructorDescriptionChoiceTemplate
(ContainerTemplate parentContainer, DTD.Choice choice, int numbering) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAlt
(AltTemplate alt) protected void
void
finish()
protected void
void
generateDecodeStatement
(Format[] cases) protected GeneratedMethod
protected void
protected void
protected GeneratedConstructor
The "typed constructor" has the same signature as theset(...)
method, namely what corresponds correctly to the content model (notwithstanding null-checks and array length.)protected GeneratedConstructor
The "untyped constructor" requires a tdom object and is NORMALLY NOT visible to/callable by the programmer.protected String
void
init()
protected void
Methods inherited from class eu.bandm.tools.tdom.ContainerTemplate
addAttrDescendStatement, addChild, addDecodeArgument, addDescendStatement, addDescendStatement, addVisitContentStatement, generateDecodeMethod, generateDecodeStatement, generateDumpElementsMethod, generateDumpMethod, generateParseMethod, generateSetMethod, generateVisitMethod, getNumber, internalSetDirectors, setNumbering, useSemiparser
Methods inherited from class eu.bandm.tools.tdom.NodeTemplate
addGeneralizeParent, addLookaheadSAXStatement, addLookaheadSAXStatement, addLookaheadSemiparseStatement, addLookaheadSemiparseStatement, addParseSAXArgument, addParseSAXArgument, addParseSAXAttribute, addParseSAXStatement, addSemiparseArgument, addSemiparseArgument, addSemiparseStatement, generateActionMethod, generateDecodeClosure, generateHostMethod, generateMatchWithMethod, generateMatchWithMethod, generateParseClosure, generateSAXParser, generateSemiparser_includingAlt, generateSemiparser_nonAlt, getNodeClass, parseSAXArguments_asFormat
Methods inherited from class eu.bandm.tools.tdom.Template
error, error, expression, statement, statements, warning, warning
-
Constructor Details
-
ChoiceTemplate
- Parameters:
numbering
- the number of the choice (1-based) in the containing content model.
-
-
Method Details
-
contentModel
- Specified by:
contentModel
in classContainerTemplate
-
init
public void init()- Overrides:
init
in classContainerTemplate
-
finish
public void finish()- Overrides:
finish
in classContainerTemplate
-
getVisiteeName
- Overrides:
getVisiteeName
in classNodeTemplate
-
generateDeclComment
protected void generateDeclComment()- Overrides:
generateDeclComment
in classContainerTemplate
-
generateTypedConstructor
Description copied from class:ContainerTemplate
The "typed constructor" has the same signature as theset(...)
method, namely what corresponds correctly to the content model (notwithstanding null-checks and array length.)- Overrides:
generateTypedConstructor
in classContainerTemplate
-
generateUntypedConstructor
Description copied from class:ContainerTemplate
The "untyped constructor" requires a tdom object and is NORMALLY NOT visible to/callable by the programmer.- Overrides:
generateUntypedConstructor
in classContainerTemplate
-
generateEncodeMethod
- Overrides:
generateEncodeMethod
in classContainerTemplate
-
generateDecodeStatement
-
generateParseSAXAction
protected void generateParseSAXAction()- Overrides:
generateParseSAXAction
in classNodeTemplate
-
generateSemiparseAction
protected void generateSemiparseAction()- Overrides:
generateSemiparseAction
in classNodeTemplate
-
setDirectors
- Specified by:
setDirectors
in classContainerTemplate
-
addAlt
-
addAltFactoryMethod
-