com.thoughtworks.xstream.annotations
Annotation Type XStreamConverter
@Retention(value=RUNTIME)
@Target(value={TYPE,FIELD})
@Documented
public @interface XStreamConverter
Annotation to declare a converter. The annotation supports additionally the injection of
various constructor arguments provided by XStream:
Mapper: The current mapper chain of the XStream
instance.
ClassLoader: The class loader used by the XStream instance to deserialize the
objects.
ReflectionProvider: The reflection
provider used by the reflection based converters of the current XStream instance.
ConverterLookup: The lookup for converters
handling a special type.
JVM: Utility e.g. to load classes.
- All elements provided with the individual arrays of this annotation.
Class: The type of the element where the annotation is declared. Note, that this
argument is not supported when using
XStreamConverters.
Note, the annotation matches a ConverterMatcher.
ConverterMatcher as well as
SingleValueConverter extend this interface. The
AnnotationMapper can only handle these two
known types.
- Author:
- Chung-Onn Cheong, Jörg Schaible
value
public abstract Class<? extends ConverterMatcher> value
priority
public abstract int priority
- Default:
- 0
types
public abstract Class<?>[] types
- Default:
- {}
strings
public abstract String[] strings
- Default:
- {}
bytes
public abstract byte[] bytes
- Default:
- {}
chars
public abstract char[] chars
- Default:
- {}
shorts
public abstract short[] shorts
- Default:
- {}
ints
public abstract int[] ints
- Default:
- {}
longs
public abstract long[] longs
- Default:
- {}
floats
public abstract float[] floats
- Default:
- {}
doubles
public abstract double[] doubles
- Default:
- {}
booleans
public abstract boolean[] booleans
- Default:
- {}
Copyright © 2012. All Rights Reserved.