public class MyObject {
private MyEnum myEnum;
...
}
<class name="MyObject">
<field name="myEnum" type="MyEnum"/>
</class>
so once I have this, the problem is that Castor doesn't give the XML type an
"xs:string" which is how the XSD specifies it. I've tried all sorts of
other ways, including adding:
<bind-xml type="string"/>
but nothing has worked, the only thing I've gotten to work is to add to
MyObject:
...
public String getMyEnumAsString() {
return myEnum.toString();
}
...
I'd imagine this is extremely simple, but so far digging through the docs
I've not found any examples of this.
Thanks in advance!