class PrimitiveValueAttribute<T> extends Attribute<T>
defaultValue, name
Constructor and Description |
---|
PrimitiveValueAttribute(java.lang.String name) |
PrimitiveValueAttribute(java.lang.String name,
java.lang.String defaultValue) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getSingleValue(T value)
Gets the string representation of
value to be set as an attribute value
to an HTML element. |
public PrimitiveValueAttribute(java.lang.String name)
public PrimitiveValueAttribute(java.lang.String name, java.lang.String defaultValue)
protected java.lang.String getSingleValue(T value)
Attribute
value
to be set as an attribute value
to an HTML element.getSingleValue
in class Attribute<T>
value
- The item to be stringifiedvalue