public static class OrderDetails {
@XmlElement(name = "InitiatorRole", required = true)
protected String initiatorRole;
@XmlElement(name = "OriginatorId", required = true)
protected String originatorId;
public String getInitiatorRole() {
return initiatorRole;
}
public void setInitiatorRole(String value) {
this.initiatorRole = value;
}
public String getOriginatorId() {
return originatorId;
}
public void setOriginatorId(String value) {
this.originatorId = value;
}
}
现在我想从这个类中打印xmlelement名称 InitiatorRole ORIGINATORID 该怎么做..?