01: /*
02: * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
03: * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
04: */
05:
06: package javax.xml.bind.annotation;
07:
08: /**
09: * Used by XmlAccessorType to control serialization of fields or
10: * properties.
11: *
12: * @author Sekhar Vajjhala, Sun Microsystems, Inc.
13: * @since JAXB2.0
14: * @version $Revision: 1.1 $
15: * @see XmlAccessorType
16: */
17:
18: public enum XmlAccessType {
19: /**
20: * Every getter/setter pair in a JAXB-bound class will be automatically
21: * bound to XML, unless annotated by {@link XmlTransient}.
22: *
23: * Fields are bound to XML only when they are explicitly annotated
24: * by some of the JAXB annotations.
25: */
26: PROPERTY,
27: /**
28: * Every non static, non transient field in a JAXB-bound class will be automatically
29: * bound to XML, unless annotated by {@link XmlTransient}.
30: *
31: * Getter/setter pairs are bound to XML only when they are explicitly annotated
32: * by some of the JAXB annotations.
33: */
34: FIELD,
35: /**
36: * Every public getter/setter pair and every public field will be
37: * automatically bound to XML, unless annotated by {@link XmlTransient}.
38: *
39: * Fields or getter/setter pairs that are private, protected, or
40: * defaulted to package-only access are bound to XML only when they are
41: * explicitly annotated by the appropriate JAXB annotations.
42: */
43: PUBLIC_MEMBER,
44: /**
45: * None of the fields or properties is bound to XML unless they
46: * are specifically annotated with some of the JAXB annotations.
47: */
48: NONE
49: }
|