Java Reference
In-Depth Information
support, an enhanced Validation Framework component is available to provide
batch and “live” validation of domain model instances. By default, constraints
can be defined in Java and OCL, although additional languages can be provided.
The audit and metric features of GMF for diagrams leverage the Validation
Framework; Section 4.3.5, “Audits and Metrics,” discusses this.
Model Query
As in a database, the contents of a model instance commonly need to be queried.
EMF models can be queried using provided Java APIs, but the Model Query
component of EMF provides OCL- and SQL-like alternatives. Model Query pro-
vides only a programmatic interface, but the Model Search component of the
EMFT project aims to provide integration with the Eclipse Search UI.
Model Search
The Model Search component of the EMFT project provides rich model-search
capabilities and integrates into the familiar Eclipse Search dialog. Model search
provides regular expression- and OCL-based search for EMF and UML2 mod-
els. Search results are provided in the familiar search results view and include
result filtering support.
Model Compare
As with working with source code, working with models within a team inevi-
tably leads to the need for comparison and merge support. The EMF Compare
component of the EMFT project provides generic compare and merge support
for any Ecore-based model. Compare uses the standard Eclipse comparison
framework to provide a familiar environment for comparing two versions of a
model.
Persistence Alternatives
EMF has a flexible resource interface that allows the default XMI serialization to
be replaced with alternatives, including database persistence. One such capability
comes from Teneo, an EMFT project that leverages Hibernate (or Java Data
Objects [JDO]/Java Persistence Objects [JPOX]) to provide object-relational
mapping and persistence for EMF models. CDO is another object-relational map-
ping technology that allows for database persistence; a new component, Java
Content Repository (JCR) Management, allows for the persistence of EMF model
instances in a Java Specification Request (JSR)-170-compliant repository.
Search WWH ::




Custom Search