Class XmlBeanPropertyWriter
- java.lang.Object
-
- com.fasterxml.jackson.databind.introspect.ConcreteBeanPropertyBase
-
- com.fasterxml.jackson.databind.ser.PropertyWriter
-
- com.fasterxml.jackson.databind.ser.BeanPropertyWriter
-
- com.fasterxml.jackson.dataformat.xml.ser.XmlBeanPropertyWriter
-
- All Implemented Interfaces:
BeanProperty
,Named
,java.io.Serializable
public class XmlBeanPropertyWriter extends BeanPropertyWriter
Property writer sub-class used for handling element wrapping needed for serializing collection (array, Collection; possibly Map) types.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.fasterxml.jackson.databind.BeanProperty
BeanProperty.Bogus, BeanProperty.Std
-
-
Field Summary
-
Fields inherited from class com.fasterxml.jackson.databind.ser.BeanPropertyWriter
MARKER_FOR_EMPTY
-
Fields inherited from interface com.fasterxml.jackson.databind.BeanProperty
EMPTY_FORMAT, EMPTY_INCLUDE
-
-
Constructor Summary
Constructors Constructor Description XmlBeanPropertyWriter(BeanPropertyWriter wrapped, PropertyName wrapperName, PropertyName wrappedName)
XmlBeanPropertyWriter(BeanPropertyWriter wrapped, PropertyName wrapperName, PropertyName wrappedName, JsonSerializer<java.lang.Object> serializer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
serializeAsField(java.lang.Object bean, JsonGenerator jgen, 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
assignNullSerializer, assignSerializer, assignTypeSerializer, depositSchemaProperty, depositSchemaProperty, fixAccess, get, getAnnotation, getContextAnnotation, getFullName, getGenericPropertyType, getInternalSetting, getMember, getName, getPropertyType, getRawSerializationType, getSerializationType, getSerializedName, getSerializer, getType, getTypeSerializer, getViews, getWrapperName, hasNullSerializer, hasSerializer, isUnwrapping, removeInternalSetting, rename, serializeAsElement, serializeAsOmittedField, serializeAsPlaceholder, setInternalSetting, setNonTrivialBaseType, toString, unwrappingWriter, willSuppressNulls, wouldConflictWithName
-
Methods inherited from class com.fasterxml.jackson.databind.ser.PropertyWriter
findAnnotation
-
Methods inherited from class com.fasterxml.jackson.databind.introspect.ConcreteBeanPropertyBase
findAliases, findFormatOverrides, findPropertyFormat, findPropertyInclusion, getMetadata, isRequired, isVirtual
-
-
-
-
Constructor Detail
-
XmlBeanPropertyWriter
public XmlBeanPropertyWriter(BeanPropertyWriter wrapped, PropertyName wrapperName, PropertyName wrappedName)
-
XmlBeanPropertyWriter
public XmlBeanPropertyWriter(BeanPropertyWriter wrapped, PropertyName wrapperName, PropertyName wrappedName, JsonSerializer<java.lang.Object> serializer)
-
-
Method Detail
-
serializeAsField
public void serializeAsField(java.lang.Object bean, JsonGenerator jgen, SerializerProvider prov) throws java.lang.Exception
Overridden version so that we can wrap output within wrapper element if and as necessary.- Overrides:
serializeAsField
in classBeanPropertyWriter
- Throws:
java.lang.Exception
-
-