Normally, EMF maps common simple type to Java primitive class, e.g. xsd:int
to Java int.
However, if nillable element, EMF maps the element type to Java wrapper
class, e.g. java.lang.Integer, which can be Java null.

By design, EMF sets unsettable true if nillable. (XML Schema to Ecore
Mapping p18 5.4 Nillable element)

Hope those 2 info can help you with the isNillable impl.

On 2/9/07, Ron Gavlin <[EMAIL PROTECTED]> wrote:

Greetings,

I need a way to determine if an SDO property is nillable. I suspect EMF
APIs are required to implement such a method but it isn't obvious to me how
to use EMF to do it? Would a static method SDOUtil.isNillable(Property
property) be an appropriate place to implement such a method? Any
suggestions for an implementation?

Regards,

- Ron

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




--

Yang ZHONG

Reply via email to