public interface EMFFormsDomainExpander
prepareDomainObject(VDomainModelReference, EObject)
that allows to expand a
given domain object
for a VDomainModelReference
. Thereby, missing references, which are
defined in the domain model reference but do not yet exist (= are null) in the domain model, are created.Modifier and Type | Method and Description |
---|---|
void |
prepareDomainObject(VDomainModelReference domainModelReference,
org.eclipse.emf.ecore.EObject domainObject)
Expands a
domain object for the given VDomainModelReference . |
void prepareDomainObject(VDomainModelReference domainModelReference, org.eclipse.emf.ecore.EObject domainObject) throws EMFFormsExpandingFailedException
domain object
for the given VDomainModelReference
. Thereby, the path defined
by the VDomainModelReference
is analyzed and missing objects in the domain model are created. The
VDomainModelReference
is not changed.
Example:
DMR: A -> B -> x
domain model is instance of A but does not reference an instance of B
=> An instance of B is created and referenced by the domain model.
domainModelReference
- The VDomainModelReference
for which the domain object
should
be prepared.domainObject
- The domain object
to prepare.EMFFormsExpandingFailedException
- if the domain expansion fails.Copyright © 2016. All rights reserved.