You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Steffen Vinther Sørensen <sv...@logiva.dk> on 2006/01/04 13:28:04 UTC

How to determine if a value is not there when the return type is a simple type

Hi

I have a schema like

  <xs:element name="Run">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="runfolderstatus" type="xs:long" minOccurs="0" 
maxOccurs="1"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>

The generated bean gets the methods

long getRunfolderstatus();
void setRunfolderstatus(long);

I would have expected it to be Long instead of long, so that the getter 
method can return null if the element is not present.

What is the recommended way of detecting if the element is there or not ?


-- 
Med venlig hilsen
Steffen Vinther Sørensen @ Logiva A/S
mailto:svs@logiva.dk http://www.logiva.dk
Tlf direkte. 87 43 40 75


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org