Package com.emc.documentum.rest.wire
Interface AnnotatedFieldSerializer<T>
- Type Parameters:
T
- the writer type in XML, JSON or any other provider
- All Superinterfaces:
AnnotatedFieldBindingProcessor
- All Known Implementing Classes:
AbstractFieldJsonSerializer
,AbstractFieldXmlSerializer
,DelayedFieldJsonSerializer
,DelayedFieldXmlSerializer
,EntryFieldJsonSerializer
,EntryFieldXmlSerializer
,ListFieldJsonSerializer
,ListFieldXmlSerializer
,MapFieldJsonSerializer
,MapFieldXmlSerializer
,NullFieldJsonSerializer
,NullFieldXmlSerializer
,ObjectFieldJsonSerializer
,ObjectFieldXmlSerializer
,SimpleDataFieldJsonSerializer
,SimpleDataFieldXmlSerializer
This is an interface for defining the behavior to serialize the serializable field.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
serializable
(Object fieldValue, SerializableFieldMeta fieldNode) Check if the field value and field type is serializable by this serializer.void
serialize
(T writer, Object fieldValue, SerializableFieldMeta fieldNode, org.springframework.http.MediaType mediaType, com.emc.documentum.rest.config.BindingConfig bindingConfig) Serialize the field.Methods inherited from interface com.emc.documentum.rest.wire.AnnotatedFieldBindingProcessor
isCompatibleMediaType
-
Method Details
-
serialize
void serialize(T writer, Object fieldValue, SerializableFieldMeta fieldNode, org.springframework.http.MediaType mediaType, com.emc.documentum.rest.config.BindingConfig bindingConfig) Serialize the field.- Parameters:
writer
- message writerfieldValue
- field valuefieldNode
- the serializable field metamediaType
- the target media type to serializebindingConfig
- the binding configuration
-
serializable
Check if the field value and field type is serializable by this serializer.- Parameters:
fieldValue
- the field valuefieldNode
- the serializable field meta- Returns:
true
if the field value is serializable;false
otherwise.
-