XmlSerializationContext class
Manages ObjectSerializer instances during XML serialization.
- Implemented types
Constructors
-
XmlSerializationContext(ObjectMapper _objectMapper, Map<
Class, ObjectSerializer< _serializers)dynamic, Generator, SerializationContext< >Generator> >
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
findSerializerForType(
Class type) → ObjectSerializer< dynamic, Generator, SerializationContext< ?Generator> > -
Finds and returns a ObjectSerializer suitable for the given
type.override -
getConversionService(
) → ConversionService -
Returns the global
ConversionServiceresponsible for type coercions and primitive value conversions.override -
getEnvironment(
) → Environment -
Returns the active
Environmentconfiguration associated with this mapper.override -
getNamingStrategy(
) → NamingStrategy -
Returns the naming strategy used for field name conversion.
override
-
getObjectMapper(
) → ObjectMapper -
Returns the active ObjectMapper performing serialization.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
serialize(
Object? object, XmlGenerator generator) → void -
Serializes the given
objectusing a registered or default serializer.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited