|
Re: XSD implementation advice: <xs:choice> [message #760623 is a reply to message #760508] |
Sat, 03 December 2011 16:32 |
Roded Bahat Messages: 152 Registered: August 2011 |
Senior Member |
|
|
As the Sample's IOccupation, this worked for me:
// *** Value ***
@Label(standard = "Value")
@Type (
base = IValue.class,
possible = {
IXSDValueType1.class,
IXSDValueType2.class
}
)
@XmlElementBinding (
mappings = {
@XmlElementBinding.Mapping( element = "valuetype1tag", type = IXSDValueType1.class,),
@XmlElementBinding.Mapping( element = "valuetype2tag", type = IXSDValueType2.class)
}
)
ElementProperty PROP_VALUE = new ElementProperty(TYPE, "Value");
ModelElementHandle<IValue> getValue();
[Updated on: Sat, 03 December 2011 16:32] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04248 seconds