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.SafeValuesNested 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 voidcheckValue(@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
decode, encode, getStringValueMethods 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, setValueMethods 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
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 valuenullmeans "absent" for#IMPLIEDattributes and passes the test.- Overrides:
checkValuein 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
The definition text for the "type" of the attribute in the original DTD.- Overrides:
getTypeStringin 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.)
-