public class EStructuralFeatureValueConverterServiceImpl extends Object implements EStructuralFeatureValueConverterService
Constructor and Description |
---|
EStructuralFeatureValueConverterServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addValueConverter(EStructuralFeatureValueConverter converter)
Register the given value converter.
|
Object |
convertToLiteral(org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.ecore.EStructuralFeature feature,
Object instance)
Convert value instance to literal.
|
Object |
convertToModelValue(org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.ecore.EStructuralFeature feature,
String literal)
Convert literal to Object.
|
void |
removeValueConverter(EStructuralFeatureValueConverter converter)
Unregister the given value converter.
|
public EStructuralFeatureValueConverterServiceImpl()
public void addValueConverter(EStructuralFeatureValueConverter converter)
EStructuralFeatureValueConverterService
addValueConverter
in interface EStructuralFeatureValueConverterService
converter
- to add to the registrypublic void removeValueConverter(EStructuralFeatureValueConverter converter)
EStructuralFeatureValueConverterService
removeValueConverter
in interface EStructuralFeatureValueConverterService
converter
- to remove from the registrypublic Object convertToModelValue(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature feature, String literal)
EStructuralFeatureValueConverterService
convertToModelValue
in interface EStructuralFeatureValueConverterService
eObject
- of the feature (optional, can be null)feature
- target featureliteral
- to convertpublic Object convertToLiteral(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature feature, Object instance)
EStructuralFeatureValueConverterService
convertToLiteral
in interface EStructuralFeatureValueConverterService
eObject
- (optional, can be null)feature
- source featureinstance
- to convertCopyright © 2019. All rights reserved.