Package eu.bandm.tools.option.absy
Class Element_optarg.Attr_number
java.lang.Object
eu.bandm.tools.tdom.runtime.TypedNode<TypedExtension>
eu.bandm.tools.tdom.runtime.TypedAttribute<String>
eu.bandm.tools.tdom.runtime.NmTokenAttribute
eu.bandm.tools.option.absy.Element_optarg.Attr_number
- Enclosing class:
- Element_optarg
@Undocumented
public static class Element_optarg.Attr_number
extends NmTokenAttribute
implements Visitable<Visitor>, Matchable<Matcher>
Meaning: The argument of the option by its
(zero-based) position index.
The value of this argument is taken either directly as boolean condition,
or as subject of a comparison.
(The argument values of a repetition group are currently not adressable;
neither is its length.).
-
Nested Class Summary
Nested classes/interfaces inherited from class eu.bandm.tools.tdom.runtime.TypedAttribute
TypedAttribute.__PreAtts, TypedAttribute.SafeValues
Nested classes/interfaces inherited from class eu.bandm.tools.tdom.runtime.TypedNode
TypedNode.ParseListener<E extends TypedElement<?,
?>> -
Field Summary
Modifier and TypeFieldDescription(package private) static final String
static final NamespaceName
Name of the attribute, as defined in the DTD plus tdom PI namespace declarations.static final Element_optarg.Attr_number
Fields inherited from class eu.bandm.tools.tdom.runtime.TypedAttribute
__preAtts, emptyAttributes, mutable, safeValues, specified, value
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
The overriding method throws the exception if this attribute is required but missing when initializing the tdom instance.static Element_optarg.Attr_number
Create a new instance, its value picked from the W3C DOM instance.static Element_optarg.Attr_number
from
(Attributes attrs) Create a new instance, its value picked from the SAX attribute container.final String
Method to read the contents of field defaultValue.static TypedDTD.AttributeInfo
final NamespaceName
Method to read the contents of field namespaceName.void
Send the visitor to this instance.void
final boolean
isFixed()
Returns whether the attribute is declared as "#FIXED
" in the DTD.final boolean
Returns whether the attribute is declared as "#IMPLIED
" in the DTD.Methods inherited from class eu.bandm.tools.tdom.runtime.NmTokenAttribute
_checkToken, checkNameToken, checkNCName, checkNmToken, checkPITarget, checkValue, encode, getStringValue, getTypeString
Methods inherited from class eu.bandm.tools.tdom.runtime.TypedAttribute
assertSetAttrValid, assertSetAttrValid, clearValue, find, find, getLocalName, getNamespaceURI, getStringValue, getTagName, getValue, isRequired, isSpecified, makeUnspecified, put, setValue
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, encodeOptional, encodePlus, encodePlus, encodeStar, encodeStar, extractEthereals, getLocation, getPCData, setLocation, setLocation, setLocation
-
Field Details
-
namespaceName
Name of the attribute, as defined in the DTD plus tdom PI namespace declarations. -
defaultValue
- See Also:
-
unspecified
-
-
Constructor Details
-
Attr_number
Attr_number() -
Attr_number
Attr_number(String value) throws TdomAttributeSyntaxException - Throws:
TdomAttributeSyntaxException
-
-
Method Details
-
host
Description copied from interface:Visitable
Send the visitor to this instance. -
identify
-
getNamespaceName
Method to read the contents of field namespaceName. @see #namespaceName- Specified by:
getNamespaceName
in classTypedAttribute<String>
- Returns:
- the namespace name of the XML attribute.
-
checkRequired
public void checkRequired()Description copied from class:TypedAttribute
The overriding method throws the exception if this attribute is required but missing when initializing the tdom instance.- Specified by:
checkRequired
in classTypedAttribute<String>
-
from
@Undocumented public static Element_optarg.Attr_number from(Element dom) throws TdomAttributeSyntaxException Create a new instance, its value picked from the W3C DOM instance. (If no value is specified, take the default value from the DTD.)- Throws:
TdomAttributeSyntaxException
-
from
@Undocumented public static Element_optarg.Attr_number from(Attributes attrs) throws TdomAttributeSyntaxException Create a new instance, its value picked from the SAX attribute container. (If no value is specified, take the default value from the DTD.)- Throws:
TdomAttributeSyntaxException
-
isOptional
public final boolean isOptional()Description copied from class:TypedAttribute
Returns whether the attribute is declared as "#IMPLIED
" in the DTD. Will be overridden by the generated code.- Specified by:
isOptional
in classTypedAttribute<String>
- Returns:
- whether the attribute is declared as "
#IMPLIED
" in the DTD.
-
isFixed
public final boolean isFixed()Description copied from class:TypedAttribute
Returns whether the attribute is declared as "#FIXED
" in the DTD. Will be overridden by the generated code.- Specified by:
isFixed
in classTypedAttribute<String>
- Returns:
- whether the attribute is declared as "
#FIXED
" in the DTD.
-
getDefaultValue
Method to read the contents of field defaultValue. @see #defaultValue- Specified by:
getDefaultValue
in classTypedAttribute<String>
- Returns:
- the default value defined in the DTD.
-
getInterfaceInfo
-