使用JAXB 2.1生成Java代碼的.xsd JAXB2-基礎插件可比 用於 希望有產生Fragment類來實現Comparable<Fragment> public class Fragment implements Serializable, Comparable<Fragment> {
...
public int compareTo(Fragment other) {
我在將xjb繼承綁定應用於simpleType時遇到了一些麻煩。將它應用到complexType似乎工作正常。 我得到的錯誤是: compiler was unable to honor this implements customization. It is attached to a wrong place, or its inconsistent with other bindings.