我需要从XSD在GWT中生成JavaScriptObject类,例如:
class SomeClassFromXSD extends JavaScriptObject {
protected SomeClassFromXSD() { }
public static SomeClassFromXSD create() {
return (SomeClassFromXSD)createObject();
}
............................................
public final native void setFiled1(String value) /*-{
this.Field1 = value;
}-*/
public final native String getFiled1() /*-{
return this.Field1;
}-*/
............................................
}
如何使用JAXB生成此类?或者也许是另一种方法?