public interface EStructuralFeatureValueConverterService
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.
|
void addValueConverter(EStructuralFeatureValueConverter converter)
converter
- to add to the registryvoid removeValueConverter(EStructuralFeatureValueConverter converter)
converter
- to remove from the registryObject convertToModelValue(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature feature, String literal)
eObject
- of the feature (optional, can be null)feature
- target featureliteral
- to convertObject convertToLiteral(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature feature, Object instance)
eObject
- (optional, can be null)feature
- source featureinstance
- to convertCopyright © 2019. All rights reserved.