referenced schema feature/reference [message #40421] |
Mon, 05 April 2004 03:36 |
Eclipse User |
|
|
|
Originally posted by: jtaylor.nextance.com
Is there a feature/reference in the schema meta model that from a schema
gives you the schema directives (i.e. include, import, redefine
statements)? There seems to be one for most everything but this (i.e type
definitions, element declarations, etc). Is my only option to filter the
content feature/reference of a schema?
Thanks,
James
|
|
|
Re: referenced schema feature/reference [message #40537 is a reply to message #40421] |
Mon, 05 April 2004 10:42 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
James,
You need to use XSDSchema.getContents and look for the schema directives in
there; you can stop iterating as soon as you see something other than a schema
directive or annotation (since all directives must come before any
declarations or definitions). Properties like XSDSchema.typeDefinitions are
abstract properties defined in the spec, but there is no abstract property
defined in the spec for just the directives and, in fact, they aren't even
treated as abstract components by the spec...
James Taylor wrote:
> Is there a feature/reference in the schema meta model that from a schema
> gives you the schema directives (i.e. include, import, redefine
> statements)? There seems to be one for most everything but this (i.e type
> definitions, element declarations, etc). Is my only option to filter the
> content feature/reference of a schema?
>
> Thanks,
>
> James
|
|
|
Re: referenced schema feature/reference [message #585118 is a reply to message #40421] |
Mon, 05 April 2004 10:42 |
Ed Merks Messages: 33216 Registered: July 2009 |
Senior Member |
|
|
James,
You need to use XSDSchema.getContents and look for the schema directives in
there; you can stop iterating as soon as you see something other than a schema
directive or annotation (since all directives must come before any
declarations or definitions). Properties like XSDSchema.typeDefinitions are
abstract properties defined in the spec, but there is no abstract property
defined in the spec for just the directives and, in fact, they aren't even
treated as abstract components by the spec...
James Taylor wrote:
> Is there a feature/reference in the schema meta model that from a schema
> gives you the schema directives (i.e. include, import, redefine
> statements)? There seems to be one for most everything but this (i.e type
> definitions, element declarations, etc). Is my only option to filter the
> content feature/reference of a schema?
>
> Thanks,
>
> James
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03419 seconds