[英]Equivalent class for marshal/unmarshal of this xml file
What is the equivalent class to marshal/unmarshal this xml file in java?在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;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.