Hi Werner,

For the time being I think all we have to do is to make SimpleTypeReference
class public. Please get back to me with the details, if possible.

Also did u get a time to look at the code I uploaded? I have bit more
improved code now. Shall I upload them also to the same JIRA? I was waiting
for you to see what I've already uploaded as I didn't want to overload.

Thanks.
SD

On 6/27/07, Werner Guttmann <[EMAIL PROTECTED]> wrote:

As already mentioned by Ralf, it might be the case, indeed, that the
current classes in the schema.*package are not sufficient for your
needs, as at the moment Castor only support code generation from an XMl
schema.

Let me just have a (detailed) look, and I will be back with an answer.

Werner

Ralf Joachim wrote:
> Hi Sachith,
>
> I'm not familar with that area of code at Castor but I know that its
> schema model currently has some limitations. To create the above
> construct you may need to extend it yourself. This kind of work is also
> included with your GSoC project. I suggest you to fill a new jira issue
> and attach a patch that adds the required function to Castor schema
model.
>
> Regards
> Ralf
>
>
> Sachith Dhanushka schrieb:
>> Hi,
>>
>> I asked this questions also as I need this for my SoC project. Can
>> some one please let me know how I can create the following schema
>> fragment programatically?
>>
>> <xs:simpleType name="creditCardVendor">
>>     <xs:restriction base="xs:string">
>>         <xs:enumeration value="VISA"/>
>>         <xs:enumeration value="AMERICANEXPRESS"/>
>>         <xs:enumeration value="DISCOVER"/>
>>     </xs:restriction>
>> </xs:simpleType>
>>
>> I was tracing how schema model is created using Sax2ComponentReader.
>> But it uses SimpleTypeDefinition class which is not public, so I can
>> not use it inside my code. I then tried to use
>> Schema.createSimpleType() method but it also seems to be not working.
>>
>> I would really appreciate if Werner or some one can help me with this
>> as I am stuck with my code since I can not handle simple type
>> definitions.
>>
>> Thanks.
>> SD
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to