01: /*
02: * Copyright (C) 2005 Joe Walnes.
03: * Copyright (C) 2006, 2007 XStream Committers.
04: * All rights reserved.
05: *
06: * The software in this package is published under the terms of the BSD
07: * style license a copy of which has been included with this distribution in
08: * the LICENSE.txt file.
09: *
10: * Created on 11. August 2005 by Mauro Talevi
11: */
12: package com.thoughtworks.xstream.annotations;
13:
14: import java.lang.annotation.ElementType;
15: import java.lang.annotation.Retention;
16: import java.lang.annotation.RetentionPolicy;
17: import java.lang.annotation.Target;
18:
19: /**
20: * Annotation used to define an XStream class or field value.
21: *
22: * @author Emil Kirschner
23: * @author Chung-Onn Cheong
24: */
25: @Retention(RetentionPolicy.RUNTIME)
26: @Target({ElementType.TYPE,ElementType.FIELD})
27: public @interface XStreamAlias {
28: /**
29: * The value of the class or field value
30: */
31: public String value();
32:
33: public Class<?> impl() default Void.class; //Use Void to denote as Null
34: }
|