Yang, I agree with you that this needs to be changed in the spec. 

"If SDO Types and Properties were not originally defined by an XSD, or if 
the original XSD declaration information is not available, the helper 
methods *may* return null or false."

Thanks,
Frank.

"Yang ZHONG" <[EMAIL PROTECTED]> wrote on 09/24/2006 01:34:57 
PM:

> Tuscany Java impl of XSDHelper.getLocalName might violate the SDO Java 
spec
> 2.1draft/2.01,
> however it may be nice for specs to change accordingly IMHO.
> 
> Quote from the SDO Java spec 2.1draft/2.01:
> "If SDO Types and Properties were not originally defined by an XSD, or 
if
> the original XSD declaration
> information is not available, the helper methods will return null or 
false."
> 
> Current Tuscany Java impl of XSDHelper.getLocalName returns model name
> if the model was not originally defined by an XSD, or if the original 
XSD
> declaration information is not available.
> 
> However, from my current particular scenario (ChangeSummary StAX 
writer),
> I feel current Tuscany Java behavior is more practically 
useful/convenient.
> 
> We/users need to output SDO instances as XML from time to time,
> no matter the models are originated from XSD or not.
> Single XSDHelper.getLocalName is simpler than two-roundtrip like this:
> 
>     String elementLocalName = XSDHelper.INSTANCE.getLocalName( 
property);
>     if (elementLocalName == null)
>         elementLocalName = property.getName();
> 
> At the same time, XSDHelper.isXSD, isAttribute and isElement can still 
be
> used if distinguishing XSD originated models is necessary.
> 
> If changing specs is impossible, do we want to "fix" the impl?
> 
> -- 
> 
> Yang ZHONG


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

Reply via email to