Interface DomainModelReferenceSegmentConverterEMF
-
- All Known Implementing Classes:
FeatureSegmentConverter
,IndexSegmentConverter
,MappingSegmentConverter
,MultiSegmentConverter
public interface DomainModelReferenceSegmentConverterEMF
- Since:
- 1.19
- Author:
- Lucas Koehler
-
-
Field Summary
Fields Modifier and Type Field Description static double
NOT_APPLICABLE
The constant defining the priority that aDomainModelReferenceSegmentConverterEMF
is not suitable for aVDomainModelReferenceSegment
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SegmentConverterListResultEMF
convertToListProperty(VDomainModelReferenceSegment segment, org.eclipse.emf.ecore.EClass segmentRoot, org.eclipse.emf.edit.domain.EditingDomain editingDomain)
Converts aVDomainModelReferenceSegment
to anIListProperty
.SegmentConverterValueResultEMF
convertToValueProperty(VDomainModelReferenceSegment segment, org.eclipse.emf.ecore.EClass segmentRoot, org.eclipse.emf.edit.domain.EditingDomain editingDomain)
Converts aVDomainModelReferenceSegment
to anIValueProperty
.org.eclipse.emf.ecore.EStructuralFeature.Setting
getSetting(VDomainModelReferenceSegment segment, org.eclipse.emf.ecore.EObject eObject)
Retrieve the Setting which is described by the providedVDomainModelReferenceSegment
and the providedEObject
.double
isApplicable(VDomainModelReferenceSegment segment)
Checks whether the givenVDomainModelReferenceSegment
can be converted by thisDomainModelReferenceSegmentConverterEMF
to anIValueProperty
or anIListProperty
.
-
-
-
Field Detail
-
NOT_APPLICABLE
static final double NOT_APPLICABLE
The constant defining the priority that aDomainModelReferenceSegmentConverterEMF
is not suitable for aVDomainModelReferenceSegment
.- See Also:
- Constant Field Values
-
-
Method Detail
-
isApplicable
double isApplicable(VDomainModelReferenceSegment segment)
Checks whether the givenVDomainModelReferenceSegment
can be converted by thisDomainModelReferenceSegmentConverterEMF
to anIValueProperty
or anIListProperty
. The return value is the priority of this converter. The higher the priority, the better the converter suits the givenVDomainModelReferenceSegment
.- Parameters:
segment
- TheVDomainModelReferenceSegment
whose priority is wanted.- Returns:
- The priority of the given
VDomainModelReferenceSegment
; negative infinity if this converter is not applicable.
-
convertToValueProperty
SegmentConverterValueResultEMF convertToValueProperty(VDomainModelReferenceSegment segment, org.eclipse.emf.ecore.EClass segmentRoot, org.eclipse.emf.edit.domain.EditingDomain editingDomain) throws DatabindingFailedException
Converts aVDomainModelReferenceSegment
to anIValueProperty
.- Parameters:
segment
- TheVDomainModelReferenceSegment
that will be converted to anIValueProperty
segmentRoot
- The rootEClass
of thesegment
used to resolve the segment to anEStructuralFeature
. This means theEClass
has to contain the feature used in the segmenteditingDomain
- TheEditingDomain
in which theIEMFValueProperty
is created- Returns:
- The
SegmentConverterValueResultEMF
with the createdIEMFValueProperty
, does not returnnull
- Throws:
DatabindingFailedException
- if no value property could be created
-
convertToListProperty
SegmentConverterListResultEMF convertToListProperty(VDomainModelReferenceSegment segment, org.eclipse.emf.ecore.EClass segmentRoot, org.eclipse.emf.edit.domain.EditingDomain editingDomain) throws DatabindingFailedException
Converts aVDomainModelReferenceSegment
to anIListProperty
.- Parameters:
segment
- TheVDomainModelReferenceSegment
that will be converted to anIValueProperty
segmentRoot
- The rootEClass
of thesegment
used to resolve the segment to anEStructuralFeature
. This means theEClass
has to contain the feature used in the segmenteditingDomain
- TheEditingDomain
in which theIEMFValueProperty
is created- Returns:
- The
SegmentConverterListResultEMF
with the createdIEMFListProperty
, does not returnnull
- Throws:
DatabindingFailedException
- if no value property could be created
-
getSetting
org.eclipse.emf.ecore.EStructuralFeature.Setting getSetting(VDomainModelReferenceSegment segment, org.eclipse.emf.ecore.EObject eObject) throws DatabindingFailedException
Retrieve the Setting which is described by the providedVDomainModelReferenceSegment
and the providedEObject
.- Parameters:
segment
- TheVDomainModelReferenceSegment
to use to retrieve the settingeObject
- TheEObject
to use to retrieve the setting. ThisEObject
must have the sameEClass
as the feature used in the segment- Returns:
- The Setting being described by the
segment
andEObject
- Throws:
DatabindingFailedException
- if the databinding could not be executed successfully.
-
-