Package eu.bandm.tools.tdom.runtime
Class IdRefsAttribute
java.lang.Object
eu.bandm.tools.tdom.runtime.TypedNode<TypedExtension>
eu.bandm.tools.tdom.runtime.TypedAttribute<List<String>>
eu.bandm.tools.tdom.runtime.NmTokensAttribute
eu.bandm.tools.tdom.runtime.IdRefsAttribute
- Direct Known Subclasses:
Element_td.Attr_headers
,Element_th.Attr_headers
Implements an Attribute of "
IDREFS
" type, which holds as its
value a list of id values. This must match the "Names" production [6]
from [XML 1.0].
See also the section "3.3.1 Attribute Types".
See NmTokenAttribute.checkNmToken(String)
and
NmTokensAttribute.splitValues(String)
for details of these definitions.
-
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
ModifierConstructorDescriptionprotected
protected
IdRefsAttribute
(@Opt String value) protected
IdRefsAttribute
(@Opt List<String> value) -
Method Summary
Modifier and TypeMethodDescriptionThe definition text for the "type" of the attribute in the original DTD.<E extends TypedElement<E,
X>, X extends TypedExtension>
List<E>getValues
(ElementDictionary<E, X> dict) Look up the elements for the current value of this.protected final boolean
Overridden by subclass.Methods inherited from class eu.bandm.tools.tdom.runtime.NmTokensAttribute
checkValue, decode, encode, findSplit, getStringValue, splitValues
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
-
IdRefsAttribute
protected IdRefsAttribute() -
IdRefsAttribute
- Throws:
TdomAttributeSyntaxException
-
IdRefsAttribute
- Throws:
TdomAttributeSyntaxException
-
-
Method Details
-
getTypeString
Description copied from class:TypedAttribute
The definition text for the "type" of the attribute in the original DTD.- Overrides:
getTypeString
in classNmTokensAttribute
-
mustBeNameToken
protected final boolean mustBeNameToken()Description copied from class:NmTokensAttribute
Overridden by subclass.- Overrides:
mustBeNameToken
in classNmTokensAttribute
-
getValues
public <E extends TypedElement<E,X>, List<E> getValuesX extends TypedExtension> (ElementDictionary<E, X> dict) Look up the elements for the current value of this. ATTENTION FIXME getValue() must not be null ?- Parameters:
dict
- The dictionary to use.- Returns:
- the list of Elements found. Values ==null in this list indicate dangling reference values.
-