public abstract class AbstractRichTextElementType extends AbstractElementType<RichText>
Constructor and Description |
---|
AbstractRichTextElementType() |
Modifier and Type | Method and Description |
---|---|
RichText |
castValue(String value)
Cast an untyped value (string) to an object of the corresponding type
|
Object |
fromJSONForClient(Object json)
Convert the given client side JSON object to the types value
|
boolean |
isSimple()
Determines if this type is simple or not.
|
RichText |
parseConfiguration(Configuration configuration)
Parses the given configuration to get the typed value
|
String |
toString(RichText value)
Cast a typed value to a String
|
_singleValueToJSON, _singleValueToSAX, getManagedClass, getManagedClassArray, isCompatible, valueToJSONForClient, valueToSAX
getId, setPluginInfo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId
setPluginInfo
public AbstractRichTextElementType()
public Object fromJSONForClient(Object json)
ElementType
json
- the JSON object to convertpublic boolean isSimple()
ElementType
true
if the type is simple, false
otherwisepublic RichText castValue(String value) throws BadItemTypeException
ElementType
value
- the value to castBadItemTypeException
- if the String value can't be cast to the typepublic String toString(RichText value)
ElementType
toString
in interface ElementType<RichText>
toString
in class AbstractElementType<RichText>
value
- the value to castpublic RichText parseConfiguration(Configuration configuration) throws ConfigurationException
ElementType
parseConfiguration
in interface ElementType<RichText>
parseConfiguration
in class AbstractElementType<RichText>
configuration
- the configuration to parseConfigurationException
- if an error occurs while parsing the configuration