Skip to main content



      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 05: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 06: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 06:46 Go to previous message
Eclipse UserFriend
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: Thu May 22 21:28:41 EDT 2025

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

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

Back to the top