You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xmlbeans-user@xml.apache.org by Sh...@txu.com.au on 2004/05/18 01:17:18 UTC

Enum com.bea.xbean.values.XmlValueOutOfRangeException

Hi all,

I am getting the above exception when I try to use an Enum to set the 
value of an attribute.

Has anyone encountered a similar problem?

- Shane

TXU - we're excited by gas and electricity.  

CAUTION

This email and any files transmitted with it may be confidential and are intended solely for the use of the individual or entity to whom they are addressed. Any confidentiality is not waived or lost because this email has been sent to you by mistake. This email may contain personal information of individuals, and be subject to Commonwealth and/or State privacy laws in Australia. This email is also subject to copyright. If you are not the intended recipient, you must not read, print, store, copy, forward or use this email for any reason, in accordance with privacy and copyright laws. If you have received this email in error, please notify the sender by return email, and delete this email from your inbox.


Re: Enum com.bea.xbean.values.XmlValueOutOfRangeException

Posted by Sudarshana Murthy <sp...@fastmail.fm>.
Shane,
Are you setting this using the XMLBeans generated Enum Types? For e.g.
you might have LANGType.ENUM.EN in the XML binding generated classes. Or
you can use Enum.forString or Enum.forInt from the XMLBeans generated
classes to convert the values to appropriate Enum values and set the Enum
value attribute.
Thanks
Sudi

On Tue, 18 May 2004 09:17:18 +1000, Shane.Blake@txu.com.au said:
> Hi all,
> 
> I am getting the above exception when I try to use an Enum to set the 
> value of an attribute.
> 
> Has anyone encountered a similar problem?
> 
> - Shane
> 
> TXU - we're excited by gas and electricity.  
> 
> CAUTION
> 
> This email and any files transmitted with it may be confidential and are
> intended solely for the use of the individual or entity to whom they are
> addressed. Any confidentiality is not waived or lost because this email
> has been sent to you by mistake. This email may contain personal
> information of individuals, and be subject to Commonwealth and/or State
> privacy laws in Australia. This email is also subject to copyright. If
> you are not the intended recipient, you must not read, print, store,
> copy, forward or use this email for any reason, in accordance with
> privacy and copyright laws. If you have received this email in error,
> please notify the sender by return email, and delete this email from your
> inbox.
> 

-- 
http://www.fastmail.fm - Access your email from home and the web

- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/


Re: Enum com.bea.xbean.values.XmlValueOutOfRangeException

Posted by Sudarshana Murthy <sp...@fastmail.fm>.
Shane,
Are you setting this using the XMLBeans generated Enum Types? For e.g.
you might have LANGType.ENUM.EN in the XML binding generated classes. Or
you can use Enum.forString or Enum.forInt from the XMLBeans generated
classes to convert the values to appropriate Enum values and set the Enum
value attribute.
Thanks
Sudi

On Tue, 18 May 2004 09:17:18 +1000, Shane.Blake@txu.com.au said:
> Hi all,
> 
> I am getting the above exception when I try to use an Enum to set the 
> value of an attribute.
> 
> Has anyone encountered a similar problem?
> 
> - Shane
> 
> TXU - we're excited by gas and electricity.  
> 
> CAUTION
> 
> This email and any files transmitted with it may be confidential and are
> intended solely for the use of the individual or entity to whom they are
> addressed. Any confidentiality is not waived or lost because this email
> has been sent to you by mistake. This email may contain personal
> information of individuals, and be subject to Commonwealth and/or State
> privacy laws in Australia. This email is also subject to copyright. If
> you are not the intended recipient, you must not read, print, store,
> copy, forward or use this email for any reason, in accordance with
> privacy and copyright laws. If you have received this email in error,
> please notify the sender by return email, and delete this email from your
> inbox.
> 

-- 
http://www.fastmail.fm - Access your email from home and the web

- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/