public enum XmlAccessType extends Enum<XmlAccessType>
XmlAccessorType
Enum Constant and Description |
---|
FIELD
每一个非静态的,在JAXB绑定类的域将自动绑定到XML,除非注明的
XmlTransient 。
|
NONE
该字段或属性是没有绑定到XML除非特别注明了JAXB注释。
|
PROPERTY
在JAXB绑定类的每一个getter和setter对将被自动绑定到XML,除非注明的
XmlTransient 。
|
PUBLIC_MEMBER
每一个公共的getter和setter对每一个公共字段将自动绑定到XML,除非注明的
XmlTransient 。
|
Modifier and Type | Method and Description |
---|---|
static XmlAccessType |
valueOf(String name)
返回此类型具有指定名称的枚举常量。
|
static XmlAccessType[] |
values()
返回一个数组包含该枚举类型的常量,它们的顺序声明。
|
public static final XmlAccessType PROPERTY
XmlTransient
。字段绑定到XML只有当他们明确注明了JAXB注释。
public static final XmlAccessType FIELD
XmlTransient
。getter和setter对绑定到XML只有当他们明确注明了JAXB注释。
public static final XmlAccessType PUBLIC_MEMBER
XmlTransient
。领域或是私人的getter和setter对保护,或拖欠包只访问绑定到XML只有当他们明确注明由适当的JAXB注释。
public static final XmlAccessType NONE
public static XmlAccessType[] values()
对于(xmlaccesstype C:xmlaccesstype。values()) 系统,println(C);
public static XmlAccessType valueOf(String name)
name
-定要返回的枚举的名称。
IllegalArgumentException
-如果这个枚举类型,也没有固定的具有指定名称
NullPointerException
-如果参数为空
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.