Class ValidationUtil


  • public class ValidationUtil
    extends Object
    Validation util.
    • Constructor Detail

      • ValidationUtil

        public ValidationUtil()
    • Method Detail

      • addError

        public static void addError​(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
      • addWarning

        public static void addWarning​(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
      • dataToArray

        public static Object[] dataToArray​(Object... elements)
        Adds error data to array.
        Parameters:
        elements - error data
        Returns:
        error data array