[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.emf] Re: Cannot serialize attribute editable

Balaji,

Yes. You can set the Rose Ecore property unsettable to true, i.e., you can make
it an unsettable attribute by making sure the EStructuralFeature.unsettable is
set to true.  You will get isSet/unsetMethods as a result and you will be able
to tell the difference between being false by default and being set to false
explicitly.


Balaji wrote:

> Ed, When I set editable attribute to true, it serializes the information. In
> my model, I don't have a default specified for that attribute. Is it
> possible for me to serialize the editable=false for my object.
> I explicity set the value of editable to false before serializing the
> object.
>
> Thanks
> Balaji
>
> "Ed Merks" <merks@xxxxxxxxxx> wrote in message
> news:3F4E7CE7.9C2A2700@xxxxxxxxxxxxx
> > Balaji,
> >
> > This sounds familiar.  It probably is not considered set and hence it
> isn't
> > serialized. Try setting it to a value different from the default.
> >
> >
> > Balaji wrote:
> >
> > > I tried to save an EMF model. All the information gets saved except an
> > > attribute called editable.
> > > I have 3 classes A, B and C. B contains an attribute called editable and
> > > list of C's. The XMI file saved does not contain information regarding
> > > editable attribute. Is the word editable reserved by EMF and should not
> be
> > > used to represent any attribute?
> > >
> > > Thanks
> > > Balaji
> >