Top Description Fields Constructors Methods
tools.jackson.dataformat.xml.ser

public Class XmlBeanPropertyWriter

extends BeanPropertyWriter
Class Inheritance
Imports
javax.xml.namespace.QName, tools.jackson.core.JsonGenerator, tools.jackson.databind.*, tools.jackson.databind.ser.*, tools.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 tools.jackson.databind.ser.BeanPropertyWriter:
_accessor_cfgSerializationType_contextAnnotations_declaredType_dynamicSerializers_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
serializeAsProperty(Object bean, JsonGenerator g, SerializationContext ctxt)

Overrides tools.jackson.databind.ser.BeanPropertyWriter.serializeAsProperty.

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

Inherited from tools.jackson.databind.ser.BeanPropertyWriter:
_depositSchemaProperty_findAndAddDynamic_handleSelfReference_newassignNullSerializerassignSerializerassignTypeSerializerdepositSchemaPropertyfixAccessgetgetAnnotationgetContextAnnotationgetFullNamegetInternalSettinggetMembergetNamegetSerializationTypegetSerializedNamegetSerializergetTypegetTypeSerializergetViewsgetWrapperNamehasNullSerializerhasSerializerisUnwrappingremoveInternalSettingrenameserializeAsElementserializeAsOmittedElementserializeAsOmittedPropertysetInternalSettingsetNonTrivialBaseTypetoStringunwrappingWriterwillSuppressNullswouldConflictWithName

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

Constructor Detail

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

Method Detail

_qnameback to summary
private QName _qname(PropertyName n)
serializeAsPropertyback to summary
public void serializeAsProperty(Object bean, JsonGenerator g, SerializationContext ctxt) throws Exception

Overrides tools.jackson.databind.ser.BeanPropertyWriter.serializeAsProperty.

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

Annotations
@Override