1 Reply Latest reply: Oct 5, 2011 8:41 AM by jtahlborn RSS

    Cannot convert Boolean data type to boolean using xjc

    892576
      I am trying to customize the data type of attribute present in generated Java class. The generated method isPresent() return boolean type where as setPresent(Boolean )
      takes Boolean object. I am trying to convert the argument type of setPresent() method to primitive boolean type using xjb file. But, I could find that working out.
      Could you please help me out, whether it's possible to customize data in this scenario.


      <xsd:element name="employee">
      <xsd:complexType mixed="true">
      <xsd:choice minOccurs="0" maxOccurs="1">
      <xsd:element ref="empInfo" />
      </xsd:choice>
      <xsd:attribute name="present" type=xsd:boolean" default="false" />
      </xsd:complexType>
      </xsd:element>


      Thanks in Advance