How to test if a type is a base type ? [message #59182] |
Wed, 20 April 2005 09: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 10: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 10:46 |
Ed Merks Messages: 33222 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/
|
|
|
Powered by
FUDForum. Page generated in 0.03743 seconds