« Return to Thread: Enum vs String??

RE: Enum vs String??

by Chris Hopkins :: Rate this Message:

Reply to Author | View in Thread


Why not just issue a toString() on the object Enum object returned?

-----Original Message-----
From: be_tnt [mailto:decoker@...]
Sent: Tuesday, July 11, 2006 7:42 AM
To: user@...
Subject: Enum vs String??


In my xsd, I have some string wtih enumeration restriction. For example:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="http://myTarget"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://myTarget"
attributeFormDefault="unqualified"
elementFormDefault="qualified"
version="1.0">
    <xs:simpleType name="bookingPoolName">
        <xs:restriction base="xs:string">
            <xs:enumeration value="EU-MIA.BB.Service.Subpool" />
            <xs:enumeration value="MIA.BB.AS3301.Service.Subpool"/>
        </xs:restriction>
    </xs:simpleType>
</xs:schema>

In Java, I would like this object to only be considered as a string and not
as an enum. Is it possible to do it via xsdconfig?
--
View this message in context:
http://www.nabble.com/Enum-vs-String---tf1923893.html#a5267729
Sent from the Xml Beans - User forum at Nabble.com.


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

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

 « Return to Thread: Enum vs String??