Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Not A Bug
-
3.2.4
-
None
-
Unknown
Description
We are getting scema validation error ( Unmarshalling exception )for type CustomInteger when value its empty or null.
XSD:
<xsd:element name="CustomInteger" minOccurs="0" maxOccurs="unbounded" nillable="true">
<xsd:complexType>
<xsd:annotation>
<xsd:documentation>"URN" is the name of a flex field that can be imported or exported.</xsd:documentation>
</xsd:annotation>
<xsd:simpleContent>
<xsd:extension base="xsd:integer">
<xsd:attribute name="name" type="xsd:string"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
Generated binding class (JAXB):
public static class CustomInteger
{ @XmlValue protected BigInteger value; @XmlAttribute(name = "name") protected String name; /** * Gets the value of the value property. * * @return * possible object is * \{@link BigInteger }*/
{ return value; }
public BigInteger getValue()
/**
- Sets the value of the value property.
- @param value
- allowed object is
- {@link BigInteger }
*/
{ this.value = value; }
public void setValue(BigInteger value)
/**
- Gets the value of the name property.
- @return
- possible object is
- {@link String }
*/
{ return name; }
public String getName()}