Package eu.bandm.tools.tdom.runtime
Class IdRefAttribute
- 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.IdRefAttribute
-
- Direct Known Subclasses:
Element_label.Attr_for
public abstract class IdRefAttribute extends NmTokenAttribute
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 Modifier Constructor Description protected
IdRefAttribute()
protected
IdRefAttribute(@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 routine for the validity of the attributes' intended value.java.lang.String
getTypeString()
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, 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
-
IdRefAttribute
protected IdRefAttribute()
-
IdRefAttribute
protected IdRefAttribute(@Opt @Opt java.lang.String value) throws TdomAttributeSyntaxException
- Throws:
TdomAttributeSyntaxException
-
-
Method Detail
-
checkValue
protected void checkValue(@Opt @Opt java.lang.String value) throws TdomAttributeSyntaxException
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 the#set_value(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
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
-
getValue
@Opt public <E extends TypedElement<E,X>,X extends TypedExtension> E getValue(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.)
-
-