Class SkipFieldXmlDeserializer
java.lang.Object
com.emc.documentum.rest.parser.xml.reader.field.AbstractFieldXmlDeserializer
com.emc.documentum.rest.parser.xml.reader.field.SkipFieldXmlDeserializer
- All Implemented Interfaces:
AnnotatedFieldBindingProcessor
,AnnotatedFieldDeserializer<com.emc.documentum.rest.parser.xml.reader.TypeXmlParser>
XML field reader for unrecognized token. The token will just be ignored.
-
Field Summary
Fields inherited from class com.emc.documentum.rest.parser.xml.reader.field.AbstractFieldXmlDeserializer
CURRENT_EVENT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
deserializable
(Object next, SerializableFieldMeta fieldNode, Class<?> valueType) Check if the field value and field type is deserializable by this deserializer.deserialize
(com.emc.documentum.rest.parser.xml.reader.TypeXmlParser parser, Object object, String name, SerializableFieldMeta fieldNode, Map<String, Object> infoMap, com.emc.documentum.rest.config.BindingConfig bindingConfig) Deserialize the field.Methods inherited from class com.emc.documentum.rest.parser.xml.reader.field.AbstractFieldXmlDeserializer
asEventReader, isCompatibleMediaType
-
Constructor Details
-
SkipFieldXmlDeserializer
public SkipFieldXmlDeserializer()
-
-
Method Details
-
deserialize
public Object deserialize(com.emc.documentum.rest.parser.xml.reader.TypeXmlParser parser, Object object, String name, SerializableFieldMeta fieldNode, Map<String, Object> infoMap, com.emc.documentum.rest.config.BindingConfig bindingConfig) Description copied from interface:AnnotatedFieldDeserializer
Deserialize the field.- Parameters:
parser
- message parserobject
- the object that the field belongs toname
- the field namefieldNode
- the serializable filed metainfoMap
- the map which can carry additional infobindingConfig
- binding configuration- Returns:
- the field object
-
deserializable
Description copied from interface:AnnotatedFieldDeserializer
Check if the field value and field type is deserializable by this deserializer.- Parameters:
next
- current token of JSON objectfieldNode
- the deserializable field metavalueType
- actual value type for current JSON token; this parameter is optional; when it is provided, it takes precedence over the data type defined from fieldNode- Returns:
true
if the field value is deserializable;false
otherwise.
-