com.fasterxml.jackson.dataformat.xml.ser
Class XmlBeanPropertyWriter

java.lang.Object
  extended by com.fasterxml.jackson.databind.ser.BeanPropertyWriter
      extended by com.fasterxml.jackson.dataformat.xml.ser.XmlBeanPropertyWriter
All Implemented Interfaces:
com.fasterxml.jackson.databind.BeanProperty, com.fasterxml.jackson.databind.util.Named

public class XmlBeanPropertyWriter
extends com.fasterxml.jackson.databind.ser.BeanPropertyWriter

Property writer sub-class used for handling element wrapping needed for serializing collection (array, Collection; possibly Map) types.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.fasterxml.jackson.databind.BeanProperty
com.fasterxml.jackson.databind.BeanProperty.Std
 
Field Summary
protected  QName _wrappedName
          Element name used for items in the collection
protected  QName _wrapperName
          Element name used as wrapper for collection.
 
Fields inherited from class com.fasterxml.jackson.databind.ser.BeanPropertyWriter
_accessorMethod, _cfgSerializationType, _contextAnnotations, _declaredType, _dynamicSerializers, _field, _includeInViews, _internalSettings, _member, _name, _nonTrivialBaseType, _nullSerializer, _serializer, _suppressableValue, _suppressNulls, _typeSerializer, MARKER_FOR_EMPTY
 
Constructor Summary
XmlBeanPropertyWriter(com.fasterxml.jackson.databind.ser.BeanPropertyWriter wrapped, com.fasterxml.jackson.databind.PropertyName wrapperName, com.fasterxml.jackson.databind.PropertyName wrappedName)
           
XmlBeanPropertyWriter(com.fasterxml.jackson.databind.ser.BeanPropertyWriter wrapped, com.fasterxml.jackson.databind.PropertyName wrapperName, com.fasterxml.jackson.databind.PropertyName wrappedName, com.fasterxml.jackson.databind.JsonSerializer<Object> serializer)
           
 
Method Summary
 void serializeAsField(Object bean, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider prov)
          Overridden version so that we can wrap output within wrapper element if and as necessary.
 
Methods inherited from class com.fasterxml.jackson.databind.ser.BeanPropertyWriter
_findAndAddDynamic, _handleSelfReference, assignNullSerializer, assignSerializer, depositSchemaProperty, depositSchemaProperty, get, getAnnotation, getContextAnnotation, getGenericPropertyType, getInternalSetting, getMember, getName, getPropertyType, getRawSerializationType, getSerializationType, getSerializedName, getSerializer, getType, getViews, hasNullSerializer, hasSerializer, isRequired, removeInternalSetting, rename, serializeAsColumn, serializeAsPlaceholder, setInternalSetting, setNonTrivialBaseType, toString, unwrappingWriter, willSuppressNulls
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_wrapperName

protected final QName _wrapperName
Element name used as wrapper for collection.


_wrappedName

protected final QName _wrappedName
Element name used for items in the collection

Constructor Detail

XmlBeanPropertyWriter

public XmlBeanPropertyWriter(com.fasterxml.jackson.databind.ser.BeanPropertyWriter wrapped,
                             com.fasterxml.jackson.databind.PropertyName wrapperName,
                             com.fasterxml.jackson.databind.PropertyName wrappedName)

XmlBeanPropertyWriter

public XmlBeanPropertyWriter(com.fasterxml.jackson.databind.ser.BeanPropertyWriter wrapped,
                             com.fasterxml.jackson.databind.PropertyName wrapperName,
                             com.fasterxml.jackson.databind.PropertyName wrappedName,
                             com.fasterxml.jackson.databind.JsonSerializer<Object> serializer)
Method Detail

serializeAsField

public void serializeAsField(Object bean,
                             com.fasterxml.jackson.core.JsonGenerator jgen,
                             com.fasterxml.jackson.databind.SerializerProvider prov)
                      throws Exception
Overridden version so that we can wrap output within wrapper element if and as necessary.

Overrides:
serializeAsField in class com.fasterxml.jackson.databind.ser.BeanPropertyWriter
Throws:
Exception


Copyright © 2012 FasterXML. All Rights Reserved.