Package overit.geocall.model.format
Class XMLTreeDeserializer
java.lang.Object
com.fasterxml.jackson.databind.JsonDeserializer<XMLTree>
overit.geocall.model.format.XMLTreeDeserializer
- All Implemented Interfaces:
NullValueProvider
XMLDeserializer has some limits at the moment due to the fact that the parser is not capable to distinguish from
from attribute nodes and child nodes. It manages key="value" and
<key>value</key> the same way.
At the moment, giving more than one attribute to a node make it distinguish froma single <key>value</key> node.-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonDeserializer
JsonDeserializer.None -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(com.fasterxml.jackson.core.JsonParser jp, DeserializationContext dc) protected Objectparse(com.fasterxml.jackson.core.JsonParser jp, DeserializationContext dc) protected XMLTreeparseArray(com.fasterxml.jackson.core.JsonParser jp, DeserializationContext dc) protected XMLTreeparseObject(com.fasterxml.jackson.core.JsonParser jp, DeserializationContext dc) Methods inherited from class com.fasterxml.jackson.databind.JsonDeserializer
deserialize, deserializeWithType, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, logicalType, replaceDelegatee, supportsUpdate, unwrappingDeserializer
-
Constructor Details
-
XMLTreeDeserializer
public XMLTreeDeserializer()
-
-
Method Details
-
deserialize
public XMLTree deserialize(com.fasterxml.jackson.core.JsonParser jp, DeserializationContext dc) throws IOException - Specified by:
deserializein classJsonDeserializer<XMLTree>- Throws:
IOException
-
parse
protected Object parse(com.fasterxml.jackson.core.JsonParser jp, DeserializationContext dc) throws IOException - Throws:
IOException
-
parseObject
protected XMLTree parseObject(com.fasterxml.jackson.core.JsonParser jp, DeserializationContext dc) throws IOException - Throws:
IOException
-
parseArray
protected XMLTree parseArray(com.fasterxml.jackson.core.JsonParser jp, DeserializationContext dc) throws IOException - Throws:
IOException
-