Interface EStructuralFeatureValueConverterService

    • 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 feature
        literal - 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 feature
        instance - to convert
        Returns:
        converted object (commonly a string literal, null if conversion failed)