You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Stéphane Rault <ks...@yahoo.fr> on 2006/02/20 16:45:11 UTC

TR : Finding the string value of an Enum element

Hi everyOne again.

My question (already asked) has generate no answer. Is my english so bad
(i'm just a french you know...) or is there no answer to it ?

> Hello everybody.
> 
> I didn't find how to get the String value of an Enum 
> attribute (based on
> xsd:restriction on string) ?
> Basically, I have a String value of the attribute and I want 
> to find the
> Enum value generated by xmlbeans. Is this possible ?
> 
> Thanks in advance
> --
> Stéphane Rault.
> Selic (www.selic.info)
> 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.11/264 - Release Date: 17/02/2006
 


	

	
		
___________________________________________________________________________ 
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.
Téléchargez sur http://fr.messenger.yahoo.com

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


Re: TR : Finding the string value of an Enum element

Posted by Edward Frederick <ep...@gmail.com>.
The type that has the enum restriction facet applied to it will
enclose a class named "Enum". Use that class's static method
'forString'.

You can also cheat and use the xset methods which is clunkier (but all
the same if you plan to validate anyway).

Ed

On 2/20/06, Stéphane Rault <ks...@yahoo.fr> wrote:
> Hi everyOne again.
>
> My question (already asked) has generate no answer. Is my english so bad
> (i'm just a french you know...) or is there no answer to it ?
>
> > Hello everybody.
> >
> > I didn't find how to get the String value of an Enum
> > attribute (based on
> > xsd:restriction on string) ?
> > Basically, I have a String value of the attribute and I want
> > to find the
> > Enum value generated by xmlbeans. Is this possible ?
> >
> > Thanks in advance
> > --
> > Stéphane Rault.
> > Selic (www.selic.info)
> >
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.375 / Virus Database: 267.15.11/264 - Release Date: 17/02/2006
>
>
>
>
>
>
>
> ___________________________________________________________________________
> Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.
> Téléchargez sur http://fr.messenger.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: user-help@xmlbeans.apache.org
>
>

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