Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » How to test if a type is a base type ?
How to test if a type is a base type ? [message #59182] Wed, 20 April 2005 09:55 Go to next message
Eclipse User
Originally posted by: ediouf.genigraph.fr

Hi every body,

I would like to test if my type is a base type like a "date", a "integer",
a "string", etc?
I have read the javadoc but i don't find the right method to do this.

Thanks for your reply !
Re: How to test if a type is a base type ? [message #59208 is a reply to message #59182] Wed, 20 April 2005 10:46 Go to previous message
Eclipse User
Originally posted by: merks.ca.ibm.com

Elhadji,

One way to get to the built-in types is to use
xsdSchema.getSchemaForSchema().resolveSimpleTypeDefinition("date "). A
way to just test and instance is
xsdNamedComponent.hasNameAndTargetNamespace(XSDConstants.SCH EMA_FOR_SCHEMA_URI_2001,
"date"). Be sure to look in XSDPrototypicalSchema for examples...


Elhadji wrote:

> Hi every body,
>
> I would like to test if my type is a base type like a "date", a
> "integer", a "string", etc?
> I have read the javadoc but i don't find the right method to do this.
>
> Thanks for your reply !
>
Re: How to test if a type is a base type ? [message #594747 is a reply to message #59182] Wed, 20 April 2005 10:46 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26141
Registered: July 2009
Senior Member
Elhadji,

One way to get to the built-in types is to use
xsdSchema.getSchemaForSchema().resolveSimpleTypeDefinition("date "). A
way to just test and instance is
xsdNamedComponent.hasNameAndTargetNamespace(XSDConstants.SCH EMA_FOR_SCHEMA_URI_2001,
"date"). Be sure to look in XSDPrototypicalSchema for examples...


Elhadji wrote:

> Hi every body,
>
> I would like to test if my type is a base type like a "date", a
> "integer", a "string", etc?
> I have read the javadoc but i don't find the right method to do this.
>
> Thanks for your reply !
>
Previous Topic:How to test if a type is a base type ?
Next Topic:attribute reference unresolved - must be basic answer
Goto Forum:
  


Current Time: Sat Oct 25 20:56:39 GMT 2014

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

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