01: /*
02: * Copyright (C) 2006, 2007 XStream Committers.
03: * All rights reserved.
04: *
05: * The software in this package is published under the terms of the BSD
06: * style license a copy of which has been included with this distribution in
07: * the LICENSE.txt file.
08: *
09: * Created on 24. December 2006 by Guilherme Silveira
10: */
11: package com.thoughtworks.xstream.annotations;
12:
13: import java.lang.annotation.Documented;
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: * Defines that a field should be serialized as an attribute.
21: *
22: * @author Guilherme Silveira
23: * @since 1.2.2
24: */
25: @Retention(RetentionPolicy.RUNTIME)
26: @Target(ElementType.FIELD)
27: @Documented
28: public @interface XStreamAsAttribute {
29: }
|