Yes, it would be inconvenient for me to use XSDHelper.define() to modify the 
existing type. Allowing TypeHelper.define() to "redefine" the type would be 
much preferred. How would TypeHelperImpl need to be changed to implement such a 
feature?

- Ron

----- Original Message ----
From: Frank Budinsky <[EMAIL PROTECTED]>
To: [email protected]
Sent: Wednesday, July 25, 2007 4:37:46 PM
Subject: Re: How to add Property to an XSDHelper-defined Type

If you create your HelperContext using SDOUtil.createHelperContext(true), 
XSDHelper.define() will then let you add new types to an existing 
namespace and also to replace an existing type with a new version (Note: 
this is a "use at your own risk" feature).

So, you could add a new property by calling XSDHelper.define() again 
passing in a new version of the XSD type that includes the new 
element/attribute. 

Maybe we should consider makingTypeHelper.define() also allow you to 
modify existing types if the HelperContext has extensibleNamespaces == 
true?

Frank.




Ron Gavlin <[EMAIL PROTECTED]> 
07/25/2007 03:55 PM
Please respond to
[email protected]


To
tuscany-user tuscany-user <[email protected]>
cc

Subject
How to add Property to an XSDHelper-defined Type






Greetings,

I have a Type that was created using XSDHelper.define(). Now I would like 
to dynamically add an add'l Property to this Type. This does not appear to 
be supported. Can you suggest any workarounds?

- Ron



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




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





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

Reply via email to