|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.fasterxml.jackson.databind.ser.BeanPropertyWriter com.fasterxml.jackson.dataformat.xml.ser.XmlBeanPropertyWriter
public class XmlBeanPropertyWriter
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 |
---|
protected final QName _wrapperName
protected final QName _wrappedName
Constructor Detail |
---|
public XmlBeanPropertyWriter(com.fasterxml.jackson.databind.ser.BeanPropertyWriter wrapped, com.fasterxml.jackson.databind.PropertyName wrapperName, com.fasterxml.jackson.databind.PropertyName wrappedName)
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 |
---|
public void serializeAsField(Object bean, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider prov) throws Exception
serializeAsField
in class com.fasterxml.jackson.databind.ser.BeanPropertyWriter
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |