Enum vs String??

View: New views
5 Messages — Rating Filter:   Alert me  

Enum vs String??

by be_tnt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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?

Parent Message unknown RE: Enum vs String??

by Chris Hopkins :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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@...


RE: Enum vs String??

by be_tnt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In fact I do not want to have my enumeration hard-coded in the java files. Otherwise each time a new enumeration will be added I would need to recreate the java classes.

Parent Message unknown RE: File size of the xml file

by Ghoshdastidar, Rabi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Folks,

I was trying to parse large (3 MB) xml files by xmlbean. Do anybody knows whether there is any limitation on xmlbeans, how large a file that can be parsed !!

Thanks
Rabi


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


RE: File size of the xml file

by Jacob Danner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The only limitations I've seen come from the JVM, you can adjust them
with settings like:
-Xms512m
-Xmx1024m

Are you seeing something different?
-Jacobd

-----Original Message-----
From: Ghoshdastidar, Rabi [mailto:rabi.ghoshdastidar@...]
Sent: Wednesday, July 12, 2006 11:17 AM
To: user@...
Subject: RE: File size of the xml file

Folks,

I was trying to parse large (3 MB) xml files by xmlbean. Do anybody
knows whether there is any limitation on xmlbeans, how large a file that
can be parsed !!

Thanks
Rabi


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

_______________________________________________________________________
Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.

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