Package eu.bandm.tools.tdom.runtime
Class IdRefsAttribute
- java.lang.Object
-
- eu.bandm.tools.tdom.runtime.TypedNode<TypedExtension>
-
- eu.bandm.tools.tdom.runtime.TypedAttribute<java.util.List<java.lang.String>>
-
- eu.bandm.tools.tdom.runtime.NmTokensAttribute
-
- eu.bandm.tools.tdom.runtime.IdRefsAttribute
-
- Direct Known Subclasses:
Element_td.Attr_headers
,Element_th.Attr_headers
public abstract class IdRefsAttribute extends NmTokensAttribute
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)
andNmTokenAttributes#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
Constructors Modifier Constructor Description protected
IdRefsAttribute()
protected
IdRefsAttribute(@Opt java.lang.String value)
protected
IdRefsAttribute(@Opt java.util.List<java.lang.String> value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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>
java.util.List<E>getValues(ElementDictionary<E,X> dict)
Look up the elements for the current value of this.protected boolean
mustBeNameToken()
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, 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
-
IdRefsAttribute
protected IdRefsAttribute()
-
IdRefsAttribute
protected IdRefsAttribute(@Opt @Opt java.util.List<java.lang.String> value) throws TdomAttributeSyntaxException
- Throws:
TdomAttributeSyntaxException
-
IdRefsAttribute
protected IdRefsAttribute(@Opt @Opt java.lang.String value) throws TdomAttributeSyntaxException
- Throws:
TdomAttributeSyntaxException
-
-
Method Detail
-
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 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>,X extends TypedExtension> java.util.List<E> getValues(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.
-
-