public class MultiSegmentConverter extends FeatureSegmentConverter
NOT_APPLICABLE| Constructor and Description |
|---|
MultiSegmentConverter() |
| 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. |
public double isApplicable(VDomainModelReferenceSegment segment)
DomainModelReferenceSegmentConverterEMFVDomainModelReferenceSegment 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.isApplicable in interface DomainModelReferenceSegmentConverterEMFisApplicable in class FeatureSegmentConvertersegment - The VDomainModelReferenceSegment whose priority is wanted.VDomainModelReferenceSegment; negative infinity if this converter is
not applicable.public SegmentConverterValueResultEMF convertToValueProperty(VDomainModelReferenceSegment segment, org.eclipse.emf.ecore.EClass segmentRoot, org.eclipse.emf.edit.domain.EditingDomain editingDomain) throws DatabindingFailedException
DomainModelReferenceSegmentConverterEMFVDomainModelReferenceSegment to an IValueProperty.convertToValueProperty in interface DomainModelReferenceSegmentConverterEMFconvertToValueProperty in class FeatureSegmentConvertersegment - The VDomainModelReferenceSegment that will be converted to an IValuePropertysegmentRoot - 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
nullDatabindingFailedException - if no value property could be createdpublic SegmentConverterListResultEMF convertToListProperty(VDomainModelReferenceSegment segment, org.eclipse.emf.ecore.EClass segmentRoot, org.eclipse.emf.edit.domain.EditingDomain editingDomain) throws DatabindingFailedException
DomainModelReferenceSegmentConverterEMFVDomainModelReferenceSegment to an IListProperty.convertToListProperty in interface DomainModelReferenceSegmentConverterEMFconvertToListProperty in class FeatureSegmentConvertersegment - The VDomainModelReferenceSegment that will be converted to an IValuePropertysegmentRoot - 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
nullDatabindingFailedException - if no value property could be createdpublic org.eclipse.emf.ecore.EStructuralFeature.Setting getSetting(VDomainModelReferenceSegment segment, org.eclipse.emf.ecore.EObject eObject) throws DatabindingFailedException
DomainModelReferenceSegmentConverterEMFVDomainModelReferenceSegment and the provided
EObject.getSetting in interface DomainModelReferenceSegmentConverterEMFgetSetting in class FeatureSegmentConvertersegment - 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 EObjectDatabindingFailedException - if the databinding could not be executed successfully.Copyright © 2020. All rights reserved.