public abstract class SpinValueTypeImpl extends AbstractValueTypeImpl implements SpinValueType
Modifier and Type | Field and Description |
---|---|
static String |
VALUE_INFO_SERIALIZATION_DATA_FORMAT |
name
JSON, XML
Constructor and Description |
---|
SpinValueTypeImpl(String name) |
Modifier and Type | Method and Description |
---|---|
TypedValue |
createValue(Object value,
Map<String,Object> valueInfo)
Creates a new TypedValue using this type.
|
protected abstract SpinValueBuilder<?> |
createValue(SpinValue value) |
protected abstract SpinValueBuilder<?> |
createValueFromSerialized(String value) |
SerializableValue |
createValueFromSerialized(String serializedValue,
Map<String,Object> valueInfo)
Creates a new TypedValue using this type.
|
Map<String,Object> |
getValueInfo(TypedValue typedValue)
Get the value info for a
TypedValue . |
boolean |
isPrimitiveValueType()
Indicates whether this type is primitive valued.
|
canConvertFromTypedValue, convertFromTypedValue, getName, getParent, isAbstract, toString, unsupportedConversion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canConvertFromTypedValue, convertFromTypedValue, getName, getParent, isAbstract
public static final String VALUE_INFO_SERIALIZATION_DATA_FORMAT
public SpinValueTypeImpl(String name)
public TypedValue createValue(Object value, Map<String,Object> valueInfo)
ValueType
createValue
in interface ValueType
value
- the valuepublic SerializableValue createValueFromSerialized(String serializedValue, Map<String,Object> valueInfo)
SerializableValueType
createValueFromSerialized
in interface SerializableValueType
serializedValue
- the value in serialized formpublic boolean isPrimitiveValueType()
ValueType
isPrimitiveValueType
in interface ValueType
public Map<String,Object> getValueInfo(TypedValue typedValue)
ValueType
TypedValue
.getValueInfo
in interface ValueType
protected abstract SpinValueBuilder<?> createValue(SpinValue value)
protected abstract SpinValueBuilder<?> createValueFromSerialized(String value)
Copyright © 2018. All rights reserved.