public class LambdaConverter extends SerializableConverter
null
.AbstractReflectionConverter.DuplicateFieldException, AbstractReflectionConverter.UnknownFieldException
mapper, reflectionProvider, serializationMembers, serializationMethodInvoker
Constructor and Description |
---|
LambdaConverter(Mapper mapper,
ReflectionProvider reflectionProvider,
ClassLoaderReference classLoaderReference)
Constructs a LambdaConverter.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canConvert(java.lang.Class type)
Determines whether the converter can marshall a particular type.
|
void |
marshal(java.lang.Object original,
HierarchicalStreamWriter writer,
MarshallingContext context)
Convert an object to textual data.
|
doMarshal, doMarshalConditionally, doUnmarshal, doUnmarshalConditionally, hierarchyFor, marshalUnserializableParent
canAccess, flushCache, instantiateNewInstance, marshallField, readResolve, shouldUnmarshalField, shouldUnmarshalTransientFields, unmarshal, unmarshallField
public LambdaConverter(Mapper mapper, ReflectionProvider reflectionProvider, ClassLoaderReference classLoaderReference)
mapper
- reflectionProvider
- classLoaderReference
- public boolean canConvert(java.lang.Class type)
ConverterMatcher
canConvert
in interface ConverterMatcher
canConvert
in class SerializableConverter
type
- the Class representing the object type to be convertedpublic void marshal(java.lang.Object original, HierarchicalStreamWriter writer, MarshallingContext context)
Converter
marshal
in interface Converter
marshal
in class AbstractReflectionConverter
original
- The object to be marshalled.writer
- A stream to write to.context
- A context that allows nested objects to be processed by XStream.Copyright © 2004–2022 XStream. All rights reserved.