Package eu.bandm.tools.tdom
Class AltTemplate
java.lang.Object
eu.bandm.tools.tdom.Template
eu.bandm.tools.tdom.NodeTemplate
eu.bandm.tools.tdom.ContainerTemplate
eu.bandm.tools.tdom.AltTemplate
-
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, numbering, 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
ConstructorDescriptionAltTemplate
(ChoiceTemplate parentContainer, int index, int total, DTD.CP cp) -
Method Summary
Modifier and TypeMethodDescriptionvoid
finish()
protected void
protected GeneratedMethod
(package private) void
generateSemiparser_nonAlt
(MetaType liType) Star, Opt and Plus not required for TypedAlt, because done by TypedChoice.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.(package private) DTD.CP
getCp()
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, generateParseSAXAction, generateSAXParser, generateSemiparseAction, generateSemiparser_includingAlt, getNodeClass, parseSAXArguments_asFormat
Methods inherited from class eu.bandm.tools.tdom.Template
error, error, expression, statement, statements, warning, warning
-
Constructor Details
-
AltTemplate
- Parameters:
index
- the number of the alternative (0-based !-) in the containing choice.
-
-
Method Details
-
contentModel
- Specified by:
contentModel
in classContainerTemplate
-
init
public void init()- Overrides:
init
in classContainerTemplate
-
getCp
DTD.CP getCp() -
finish
public void finish()- Overrides:
finish
in classContainerTemplate
-
getVisiteeName
- Overrides:
getVisiteeName
in classNodeTemplate
-
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
-
generateSemiparser_nonAlt
Star, Opt and Plus not required for TypedAlt, because done by TypedChoice.- Overrides:
generateSemiparser_nonAlt
in classNodeTemplate
-
setDirectors
- Specified by:
setDirectors
in classContainerTemplate
-
generateDeclComment
protected void generateDeclComment()- Overrides:
generateDeclComment
in classContainerTemplate
-