Sachith,

I'll review the code you uploaded later on today and provide you with
feedback as soon as possible.

Werner

Sachith Dhanushka wrote:
> Hi,
> 
> I uploaded a basic implementation as I promissed earlier in to
> CASTOR-2016. Werner, please be kind enough to review the code and
> provide me with some feedback. In the mean time I will keep on
> improving the code.
> 
> 
> I have a small question on schema handling.
> 
> There is a JAXB2 annotated class which has set of non-requried 
> properties (REQUIRED=false). All the properties that this class has
> are non-required. Should these properties included under Choice or
> under sequence with minOcurrs=0? This is bit of a tricky question for
> me as the annotations are not helping me here. I appreciate if some
> one can help me to resolve this problem.
> 
> 
> Thanks, SD
> 
> 
> On 6/21/07, *Sachith Dhanushka* <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
> 
> Hi Werner,
> 
> Thanks for the answer. So I won't use any JAXB2 RI code.
> 
> I am now working with JAXB2 reflection library found in 
> https://jaxb2-reflection.dev.java.net/ 
> <https://jaxb2-reflection.dev.java.net/> and creating Castor model. 
> Will post my initial bit of code soon.
> 
> Thanks, SD
> 
> 
> On 6/20/07, *Werner Guttmann* < [EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
> 
> Sachith,
> 
> your task is to come up with a solution that adds certain 
> functionality to Castor to make it (or parts thereof) JAXB compliant.
> In the context of this statement, JAXB compliance refers to the
> specification.
> 
> Clearly, it cannot be as simple as taking parts of the JAXB reference
>  implementation and integrate it with Castor. There's plenty of 
> issues with this approach, which I should not have to explain to you,
>  one of them being licensing.
> 
> Yes, nobody wants to re-invent the wheel, but simply pulling parts of
>  the JAXB RI into Castor is not an option.
> 
> Regards Werner
> 
> Sachith Dhanushka wrote:
>> Hi Werner and all,
>> 
>> This is what I am trying to do now. As I commented in the JIRA
> also, now
>> I am using the java.net <http://java.net> <http://java.net>
> jaxb2 reflection library
>> instead of annongen Jam. So I am working on that now.
>> 
>> In addition to that please let me know the feasibility of the
> following
>> approach as well. When I looked in to JAXB2 schema generation,
> I can use
>> the existing JAXB2 RI to get a DOM model of the schema. In
> other words,
>> we can give set of JAXB annotated classes and get the schema as
> a DOM
>> model. Then we can create our Castor schema model by looking at
> the DOM
>> model. The problem with this approach is that we get an
> intermediate DOM
>> object model. But the advantage is this approach is that this
> is less
>> error-prone and standard as we can use the implementation from
> the JAXB
>> RI itself.
>> 
>> Please let me know what you think about this approach.
>> 
>> 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