Top Description Constructors Methods
com.thoughtworks.xstream.annotations

public Class Annotations

extends Object
Class Inheritance
Annotations
@Deprecated
Imports
com.thoughtworks.xstream.XStream

Deprecated

As of 1.3, use XStream#processAnnotations(Class[])

Contains utility methods that enable to configure an XStream instance with class and field aliases, based on a class decorated with annotations defined in this package.
Authors
Emil Kirschner, Chung-Onn Cheong, Guilherme Silveira, Jörg Schaible

Constructor Summary

AccessConstructor and Description
private
Annotations()

This class is not instantiable

Method Summary

Modifier and TypeMethod and Description
public static synchronized void
configureAliases(XStream
the XStream object that will be configured
xstream
,
Class<?>...
the class for which the XStream object is configured. This class is expected to be decorated with annotations defined in this package.
topLevelClasses
)

Deprecated As of 1.3, use XStream#processAnnotations(Class[])
Configures aliases on the specified XStream object based on annotations that decorate the specified class.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Annotationsback to summary
private Annotations()

This class is not instantiable

Method Detail

configureAliasesback to summary
public static synchronized void configureAliases(XStream xstream, Class<?>... topLevelClasses)

Deprecated

As of 1.3, use XStream#processAnnotations(Class[])

Configures aliases on the specified XStream object based on annotations that decorate the specified class. It will recursively invoke itself. If a field is parameterized, a recursive call for each of its parameters type will be made.

Parameters
xstream:XStream

the XStream object that will be configured

topLevelClasses:Class<?>[]

the class for which the XStream object is configured. This class is expected to be decorated with annotations defined in this package.

Annotations
@Deprecated