public abstract class SpinValueTypeImpl extends AbstractValueTypeImpl implements SpinValueType
nameJSON, VALUE_INFO_SERIALIZATION_DATA_FORMAT, XMLVALUE_INFO_OBJECT_TYPE_NAME| Constructor and Description |
|---|
SpinValueTypeImpl(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyValueInfo(SpinValueBuilder<?> builder,
Map<String,Object> valueInfo) |
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 (meta data) for a
TypedValue. |
boolean |
isPrimitiveValueType()
Indicates whether this type is primitive valued.
|
canConvertFromTypedValue, convertFromTypedValue, equals, getName, getParent, hashCode, isAbstract, isTransient, toString, unsupportedConversionclone, finalize, getClass, notify, notifyAll, wait, wait, waitcanConvertFromTypedValue, convertFromTypedValue, getName, getParent, isAbstractpublic SpinValueTypeImpl(String name)
public TypedValue createValue(Object value, Map<String,Object> valueInfo)
ValueTypecreateValue in interface ValueTypevalue - the valuepublic SerializableValue createValueFromSerialized(String serializedValue, Map<String,Object> valueInfo)
SerializableValueTypecreateValueFromSerialized in interface SerializableValueTypeserializedValue - the value in serialized formpublic boolean isPrimitiveValueType()
ValueTypeisPrimitiveValueType in interface ValueTypepublic Map<String,Object> getValueInfo(TypedValue typedValue)
ValueTypeTypedValue.
The keys of the returned map for a TypedValue are available
as constants in the value's ValueType interface.getValueInfo in interface ValueTypeprotected void applyValueInfo(SpinValueBuilder<?> builder, Map<String,Object> valueInfo)
protected abstract SpinValueBuilder<?> createValue(SpinValue value)
protected abstract SpinValueBuilder<?> createValueFromSerialized(String value)
Copyright © 2021. All rights reserved.