@User public abstract class CDataAttribute extends TypedAttribute<String>
CDATA.
This declaration means an attribute with an arbitrary character sequence as its value, and
no further structure imposed. As a consequence, the value type parameter for these attributes
is String, and an TdomAttributeSyntaxException is only thrown when an
attribute is absent (null) and #REQUIRED.TypedAttribute.__PreAtts, TypedAttribute.SafeValuesTypedNode.ParseListener<E extends TypedElement<?,?>>__preAtts, emptyAttributes, mutable, safeValues, specified, value| Modifier | Constructor and Description |
|---|---|
protected |
CDataAttribute() |
protected |
CDataAttribute(@Opt String value) |
protected |
CDataAttribute(TypedAttribute.SafeValues flag,
@Opt String value)
This variant may only be invoked by generated code if value argument is
known to be != null.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkValue(@Opt String value)
Check routine for the validity of the attributes' intended value.
|
void |
encode(EncodingOutputStream out,
TypedExtension ext)
Abstract fall-back method which MUST be overridden and always throws an Exception.
|
String |
getStringValue(String s)
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.
|
void |
setValue(@Opt String newValue,
TypedAttribute.SafeValues flag)
Internal use only.
|
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 CDataAttribute()
protected CDataAttribute(@Opt @Opt String value) throws TdomAttributeSyntaxException
TdomAttributeSyntaxExceptionprotected CDataAttribute(TypedAttribute.SafeValues flag, @Opt @Opt String value)
protected void checkValue(@Opt @Opt String value)
TypedAttribute#set_value(V) method.
The value null means "absent" for #IMPLIED attributes and passes the test.checkValue in class TypedAttribute<String>value - the value to test; maybe null.public String getTypeString()
TypedAttributegetTypeString in class TypedAttribute<String>public void setValue(@Opt @Opt String newValue, TypedAttribute.SafeValues flag)
setValue(@Opt String) method iff attribute
is #IMPLIED, because then never a exception will be thrown.public final void encode(EncodingOutputStream out, TypedExtension ext) throws IOException
TypedNodeencode in class TypedNode<TypedExtension>IOExceptionpublic final String getStringValue(String s)
TypedAttributegetStringValue in class TypedAttribute<String>see also the complete user documentation .