Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Documentation annotation for element in XSD
Documentation annotation for element in XSD [message #1506400] Wed, 10 December 2014 20:49 Go to next message
Alex Kravets is currently offline Alex KravetsFriend
Messages: 543
Registered: November 2009
Senior Member
Hello,

XSD from which I generate my model has annotation element with documentation in both element and compexType. When I generate the model I can get documentation via EcoreUtil.getDocumentation method for objects that were derived from complexType, but not for those that were derived from element. Is element annotation not supported? As far as I can see from w3.org having annotation documentation in element is legal.

Thanks,
Alex
Re: Documentation annotation for element in XSD [message #1506839 is a reply to message #1506400] Thu, 11 December 2014 05:29 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30450
Registered: July 2009
Senior Member
Alex,

Comments below.

On 10/12/2014 9:49 PM, Alex Kravets wrote:
> Hello,
>
> XSD from which I generate my model has annotation element with
> documentation in both element and compexType. When I generate the
> model I can get documentation via EcoreUtil.getDocumentation method
> for objects that were derived from complexType,
Not sure about this terminology "object derived from complex type".
Each complex types maps to an EClass so I guess that's what you mean by
an object derived from a complex type...
> but not for those that were derived from element.
And where specifically are you looking for that documentation? People
have a bad tendency to assume that elements map to EClasses, but they don't.
> Is element annotation not supported? As far as I can see from
> http://www.w3.org/TR/xmlschema-0/#CommVers having annotation
> documentation in element is legal.

You might start by looking at your entire Ecore model as text to see all
the annotations with source="http://www.eclipse.org/emf/2002/GenModel"
and with a detail for key "documentation".
>
> Thanks,
> Alex
Re: Documentation annotation for element in XSD [message #1507390 is a reply to message #1506839] Thu, 11 December 2014 15:40 Go to previous message
Alex Kravets is currently offline Alex KravetsFriend
Messages: 543
Registered: November 2009
Senior Member
Thanks Ed.
Previous Topic:Unable to create diagrams
Next Topic:Moving class to a sub-package and synchronizing
Goto Forum:
  


Current Time: Wed Sep 18 19:41:49 GMT 2019

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

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

Back to the top