|
|
|
Re: Ecore model of w3c ws-policy [message #498837 is a reply to message #498765] |
Wed, 18 November 2009 18:26 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
This is a multi-part message in MIME format.
--------------020901000102010604030402
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Have a read through
Binding XML to Java
< http://www.theserverside.com/tt/articles/article.tss?l=Bindi ngXMLJava>
You might want to use this option (and note the comment about needing an
element handler during load).
/**
* When {@link #OPTION_EXTENDED_META_DATA} is used,
* this load option set to Boolean.TRUE will direct the
deserializer to suppress creating a document root instance.
* This option is typically used in combination with {@link
#OPTION_ELEMENT_HANDLER}.
* @since 2.4
*/
String OPTION_SUPPRESS_DOCUMENT_ROOT = "SUPPRESS_DOCUMENT_ROOT";
M. wrote:
> Actually from this schema (deleting line about "import from oasis")I
> create the ecore and genmodel, thus I'm able to generate the code and
> run as eclipse plugin.
>
> In the second eclipse instance when i test the plug-in, I don't
> understand the mean of child (first child of resource) called
> "DocumetRoot false", and the impossibilty to add a child "policy" that
> should be my "element root" (mor external tag <policy ..all the doc
> ..</policy>).
>
> I've tried to select "policy" in the last window of "policy model"
> creation wizard thinking tht it will be apper as first child of my
> resource, but nothing..
--------------020901000102010604030402
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Have a read through<br>
<blockquote><a target="_out"
href=" http://www.theserverside.com/tt/articles/article.tss?l=Bindi ngXMLJava">Binding
XML to Java</a><br>
</blockquote>
You might want to use this option (and note the comment about needing
an element handler during load).<br>
<blockquote> /**<br>
* When {@link #OPTION_EXTENDED_META_DATA} is used, <br>
* this load option set to Boolean.TRUE will direct the deserializer
to suppress creating a document root instance.<br>
* This option is typically used in combination with {@link
#OPTION_ELEMENT_HANDLER}.<br>
* @since 2.4<br>
*/<br>
String OPTION_SUPPRESS_DOCUMENT_ROOT = "SUPPRESS_DOCUMENT_ROOT";<br>
</blockquote>
<br>
<br>
M. wrote:
<blockquote cite="mid:he1325$mbi$1@build.eclipse.org" type="cite">Actually
from this schema (deleting line about "import from oasis")I create the
ecore and genmodel, thus I'm able to generate the code and run as
eclipse plugin.
<br>
<br>
In the second eclipse instance when i test the plug-in, I don't
understand the mean of child (first child of resource) called
"DocumetRoot false", and the impossibilty to add a child "policy" that
should be my "element root" (mor external tag <policy ..all the doc
...</policy>).
<br>
<br>
I've tried to select "policy" in the last window of "policy model"
creation wizard thinking tht it will be apper as first child of my
resource, but nothing..
<br>
</blockquote>
</body>
</html>
--------------020901000102010604030402--
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02920 seconds