|
|
|
Re: XMI attribute lost [message #1074999 is a reply to message #1074677] |
Sun, 28 July 2013 11:32 |
Jesús Muñoz Messages: 7 Registered: July 2013 |
Junior Member |
|
|
Thanks for your answer Ed.
I´ve tried what you said, I save the model like this:
IExtractor extractor = new EMFExtractor();
extractor.extract(outModel, target, options);
Where options are:
HashMap<String,Object> options = new HashMap<String,Object>();
options.put("supportUML2Stereotypes", "true");
options.put("printExecutionTime", "true");
options.put("allowInterModelReferences", "true");
options.put("OPTION_SCHEMA_LOCATION", "file:/"+path");
But it doesn´t works. Thank you for your help Ed.
|
|
|
Re: XMI attribute lost [message #1075246 is a reply to message #1074999] |
Mon, 29 July 2013 05:32 |
Ed Willink Messages: 7661 Registered: July 2009 |
Senior Member |
|
|
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi<br>
<br>
I write earlier:<br>
<br>
<blockquote>Whether an xsi:schemaLocation is generated depends on
the options map passed to save(). The relevant XMLResource
option is
<br>
<br>
/**
<br>
* Produce an xsi:schemaLocation/xsi:noNamespaceSchemaLocation
in the saved result.
<br>
*/
<br>
String OPTION_SCHEMA_LOCATION = "SCHEMA_LOCATION";
<br>
</blockquote>
<br>
The options are not typed so you must check the type yourself. The
Javadoc doesn;t mention the type explicitly but it really only
gives you two options so it is Boolean.<br>
<br>
It is always good to search for example when unsure. How about the
first search return that I get:<br>
<br>
result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION,
Boolean.TRUE);<br>
<br>
Regards<br>
<br>
Ed Willink<br>
<br>
On 28/07/2013 12:32, Jesús Muñoz wrote:<br>
</div>
<blockquote cite="mid:kt2vge$5jp$1@xxxxxxxxe.org" type="cite">Thanks
for your answer Ed.
<br>
<br>
I´ve tried what you said, I save the model like this:
<br>
<br>
<br>
IExtractor extractor = new EMFExtractor();
<br>
extractor.extract(outModel, target, options);
<br>
<br>
<br>
Where options are:
<br>
<br>
<br>
HashMap<String,Object> options = new
HashMap<String,Object>();
<br>
options.put("supportUML2Stereotypes", "true");
<br>
options.put("printExecutionTime", "true");
<br>
options.put("allowInterModelReferences", "true");
<br>
options.put("OPTION_SCHEMA_LOCATION", <a class="moz-txt-link-rfc2396E" href="file:/">"file:/"</a>+path");
<br>
<br>
<br>
But it doesn´t works. Thank you for your help Ed.
<br>
</blockquote>
<br>
</body>
</html>
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03424 seconds