@User public abstract class NmTokensAttribute extends TypedAttribute<List<String>>
NMTOKENS" type, which holds as its
value a list of NMTOKEN tokens separated by blanks.
See [XML 1.0],
"3.3.1 Attribute Types" and production rule [8].
See NmTokenAttribute.checkNmToken(String) and
splitValues(String) for details of these definitions.
TypedAttribute.__PreAtts, TypedAttribute.SafeValuesTypedNode.ParseListener<E extends TypedElement<?,?>>__preAtts, emptyAttributes, mutable, safeValues, specified, value| Modifier | Constructor and Description |
|---|---|
protected |
NmTokensAttribute() |
protected |
NmTokensAttribute(@Opt List<String> value) |
protected |
NmTokensAttribute(@Opt String value) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkValue(@Opt List<String> values)
Check routine for the validity of the attributes' intended value.
|
void |
encode(EncodingOutputStream out,
TypedExtension ext)
DOCME
|
protected static List<String> |
findSplit(Attributes attrs,
NamespaceName name)
DOCME
|
@Opt String |
getStringValue(@Opt List<String> v)
Returns the textual representation of a possible attribute value (not null),
as it would be contained literally in a possible XML text representation.
|
String |
getTypeString()
The definition text for the "type" of the attribute in the original DTD.
|
protected boolean |
mustBeNameToken()
Overridden by subclass.
|
static @Opt List<String> |
splitValues(@Opt String text)
Used from extern as auxiliary method.
|
assertSetAttrValid, checkRequired, clearValue, find, find, getDefaultValue, getLocalName, getNamespaceName, getNamespaceURI, getStringValue, getTagName, getValue, isFixed, isOptional, isRequired, isSpecified, makeUnspecified, put, setValueasBigDecimal, 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, setLocationprotected NmTokensAttribute()
protected NmTokensAttribute(@Opt @Opt List<String> value) throws TdomAttributeSyntaxException
TdomAttributeSyntaxExceptionprotected NmTokensAttribute(@Opt @Opt String value) throws TdomAttributeSyntaxException
TdomAttributeSyntaxExceptionprotected void checkValue(@Opt @Opt List<String> values) throws TdomAttributeSyntaxException
TypedAttribute#set_value(V) method.
The value null means "absent" for #IMPLIED attributes and passes the test.checkValue in class TypedAttribute<List<String>>values - the value to test; maybe null.TdomAttributeSyntaxException - iff the value does not match the type of the
XML attribute, including a forbidden Null.public String getTypeString()
TypedAttributegetTypeString in class TypedAttribute<List<String>>protected boolean mustBeNameToken()
@Opt public static @Opt List<String> splitValues(@Opt @Opt String text)
FIXME the current impl gives strange diagnosis for more blanks, as in att="b⎵⎵⎵c".
public final void encode(EncodingOutputStream out, TypedExtension ext) throws IOException
encode in class TypedNode<TypedExtension>IOExceptionprotected static List<String> findSplit(Attributes attrs, NamespaceName name)
@User @Opt public final @Opt String getStringValue(@Opt @Opt List<String> v)
TypedAttributegetStringValue in class TypedAttribute<List<String>>see also the complete user documentation .