Package eu.bandm.tools.option.absy
Class Element_rep.Choice_1
java.lang.Object
- All Implemented Interfaces:
Matchable<BaseMatcher>
,TypedContent
,Visitable<Visitor>
- Direct Known Subclasses:
Element_rep.Choice_1_Alt_1
,Element_rep.Choice_1_Alt_2
,Element_rep.Choice_1_Alt_3
,Element_rep.Choice_1_Alt_4
,Element_rep.Choice_1_Alt_5
,Element_rep.Choice_1_Alt_6
,Element_rep.Choice_1_Alt_7
,Element_rep.Choice_1_Alt_8
- Enclosing class:
- Element_rep
@Undocumented
public abstract static class Element_rep.Choice_1
extends TypedChoice<Extension>
implements Visitable<Visitor>, Matchable<BaseMatcher>
Realizes the content model
(int | float | rat | bool | string | uri | enum | enumset)+ ,
which is the 1st choice clause in the enclosing content model, realized by
Please note that there are no (sensible) constructors; use the overloaded
(int | float | rat | bool | string | uri | enum | enumset)+ ,
which is the 1st choice clause in the enclosing content model, realized by
Element_rep
.
Please note that there are no (sensible) constructors; use the overloaded
alt(..)
factory methods instead, to construct an
instance of the appropriate subclass.-
Nested Class Summary
Nested classes/interfaces inherited from class eu.bandm.tools.tdom.runtime.TypedNode
TypedNode.ParseListener<E extends TypedElement<?,
?>> Nested classes/interfaces inherited from interface eu.bandm.tools.tdom.runtime.TypedContent
TypedContent.DecodingConstructor<C extends TypedContent,
X extends TypedExtension, Y extends Exception>, TypedContent.ParsingConstructor<C extends TypedContent, E extends TypedElement<E, X>, X extends TypedExtension, Y extends Exception> -
Field Summary
Fields inherited from class eu.bandm.tools.tdom.runtime.TypedChoice
altIndex
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
static Element_rep.Choice_1
alt
(Element_bool elem_1_bool) Wrap the content sequence into an instance of the corresponding subtype.static Element_rep.Choice_1
alt
(Element_enum elem_1_enum) Wrap the content sequence into an instance of the corresponding subtype.static Element_rep.Choice_1
alt
(Element_enumset elem_1_enumset) Wrap the content sequence into an instance of the corresponding subtype.static Element_rep.Choice_1
alt
(Element_float elem_1_float) Wrap the content sequence into an instance of the corresponding subtype.static Element_rep.Choice_1
alt
(Element_int elem_1_int) Wrap the content sequence into an instance of the corresponding subtype.static Element_rep.Choice_1
alt
(Element_rat elem_1_rat) Wrap the content sequence into an instance of the corresponding subtype.static Element_rep.Choice_1
alt
(Element_string elem_1_string) Wrap the content sequence into an instance of the corresponding subtype.static Element_rep.Choice_1
alt
(Element_uri elem_1_uri) Wrap the content sequence into an instance of the corresponding subtype.(package private) static Element_rep.Choice_1
decode
(DecodingInputStream in, Extension ext) (package private) static TypedContent.DecodingConstructor<? extends Element_rep.Choice_1,
Extension, TdomAttributeException> (package private) static TypedContent.ParsingConstructor<? extends Element_rep.Choice_1,
Element, Extension, TdomAttributeException> void
Send the visitor to this instance.void
identify
(BaseMatcher matcher) final boolean
isAlt_1()
Returns whether current contents corrresponds to the 1st alternative.final boolean
isAlt_2()
Returns whether current contents corrresponds to the 2nd alternative.final boolean
isAlt_3()
Returns whether current contents corrresponds to the 3rd alternative.final boolean
isAlt_4()
Returns whether current contents corrresponds to the 4th alternative.final boolean
isAlt_5()
Returns whether current contents corrresponds to the 5th alternative.final boolean
isAlt_6()
Returns whether current contents corrresponds to the 6th alternative.final boolean
isAlt_7()
Returns whether current contents corrresponds to the 7th alternative.final boolean
isAlt_8()
Returns whether current contents corrresponds to the 8th alternative.(package private) static boolean
lookahead
(Iterators.MultipleLookaheadIterator<? extends Element> i, boolean optional) (package private) static boolean
lookahead
(SAXEventStream in, Extension ext, boolean optional) (package private) static Element_rep.Choice_1
parse
(ContentMapping content, Extension ext, TypedNode.ParseListener<Element> listener) static Element_rep.Choice_1
parse
(SAXEventStream in, Extension ext, TypedNode.ParseListener<Element> listener) (package private) static Element_rep.Choice_1
parseOptional
(SAXEventStream in, Extension ext, TypedNode.ParseListener<Element> listener) (package private) static Element_rep.Choice_1[]
parsePlus
(SAXEventStream in, Extension ext, TypedNode.ParseListener<Element> listener) (package private) static Element_rep.Choice_1[]
parseStar
(SAXEventStream in, Extension ext, TypedNode.ParseListener<Element> listener) (package private) static Element_rep.Choice_1
semiparse
(Iterators.MultipleLookaheadIterator<? extends Element> i) (package private) static @Opt Element_rep.Choice_1
semiparseOptional
(Iterators.MultipleLookaheadIterator<? extends Element> i) (package private) static Element_rep.Choice_1[]
semiparsePlus
(Iterators.MultipleLookaheadIterator<? extends Element> i) (package private) static Element_rep.Choice_1[]
semiparseStar
(Iterators.MultipleLookaheadIterator<? extends Element> i) void
set()
toAlt_1()
If the current contents corresponds to the 1st alternative of the underlying content model, then cast it accordingly, otherwise return null.toAlt_2()
If the current contents corresponds to the 2nd alternative of the underlying content model, then cast it accordingly, otherwise return null.toAlt_3()
If the current contents corresponds to the 3rd alternative of the underlying content model, then cast it accordingly, otherwise return null.toAlt_4()
If the current contents corresponds to the 4th alternative of the underlying content model, then cast it accordingly, otherwise return null.toAlt_5()
If the current contents corresponds to the 5th alternative of the underlying content model, then cast it accordingly, otherwise return null.toAlt_6()
If the current contents corresponds to the 6th alternative of the underlying content model, then cast it accordingly, otherwise return null.toAlt_7()
If the current contents corresponds to the 7th alternative of the underlying content model, then cast it accordingly, otherwise return null.toAlt_8()
If the current contents corresponds to the 8th alternative of the underlying content model, then cast it accordingly, otherwise return null.Methods inherited from class eu.bandm.tools.tdom.runtime.TypedChoice
getAltIndex
Methods inherited from class eu.bandm.tools.tdom.runtime.TypedNode
asBigDecimal, asBigDecimal, asBigDecimal, asBigDecimal, asBigInteger, asBigInteger, asBigInteger, asBigInteger, asBoolean, asBoolean, asDouble, asDouble, asDouble, asDouble, asFloat, asFloat, asFloat, asFloat, asHexInt, asHexInt, asHexInt, asHexInt, asInt, asInt, asInt, asInt, asLong, asLong, asLong, asLong, asTrimmedString, asTrimmedString, asTrimmedString, asTrimmedString, checkPlus, checkPlus, checkStar, checkStar, checkStrict, encode, encode, encodeOptional, encodePlus, encodePlus, encodeStar, encodeStar, extractEthereals, getLocation, getPCData, setLocation, setLocation, setLocation
-
Constructor Details
-
Choice_1
public Choice_1(int altIndex)
-
-
Method Details
-
set
public void set() -
decode
static Element_rep.Choice_1 decode(DecodingInputStream in, Extension ext) throws TdomAttributeException, IOException, TdomContentException -
__dumpElementSnapshot
-
parse
static Element_rep.Choice_1 parse(ContentMapping content, Extension ext, TypedNode.ParseListener<Element> listener) throws TdomAttributeException, TdomContentException -
isAlt_1
Returns whether current contents corrresponds to the 1st alternative. of the underlying content model. This numbering is one-based.
The content model of this alternative is
int.- Returns:
- whether current contents corrresponds to the 1st alternative.
-
toAlt_1
If the current contents corresponds to the 1st alternative of the underlying content model, then cast it accordingly, otherwise return null. The numbering is one-based.
The content model of this alternative is
int.- Returns:
- (maybe null) the current contents cast into the 1st alternative.
-
isAlt_2
Returns whether current contents corrresponds to the 2nd alternative. of the underlying content model. This numbering is one-based.
The content model of this alternative is
float.- Returns:
- whether current contents corrresponds to the 2nd alternative.
-
toAlt_2
If the current contents corresponds to the 2nd alternative of the underlying content model, then cast it accordingly, otherwise return null. The numbering is one-based.
The content model of this alternative is
float.- Returns:
- (maybe null) the current contents cast into the 2nd alternative.
-
isAlt_3
Returns whether current contents corrresponds to the 3rd alternative. of the underlying content model. This numbering is one-based.
The content model of this alternative is
rat.- Returns:
- whether current contents corrresponds to the 3rd alternative.
-
toAlt_3
If the current contents corresponds to the 3rd alternative of the underlying content model, then cast it accordingly, otherwise return null. The numbering is one-based.
The content model of this alternative is
rat.- Returns:
- (maybe null) the current contents cast into the 3rd alternative.
-
isAlt_4
Returns whether current contents corrresponds to the 4th alternative. of the underlying content model. This numbering is one-based.
The content model of this alternative is
bool.- Returns:
- whether current contents corrresponds to the 4th alternative.
-
toAlt_4
If the current contents corresponds to the 4th alternative of the underlying content model, then cast it accordingly, otherwise return null. The numbering is one-based.
The content model of this alternative is
bool.- Returns:
- (maybe null) the current contents cast into the 4th alternative.
-
isAlt_5
Returns whether current contents corrresponds to the 5th alternative. of the underlying content model. This numbering is one-based.
The content model of this alternative is
string.- Returns:
- whether current contents corrresponds to the 5th alternative.
-
toAlt_5
If the current contents corresponds to the 5th alternative of the underlying content model, then cast it accordingly, otherwise return null. The numbering is one-based.
The content model of this alternative is
string.- Returns:
- (maybe null) the current contents cast into the 5th alternative.
-
isAlt_6
Returns whether current contents corrresponds to the 6th alternative. of the underlying content model. This numbering is one-based.
The content model of this alternative is
uri.- Returns:
- whether current contents corrresponds to the 6th alternative.
-
toAlt_6
If the current contents corresponds to the 6th alternative of the underlying content model, then cast it accordingly, otherwise return null. The numbering is one-based.
The content model of this alternative is
uri.- Returns:
- (maybe null) the current contents cast into the 6th alternative.
-
isAlt_7
Returns whether current contents corrresponds to the 7th alternative. of the underlying content model. This numbering is one-based.
The content model of this alternative is
enum.- Returns:
- whether current contents corrresponds to the 7th alternative.
-
toAlt_7
If the current contents corresponds to the 7th alternative of the underlying content model, then cast it accordingly, otherwise return null. The numbering is one-based.
The content model of this alternative is
enum.- Returns:
- (maybe null) the current contents cast into the 7th alternative.
-
isAlt_8
Returns whether current contents corrresponds to the 8th alternative. of the underlying content model. This numbering is one-based.
The content model of this alternative is
enumset.- Returns:
- whether current contents corrresponds to the 8th alternative.
-
toAlt_8
If the current contents corresponds to the 8th alternative of the underlying content model, then cast it accordingly, otherwise return null. The numbering is one-based.
The content model of this alternative is
enumset.- Returns:
- (maybe null) the current contents cast into the 8th alternative.
-
alt
- Throws:
IllegalArgumentException
- if any input to contents is null.
-
alt
- Throws:
IllegalArgumentException
- if any input to contents is null.
-
alt
- Throws:
IllegalArgumentException
- if any input to contents is null.
-
alt
- Throws:
IllegalArgumentException
- if any input to contents is null.
-
alt
Wrap the content sequence into an instance of the corresponding subtype. The content model is
string- Throws:
IllegalArgumentException
- if any input to contents is null.
-
alt
- Throws:
IllegalArgumentException
- if any input to contents is null.
-
alt
- Throws:
IllegalArgumentException
- if any input to contents is null.
-
alt
Wrap the content sequence into an instance of the corresponding subtype. The content model is
enumset- Throws:
IllegalArgumentException
- if any input to contents is null.
-
getParseClosure
static TypedContent.ParsingConstructor<? extends Element_rep.Choice_1,Element, getParseClosure()Extension, TdomAttributeException> -
getDecodeClosure
static TypedContent.DecodingConstructor<? extends Element_rep.Choice_1,Extension, getDecodeClosure()TdomAttributeException> -
parseStar
static Element_rep.Choice_1[] parseStar(SAXEventStream in, Extension ext, TypedNode.ParseListener<Element> listener) throws TdomXmlException, TdomAttributeException, TdomContentException -
parsePlus
static Element_rep.Choice_1[] parsePlus(SAXEventStream in, Extension ext, TypedNode.ParseListener<Element> listener) throws TdomXmlException, TdomAttributeException, TdomContentException -
parseOptional
static Element_rep.Choice_1 parseOptional(SAXEventStream in, Extension ext, TypedNode.ParseListener<Element> listener) throws TdomXmlException, TdomAttributeException, TdomContentException -
lookahead
-
parse
public static Element_rep.Choice_1 parse(SAXEventStream in, Extension ext, TypedNode.ParseListener<Element> listener) throws TdomXmlException, TdomAttributeException, TdomContentException -
semiparseStar
static Element_rep.Choice_1[] semiparseStar(Iterators.MultipleLookaheadIterator<? extends Element> i) throws TdomContentException - Throws:
TdomContentException
-
semiparsePlus
static Element_rep.Choice_1[] semiparsePlus(Iterators.MultipleLookaheadIterator<? extends Element> i) throws TdomContentException - Throws:
TdomContentException
-
semiparseOptional
@Opt static @Opt Element_rep.Choice_1 semiparseOptional(Iterators.MultipleLookaheadIterator<? extends Element> i) throws TdomContentException - Throws:
TdomContentException
-
lookahead
static boolean lookahead(Iterators.MultipleLookaheadIterator<? extends Element> i, boolean optional) -
semiparse
static Element_rep.Choice_1 semiparse(Iterators.MultipleLookaheadIterator<? extends Element> i) throws TdomContentException - Throws:
TdomContentException
-
host
Description copied from interface:Visitable
Send the visitor to this instance. -
identify
- Specified by:
identify
in interfaceMatchable<BaseMatcher>
-