Interface PreSetValidator


  • public interface PreSetValidator
    A PreSetValidator validates a value against a given data type, before it gets set in the model.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean validate​(org.eclipse.emf.ecore.EDataType eDataType, java.lang.Object value, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      Validates the object in the given context, optionally producing diagnostics.
    • Method Detail

      • validate

        boolean validate​(org.eclipse.emf.ecore.EDataType eDataType,
                         java.lang.Object value,
                         org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                         java.util.Map<java.lang.Object,​java.lang.Object> context)
        Validates the object in the given context, optionally producing diagnostics.
        Parameters:
        eDataType - the EDataType to validate the value against
        value - the value to be validated
        diagnostics - a place to accumulate diagnostics; if it's null, no diagnostics should be produced.
        context - a place to cache information, if it's null, no cache is supported.
        Returns:
        whether the object is valid.