Class ObjectFieldXmlSerializer
java.lang.Object
com.emc.documentum.rest.parser.xml.writer.field.AbstractFieldXmlSerializer
com.emc.documentum.rest.parser.xml.writer.field.ObjectFieldXmlSerializer
- All Implemented Interfaces:
AnnotatedFieldBindingProcessor,AnnotatedFieldSerializer<com.emc.documentum.rest.parser.xml.writer.TypeXmlWriter>
XML field writer for null data.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanserializable(Object fieldValue, SerializableFieldMeta fieldNode) Check if the field value and field type is serializable by this serializer.voidserialize(com.emc.documentum.rest.parser.xml.writer.TypeXmlWriter writer, Object value, SerializableFieldMeta fieldNode, org.springframework.http.MediaType mediaType, com.emc.documentum.rest.config.BindingConfig bindingConfig) Serialize the field.voidserializeKeyValue(com.emc.documentum.rest.parser.xml.writer.TypeXmlWriter writer, String serializableName, Object value, Map<String, String> attrs, String ns, String prefix, org.springframework.http.MediaType contentType, com.emc.documentum.rest.config.BindingConfig bindingConfig) Serializes the object in a map as the entry value.protected voidwriteField(com.emc.documentum.rest.parser.xml.writer.TypeXmlWriter writer, String serializableName, String parentPrefix, String parentNS, Object value, Map<String, String> attrs, boolean writeFieldName, boolean writeTypeRoot, com.emc.documentum.rest.config.BindingConfig bindingConfig) Methods inherited from class com.emc.documentum.rest.parser.xml.writer.field.AbstractFieldXmlSerializer
isCompatibleMediaType
-
Constructor Details
-
ObjectFieldXmlSerializer
public ObjectFieldXmlSerializer()
-
-
Method Details
-
serialize
public void serialize(com.emc.documentum.rest.parser.xml.writer.TypeXmlWriter writer, Object value, SerializableFieldMeta fieldNode, org.springframework.http.MediaType mediaType, com.emc.documentum.rest.config.BindingConfig bindingConfig) Description copied from interface:AnnotatedFieldSerializerSerialize the field.- Parameters:
writer- message writervalue- field valuefieldNode- the serializable field metamediaType- the target media type to serializebindingConfig- the binding configuration
-
serializeKeyValue
public void serializeKeyValue(com.emc.documentum.rest.parser.xml.writer.TypeXmlWriter writer, String serializableName, Object value, Map<String, String> attrs, String ns, String prefix, org.springframework.http.MediaType contentType, com.emc.documentum.rest.config.BindingConfig bindingConfig) Description copied from class:AbstractFieldXmlSerializerSerializes the object in a map as the entry value. This method must be implemented if the target object supports to be serialized in a map.- Overrides:
serializeKeyValuein classAbstractFieldXmlSerializer- Parameters:
writer- message writerserializableName- the serializable name of the field to serializevalue- the object value to serializeattrs- the additional data for marshallingns- the name spaceprefix- the prefix of name spacecontentType- content type of target representationbindingConfig- the binding configuration
-
serializable
Description copied from interface:AnnotatedFieldSerializerCheck if the field value and field type is serializable by this serializer.- Parameters:
fieldValue- the field valuefieldNode- the serializable field meta- Returns:
trueif the field value is serializable;falseotherwise.
-
writeField
-