set annotation to schema object [message #1235] |
Tue, 01 October 2002 07:51 |
Eclipse User |
|
|
|
Originally posted by: kwgkwg.netian.com
I just try to add annotaion to XSD file.
But I can't set annotation to XSDSchema object.
It doesn't exist API.
Is there another way to set annotation to XSDSchema object?
|
|
|
|
Re: set annotation to schema object [message #1323 is a reply to message #1235] |
Wed, 02 October 2002 10:11 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
You can do xsdSchema.getContents().add(xsdAnnotation). Schemas can have
many annotations and they are interspersed with the other contents.
There is also a white diamond relation xsdSchema.getAnnotations(); these
are automatically populated from what's added to xsdSchema.getContents()
and is not modified directly by clients.
As Dave points out, the stuff under an annotation is just pure DOM and
you must manipulate it as such.
guest wrote:
> I just try to add annotaion to XSD file.
> But I can't set annotation to XSDSchema object.
> It doesn't exist API.
> Is there another way to set annotation to XSDSchema object?
|
|
|
Re: set annotation to schema object [message #7210 is a reply to message #1323] |
Sun, 29 December 2002 15:33 |
Eclipse User |
|
|
|
Originally posted by: hayden.unicorn.com
Ed Merks wrote:
> You can do xsdSchema.getContents().add(xsdAnnotation). Schemas can have
> many annotations and they are interspersed with the other contents.
> There is also a white diamond relation xsdSchema.getAnnotations(); these
> are automatically populated from what's added to xsdSchema.getContents()
> and is not modified directly by clients.
> As Dave points out, the stuff under an annotation is just pure DOM and
> you must manipulate it as such.
> guest wrote:
> > I just try to add annotaion to XSD file.
> > But I can't set annotation to XSDSchema object.
> > It doesn't exist API.
> > Is there another way to set annotation to XSDSchema object?
I'm trying to do a similar action, but a get instead of a set.
I parse in the schema, and do a getAnnotations() on the XSDSchema class- I
need to retrieve the xsd:documentation for the annotation. I have an
XSDAnnotation object in my hand and I call the getUserInformation()
method. I then have a list of dom Elements. My list actually contains one
element, and when I call getNodeValue() it returns null, even though there
is content in the xsd:docuementation in there. Do I need to call a flag to
the XSDResourcesSet to tell it to build a DOM object for me so that I can
access the information?
Thanks
|
|
|
|
|
Re: names [message #34586 is a reply to message #34551] |
Thu, 18 December 2003 16:34 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
--------------8B2BFB31116ABFEF02C9D81B
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Norwood,
Thanks for pointing this out!! The feature names generated for the
DocumentRoot are not being properly validated as Java identifiers. I'm
changing this in XSDEcoreBuilder:
> etools-diff XSDEcoreBuilder.java
1477c1477
< xsdFeature.getName(),
---
> validName(xsdFeature.getName(), false),
We'll make another 2.0 drop available tomorrow (before I go on holidays
for four weeks).
norwoods wrote:
> hyphens (that are acceptable to sqc) in element or type names do not
> seem to be handled well by eclipse-emf-esd for editor generation.
>
> norwood sisson
--------------8B2BFB31116ABFEF02C9D81B
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Norwood,
<p>Thanks for pointing this out!! The feature names generated for
the DocumentRoot are not being properly validated as Java identifiers.
I'm changing this in XSDEcoreBuilder:
<blockquote>> etools-diff XSDEcoreBuilder.java
<br>1477c1477
<br> < &a mp;nbsp;
xsdFeature.getName(),
<br>---
<br>>
validName(xsdFeature.getName(), false),</blockquote>
We'll make another 2.0 drop available tomorrow (before I go on holidays
for four weeks).
<br>
<p>norwoods wrote:
<blockquote TYPE=CITE>hyphens (that are acceptable to sqc) in element or
type names do not
<br>seem to be handled well by eclipse-emf-esd for editor generation.
<p>norwood sisson</blockquote>
</html>
--------------8B2BFB31116ABFEF02C9D81B--
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.30306 seconds