/** * 版权声明:中图一购网络科技有限公司 版权所有 违者必究 2012 * 日 期:12-5-14 */ package com.rop.sample.response; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlRootElement; /** * @author 陈雄华 * @version 1.0 */ @XmlAccessorType(XmlAccessType.FIELD) @XmlRootElement(name = "foo1") public class Foo { @XmlAttribute private String field1 = "1"; @XmlAttribute private String field2 = "2"; public Foo() { } public Foo(String field1, String field2) { this.field1 = field1; this.field2 = field2; } public String getField1() { return field1; } public void setField1(String field1) { this.field1 = field1; } public String getField2() { return field2; } public void setField2(String field2) { this.field2 = field2; } }