Class AggregatesValidatorUtil


  • public class AggregatesValidatorUtil
    extends Object
    Aggregates validator utils
    • Constructor Detail

      • AggregatesValidatorUtil

        public AggregatesValidatorUtil()
    • Method Detail

      • getAccumulationRegisterContainer

        public static AccumulationRegister getAccumulationRegisterContainer​(org.eclipse.emf.ecore.EObject eObject,
                                                                            Map<Object,​Object> context)
        Get accumulation register owner of given object.

        Used validation context to contain accumulation register for validation chain procces

        Parameters:
        eObject - the accumulation register or child object of accumulation register, cannot be null
        context - the validation context map, cannot be null
        Returns:
      • error

        public static void error​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                 int code,
                                 String message,
                                 Object... data)
        Adds error into EMF diagnostics.
        Parameters:
        diagnostics - EMF diagnostics
        code - error code
        message - error message
        data - error data
      • warning

        public static void warning​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                   int code,
                                   String message,
                                   Object... data)
        Adds warning into EMF diagnostics.
        Parameters:
        diagnostics - EMF diagnostics
        code - error code
        message - error message
        data - error data