On Apr 11, 2005 1:18 PM, Nacho G. Mac Dowell <[EMAIL PROTECTED]> wrote:
> Jochen Wiedmann wrote:


> Yes, but If I didn't get it wrong the return type of
> 
> SimpleTypeSG.getCastFromString(String)
> 
> is TypedValue. The question is how to pass it to the JS framework in
> JAXBType.getXMLField(...)**. I'm sure it's quite straight forward, but I
> didnt find anything...

The answer is: You don't. The handling of default values happens internally in

    TypeSG.getXMLField(JavaSource pSource, 
                                     String pFieldName, String pDefaultValue)

That method currently creates the default value itself. That's wrong.
It should invoke SimpleTypeSG.getCastFromString(defaultValue) and
invoke field.addLine(...).


Jochen


-- 
Outside of a dog, a book is man's best friend.
Inside of a dog, its too dark to read.
(Groucho Marx)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to