public interface EMFFormsDMRSegmentExpander
prepareDomainObject(VDomainModelReferenceSegment, EObject)that allows to expand a given
domain objectfor a
VDomainModelReferenceSegment. The method
isApplicable(VDomainModelReferenceSegment)is used to determine how suitable this service is for a certain
Note: This interface is not intended for public use but defines the services which are internally
used in the
|Modifier and Type||Method and Description|
static final Double NOT_APPLICABLE
Optional<org.eclipse.emf.ecore.EObject> prepareDomainObject(VDomainModelReferenceSegment segment, org.eclipse.emf.ecore.EObject domainObject) throws EMFFormsExpandingFailedException
domain objectfor the given
VDomainModelReferenceSegment. Thereby, the feature defined by the segment is analyzed and if it is a reference, the missing target object will be created. Thereby, the segment is not changed. The target of the segment's feature is returned. This is the created
EObjectif it was created by this method or the already existing target of the segment's feature.
DMR: A -a-> B
The domain model is instance of A but does not reference an instance of B. The segment contains the feature 'a'.
=> An instance of B is created and referenced by the domain model. B is returned by this expander.
VDomainModelReferenceSegmentfor which the
domain objectshould be prepared.
domain objectto prepare.
EObjectwas created, it is returned, otherwise the already existing target is returned. May return nothing. If the given segment was not the DMR's last segment, this causes the DMR expansion process to fail.
EMFFormsExpandingFailedException- if the domain expansion fails.
double isApplicable(VDomainModelReferenceSegment segment)
Copyright © 2019. All rights reserved.