Package eu.bandm.tools.tdom.runtime
Class IdAttribute
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.tdom.runtime.IdAttribute
- Direct Known Subclasses:
Attr_id
,Element_map.Attr_id
Implements an Attribute of "
ID
" type, which holds as its
value a single id value.
See [XML 1.0],
"3.3.1 Attribute Types".
(This value must be unique in the whole TypedDocument
, which must
be checked explicitly by the user. This is supported by the aux class
ElementDictionary
.)-
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
Fields inherited from class eu.bandm.tools.tdom.runtime.TypedAttribute
__preAtts, emptyAttributes, mutable, safeValues, specified, value
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkValue
(@Opt String value) Check whether the value matches the syntactical rules for XML Names.The definition text for the "type" of the attribute in the original DTD.Methods inherited from class eu.bandm.tools.tdom.runtime.NmTokenAttribute
_checkToken, checkNameToken, checkNCName, checkNmToken, checkPITarget, decode, encode, getStringValue
Methods inherited from class eu.bandm.tools.tdom.runtime.TypedAttribute
assertSetAttrValid, assertSetAttrValid, checkRequired, clearValue, find, find, getDefaultValue, getLocalName, getNamespaceName, getNamespaceURI, getStringValue, getTagName, getValue, isFixed, isOptional, 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
-
Constructor Details
-
IdAttribute
protected IdAttribute() -
IdAttribute
- Throws:
TdomAttributeSyntaxException
-
-
Method Details
-
checkValue
Check whether the value matches the syntactical rules for XML Names. SeeNmTokenAttribute.checkNmToken(String)
for details of these rules.- Overrides:
checkValue
in classNmTokenAttribute
- Parameters:
value
- the value to test. null passes.- Throws:
TdomAttributeSyntaxException
- iff the value does not match the type of the XML attribute, including a forbidden Null.
-
getTypeString
Description copied from class:TypedAttribute
The definition text for the "type" of the attribute in the original DTD.- Overrides:
getTypeString
in classNmTokenAttribute
-