public abstract class PrimitiveValueSerializer<T extends PrimitiveValue<?>> extends AbstractTypedValueSerializer<T>
BINARY_VALUE_TYPES, valueType
Constructor and Description |
---|
PrimitiveValueSerializer(PrimitiveValueType variableType) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canWriteValue(TypedValue typedValue) |
String |
getName()
The name of this serializer.
|
PrimitiveValueType |
getType()
The
VariableType supported |
abstract T |
readValue(ValueFields valueFields,
boolean asTransientValue) |
T |
readValue(ValueFields valueFields,
boolean deserializeObjectValue,
boolean asTransientValue)
Retrieve a
TypedValue from the provided ValueFields . |
canHandle, getSerializationDataformat, isMutableValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
convertToTypedValue, writeValue
public PrimitiveValueSerializer(PrimitiveValueType variableType)
public String getName()
TypedValueSerializer
public T readValue(ValueFields valueFields, boolean deserializeObjectValue, boolean asTransientValue)
TypedValueSerializer
TypedValue
from the provided ValueFields
.valueFields
- the ValueFields
to retrieve the value fromdeserializeObjectValue
- indicates whether a SerializableValue
should be deserialized.TypedValue
public abstract T readValue(ValueFields valueFields, boolean asTransientValue)
public PrimitiveValueType getType()
TypedValueSerializer
VariableType
supportedgetType
in interface TypedValueSerializer<T extends PrimitiveValue<?>>
getType
in class AbstractTypedValueSerializer<T extends PrimitiveValue<?>>
protected boolean canWriteValue(TypedValue typedValue)
canWriteValue
in class AbstractTypedValueSerializer<T extends PrimitiveValue<?>>
Copyright © 2022. All rights reserved.