另一个例子
@XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ArrayOfTGMCOME_PURCHASEPLANINFO", propOrder = { "tgmcomepurchaseplaninfo" }) public class ArrayOfTGMCOMEPURCHASEPLANINFO { @XmlElement(name = "TGMCOME_PURCHASEPLANINFO", nillable = true) protected List<TGMCOMEPURCHASEPLANINFO> tgmcomepurchaseplaninfo; /** * Gets the value of the tgmcomepurchaseplaninfo property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the tgmcomepurchaseplaninfo property. * * <p> * For example, to add a new item, do as follows: * <pre> * getTGMCOMEPURCHASEPLANINFO().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link TGMCOMEPURCHASEPLANINFO } * * */ public List<TGMCOMEPURCHASEPLANINFO> getTGMCOMEPURCHASEPLANINFO() { if (tgmcomepurchaseplaninfo == null) { tgmcomepurchaseplaninfo = new ArrayList<TGMCOMEPURCHASEPLANINFO>(); } return this.tgmcomepurchaseplaninfo; } }