Top Description Fields Constructors Methods
com.fasterxml.jackson.dataformat.xml.ser

public Class XmlBeanPropertyWriter

extends BeanPropertyWriter
Class Inheritance
Imports
javax.xml.namespace.QName, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.*, com.fasterxml.jackson.databind.ser.*, com.fasterxml.jackson.databind.ser.impl.PropertySerializerMap

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

Field Summary

Modifier and TypeField and Description
protected final QName
_wrappedQName

Element name used for items in the collection

protected final QName
_wrapperQName

Element name used as wrapper for collection.

private static final long
Inherited from com.fasterxml.jackson.databind.ser.BeanPropertyWriter:
_accessorMethod_cfgSerializationType_contextAnnotations_declaredType_dynamicSerializers_field_includeInViews_internalSettings_member_name_nonTrivialBaseType_nullSerializer_serializer_suppressableValue_suppressNulls_typeSerializer_wrapperNameMARKER_FOR_EMPTY

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
private QName
public void
serializeAsField(Object bean, JsonGenerator jgen, SerializerProvider prov)

Overrides com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField.

Overridden version so that we can wrap output within wrapper element if and as necessary.

Inherited from com.fasterxml.jackson.databind.ser.BeanPropertyWriter:
_depositSchemaProperty_findAndAddDynamic_handleSelfReference_newassignNullSerializerassignSerializerassignTypeSerializerdepositSchemaPropertydepositSchemaPropertyfixAccessgetgetAnnotationgetContextAnnotationgetFullNamegetGenericPropertyTypegetInternalSettinggetMembergetNamegetPropertyTypegetRawSerializationTypegetSerializationTypegetSerializedNamegetSerializergetTypegetTypeSerializergetViewsgetWrapperNamehasNullSerializerhasSerializerisUnwrappingremoveInternalSettingrenameserializeAsElementserializeAsOmittedFieldserializeAsPlaceholdersetInternalSettingsetNonTrivialBaseTypetoStringunwrappingWriterwillSuppressNullswouldConflictWithName

Field Detail

_wrappedQNameback to summary
protected final QName _wrappedQName

Element name used for items in the collection

_wrapperQNameback to summary
protected final QName _wrapperQName

Element name used as wrapper for collection.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serialVersionUID.

Constructor Detail

XmlBeanPropertyWriterback to summary
public XmlBeanPropertyWriter(BeanPropertyWriter wrapped, PropertyName wrapperName, PropertyName wrappedName)
XmlBeanPropertyWriterback to summary
public XmlBeanPropertyWriter(BeanPropertyWriter wrapped, PropertyName wrapperName, PropertyName wrappedName, JsonSerializer<Object> serializer)

Method Detail

_qnameback to summary
private QName _qname(PropertyName n)
serializeAsFieldback to summary
public void serializeAsField(Object bean, JsonGenerator jgen, SerializerProvider prov) throws Exception

Overrides com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField.

Overridden version so that we can wrap output within wrapper element if and as necessary.

Annotations
@Override