How to test if a type is a base type ? [message #59182] |
Wed, 20 April 2005 05:55  |
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 06:46  |
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 06:46  |
Eclipse User |
|
|
|
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 !
>
|
|
|
Powered by
FUDForum. Page generated in 0.02690 seconds