T
- the type of the valuepublic interface AttributeValueMarshaller<T>
String
.Modifier and Type | Method and Description |
---|---|
String |
marshal(AttributeValue<T> value)
Marshals the given typed value as a
String . |
AttributeValue<T> |
unmarshal(String value,
boolean isNonLatinScriptAlternateVersion)
Unmarshals the given
String as a typed value. |
@Nonnull String marshal(@Nonnull AttributeValue<T> value) throws AttributeValueMarshallingException
String
.value
- the typed value to marshal as a String
.String
representation of the given typed value.AttributeValueMarshallingException
- thrown when marshalling an attribute value@Nonnull AttributeValue<T> unmarshal(@Nonnull String value, boolean isNonLatinScriptAlternateVersion) throws AttributeValueMarshallingException
String
as a typed value.value
- the String
representation to unmarshal to a typed value.isNonLatinScriptAlternateVersion
- indicates whether the provided value is the non-latin script alternate
version of another attribute value.String
representation.AttributeValueMarshallingException
- thrown when unmarshalling an attribute valueCopyright © 2020. All Rights Reserved.