I dont need to generate source code from UML as already developed tool to
design domain model. But anyway thanks a lot for your help! [?]

Now Im gonna take castor JClass and related classes, declare own templates
based on castor velocity templates. Thats gonna be a good kick-start for my
own generator! Wooooooooo!

2009/8/4 Werner Guttmann <[email protected]>

> Yes, you could. But in that case I would rather look at some (open
> source) tools such as AndroMDA that generate fully-fledged Java sources
> from UML models.
>
> Werner
>
> Alexander wrote:
> > Yeah, thanks. Its the one answer I looked for.
> > Btw, could I use castor codegen source codes to develop my own generator?
> It
> > seems like a lot of my work already done and I need only to add methods
> > support.
> >
> > 2009/8/4 Werner Guttmann <[email protected]>
> >
> >> Hi Alexander,
> >>
> >> Castor XML is - first and foremost - a source code generator that
> >> generates plain Java POJOs that reflect the XML schema(s) given. In
> >> addition, Castor XML will generate (so-called) XML class descriptors
> >> that represent the information needed by Castor during XML data binding
> >> (e.g. XML artefact names, namespace prefices, ...) and include a fair
> >> amount of code to implement object validation for (un-)marshalling.
> >>
> >> In other words, Castor generates POJOs, and nothing else. You can
> >> exercise a bit of control through various properties and settings, but
> >> that's all.
> >>
> >> Does this answer your questions ?
> >>
> >> Regards
> >> Werner
> >>
> >> Alexander wrote:
> >>> Is there any way to generate souce code with optional methods? I mean
> It
> >> is
> >>> great to generate object model, get\set methods. But what if I want to
> >>> generate different methods too? For example: get\set\validate\disable
> and
> >> so
> >>> on.
> >>> As far as I could see there is no definition in XSD for methods. Am I
> >>> wrong? [?]
> >>>
> >>> Or It is not a good idea to use castor just as a source code generator?
> >>>
> >> ---------------------------------------------------------------------
> >> 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
>
>
>


-- 
Alexander

<<360.gif>>

Reply via email to