此 xml 文件的 marshal/unmarshal 的等价物 class
Equivalent class for marshal/unmarshal of this xml file
class 与 marshal/unmarshal 在 java 中的 xml 文件等价的是什么?
<display-type>
<value default="true">Document</value>
<value>GenericNode:144</value>
</display-type>
@XmlRootElement(name = DisplayType.DISPLAY_TYPE)
@XmlAccessorType(XmlAccessType.NONE)
public class DisplayType {
static final String DISPLAY_TYPE = "display-type";
private static final String DEFAULT = "default";
@XmlAttribute(name = DEFAULT)
private Boolean defaultName;
@XmlValue
private String name;
}
class 与 marshal/unmarshal 在 java 中的 xml 文件等价的是什么?
<display-type>
<value default="true">Document</value>
<value>GenericNode:144</value>
</display-type>
@XmlRootElement(name = DisplayType.DISPLAY_TYPE)
@XmlAccessorType(XmlAccessType.NONE)
public class DisplayType {
static final String DISPLAY_TYPE = "display-type";
private static final String DEFAULT = "default";
@XmlAttribute(name = DEFAULT)
private Boolean defaultName;
@XmlValue
private String name;
}