Package | Description |
---|---|
com.thoughtworks.xstream | |
com.thoughtworks.xstream.annotations | |
com.thoughtworks.xstream.converters.collections |
Converters for collection objects that write their items as
nested elements, such as arrays, Lists, Sets and Maps.
|
com.thoughtworks.xstream.converters.enums | |
com.thoughtworks.xstream.converters.extended |
Extra converters that may not be enabled in XStream by default.
|
com.thoughtworks.xstream.converters.javabean | |
com.thoughtworks.xstream.converters.reflection | |
com.thoughtworks.xstream.converters.time |
Extra converters for the java.time package.
|
com.thoughtworks.xstream.core | |
com.thoughtworks.xstream.mapper | |
com.thoughtworks.xstream.persistence |
Modifier and Type | Method and Description |
---|---|
Mapper |
XStream.getMapper()
Retrieve the
Mapper . |
Modifier and Type | Method and Description |
---|---|
void |
MarshallingStrategy.marshal(HierarchicalStreamWriter writer,
java.lang.Object obj,
ConverterLookup converterLookup,
Mapper mapper,
DataHolder dataHolder) |
java.lang.Object |
MarshallingStrategy.unmarshal(java.lang.Object root,
HierarchicalStreamReader reader,
DataHolder dataHolder,
ConverterLookup converterLookup,
Mapper mapper) |
Constructor and Description |
---|
XStream(ReflectionProvider reflectionProvider,
HierarchicalStreamDriver driver,
java.lang.ClassLoader classLoader,
Mapper mapper)
Deprecated.
|
XStream(ReflectionProvider reflectionProvider,
HierarchicalStreamDriver driver,
java.lang.ClassLoader classLoader,
Mapper mapper,
ConverterLookup converterLookup,
ConverterRegistry converterRegistry)
|
XStream(ReflectionProvider reflectionProvider,
HierarchicalStreamDriver driver,
ClassLoaderReference classLoaderReference,
Mapper mapper)
Constructs an XStream with a special
HierarchicalStreamDriver , ReflectionProvider , a prepared
Mapper chain and the ClassLoaderReference . |
XStream(ReflectionProvider reflectionProvider,
HierarchicalStreamDriver driver,
ClassLoaderReference classLoaderReference,
Mapper mapper,
ConverterLookup converterLookup,
ConverterRegistry converterRegistry)
Constructs an XStream with a special
HierarchicalStreamDriver , ReflectionProvider , a prepared
Mapper chain, the ClassLoaderReference and an own ConverterLookup and
ConverterRegistry . |
XStream(ReflectionProvider reflectionProvider,
Mapper mapper,
HierarchicalStreamDriver driver)
Deprecated.
As of 1.3, use
XStream(ReflectionProvider, HierarchicalStreamDriver, ClassLoader, Mapper)
instead |
Constructor and Description |
---|
AnnotationReflectionConverter(Mapper mapper,
ReflectionProvider reflectionProvider,
AnnotationProvider annotationProvider)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected Mapper |
AbstractCollectionConverter.mapper() |
Constructor and Description |
---|
AbstractCollectionConverter(Mapper mapper) |
ArrayConverter(Mapper mapper) |
CollectionConverter(Mapper mapper) |
CollectionConverter(Mapper mapper,
java.lang.Class type)
Construct a CollectionConverter for a special Collection type.
|
MapConverter(Mapper mapper) |
MapConverter(Mapper mapper,
java.lang.Class type)
Construct a MapConverter for a special Map type.
|
SingletonCollectionConverter(Mapper mapper)
Construct a SingletonCollectionConverter.
|
SingletonMapConverter(Mapper mapper)
Construct a SingletonMapConverter.
|
TreeMapConverter(Mapper mapper) |
TreeSetConverter(Mapper mapper) |
Constructor and Description |
---|
EnumMapConverter(Mapper mapper) |
EnumSetConverter(Mapper mapper) |
Constructor and Description |
---|
AtomicReferenceConverter(Mapper mapper) |
DynamicProxyConverter(Mapper mapper)
Deprecated.
As of 1.4.5 use
DynamicProxyConverter(Mapper, ClassLoaderReference) |
DynamicProxyConverter(Mapper mapper,
java.lang.ClassLoader classLoader)
Deprecated.
As of 1.4.5 use
DynamicProxyConverter(Mapper, ClassLoaderReference) |
DynamicProxyConverter(Mapper mapper,
ClassLoaderReference classLoaderReference)
Construct a DynamicProxyConverter.
|
FontConverter(Mapper mapper)
Constructs a FontConverter.
|
JavaClassConverter(Mapper mapper)
Construct a JavaClassConverter that uses a provided mapper.
|
JavaFieldConverter(SingleValueConverter javaClassConverter,
Mapper mapper)
Construct a JavaFieldConverter.
|
LookAndFeelConverter(Mapper mapper,
ReflectionProvider reflectionProvider)
Constructs a LookAndFeelConverter.
|
NamedArrayConverter(java.lang.Class arrayType,
Mapper mapper,
java.lang.String itemName)
Construct a NamedArrayConverter.
|
NamedCollectionConverter(java.lang.Class type,
Mapper mapper,
java.lang.String itemName,
java.lang.Class itemType)
Constructs a NamedCollectionConverter handling an explicit Collection type.
|
NamedCollectionConverter(Mapper mapper,
java.lang.String itemName,
java.lang.Class itemType)
Constructs a NamedCollectionConverter.
|
NamedMapConverter(java.lang.Class type,
Mapper mapper,
java.lang.String entryName,
java.lang.String keyName,
java.lang.Class keyType,
java.lang.String valueName,
java.lang.Class valueType)
Constructs a NamedMapConverter handling an explicit Map type.
|
NamedMapConverter(java.lang.Class type,
Mapper mapper,
java.lang.String entryName,
java.lang.String keyName,
java.lang.Class keyType,
java.lang.String valueName,
java.lang.Class valueType,
boolean keyAsAttribute,
boolean valueAsAttribute,
ConverterLookup lookup)
Constructs a NamedMapConverter with attribute support handling an explicit Map type.
|
NamedMapConverter(Mapper mapper,
java.lang.String entryName,
java.lang.String keyName,
java.lang.Class keyType,
java.lang.String valueName,
java.lang.Class valueType)
Constructs a NamedMapConverter.
|
NamedMapConverter(Mapper mapper,
java.lang.String entryName,
java.lang.String keyName,
java.lang.Class keyType,
java.lang.String valueName,
java.lang.Class valueType,
boolean keyAsAttribute,
boolean valueAsAttribute,
ConverterLookup lookup)
Constructs a NamedMapConverter with attribute support.
|
OptionalConverter(Mapper mapper) |
SubjectConverter(Mapper mapper) |
ToAttributedValueConverter(java.lang.Class type,
Mapper mapper,
ReflectionProvider reflectionProvider,
ConverterLookup lookup)
Creates a new ToAttributedValueConverter instance.
|
ToAttributedValueConverter(java.lang.Class type,
Mapper mapper,
ReflectionProvider reflectionProvider,
ConverterLookup lookup,
java.lang.String valueFieldName)
Creates a new ToAttributedValueConverter instance.
|
ToAttributedValueConverter(java.lang.Class type,
Mapper mapper,
ReflectionProvider reflectionProvider,
ConverterLookup lookup,
java.lang.String valueFieldName,
java.lang.Class valueDefinedIn)
Creates a new ToAttributedValueConverter instance.
|
Modifier and Type | Field and Description |
---|---|
protected Mapper |
JavaBeanConverter.mapper |
Constructor and Description |
---|
JavaBeanConverter(Mapper mapper) |
JavaBeanConverter(Mapper mapper,
java.lang.Class type) |
JavaBeanConverter(Mapper mapper,
JavaBeanProvider beanProvider) |
JavaBeanConverter(Mapper mapper,
JavaBeanProvider beanProvider,
java.lang.Class type) |
JavaBeanConverter(Mapper mapper,
java.lang.String classAttributeIdentifier)
Deprecated.
As of 1.3, use
JavaBeanConverter(Mapper) and XStream.aliasAttribute(String, String) |
Modifier and Type | Field and Description |
---|---|
protected Mapper |
AbstractReflectionConverter.mapper |
Constructor and Description |
---|
AbstractReflectionConverter(Mapper mapper,
ReflectionProvider reflectionProvider) |
CGLIBEnhancedConverter(Mapper mapper,
ReflectionProvider reflectionProvider)
Deprecated.
|
CGLIBEnhancedConverter(Mapper mapper,
ReflectionProvider reflectionProvider,
java.lang.ClassLoader classLoader)
Deprecated.
|
CGLIBEnhancedConverter(Mapper mapper,
ReflectionProvider reflectionProvider,
ClassLoaderReference classLoaderReference)
Construct a CGLIBEnhancedConverter.
|
ExternalizableConverter(Mapper mapper)
Deprecated.
As of 1.4 use
ExternalizableConverter(Mapper, ClassLoader) |
ExternalizableConverter(Mapper mapper,
java.lang.ClassLoader classLoader)
Deprecated.
As of 1.4.5 use
ExternalizableConverter(Mapper, ClassLoaderReference) |
ExternalizableConverter(Mapper mapper,
ClassLoaderReference classLoaderReference)
Construct an ExternalizableConverter.
|
LambdaConverter(Mapper mapper,
ReflectionProvider reflectionProvider,
ClassLoaderReference classLoaderReference)
Constructs a LambdaConverter.
|
ReflectionConverter(Mapper mapper,
ReflectionProvider reflectionProvider) |
ReflectionConverter(Mapper mapper,
ReflectionProvider reflectionProvider,
java.lang.Class type)
Construct a ReflectionConverter for an explicit type.
|
SerializableConverter(Mapper mapper,
ReflectionProvider reflectionProvider)
Deprecated.
|
SerializableConverter(Mapper mapper,
ReflectionProvider reflectionProvider,
java.lang.ClassLoader classLoader)
Deprecated.
|
SerializableConverter(Mapper mapper,
ReflectionProvider reflectionProvider,
ClassLoaderReference classLoaderReference)
Construct a SerializableConverter.
|
Constructor and Description |
---|
SystemClockConverter(Mapper mapper)
Constructs a SystemClockConverter instance.
|
ValueRangeConverter(Mapper mapper)
Constructs a ValueRangeConverter instance.
|
WeekFieldsConverter(Mapper mapper)
Constructs a WeekFieldsConverter instance.
|
Modifier and Type | Method and Description |
---|---|
protected Mapper |
TreeMarshaller.getMapper() |
protected Mapper |
TreeUnmarshaller.getMapper() |
Modifier and Type | Method and Description |
---|---|
protected TreeMarshaller |
TreeMarshallingStrategy.createMarshallingContext(HierarchicalStreamWriter writer,
ConverterLookup converterLookup,
Mapper mapper) |
protected TreeMarshaller |
ReferenceByXPathMarshallingStrategy.createMarshallingContext(HierarchicalStreamWriter writer,
ConverterLookup converterLookup,
Mapper mapper) |
protected abstract TreeMarshaller |
AbstractTreeMarshallingStrategy.createMarshallingContext(HierarchicalStreamWriter writer,
ConverterLookup converterLookup,
Mapper mapper) |
protected TreeMarshaller |
ReferenceByIdMarshallingStrategy.createMarshallingContext(HierarchicalStreamWriter writer,
ConverterLookup converterLookup,
Mapper mapper) |
protected TreeUnmarshaller |
TreeMarshallingStrategy.createUnmarshallingContext(java.lang.Object root,
HierarchicalStreamReader reader,
ConverterLookup converterLookup,
Mapper mapper) |
protected TreeUnmarshaller |
ReferenceByXPathMarshallingStrategy.createUnmarshallingContext(java.lang.Object root,
HierarchicalStreamReader reader,
ConverterLookup converterLookup,
Mapper mapper) |
protected abstract TreeUnmarshaller |
AbstractTreeMarshallingStrategy.createUnmarshallingContext(java.lang.Object root,
HierarchicalStreamReader reader,
ConverterLookup converterLookup,
Mapper mapper) |
protected TreeUnmarshaller |
ReferenceByIdMarshallingStrategy.createUnmarshallingContext(java.lang.Object root,
HierarchicalStreamReader reader,
ConverterLookup converterLookup,
Mapper mapper) |
void |
AbstractTreeMarshallingStrategy.marshal(HierarchicalStreamWriter writer,
java.lang.Object obj,
ConverterLookup converterLookup,
Mapper mapper,
DataHolder dataHolder) |
java.lang.Object |
AbstractTreeMarshallingStrategy.unmarshal(java.lang.Object root,
HierarchicalStreamReader reader,
DataHolder dataHolder,
ConverterLookup converterLookup,
Mapper mapper) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractAttributeAliasingMapper
Abstract base class for AttributeAliassingMapper and its system version.
|
class |
AbstractXmlFriendlyMapper
Deprecated.
As of 1.4 use
XmlFriendlyReader |
class |
AnnotationMapper
A mapper that uses annotations to prepare the remaining mappers in the chain.
|
class |
ArrayMapper
Mapper that detects arrays and changes the name so it can identified as an array
(for example Foo[] gets serialized as foo-array).
|
class |
AttributeAliasingMapper
Mapper that allows aliasing of attribute names.
|
class |
AttributeMapper
Mapper that allows the usage of attributes for fields and corresponding
types or specified arbitrary types.
|
class |
CachingMapper
Mapper that caches which names map to which classes.
|
class |
CGLIBMapper
Mapper that detects proxies generated by the CGLIB enhancer.
|
class |
ClassAliasingMapper
Mapper that allows a fully qualified class name to be replaced with an alias.
|
class |
DefaultImplementationsMapper
Mapper that resolves default implementations of classes.
|
class |
DefaultMapper
Default mapper implementation with 'vanilla' functionality.
|
class |
DynamicProxyMapper
Mapper for handling special cases of aliasing dynamic proxies.
|
class |
ElementIgnoringMapper
Mapper that allows an field of a specific class to be omitted entirely.
|
class |
EnumMapper
Mapper that handles the special case of polymorphic enums in Java 1.5.
|
class |
FieldAliasingMapper
Mapper that allows a field of a specific class to be replaced with a shorter alias.
|
class |
ImmutableTypesMapper
Mapper that specifies which types are basic immutable types.
|
class |
ImplicitCollectionMapper |
class |
LambdaMapper
Mapper to map serializable lambda types to the name of their functional interface and non-serializable ones to
Mapper.Null.
|
class |
LocalConversionMapper
A Mapper for locally defined converters for a member field.
|
class |
MapperWrapper |
class |
OuterClassMapper
Mapper that uses a more meaningful alias for the field in an inner class (this$0) that refers to the outer class.
|
class |
PackageAliasingMapper
Mapper that allows a package name to be replaced with an alias.
|
class |
SecurityMapper
A Mapper implementation injecting a security layer based on permission rules for any type required in the
unmarshalling process.
|
class |
SystemAttributeAliasingMapper
Mapper that allows aliasing of system attribute names.
|
class |
XmlFriendlyMapper
Deprecated.
As of 1.3 use
XmlFriendlyReader |
class |
XStream11XmlFriendlyMapper
Deprecated.
As of 1.4 use
XmlFriendlyReader |
Modifier and Type | Method and Description |
---|---|
Mapper |
DefaultMapper.lookupMapperOfType(java.lang.Class type) |
Mapper |
MapperWrapper.lookupMapperOfType(java.lang.Class type) |
Mapper |
Mapper.lookupMapperOfType(java.lang.Class type) |
Modifier and Type | Method and Description |
---|---|
protected Mapper |
AbstractFilePersistenceStrategy.getMapper() |
Copyright © 2004–2024 XStream. All rights reserved.