public interface EStructuralFeatureValueConverter
Modifier and Type | Interface and Description |
---|---|
static class |
EStructuralFeatureValueConverter.Direction
Conversion direction.
|
Modifier and Type | Field and Description |
---|---|
static double |
NOT_APPLICABLE
Constant value to mark a converter implementation not applicable
for the given EObject/EStructuralFeature combination.
|
Modifier and Type | Method and Description |
---|---|
Object |
convertToLiteral(org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.ecore.EStructuralFeature feature,
Object instance)
Convert model value instance to string literal.
|
Object |
convertToModelValue(org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.ecore.EStructuralFeature feature,
String literal)
Convert string literal to model value instance.
|
double |
isApplicable(org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.ecore.EStructuralFeature feature,
Object value,
EStructuralFeatureValueConverter.Direction direction)
Check whether this converter instance is applicable for the given feature.
|
static final double NOT_APPLICABLE
double isApplicable(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature feature, Object value, EStructuralFeatureValueConverter.Direction direction)
eObject
- (optional)feature
- the target featurevalue
- the valuedirection
- the directionObject convertToModelValue(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature feature, String literal)
eObject
- (optional, only required for EReferences)feature
- the target featureliteral
- the string literalObject convertToLiteral(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature feature, Object instance)
eObject
- (optional)feature
- the source featureinstance
- the source value objectCopyright © 2018. All rights reserved.