Hi Mike

 

The SchemaLocalElement interface (and hence SchemaGlobalElement too since it inherits from SchemaLocalElement) has a getIdentityConstraints() API which returns an array of SchemaIdentityConstraint objects which I think should be helpful to you.

 

You can navigate to an object that implements SchemaLocalElement from a given SchemaType using the getContentModel() API (possibly recursively) although you may have to do an instanceof check on the returned object and then cast it to a SchemaLocalElement before you can use it. All generated XmlBeans have a public static variable called type which will return the SchemaType.

 

Cheers,

 

Lawrence

 


From: Mike Skells [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 09, 2005 4:27 PM
To: [email protected]
Subject: Key/value detection

 

Hi

Is there any way to detect that a field has constraints applied to it (unique key, keyref)

 

Mike

________________________________________________________________________________
BEAWorld 2005: coming to a city near you.  Everything you need for SOA and enterprise infrastructure success.

 
Register now at http://www.bea.com/4beaworld

 
London 11-12 Oct| Paris13-14 Oct| Prague18-19 Oct |Tokyo 25-26 Oct| Beijing 7-8 Dec

Reply via email to