public abstract class AbstractStringElementType extends AbstractElementType<String>
Constructor and Description |
---|
AbstractStringElementType() |
Modifier and Type | Method and Description |
---|---|
String |
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.
|
protected Object |
passwordValueToJSONForClient(Object value)
Specific implementation of valueToJSONForClient used for passwords
|
String |
toString(String value)
Cast a typed value to a String
|
_singleValueToJSON, _singleValueToSAX, getManagedClass, getManagedClassArray, isCompatible, parseConfiguration, valueToJSONForClient, valueToSAX
getId, setPluginInfo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId
setPluginInfo
public AbstractStringElementType()
public String castValue(String value)
ElementType
value
- the value to castpublic String toString(String value) throws BadItemTypeException
ElementType
toString
in interface ElementType<String>
toString
in class AbstractElementType<String>
value
- the value to castBadItemTypeException
public Object fromJSONForClient(Object json)
ElementType
json
- the JSON object to convertprotected Object passwordValueToJSONForClient(Object value)
value
- the value to convertpublic boolean isSimple()
ElementType
true
if the type is simple, false
otherwise