@User public static class Element_option.Attr_required extends EnumerationAttribute<Element_option.Attr_required.Value> implements Visitable<Visitor>, Matchable<Matcher>
Modifier and Type | Class and Description |
---|---|
static class |
Element_option.Attr_required.Value |
TypedAttribute.__PreAtts, TypedAttribute.SafeValues
TypedNode.ParseListener<E extends TypedElement<?,?>>
Modifier and Type | Field and Description |
---|---|
static NamespaceName |
namespaceName
Name of the attribute, as defined in the DTD plus tdom PI namespace declarations.
|
static Element_option.Attr_required |
unspecified |
__preAtts, emptyAttributes, mutable, safeValues, specified, value
Modifier and Type | Method and Description |
---|---|
void |
checkRequired()
The overriding method throws the exception if this attribute is required but missing
when initializing the tdom instance.
|
static Element_option.Attr_required |
from(Attributes attrs)
Create a new instance, its value picked from the SAX attribute
container.
|
static Element_option.Attr_required |
from(Element dom)
Create a new instance, its value picked from the W3C DOM instance.
|
Element_option.Attr_required.Value |
getDefaultValue()
Method to read the contents of field defaultValue.
|
static TypedDTD.AttributeInfo |
getInterfaceInfo() |
NamespaceName |
getNamespaceName()
Method to read the contents of field namespaceName.
|
protected Class<Element_option.Attr_required.Value> |
getValueClass()
Will be overridden in the generated code by a method which
returns the dedicated value class.
|
protected HashMap<String,? extends Element_option.Attr_required.Value> |
getValueMap()
Returns a map from the external representations as appearing in the DTD to
the enumeration items of the value's type.
|
void |
host(Visitor visitor)
Send the visitor to this instance.
|
void |
identify(Matcher matcher) |
boolean |
isFixed()
Returns whether the attribute is declared as "
#FIXED " in the DTD. |
boolean |
isOptional()
Returns whether the attribute is declared as "
#IMPLIED " in the DTD. |
void |
setValue(Element_option.Attr_required.Value v)
Set the value of this attribute.
|
checkValue, encode, find, getStringValue, getTypeString, setValue, setValue
assertSetAttrValid, clearValue, find, find, getLocalName, getNamespaceURI, getStringValue, getTagName, getValue, isRequired, isSpecified, makeUnspecified, put
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
@User public static final NamespaceName namespaceName
public static final Element_option.Attr_required unspecified
public void host(Visitor visitor)
Visitable
public void identify(Matcher matcher)
public final NamespaceName getNamespaceName()
getNamespaceName
in class TypedAttribute<Element_option.Attr_required.Value>
public void setValue(Element_option.Attr_required.Value v)
TypedAttribute
getAttr_XXX()
". The instance returned by
a call to "readAttr_XXX()
" is possibly the shared prototype,
which will throw an exception when trying to set the value.setValue
in class TypedAttribute<Element_option.Attr_required.Value>
v
- maybe null, which sets the attribute to "not specified
when initializing the document", if it is declared #IMPLIED.public void checkRequired()
TypedAttribute
checkRequired
in class TypedAttribute<Element_option.Attr_required.Value>
@User public static Element_option.Attr_required from(Element dom) throws TdomAttributeSyntaxException
TdomAttributeSyntaxException
@User public static Element_option.Attr_required from(Attributes attrs) throws TdomAttributeSyntaxException
TdomAttributeSyntaxException
public final boolean isOptional()
TypedAttribute
#IMPLIED
" in the DTD.
Will be overridden by the generated code.isOptional
in class TypedAttribute<Element_option.Attr_required.Value>
#IMPLIED
" in the DTD.public final boolean isFixed()
TypedAttribute
#FIXED
" in the DTD.
Will be overridden by the generated code.isFixed
in class TypedAttribute<Element_option.Attr_required.Value>
#FIXED
" in the DTD.protected final HashMap<String,? extends Element_option.Attr_required.Value> getValueMap()
EnumerationAttribute
getValueMap
in class EnumerationAttribute<Element_option.Attr_required.Value>
protected final Class<Element_option.Attr_required.Value> getValueClass()
EnumerationAttribute
getValueClass
in class EnumerationAttribute<Element_option.Attr_required.Value>
public final Element_option.Attr_required.Value getDefaultValue()
getDefaultValue
in class TypedAttribute<Element_option.Attr_required.Value>
public static TypedDTD.AttributeInfo getInterfaceInfo()
see also the complete user documentation .