public class StringValueSerializer extends PrimitiveValueSerializer<StringValue>
Modifier and Type | Field and Description |
---|---|
static String |
EMPTY_STRING |
BINARY_VALUE_TYPES, valueType
Constructor and Description |
---|
StringValueSerializer() |
Modifier and Type | Method and Description |
---|---|
StringValue |
convertToTypedValue(UntypedValueImpl untypedValue)
Returns a typed value for the provided untyped value.
|
StringValue |
readValue(ValueFields valueFields,
boolean asTransientValue) |
void |
writeValue(StringValue variableValue,
ValueFields valueFields)
Serialize a
TypedValue to the ValueFields . |
canWriteValue, getName, getType, readValue
canHandle, getSerializationDataformat, isMutableValue
public static final String EMPTY_STRING
public StringValue convertToTypedValue(UntypedValueImpl untypedValue)
TypedValueSerializer
TypedValueSerializer
(by invocation of TypedValueSerializer.canHandle(TypedValue)
).untypedValue
- the untyped valuepublic StringValue readValue(ValueFields valueFields, boolean asTransientValue)
readValue
in class PrimitiveValueSerializer<StringValue>
public void writeValue(StringValue variableValue, ValueFields valueFields)
TypedValueSerializer
TypedValue
to the ValueFields
.variableValue
- the TypedValue
to persistvalueFields
- the ValueFields
to which the value should be persistedCopyright © 2022. All rights reserved.