| java.lang.Object com.thoughtworks.xstream.annotations.Annotations
Annotations | public class Annotations (Code) | | 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.
author: Emil Kirschner author: Chung-Onn Cheong author: Guilherme Silveira author: Jörg SchaibleXStream.processAnnotations(Class[]) |
Method Summary | |
public static synchronized void | configureAliases(XStream xstream, Class>... topLevelClasses) Configures aliases on the specified XStream object based on annotations that decorate the
specified class. |
configureAliases | public static synchronized void configureAliases(XStream xstream, Class>... topLevelClasses)(Code) | | 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: topLevelClasses - the class for which the XStream object is configured. This classis expected to be decorated with annotations defined in this package. Parameters: xstream - the XStream object that will be configuredXStream.processAnnotations(Class[]) |
|
|