@User public class Element_option extends Element implements Visitable<Visitor>, Matchable<BaseMatcher>
@name or @abbrev must be
given!. name, abbrev, required.
| Modifier and Type | Class and Description |
|---|---|
static class |
Element_option.Attr_abbrev
Meaning: the short name, entered in the
commandline with one minus sign,
like "
-h". |
static class |
Element_option.Attr_name
Meaning: the long name, entered in the
commandline with two minus signs,
like "
--help". |
static class |
Element_option.Attr_required
Meaning: Says whether this option must be
present on the command line.
|
Element.UnmixedContentTypedElement.AttributeDecoder, TypedElement.AttributeEncoder, TypedElement.MixedContent<E extends TypedElement<E,X>,X extends TypedExtension>, TypedElement.MixedContentContainer, TypedElement.MixedContentFactory<C extends TypedElement.MixedContent<E,X>,E extends TypedElement<E,X>,X extends TypedExtension,Y extends Exception>, TypedElement.PCDataContainerTypedNode.ParseListener<E extends TypedElement<?,?>>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>| Modifier and Type | Field and Description |
|---|---|
static NamespaceName |
name
Name of the Element is in namespace-enabled mode, namely
{http://bandm.eu/doctypes/option}option. |
static int |
TAG_INDEX |
static String |
TAG_NAME
The name of the element, as it appears literally in the underlying DTD.
|
getDeepPCData, getFlatPCData| Constructor and Description |
|---|
Element_option(Attributes attrs,
Element... content)
Semi-parsing constructor which tries to parse sequences of model content.
|
Element_option(Element_noGui elem_1_noGui,
Element_isMeta elem_1_isMeta,
Element_desc elem_1_desc,
Element_type elem_1_type,
Element_condition elem_1_condition)
Statically typed w.r.t. the contents, as far as possible.
|
Element_option(Element... content)
Semi-parsing constructor which tries to parse sequences of model elements.
|
Element_option(TypedAttribute.SafeValues flag,
Element_noGui elem_1_noGui,
Element_isMeta elem_1_isMeta,
Element_desc elem_1_desc,
Element_type elem_1_type,
Element_condition elem_1_condition) |
| Modifier and Type | Method and Description |
|---|---|
void |
__dumpElementSnapshot(List<TypedSubstantial<Extension>> list) |
protected TypedAttribute[] |
__getAllAttrs() |
Element_option |
checkRequiredAttrs() |
void |
encode(EncodingOutputStream out,
Extension ext)
Abstract fall-back method which MUST be overridden and always throws an Exception.
|
Element_option.Attr_abbrev |
getAttr_abbrev()
Meaning: the short name, entered in the
commandline with one minus sign,
like "
-h". |
Element_option.Attr_name |
getAttr_name()
Meaning: the long name, entered in the
commandline with two minus signs,
like "
--help". |
Element_option.Attr_required |
getAttr_required()
Meaning: Says whether this option must be
present on the command line.
|
@Opt Element_condition |
getElem_1_condition() |
Element_desc |
getElem_1_desc() |
@Opt Element_isMeta |
getElem_1_isMeta() |
@Opt Element_noGui |
getElem_1_noGui() |
Element_type |
getElem_1_type() |
static TypedDTD.ElementInfo |
getInterfaceInfo()
Give reflexive info object about the generated class.
|
int |
getTagIndex() |
boolean |
hasElem_1_condition() |
boolean |
hasElem_1_isMeta() |
boolean |
hasElem_1_noGui() |
void |
host(Visitor visitor)
Send the visitor to this instance.
|
void |
identify(BaseMatcher matcher) |
protected void |
initAttrs() |
protected void |
initAttrs(Attributes attrs)
Pick attribute values from the argument and copy them to the attribute
values of this element.
|
protected void |
initAttrsSafe() |
static Element_option |
parse(SAXEventStream in,
Extension ext,
TypedNode.ParseListener<Element> listener) |
Element_option.Attr_abbrev |
readAttr_abbrev()
Meaning: the short name, entered in the
commandline with one minus sign,
like "
-h". |
Element_option.Attr_name |
readAttr_name()
Meaning: the long name, entered in the
commandline with two minus signs,
like "
--help". |
Element_option.Attr_required |
readAttr_required()
Meaning: Says whether this option must be
present on the command line.
|
void |
set(Element_noGui elem_1_noGui,
Element_isMeta elem_1_isMeta,
Element_desc elem_1_desc,
Element_type elem_1_type,
Element_condition elem_1_condition)
Set all contents fields to a new value, after checking.
|
Element_condition |
setElem_1_condition(@Opt Element_condition newElem_1_condition) |
Element_desc |
setElem_1_desc(Element_desc newElem_1_desc) |
Element_isMeta |
setElem_1_isMeta(@Opt Element_isMeta newElem_1_isMeta) |
Element_noGui |
setElem_1_noGui(@Opt Element_noGui newElem_1_noGui) |
Element_type |
setElem_1_type(Element_type newElem_1_type) |
getDeepPCDataclassifyForException, decodeMixed, decodeOptional, decodePlus, decodePlusList, decodeStar, decodeStarList, encode, encodeMixed, end, ensureSize, extractElement, getAttrsSnapshot, getAttrsSnapshot, getElemsSnapshot, getEtherealContainer, getLocalName, getName, getNamespaceURI, getPCData, getTagName, initAttrs, initAttrsSafe, matchEndElement, matchEndElement, matchStartElement, matchStartElement, parseAbstract, parseAndClose, parseAndClose, parseMixed, parseMixed, parseOptional, parsePlus, parsePlusList, parseStar, parseStarList, semiparseEmpty, semiparseMixed, setResizing, start, w3c_getNamespaceNamedumpFollowingEthereals, dumpPrecedingEthereals, getFollowingEthereals, getPrecedingEthereals, readFollowingEthereals, readPrecedingEtherealsasBigDecimal, 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, encodeOptional, encodePlus, encodePlus, encodeStar, encodeStar, extractEthereals, getLocation, getPCData, setLocation, setLocation, setLocationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLocationpublic static final int TAG_INDEX
public static final String TAG_NAME
public static final NamespaceName name
{http://bandm.eu/doctypes/option}option.@User public Element_option(Element_noGui elem_1_noGui, Element_isMeta elem_1_isMeta, Element_desc elem_1_desc, Element_type elem_1_type, Element_condition elem_1_condition) throws TdomAttributeSyntaxException
TdomContentException can not occur.
initAttrs() to set the values for the optional
attributes.IllegalArgumentException - if any input to contents is null, except
where explicitly allowed by (..)? in the content model.TdomAttributeSyntaxExceptionpublic Element_option(TypedAttribute.SafeValues flag, Element_noGui elem_1_noGui, Element_isMeta elem_1_isMeta, Element_desc elem_1_desc, Element_type elem_1_type, Element_condition elem_1_condition)
@SafeVarargs @User public Element_option(@Opt Attributes attrs, Element... content) throws TdomAttributeSyntaxException, TdomContentException
attrs - (maybe null) A SAX auxiliary attribute store, from which
values for the attributes defined for this element will be picked.
(Undefined attributes are ignored; a value of null leaves the attribute
default values untouched; all attribute values can be overridden by
overriding initAttrs(), which is called after this picking.)content - the Element sequence to parse.TdomContentException - if the sequence in 'contents' does not match
the content model.IllegalArgumentException - if any input to contents is null, except
where explicitly allowed by (..)? in the content model.TdomAttributeSyntaxException@SafeVarargs @User public Element_option(Element... content) throws TdomAttributeSyntaxException, TdomContentException
initAttrs() to set the values for the optional
attributes.content - the Element sequence to parse.TdomContentException - if the sequence in 'contents' does not match
the content model.IllegalArgumentException - if any input to contents is null, except
where explicitly allowed by (..)? in the content model.TdomAttributeSyntaxException@User public void set(Element_noGui elem_1_noGui, Element_isMeta elem_1_isMeta, Element_desc elem_1_desc, Element_type elem_1_type, Element_condition elem_1_condition)
TdomContentException can not
occur.IllegalArgumentException - if any input to contents is null, except
where explicitly allowed by (..)? in the content model.public final void encode(EncodingOutputStream out, Extension ext) throws IOException
TypedNodeencode in class TypedNode<Extension>IOExceptionpublic void __dumpElementSnapshot(List<TypedSubstantial<Extension>> list)
__dumpElementSnapshot in class TypedElement<Element,Extension>public final int getTagIndex()
getTagIndex in class TypedElement<Element,Extension>@User public final Element_option.Attr_name getAttr_name()
--help". Must have more than one character. readAttr_name() should be used.)@User public final Element_option.Attr_name readAttr_name()
--help". Must have more than one character. getAttr_name() must be used.)@User public final Element_option.Attr_abbrev getAttr_abbrev()
-h". Must have exactly one character. readAttr_abbrev() should be
used.)@User public final Element_option.Attr_abbrev readAttr_abbrev()
-h". Must have exactly one character. getAttr_abbrev() must be used.)@User public final Element_option.Attr_required getAttr_required()
readAttr_required() should be
used.)@User public final Element_option.Attr_required readAttr_required()
getAttr_required() must be used.)protected TypedAttribute[] __getAllAttrs()
__getAllAttrs in class TypedElement<Element,Extension>@User public boolean hasElem_1_noGui()
Element_noGui in the content model of this is
not set to null@User @Opt public @Opt Element_noGui getElem_1_noGui()
Element_noGui in the content model of this.@User public Element_noGui setElem_1_noGui(@Opt @Opt Element_noGui newElem_1_noGui)
newElem_1_noGui - (maybe null) new value for the 1st appearance of
Element_noGui in the content model of
this.@User public boolean hasElem_1_isMeta()
Element_isMeta in the content model of this is
not set to null@User @Opt public @Opt Element_isMeta getElem_1_isMeta()
Element_isMeta in the content model of this.@User public Element_isMeta setElem_1_isMeta(@Opt @Opt Element_isMeta newElem_1_isMeta)
newElem_1_isMeta - (maybe null) new value for the 1st appearance of
Element_isMeta in the content model of
this.@User public Element_desc getElem_1_desc()
Element_desc in the content model of this.@User public Element_desc setElem_1_desc(Element_desc newElem_1_desc)
newElem_1_desc - (never null) new value for the 1st appearance of
Element_desc in the content model of
this.IllegalArgumentException - in case of null.@User public Element_type getElem_1_type()
Element_type in the content model of this.@User public Element_type setElem_1_type(Element_type newElem_1_type)
newElem_1_type - (never null) new value for the 1st appearance of
Element_type in the content model of
this.IllegalArgumentException - in case of null.@User public boolean hasElem_1_condition()
Element_condition in the content model of this
is not set to null@User @Opt public @Opt Element_condition getElem_1_condition()
Element_condition in the content model of
this.@User public Element_condition setElem_1_condition(@Opt @Opt Element_condition newElem_1_condition)
newElem_1_condition - (maybe null) new value for the 1st appearance
of Element_condition in the content
model of this.protected void initAttrs(Attributes attrs) throws TdomAttributeSyntaxException
initAttrs().initAttrs in class TypedElement<Element,Extension>attrs - collection of (possibly superfluous, undeclared) SAX encoded
attribute values.TdomAttributeSyntaxExceptionpublic static Element_option parse(SAXEventStream in, Extension ext, TypedNode.ParseListener<Element> listener) throws TdomAttributeException, TdomContentException, TdomXmlException
public void host(Visitor visitor)
Visitablepublic void identify(BaseMatcher matcher)
identify in interface Matchable<BaseMatcher>protected void initAttrs()
throws TdomAttributeSyntaxException
TdomAttributeSyntaxExceptionprotected void initAttrsSafe()
public final Element_option checkRequiredAttrs()
@User public static TypedDTD.ElementInfo getInterfaceInfo()
see also the complete user documentation .