Hi Ron,

I guess we would need to make TypeHelper.define support a mode where you 
would only give a patial definition of a Type and it would be used as a 
delta to modify an exisitng type. 

A simpler approach, which may be working already, is to use the 
Tuscany-specific SDOUtil.createProperty() method to modify the existing 
type. Have you tried that?

Frank.

Ron Gavlin <[EMAIL PROTECTED]> wrote on 07/25/2007 05:16:44 PM:

> 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]
> 


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

Reply via email to