Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Ecore Tools » EMF Serialization/Loading question(EMF)
EMF Serialization/Loading question [message #551562] Sat, 07 August 2010 05:32
Loic JULIEN is currently offline Loic JULIENFriend
Messages: 3
Registered: July 2009
Junior Member

One of our EMF Attribute contains values with very long strings. Those strings are formatted for correct display in an editor: indentation/new line.

When we trigger the EMF serialization on the owning resource, the following typical processing happens on the formatting:
\t (TAB) is replaced with 	
\n (LF) is replaced with 

1- We would like, in the serialized resource, to preserve the initial formatting for those strings. What would you recommend?
- Wrapping it with CDATA .
- Any side effect you could think of?
- Any better way?

2- Would the serialization aspect be achieved by extending XMISaveImpl. While we may be able to modify the attribute type and get this expressed in the Rose Model, this would have some side effect: code compatibility, resource migration...

I thank you for your answer and expertise.

Previous Topic:Do bounds (lower and upper) of EReference have any effect?
Next Topic:Interdependent attributes
Goto Forum:

Current Time: Fri Sep 25 01:49:45 GMT 2020

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

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

Back to the top