com.fasterxml.jackson.xml.ser
Class XmlBeanPropertyWriter
java.lang.Object
org.codehaus.jackson.map.ser.BeanPropertyWriter
com.fasterxml.jackson.xml.ser.XmlBeanPropertyWriter
- All Implemented Interfaces:
- org.codehaus.jackson.map.BeanProperty
public class XmlBeanPropertyWriter
- extends org.codehaus.jackson.map.ser.BeanPropertyWriter
Property writer sub-class used for handling element wrapping needed for serializing
collection (array, Collection; possibly Map) types.
- Since:
- 1.7
Nested classes/interfaces inherited from interface org.codehaus.jackson.map.BeanProperty |
org.codehaus.jackson.map.BeanProperty.Std |
Fields inherited from class org.codehaus.jackson.map.ser.BeanPropertyWriter |
_accessorMethod, _cfgSerializationType, _contextAnnotations, _declaredType, _dynamicSerializers, _field, _includeInViews, _internalSettings, _member, _name, _nonTrivialBaseType, _serializer, _suppressableValue, _suppressNulls, _typeSerializer |
Method Summary |
void |
serializeAsField(Object bean,
org.codehaus.jackson.JsonGenerator jgen,
org.codehaus.jackson.map.SerializerProvider prov)
Overridden version so that we can wrap output within wrapper element if
and as necessary. |
org.codehaus.jackson.map.ser.BeanPropertyWriter |
withSerializer(org.codehaus.jackson.map.JsonSerializer<Object> ser)
|
Methods inherited from class org.codehaus.jackson.map.ser.BeanPropertyWriter |
_findAndAddDynamic, _reportSelfReference, get, getAnnotation, getContextAnnotation, getGenericPropertyType, getInternalSetting, getMember, getName, getPropertyType, getRawSerializationType, getSerializationType, getSerializedName, getSerializer, getType, getViews, hasSerializer, removeInternalSetting, setInternalSetting, setNonTrivialBaseType, setViews, toString |
_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
XmlBeanPropertyWriter
public XmlBeanPropertyWriter(org.codehaus.jackson.map.ser.BeanPropertyWriter wrapped,
QName wrapperName,
QName wrappedName)
XmlBeanPropertyWriter
public XmlBeanPropertyWriter(org.codehaus.jackson.map.ser.BeanPropertyWriter wrapped,
QName wrapperName,
QName wrappedName,
org.codehaus.jackson.map.JsonSerializer<Object> serializer)
withSerializer
public org.codehaus.jackson.map.ser.BeanPropertyWriter withSerializer(org.codehaus.jackson.map.JsonSerializer<Object> ser)
- Overrides:
withSerializer
in class org.codehaus.jackson.map.ser.BeanPropertyWriter
serializeAsField
public void serializeAsField(Object bean,
org.codehaus.jackson.JsonGenerator jgen,
org.codehaus.jackson.map.SerializerProvider prov)
throws Exception
- Overridden version so that we can wrap output within wrapper element if
and as necessary.
- Overrides:
serializeAsField
in class org.codehaus.jackson.map.ser.BeanPropertyWriter
- Throws:
Exception
Copyright © 2011 fasterxml.com. All Rights Reserved.