public interface DomainModelReferenceSegmentConverterEMF
Modifier and Type | Field and Description |
---|---|
static double |
NOT_APPLICABLE
The constant defining the priority that a
DomainModelReferenceSegmentConverterEMF is not suitable for a
VDomainModelReferenceSegment . |
Modifier and Type | Method and Description |
---|---|
SegmentConverterListResultEMF |
convertToListProperty(VDomainModelReferenceSegment segment,
org.eclipse.emf.ecore.EClass segmentRoot,
org.eclipse.emf.edit.domain.EditingDomain editingDomain)
Converts a
VDomainModelReferenceSegment to an IListProperty . |
SegmentConverterValueResultEMF |
convertToValueProperty(VDomainModelReferenceSegment segment,
org.eclipse.emf.ecore.EClass segmentRoot,
org.eclipse.emf.edit.domain.EditingDomain editingDomain)
Converts a
VDomainModelReferenceSegment to an IValueProperty . |
org.eclipse.emf.ecore.EStructuralFeature.Setting |
getSetting(VDomainModelReferenceSegment segment,
org.eclipse.emf.ecore.EObject eObject)
Retrieve the Setting which is described by the provided
VDomainModelReferenceSegment and the provided
EObject . |
double |
isApplicable(VDomainModelReferenceSegment segment)
Checks whether the given
VDomainModelReferenceSegment can be converted by this
DomainModelReferenceSegmentConverterEMF to an IValueProperty or an IListProperty . |
static final double NOT_APPLICABLE
DomainModelReferenceSegmentConverterEMF
is not suitable for a
VDomainModelReferenceSegment
.double isApplicable(VDomainModelReferenceSegment segment)
VDomainModelReferenceSegment
can be converted by this
DomainModelReferenceSegmentConverterEMF
to an IValueProperty
or an IListProperty
. The
return value is the priority of this converter. The higher the priority, the better the converter suits the given
VDomainModelReferenceSegment
.segment
- The VDomainModelReferenceSegment
whose priority is wanted.VDomainModelReferenceSegment
; negative infinity if this converter is
not applicable.SegmentConverterValueResultEMF convertToValueProperty(VDomainModelReferenceSegment segment, org.eclipse.emf.ecore.EClass segmentRoot, org.eclipse.emf.edit.domain.EditingDomain editingDomain) throws DatabindingFailedException
VDomainModelReferenceSegment
to an IValueProperty
.segment
- The VDomainModelReferenceSegment
that will be converted to an IValueProperty
segmentRoot
- The root EClass
of the segment
used to resolve
the segment to an EStructuralFeature
. This means the EClass
has to contain the feature
used in the segmenteditingDomain
- The EditingDomain
in which the IEMFValueProperty
is createdSegmentConverterValueResultEMF
with the created IEMFValueProperty
, does not return
null
DatabindingFailedException
- if no value property could be createdSegmentConverterListResultEMF convertToListProperty(VDomainModelReferenceSegment segment, org.eclipse.emf.ecore.EClass segmentRoot, org.eclipse.emf.edit.domain.EditingDomain editingDomain) throws DatabindingFailedException
VDomainModelReferenceSegment
to an IListProperty
.segment
- The VDomainModelReferenceSegment
that will be converted to an IValueProperty
segmentRoot
- The root EClass
of the segment
used to resolve
the segment to an EStructuralFeature
. This means the EClass
has to contain the feature
used in the segmenteditingDomain
- The EditingDomain
in which the IEMFValueProperty
is createdSegmentConverterListResultEMF
with the created IEMFListProperty
, does not return
null
DatabindingFailedException
- if no value property could be createdorg.eclipse.emf.ecore.EStructuralFeature.Setting getSetting(VDomainModelReferenceSegment segment, org.eclipse.emf.ecore.EObject eObject) throws DatabindingFailedException
VDomainModelReferenceSegment
and the provided
EObject
.segment
- The VDomainModelReferenceSegment
to use to retrieve the settingeObject
- The EObject
to use to retrieve the setting. This EObject
must have the same
EClass
as the feature used in the segmentsegment
and EObject
DatabindingFailedException
- if the databinding could not be executed successfully.Copyright © 2019. All rights reserved.