Thanks. 

Another question. What happens if the type has a corresponding code-generated 
class based on the original schema and then I add a new property to that type? 
Obviously, I would need to use the dynamic apis to work with the new property. 
However, will the code-generated class still behave normally or will the new 
property break it? 

- 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