public class EMFFormsDomainExpanderImpl extends Object implements EMFFormsDomainExpander
EMFFormsDomainExpander
.Constructor and Description |
---|
EMFFormsDomainExpanderImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
addEMFFormsDMRExpander(EMFFormsDMRExpander emfFormsDMRExpander)
Called by the framework to add an
EMFFormsDMRExpander to the set of DMR expanders. |
protected void |
addEMFFormsDMRSegmentExpander(EMFFormsDMRSegmentExpander emfFormsDMRSegmentExpander)
Called by the framework to add an
EMFFormsDMRSegmentExpander to the set of DMR segment expanders. |
void |
prepareDomainObject(VDomainModelReference domainModelReference,
org.eclipse.emf.ecore.EObject domainObject)
Expands a
domain object for the given VDomainModelReference . |
protected void |
removeEMFFormsDMRExpander(EMFFormsDMRExpander emfFormsDMRExpander)
Called by the framework to remove an
EMFFormsDMRExpander from the set of DMR expanders. |
protected void |
removeEMFFormsDMRSegmentExpander(EMFFormsDMRSegmentExpander emfFormsDMRSegmentExpander)
Called by the framework to remove an
EMFFormsDMRSegmentExpander from the set of DMR segment expanders. |
protected void addEMFFormsDMRExpander(EMFFormsDMRExpander emfFormsDMRExpander)
EMFFormsDMRExpander
to the set of DMR expanders.emfFormsDMRExpander
- The EMFFormsDMRExpander
to addprotected void removeEMFFormsDMRExpander(EMFFormsDMRExpander emfFormsDMRExpander)
EMFFormsDMRExpander
from the set of DMR expanders.emfFormsDMRExpander
- The EMFFormsDMRExpander
to removeprotected void addEMFFormsDMRSegmentExpander(EMFFormsDMRSegmentExpander emfFormsDMRSegmentExpander)
EMFFormsDMRSegmentExpander
to the set of DMR segment expanders.emfFormsDMRSegmentExpander
- The EMFFormsDMRSegmentExpander
to addprotected void removeEMFFormsDMRSegmentExpander(EMFFormsDMRSegmentExpander emfFormsDMRSegmentExpander)
EMFFormsDMRSegmentExpander
from the set of DMR segment expanders.emfFormsDMRSegmentExpander
- The EMFFormsDMRSegmentExpander
to removepublic void prepareDomainObject(VDomainModelReference domainModelReference, org.eclipse.emf.ecore.EObject domainObject) throws EMFFormsExpandingFailedException
EMFFormsDomainExpander
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.
prepareDomainObject
in interface EMFFormsDomainExpander
domainModelReference
- The VDomainModelReference
for which the domain object
should
be prepared.domainObject
- The domain object
to prepare.EMFFormsExpandingFailedException
- if the domain expansion fails.Copyright © 2019. All rights reserved.