Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » XSD:How to extract xsd:simpleContent ?
XSD:How to extract xsd:simpleContent ? [message #65690] Mon, 09 January 2006 00:50 Go to next message
Eclipse User
Originally posted by: hjyi2000.naver.com

How to extract <xsd:simpleContent> ?
Re: XSD:How to extract xsd:simpleContent ? [message #65734 is a reply to message #65690] Mon, 09 January 2006 10:59 Go to previous message
David Steinberg is currently offline David Steinberg
Messages: 489
Registered: July 2009
Senior Member
wendy wrote:
> How to extract <xsd:simpleContent> ?

Hi Wendy,

Extract it from where?

If you have an XSDComplexTypeDefinition, you can call getContentType()
on it. If the complex type has simple type (if getContentTypeCategory()
returns XSDContentTypeCategory.SIMPLE_LITERAL), you can cast the result
to an XSDSimpleTypeDefinition.

Cheers,
Dave
Re: XSD:How to extract xsd:simpleContent ? [message #597451 is a reply to message #65690] Mon, 09 January 2006 10:59 Go to previous message
David Steinberg is currently offline David Steinberg
Messages: 489
Registered: July 2009
Senior Member
wendy wrote:
> How to extract <xsd:simpleContent> ?

Hi Wendy,

Extract it from where?

If you have an XSDComplexTypeDefinition, you can call getContentType()
on it. If the complex type has simple type (if getContentTypeCategory()
returns XSDContentTypeCategory.SIMPLE_LITERAL), you can cast the result
to an XSDSimpleTypeDefinition.

Cheers,
Dave
Previous Topic:XSD schema tree
Next Topic:getContentType() vs. getContent() on XSDComplexTypeDefinition
Goto Forum:
  


Current Time: Wed Aug 27 23:30:26 EDT 2014

Powered by FUDForum. Page generated in 0.01806 seconds