Interface IFeatureConstraint

  • All Known Subinterfaces:
    PreSetValidationService
    All Known Implementing Classes:
    PreSetValidationServiceImpl

    public interface IFeatureConstraint
    Interface that checks whether a given value complies with constraints defined by a given feature.
    Since:
    1.13
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String E_ROOT_OBJECT
      Context map key to retrieve the the root EObject (may be null).
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.eclipse.emf.common.util.Diagnostic validate​(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, java.lang.Object value, java.util.Map<java.lang.Object,​java.lang.Object> context)
      Validate a given value against constraints defined by the EDataType of the EStructuralFeature.
    • Field Detail

      • E_ROOT_OBJECT

        static final java.lang.String E_ROOT_OBJECT
        Context map key to retrieve the the root EObject (may be null).
        See Also:
        Constant Field Values
    • Method Detail

      • validate

        org.eclipse.emf.common.util.Diagnostic validate​(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature,
                                                        java.lang.Object value,
                                                        java.util.Map<java.lang.Object,​java.lang.Object> context)
        Validate a given value against constraints defined by the EDataType of the EStructuralFeature.
        Parameters:
        eStructuralFeature - the feature that defines any constraints
        value - the value to be validated
        context - the validation context, may be null
        Returns:
        a Diagnostic describing any potential errors