Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » referenced schema feature/reference
referenced schema feature/reference [message #40421] Mon, 05 April 2004 03:36 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31633
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/
Previous Topic:When can XSDElementDeclaration.getTypeDefinition return null?
Next Topic:getName() returns null too
Goto Forum:
  


Current Time: Wed Dec 02 13:29:56 GMT 2020

Powered by FUDForum. Page generated in 0.02188 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top