resolve XSDSimpleTypeDefinition [message #64383] |
Fri, 07 October 2005 17:47  |
Eclipse User |
|
|
|
Originally posted by: abanerjee.vitria.com
Hi Ed,
I wish to determine the primitive type of a XSDSimpleTypeDefinition. By
using XSDConstants.isAnySimpleType(simpleType.getBaseTypeDefinitio n() I
know that the simple type is a built in type. I want to convert the simple
type to XSDAnySimpleType so that I can access it's subclasses.
Thanks,
-Anindita.
|
|
|
Re: resolve XSDSimpleTypeDefinition [message #64406 is a reply to message #64383] |
Fri, 07 October 2005 18:30  |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Anindita,
Built-in types are the ones in the schema for schema and even in that
schema there is a type hierarchy so your first assertion isn't a good
one. If xsdSimleTypeDefinition.getPrimitiveTypeDefinition() ==
xsdSimpleTypeDefinition, then it is a primitive type from the schema for
schemas. If you want to compute a type hierarchy, you have to compute
it by visiting all the types and keeping track of base types, i.e.,
there is no relation ship from type to all subtypes; that relation is
unbounded...
Anindita Banerjee wrote:
> Hi Ed,
>
> I wish to determine the primitive type of a XSDSimpleTypeDefinition.
> By using
> XSDConstants.isAnySimpleType(simpleType.getBaseTypeDefinitio n() I know
> that the simple type is a built in type. I want to convert the simple
> type to XSDAnySimpleType so that I can access it's subclasses.
>
> Thanks,
> -Anindita.
>
|
|
|
Re: resolve XSDSimpleTypeDefinition [message #596866 is a reply to message #64383] |
Fri, 07 October 2005 18:30  |
Eclipse User |
|
|
|
Anindita,
Built-in types are the ones in the schema for schema and even in that
schema there is a type hierarchy so your first assertion isn't a good
one. If xsdSimleTypeDefinition.getPrimitiveTypeDefinition() ==
xsdSimpleTypeDefinition, then it is a primitive type from the schema for
schemas. If you want to compute a type hierarchy, you have to compute
it by visiting all the types and keeping track of base types, i.e.,
there is no relation ship from type to all subtypes; that relation is
unbounded...
Anindita Banerjee wrote:
> Hi Ed,
>
> I wish to determine the primitive type of a XSDSimpleTypeDefinition.
> By using
> XSDConstants.isAnySimpleType(simpleType.getBaseTypeDefinitio n() I know
> that the simple type is a built in type. I want to convert the simple
> type to XSDAnySimpleType so that I can access it's subclasses.
>
> Thanks,
> -Anindita.
>
|
|
|
Powered by
FUDForum. Page generated in 0.03042 seconds