Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » 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 UserFriend
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 UserFriend
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 MerksFriend
Messages: 33140
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 !
>


Ed Merks
Professional Support: https://www.macromodeling.com/
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: Thu Apr 25 08:05:27 GMT 2024

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

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

Back to the top