Package | Description |
---|---|
com.thoughtworks.xstream | |
com.thoughtworks.xstream.alias | |
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.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)
Constructs an XStream with a special
HierarchicalStreamDriver and ReflectionProvider and additionally with a prepared Mapper
and the ClassLoader in use. |
XStream(ReflectionProvider reflectionProvider,
HierarchicalStreamDriver driver,
java.lang.ClassLoader classLoader,
Mapper mapper,
ConverterLookup converterLookup,
ConverterRegistry converterRegistry)
Constructs an XStream with a special
HierarchicalStreamDriver , ReflectionProvider , a prepared Mapper
and the ClassLoader in use and an own ConverterRegistry . |
XStream(ReflectionProvider reflectionProvider,
Mapper mapper,
HierarchicalStreamDriver driver)
Deprecated.
since 1.3, use
#XStream(ReflectionProvider, HierarchicalStreamDriver, Mapper, ClassLoader) instead |
Modifier and Type | Interface and Description |
---|---|
interface |
ClassMapper
Deprecated.
As of 1.2, use
Mapper |
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) |
MapConverter(Mapper mapper) |
TreeMapConverter(Mapper mapper) |
TreeSetConverter(Mapper mapper) |
Constructor and Description |
---|
EnumMapConverter(Mapper mapper) |
EnumSetConverter(Mapper mapper) |
Constructor and Description |
---|
DynamicProxyConverter(Mapper mapper) |
DynamicProxyConverter(Mapper mapper,
java.lang.ClassLoader classLoader) |
LookAndFeelConverter(Mapper mapper,
ReflectionProvider reflectionProvider)
Constructs a LookAndFeelConverter.
|
SubjectConverter(Mapper mapper) |
Constructor and Description |
---|
JavaBeanConverter(Mapper mapper) |
JavaBeanConverter(Mapper mapper,
BeanProvider beanProvider) |
JavaBeanConverter(Mapper mapper,
java.lang.String classAttributeIdentifier)
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
protected Mapper |
AbstractReflectionConverter.mapper |
Constructor and Description |
---|
AbstractReflectionConverter(Mapper mapper,
ReflectionProvider reflectionProvider) |
CGLIBEnhancedConverter(Mapper mapper,
ReflectionProvider reflectionProvider) |
ExternalizableConverter(Mapper mapper) |
ReflectionConverter(Mapper mapper,
ReflectionProvider reflectionProvider) |
SerializableConverter(Mapper mapper,
ReflectionProvider reflectionProvider) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractAttributeAliasingMapper
Abstract base class for AttributeAliassingMapper and its system version.
|
class |
AbstractXmlFriendlyMapper
Mapper that ensures that all names in the serialization stream are XML friendly.
|
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 |
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, or omitted
entirely.
|
class |
ImmutableTypesMapper
Mapper that specifies which types are basic immutable types.
|
class |
ImplicitCollectionMapper |
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 |
SystemAttributeAliasingMapper
Mapper that allows aliasing of system attribute names.
|
class |
XmlFriendlyMapper
Deprecated.
since 1.3, use
XmlFriendlyReader |
class |
XStream11XmlFriendlyMapper
Mapper that ensures that all names in the serialization stream are read in an XML friendly way.
|
Modifier and Type | Method and Description |
---|---|
Mapper |
MapperWrapper.lookupMapperOfType(java.lang.Class type) |
Mapper |
Mapper.lookupMapperOfType(java.lang.Class type) |
Mapper |
DefaultMapper.lookupMapperOfType(java.lang.Class type) |
Modifier and Type | Method and Description |
---|---|
protected Mapper |
AbstractFilePersistenceStrategy.getMapper() |
Copyright © 2004-2012 XStream. All Rights Reserved.