Top Description Fields Constructors Methods
jakarta.xml.bind.annotation

public final Enum XmlAccessType

extends Enum<XmlAccessType>
Class Inheritance

Used by XmlAccessorType to control serialization of fields or properties.
Author
Sekhar Vajjhala, Sun Microsystems, Inc.
Since
1.6, JAXB 2.0
See Also
XmlAccessorType

Field Summary

Modifier and TypeField and Description
public static final XmlAccessType
FIELD

Every non static, non transient field in a Jakarta XML Binding-bound class will be automatically bound to XML, unless annotated by XmlTransient.

public static final XmlAccessType
NONE

None of the fields or properties is bound to XML unless they are specifically annotated with some of the Jakarta XML Binding annotations.

public static final XmlAccessType
PROPERTY

Every getter/setter pair in a Jakarta XML Binding-bound class will be automatically bound to XML, unless annotated by XmlTransient.

public static final XmlAccessType
PUBLIC_MEMBER

Every public getter/setter pair and every public field will be automatically bound to XML, unless annotated by XmlTransient.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static XmlAccessType
public static XmlAccessType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

FIELDback to summary
public static final XmlAccessType FIELD

Every non static, non transient field in a Jakarta XML Binding-bound class will be automatically bound to XML, unless annotated by XmlTransient. Getter/setter pairs are bound to XML only when they are explicitly annotated by some of the Jakarta XML Binding annotations.

NONEback to summary
public static final XmlAccessType NONE

None of the fields or properties is bound to XML unless they are specifically annotated with some of the Jakarta XML Binding annotations.

PROPERTYback to summary
public static final XmlAccessType PROPERTY

Every getter/setter pair in a Jakarta XML Binding-bound class will be automatically bound to XML, unless annotated by XmlTransient. Fields are bound to XML only when they are explicitly annotated by some of the Jakarta XML Binding annotations.

PUBLIC_MEMBERback to summary
public static final XmlAccessType PUBLIC_MEMBER

Every public getter/setter pair and every public field will be automatically bound to XML, unless annotated by XmlTransient. Fields or getter/setter pairs that are private, protected, or defaulted to package-only access are bound to XML only when they are explicitly annotated by the appropriate Jakarta XML Binding annotations.

Constructor Detail

XmlAccessTypeback to summary
private XmlAccessType()

Method Detail

valueOfback to summary
public static XmlAccessType valueOf(String name)
valuesback to summary
public static XmlAccessType[] values()