com.fasterxml.jackson.module.jaxb.ser
Class XmlAdapterJsonSerializer

java.lang.Object
  extended by com.fasterxml.jackson.databind.JsonSerializer<T>
      extended by com.fasterxml.jackson.databind.ser.std.StdSerializer<Object>
          extended by com.fasterxml.jackson.module.jaxb.ser.XmlAdapterJsonSerializer
All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonschema.SchemaAware, com.fasterxml.jackson.databind.ser.ContextualSerializer

public class XmlAdapterJsonSerializer
extends com.fasterxml.jackson.databind.ser.std.StdSerializer<Object>
implements com.fasterxml.jackson.databind.ser.ContextualSerializer, com.fasterxml.jackson.databind.jsonschema.SchemaAware


Nested Class Summary
 
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer
com.fasterxml.jackson.databind.JsonSerializer.None
 
Field Summary
protected  com.fasterxml.jackson.databind.JsonSerializer<Object> _serializer
           
protected  com.fasterxml.jackson.databind.JavaType _valueType
           
protected  XmlAdapter<?,Object> _xmlAdapter
           
 
Fields inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
_handledType
 
Constructor Summary
  XmlAdapterJsonSerializer(XmlAdapter<?,?> xmlAdapter)
           
protected XmlAdapterJsonSerializer(XmlAdapter<?,Object> xmlAdapter, com.fasterxml.jackson.databind.JavaType valueType, com.fasterxml.jackson.databind.JsonSerializer<Object> serializer)
           
 
Method Summary
 com.fasterxml.jackson.databind.JsonSerializer<Object> createContextual(com.fasterxml.jackson.databind.SerializerProvider prov, com.fasterxml.jackson.databind.BeanProperty property)
           
 com.fasterxml.jackson.databind.JsonNode getSchema(com.fasterxml.jackson.databind.SerializerProvider provider, Type typeHint)
           
 void serialize(Object value, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider)
           
 
Methods inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
createObjectNode, createSchemaNode, createSchemaNode, handledType, isDefaultSerializer, wrapAndThrow, wrapAndThrow
 
Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer
isEmpty, isUnwrappingSerializer, serializeWithType, unwrappingSerializer, usesObjectId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_xmlAdapter

protected final XmlAdapter<?,Object> _xmlAdapter

_valueType

protected final com.fasterxml.jackson.databind.JavaType _valueType

_serializer

protected final com.fasterxml.jackson.databind.JsonSerializer<Object> _serializer
Constructor Detail

XmlAdapterJsonSerializer

public XmlAdapterJsonSerializer(XmlAdapter<?,?> xmlAdapter)

XmlAdapterJsonSerializer

protected XmlAdapterJsonSerializer(XmlAdapter<?,Object> xmlAdapter,
                                   com.fasterxml.jackson.databind.JavaType valueType,
                                   com.fasterxml.jackson.databind.JsonSerializer<Object> serializer)
Method Detail

createContextual

public com.fasterxml.jackson.databind.JsonSerializer<Object> createContextual(com.fasterxml.jackson.databind.SerializerProvider prov,
                                                                              com.fasterxml.jackson.databind.BeanProperty property)
                                                                       throws com.fasterxml.jackson.databind.JsonMappingException
Specified by:
createContextual in interface com.fasterxml.jackson.databind.ser.ContextualSerializer
Throws:
com.fasterxml.jackson.databind.JsonMappingException

serialize

public void serialize(Object value,
                      com.fasterxml.jackson.core.JsonGenerator jgen,
                      com.fasterxml.jackson.databind.SerializerProvider provider)
               throws IOException
Specified by:
serialize in class com.fasterxml.jackson.databind.ser.std.StdSerializer<Object>
Throws:
IOException

getSchema

public com.fasterxml.jackson.databind.JsonNode getSchema(com.fasterxml.jackson.databind.SerializerProvider provider,
                                                         Type typeHint)
                                                  throws com.fasterxml.jackson.databind.JsonMappingException
Specified by:
getSchema in interface com.fasterxml.jackson.databind.jsonschema.SchemaAware
Overrides:
getSchema in class com.fasterxml.jackson.databind.ser.std.StdSerializer<Object>
Throws:
com.fasterxml.jackson.databind.JsonMappingException


Copyright © 2012 fasterxml.com. All Rights Reserved.