構成をJavaオブジェクトJAXBにマッピングするために使用します。XMLこの構成は から編集できますUI。そのため、UI に転送したり、その逆を行ったりすることができます。私は間違いなくjsonJava オブジェクトにアンマーシャリングする必要があります。したがって、 のセッター メソッドが必要ですList。
JAXBを使用してPOJOクラスのListプロパティのsetterメソッドを生成する方法は?
セキュリティ上の理由から、List オブジェクトのセッターは生成されません。
/**
* Gets the value of the dateIntervals 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 dateIntervals property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getDateIntervals().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link DateInterval }
*
*
*/