I am having problems getting Castor to Marshal and UnMarshal Interface
types, I am asking suggestions on how to approach the following
situation.
Interface:
public interface Changeable{
...
}
Classes:
public class Address implements Changeable{
...
}
public class Name implements Changeable{
...
}
public class Wrapper{
private Changeable originalValue;
private Changeable changedValue;
...
getters and setters
...
}
Desired XSD Schema (Not stuck on this though):
<xsd:element name="Wrapper" type="WrapperType"/>
<xsd:complexType name="WrapperType>
<xsd:sequence>
<xsd:element name="OriginalValue" type="ChangeableType"/>
<xsd:element name="ChangedValue" type="ChangeableType"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="ChangeableType" abstract="true"/>
<xsd:complexType name="AddressType">
<xsd:complexContent>
<xsd:extension base="ChangeableType">
...
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="NameType">
<xsd:complexContent>
<xsd:extension base="ChangeableType">
...
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
Thank you!
This e-mail and any files transmitted with it are for the sole use of Blue
Slate Solutions
and the intended recipient(s) and may contain confidential and privileged
information.
If you are not the intended recipient, please contact the sender by reply
e-mail and
destroy all copies of the original message. Any unauthorized review, use,
disclosure,
dissemination, forwarding, printing or copying of this email or any action
taken in
reliance on this e-mail is strictly prohibited and may be unlawful.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email