Class AbstractFieldXmlSerializer
java.lang.Object
com.emc.documentum.rest.parser.xml.writer.field.AbstractFieldXmlSerializer
- All Implemented Interfaces:
 AnnotatedFieldBindingProcessor,AnnotatedFieldSerializer<com.emc.documentum.rest.parser.xml.writer.TypeXmlWriter>
- Direct Known Subclasses:
 DelayedFieldXmlSerializer,EntryFieldXmlSerializer,ListFieldXmlSerializer,MapFieldXmlSerializer,NullFieldXmlSerializer,ObjectFieldXmlSerializer,SimpleDataFieldXmlSerializer
public abstract class AbstractFieldXmlSerializer
extends Object
implements AnnotatedFieldSerializer<com.emc.documentum.rest.parser.xml.writer.TypeXmlWriter>
This abstract class has default implementation for XML field serializer.
 Also it contains XML specified writer.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleanisCompatibleMediaType(org.springframework.http.MediaType mediaType) Check if the message serializer or deserializer is compatible with the specified media type.voidserializeKeyValue(com.emc.documentum.rest.parser.xml.writer.TypeXmlWriter writer, String key, 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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.emc.documentum.rest.wire.AnnotatedFieldSerializer
serializable, serialize 
- 
Constructor Details
- 
AbstractFieldXmlSerializer
public AbstractFieldXmlSerializer() 
 - 
 - 
Method Details
- 
serializeKeyValue
public void serializeKeyValue(com.emc.documentum.rest.parser.xml.writer.TypeXmlWriter writer, String key, 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. This method must be implemented if the target object supports to be serialized in a map.- Parameters:
 writer- message writerkey- 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
 - 
isCompatibleMediaType
public boolean isCompatibleMediaType(org.springframework.http.MediaType mediaType) Description copied from interface:AnnotatedFieldBindingProcessorCheck if the message serializer or deserializer is compatible with the specified media type.- Specified by:
 isCompatibleMediaTypein interfaceAnnotatedFieldBindingProcessor- Parameters:
 mediaType- the media type to check- Returns:
 truefor compatible
 
 -