java - Is there a way to provide a read-only representation of an EObject (EMF)? -
i have emf model , want provide read-only representation of objects in model (in order prevent unwanted changes being made model).
is there way provide (maybe kind of read-only proxy/facade eobjects)? don't want solve not generating setters. in fact, want avoid changing existing model classes far possible. instead, i'd rather add it...
thanks in advance, ingo
what approach take going depend on bigger picture of trying achieve.
if want framework work emf-transaction worth looking at. access model achieved through transactions , there support read-only transactions.
if want lighter emf objects implement read-only interfaces. shouldn't work add template automatically generate these if wished.
tas
Comments
Post a Comment