Interface EStructuralFeatureValueConverterService
-
- All Known Implementing Classes:
EStructuralFeatureValueConverterServiceImpl
public interface EStructuralFeatureValueConverterService- Since:
- 1.11
- Author:
- Mathias Schaefer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddValueConverter(EStructuralFeatureValueConverter converter)Register the given value converter.java.lang.ObjectconvertToLiteral(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature feature, java.lang.Object instance)Convert value instance to literal.java.lang.ObjectconvertToModelValue(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature feature, java.lang.String literal)Convert literal to Object.voidremoveValueConverter(EStructuralFeatureValueConverter converter)Unregister the given value converter.
-
-
-
Method Detail
-
addValueConverter
void addValueConverter(EStructuralFeatureValueConverter converter)
Register the given value converter.- Parameters:
converter- to add to the registry
-
removeValueConverter
void removeValueConverter(EStructuralFeatureValueConverter converter)
Unregister the given value converter.- Parameters:
converter- to remove from the registry
-
convertToModelValue
java.lang.Object convertToModelValue(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature feature, java.lang.String literal)Convert literal to Object.- Parameters:
eObject- of the feature (optional, can be null)feature- target featureliteral- to convert- Returns:
- converted object (null if conversion failed)
-
convertToLiteral
java.lang.Object convertToLiteral(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature feature, java.lang.Object instance)Convert value instance to literal.- Parameters:
eObject- (optional, can be null)feature- source featureinstance- to convert- Returns:
- converted object (commonly a string literal, null if conversion failed)
-
-