Package eu.bandm.tools.tdom.runtime
Class IdRefAttribute
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.IdRefAttribute
- Direct Known Subclasses:
Element_label.Attr_for
Implements an Attribute of "
IDREF
" type, which holds as its
value a single id value.
See [XML 1.0],
"3.3.1 Attribute Types".-
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkValue
(@Opt String value) Check routine for the validity of the attributes' intended value.The definition text for the "type" of the attribute in the original DTD.<E extends TypedElement<E,
X>, X extends TypedExtension>
EgetValue
(ElementDictionary<? extends E, X> dict) Look up the element for the current value of this.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
-
IdRefAttribute
protected IdRefAttribute() -
IdRefAttribute
- Throws:
TdomAttributeSyntaxException
-
-
Method Details
-
checkValue
Description copied from class:TypedAttribute
Check routine for the validity of the attributes' intended value. Is a call-back, implemented by the sub-classes. Is called only here, by two constructors and theTypedAttribute.setValue(V)
method. The valuenull
means "absent" for#IMPLIED
attributes and passes the test.- Overrides:
checkValue
in classNmTokenAttribute
- Parameters:
value
- the value to test; maybe null.- 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
-
getValue
@Opt public <E extends TypedElement<E,X>, E getValueX extends TypedExtension> (ElementDictionary<? extends E, X> dict) Look up the element for the current value of this.- Parameters:
dict
- The dictionary to use.- Returns:
- the Element found, or null if no such exists. (This is always the case if the value==null, i.e. "this" is IMPLIED and unset in the document.)
-