You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I call getXsdComplexType() on the XsdElement for "id" in the fooType, then we encounter an ClassCastException because the underlaying type is a XsdSimpleType. I had expected the getXsdComplexType() method to return null.
java.lang.ClassCastException: org.xmlet.xsdparser.xsdelements.XsdSimpleType cannot be cast to org.xmlet.xsdparser.xsdelements.XsdComplexType at org.xmlet.xsdparser.xsdelements.XsdElement.getXsdType(XsdElement.java:297) at org.xmlet.xsdparser.xsdelements.XsdElement.getXsdComplexType(XsdElement.java:288) at nl.svb.sem.correspondentiemanager.xsd.model.XsdStructure.findComplexForElement(XsdStructure.java:76)
The text was updated successfully, but these errors were encountered:
Hi,
We have the following XSD:
<xsd:complexType name="fooType"> <xsd:sequence> <xsd:element name="id" type="FooIDType"/> </xsd:sequence> </xsd:complexType>
<xsd:simpleType name="FooIDType"> <xsd:restriction base="xsd:string"> <xsd:pattern value="(XX|YY|ZZ):[a-zA-Z0-9]{4,10}"/> </xsd:restriction> </xsd:simpleType>
When I call getXsdComplexType() on the XsdElement for "id" in the fooType, then we encounter an ClassCastException because the underlaying type is a XsdSimpleType. I had expected the getXsdComplexType() method to return null.
java.lang.ClassCastException: org.xmlet.xsdparser.xsdelements.XsdSimpleType cannot be cast to org.xmlet.xsdparser.xsdelements.XsdComplexType at org.xmlet.xsdparser.xsdelements.XsdElement.getXsdType(XsdElement.java:297) at org.xmlet.xsdparser.xsdelements.XsdElement.getXsdComplexType(XsdElement.java:288) at nl.svb.sem.correspondentiemanager.xsd.model.XsdStructure.findComplexForElement(XsdStructure.java:76)
The text was updated successfully, but these errors were encountered: