KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > xml > bind > annotation > XmlAccessType


1 /*
2  * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
3  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
4  */

5
6 package javax.xml.bind.annotation;
7
8
9
10 /**
11  * Used by XmlAccessorType to control serialization of fields or
12  * properties.
13  *
14  * @author Sekhar Vajjhala, Sun Microsystems, Inc.
15  * @since JAXB2.0
16  * @version $Revision: 1.10 $
17  * @see XmlAccessorType
18  */

19
20 public enum XmlAccessType {
21     /**
22      * Every getter/setter pair in a JAXB-bound class will be automatically
23      * bound to XML, unless annotated by {@link XmlTransient}.
24      *
25      * Fields are bound to XML only when they are explicitly annotated
26      * by some of the JAXB annotations.
27      */

28     PROPERTY,
29     /**
30      * Every non static, non transient field in a JAXB-bound class will be automatically
31      * bound to XML, unless annotated by {@link XmlTransient}.
32      *
33      * Getter/setter pairs are bound to XML only when they are explicitly annotated
34      * by some of the JAXB annotations.
35      */

36     FIELD,
37     /**
38      * Every public getter/setter pair and every public field will be
39      * automatically bound to XML, unless annotated by {@link XmlTransient}.
40      *
41      * Fields or getter/setter pairs that are private, protected, or
42      * defaulted to package-only access are bound to XML only when they are
43      * explicitly annotated by the appropriate JAXB annotations.
44      */

45     PUBLIC_MEMBER,
46     /**
47      * None of the fields or properties is bound to XML unless they
48      * are specifically annotated with some of the JAXB annotations.
49      */

50     NONE
51 }
52
53
Popular Tags