Package eu.bandm.tools.doctypes.xhtml
Class Element_head.Choice_2
java.lang.Object
eu.bandm.tools.tdom.runtime.TypedNode<E>
eu.bandm.tools.tdom.runtime.TypedSubtree<E>
eu.bandm.tools.tdom.runtime.TypedChoice<Extension>
eu.bandm.tools.doctypes.xhtml.Element_head.Choice_2
- All Implemented Interfaces:
Matchable<BaseMatcher>
,TypedContent
,Visitable<Visitor>
- Direct Known Subclasses:
Element_head.Choice_2_Alt_1
,Element_head.Choice_2_Alt_2
- Enclosing class:
- Element_head
@Undocumented
public abstract static class Element_head.Choice_2
extends TypedChoice<Extension>
implements Visitable<Visitor>, Matchable<BaseMatcher>
Realizes the content model
((title, (script | style | meta | link | object)*, (base, (script | style | meta | link | object)*)?) | (base, (script | style | meta | link | object)*, (title, (script | style | meta | link | object)*))) ,
which is the 2nd choice clause in the enclosing content model, realized by
Please note that there are no (sensible) constructors; use the overloaded
((title, (script | style | meta | link | object)*, (base, (script | style | meta | link | object)*)?) | (base, (script | style | meta | link | object)*, (title, (script | style | meta | link | object)*))) ,
which is the 2nd choice clause in the enclosing content model, realized by
Element_head
.
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_head.Choice_2
alt
(Element_base elem_1_base, Element_head.Choice_2_Alt_2_Choice_1[] choices_1, Element_head.Choice_2_Alt_2_Seq_1 seq_1) Wrap the content sequence into an instance of the corresponding subtype.static Element_head.Choice_2
alt
(Element_title elem_1_title, Element_head.Choice_2_Alt_1_Choice_1[] choices_1, Element_head.Choice_2_Alt_1_Seq_1 seq_1) Wrap the content sequence into an instance of the corresponding subtype.(package private) static Element_head.Choice_2
decode
(DecodingInputStream in, Extension ext) (package private) static TypedContent.DecodingConstructor<? extends Element_head.Choice_2,
Extension, TdomAttributeException> (package private) static TypedContent.ParsingConstructor<? extends Element_head.Choice_2,
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.(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_head.Choice_2
parse
(ContentMapping content, Extension ext, TypedNode.ParseListener<Element> listener) static Element_head.Choice_2
parse
(SAXEventStream in, Extension ext, TypedNode.ParseListener<Element> listener) (package private) static Element_head.Choice_2
parseOptional
(SAXEventStream in, Extension ext, TypedNode.ParseListener<Element> listener) (package private) static Element_head.Choice_2[]
parsePlus
(SAXEventStream in, Extension ext, TypedNode.ParseListener<Element> listener) (package private) static Element_head.Choice_2[]
parseStar
(SAXEventStream in, Extension ext, TypedNode.ParseListener<Element> listener) (package private) static Element_head.Choice_2
semiparse
(Iterators.MultipleLookaheadIterator<? extends Element> i) (package private) static @Opt Element_head.Choice_2
semiparseOptional
(Iterators.MultipleLookaheadIterator<? extends Element> i) (package private) static Element_head.Choice_2[]
semiparsePlus
(Iterators.MultipleLookaheadIterator<? extends Element> i) (package private) static Element_head.Choice_2[]
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.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_2
public Choice_2(int altIndex)
-
-
Method Details
-
set
public void set() -
decode
static Element_head.Choice_2 decode(DecodingInputStream in, Extension ext) throws TdomContentException, TdomAttributeException, IOException -
__dumpElementSnapshot
-
parse
static Element_head.Choice_2 parse(ContentMapping content, Extension ext, TypedNode.ParseListener<Element> listener) throws TdomContentException, TdomAttributeException -
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
(title, (script | style | meta | link | object)*, (base, (script | style | meta | link | object)*)?) .- 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
(title, (script | style | meta | link | object)*, (base, (script | style | meta | link | object)*)?) .- 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
(base, (script | style | meta | link | object)*, (title, (script | style | meta | link | object)*)) .- 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
(base, (script | style | meta | link | object)*, (title, (script | style | meta | link | object)*)) .- Returns:
- (maybe null) the current contents cast into the 2nd alternative.
-
alt
@Undocumented public static Element_head.Choice_2 alt(Element_title elem_1_title, Element_head.Choice_2_Alt_1_Choice_1[] choices_1, Element_head.Choice_2_Alt_1_Seq_1 seq_1) Wrap the content sequence into an instance of the corresponding subtype. The content model is
(title, (script | style | meta | link | object)*, (base, (script | style | meta | link | object)*)?)- Throws:
IllegalArgumentException
- if any input to contents is null, except where explicitly allowed by(..)?
in the content model.
-
alt
@Undocumented public static Element_head.Choice_2 alt(Element_base elem_1_base, Element_head.Choice_2_Alt_2_Choice_1[] choices_1, Element_head.Choice_2_Alt_2_Seq_1 seq_1) Wrap the content sequence into an instance of the corresponding subtype. The content model is
(base, (script | style | meta | link | object)*, (title, (script | style | meta | link | object)*))- Throws:
IllegalArgumentException
- if any input to contents is null.
-
getParseClosure
static TypedContent.ParsingConstructor<? extends Element_head.Choice_2,Element, getParseClosure()Extension, TdomAttributeException> -
getDecodeClosure
static TypedContent.DecodingConstructor<? extends Element_head.Choice_2,Extension, getDecodeClosure()TdomAttributeException> -
parseStar
static Element_head.Choice_2[] parseStar(SAXEventStream in, Extension ext, TypedNode.ParseListener<Element> listener) throws TdomContentException, TdomXmlException, TdomAttributeException -
parsePlus
static Element_head.Choice_2[] parsePlus(SAXEventStream in, Extension ext, TypedNode.ParseListener<Element> listener) throws TdomContentException, TdomXmlException, TdomAttributeException -
parseOptional
static Element_head.Choice_2 parseOptional(SAXEventStream in, Extension ext, TypedNode.ParseListener<Element> listener) throws TdomContentException, TdomXmlException, TdomAttributeException -
lookahead
-
parse
public static Element_head.Choice_2 parse(SAXEventStream in, Extension ext, TypedNode.ParseListener<Element> listener) throws TdomContentException, TdomXmlException, TdomAttributeException -
semiparseStar
static Element_head.Choice_2[] semiparseStar(Iterators.MultipleLookaheadIterator<? extends Element> i) throws TdomContentException - Throws:
TdomContentException
-
semiparsePlus
static Element_head.Choice_2[] semiparsePlus(Iterators.MultipleLookaheadIterator<? extends Element> i) throws TdomContentException - Throws:
TdomContentException
-
semiparseOptional
@Opt static @Opt Element_head.Choice_2 semiparseOptional(Iterators.MultipleLookaheadIterator<? extends Element> i) throws TdomContentException - Throws:
TdomContentException
-
lookahead
static boolean lookahead(Iterators.MultipleLookaheadIterator<? extends Element> i, boolean optional) -
semiparse
static Element_head.Choice_2 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>
-