Package eu.bandm.tools.tdom.runtime
Class IdAttribute
- java.lang.Object
-
- eu.bandm.tools.tdom.runtime.TypedNode<TypedExtension>
-
- eu.bandm.tools.tdom.runtime.TypedAttribute<java.lang.String>
-
- eu.bandm.tools.tdom.runtime.NmTokenAttribute
-
- eu.bandm.tools.tdom.runtime.IdAttribute
-
- Direct Known Subclasses:
Attr_id
,Element_map.Attr_id
public abstract class IdAttribute extends NmTokenAttribute
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 wholeTypedDocument
, which must be checked explicitly by the user. This is supported by the aux classElementDictionary
.)
-
-
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
Constructors Modifier Constructor Description protected
IdAttribute()
protected
IdAttribute(@Opt java.lang.String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkValue(@Opt java.lang.String value)
Check whether the value matches the syntactical rules for XML Names.java.lang.String
getTypeString()
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, 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 Detail
-
IdAttribute
protected IdAttribute()
-
IdAttribute
protected IdAttribute(@Opt @Opt java.lang.String value) throws TdomAttributeSyntaxException
- Throws:
TdomAttributeSyntaxException
-
-
Method Detail
-
checkValue
protected void checkValue(@Opt @Opt java.lang.String value) throws TdomAttributeSyntaxException
Check whether the value matches the syntactical rules for XML Names. SeeNmTokenAttribute#checNmToken(String,boolean)
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
public java.lang.String getTypeString()
Description copied from class:TypedAttribute
The definition text for the "type" of the attribute in the original DTD.- Overrides:
getTypeString
in classNmTokenAttribute
-
-