/** * @since 2.6 */ protected void reportConstraintDelegateException(EClass eClass, EObject eObject, DiagnosticChain diagnostics, Map<Object, Object> context, String constraint, int severity, String source, int code, Throwable throwable) { diagnostics.add (new BasicDiagnostic (severity, source, code, getString("_UI_ConstraintDelegateException_diagnostic", new Object[] { constraint, getObjectLabel(eObject, context), throwable.getClass().getName() + ": " + throwable.getLocalizedMessage() }), new Object [] { eObject, throwable })); }
/** * @since 2.6 */ protected void reportConstraintDelegateException(EClass eClass, EObject eObject, DiagnosticChain diagnostics, Map<Object, Object> context, String constraint, int severity, String source, int code, Throwable throwable) { diagnostics.add (new BasicDiagnostic (severity, source, code, getString("_UI_ConstraintDelegateException_diagnostic", new Object[] { constraint, getObjectLabel(eObject, context), throwable.getClass().getName() + ": " + throwable.getLocalizedMessage() }), new Object [] { eObject, throwable })); }
/** * @since 2.6 */ protected static void reportInvariantDelegateException(EClass eClass, EObject eObject, DiagnosticChain diagnostics, Map<Object, Object> context, EOperation invariant, int severity, String source, int code, Throwable throwable) { diagnostics.add (new BasicDiagnostic (severity, source, code, EcorePlugin.INSTANCE.getString("_UI_InvariantDelegateException_diagnostic", new Object[] { invariant.getName(), getObjectLabel(eObject, context), throwable.getClass().getName() + ": " + throwable.getLocalizedMessage() }), new Object [] { eObject, throwable })); }
/** * @since 2.6 */ protected static void reportInvariantDelegateException(EClass eClass, EObject eObject, DiagnosticChain diagnostics, Map<Object, Object> context, EOperation invariant, int severity, String source, int code, Throwable throwable) { diagnostics.add (new BasicDiagnostic (severity, source, code, EcorePlugin.INSTANCE.getString("_UI_InvariantDelegateException_diagnostic", new Object[] { invariant.getName(), getObjectLabel(eObject, context), throwable.getClass().getName() + ": " + throwable.getLocalizedMessage() }), new Object [] { eObject, throwable })); }
new Object [] getObjectLabel(eObject, context), }, new Object [] { eObject },
/** * @since 2.6 */ protected void reportConstraintDelegateNotFound(EClass eClass, EObject eObject, DiagnosticChain diagnostics, Map<Object, Object> context, String constraint, int severity, String source, int code, String validationDelegate) { diagnostics.add (new BasicDiagnostic (severity, source, code, getString("_UI_ConstraintDelegateNotFound_diagnostic", new Object[] { constraint, getObjectLabel(eObject, context), validationDelegate }), new Object [] { eObject })); }
/** * @since 2.6 */ protected void reportConstraintDelegateViolation(EClass eClass, EObject eObject, DiagnosticChain diagnostics, Map<Object, Object> context, String constraint, int severity, String source, int code) { diagnostics.add (new BasicDiagnostic (severity, source, code, getString("_UI_GenericConstraint_diagnostic", new Object[] { constraint, getObjectLabel(eObject, context) }), new Object [] { eObject })); }
/** * @since 2.6 */ protected void reportConstraintDelegateViolation(EClass eClass, EObject eObject, DiagnosticChain diagnostics, Map<Object, Object> context, String constraint, int severity, String source, int code) { diagnostics.add (new BasicDiagnostic (severity, source, code, getString("_UI_GenericConstraint_diagnostic", new Object[] { constraint, getObjectLabel(eObject, context) }), new Object [] { eObject })); }
/** * @since 2.6 */ protected void reportConstraintDelegateNotFound(EClass eClass, EObject eObject, DiagnosticChain diagnostics, Map<Object, Object> context, String constraint, int severity, String source, int code, String validationDelegate) { diagnostics.add (new BasicDiagnostic (severity, source, code, getString("_UI_ConstraintDelegateNotFound_diagnostic", new Object[] { constraint, getObjectLabel(eObject, context), validationDelegate }), new Object [] { eObject })); }
protected DiagnosticChain createBadDataValueDiagnostic (EObject eObject, EAttribute eAttribute, DiagnosticChain diagnostics, Map<Object, Object> context) { BasicDiagnostic diagnostic = createDiagnostic (Diagnostic.ERROR, DIAGNOSTIC_SOURCE, EOBJECT__EVERY_DATA_VALUE_CONFORMS, "_UI_BadDataValue_diagnostic", new Object [] { getFeatureLabel(eAttribute, context), getObjectLabel(eObject, context) }, new Object [] { eObject, eAttribute }, context); diagnostics.add(diagnostic); return diagnostic; }
/** * @since 2.6 */ protected static void reportInvariantDelegateNotFound(EClass eClass, EObject eObject, DiagnosticChain diagnostics, Map<Object, Object> context, EOperation invariant, int severity, String source, int code, String validationDelegate) { diagnostics.add (new BasicDiagnostic (severity, source, code, EcorePlugin.INSTANCE.getString("_UI_InvariantDelegateNotFound_diagnostic", new Object[] { invariant.getName(), getObjectLabel(eObject, context), validationDelegate }), new Object [] { eObject })); }
protected DiagnosticChain createBadDataValueDiagnostic (EObject eObject, EAttribute eAttribute, DiagnosticChain diagnostics, Map<Object, Object> context) { BasicDiagnostic diagnostic = createDiagnostic (Diagnostic.ERROR, DIAGNOSTIC_SOURCE, EOBJECT__EVERY_DATA_VALUE_CONFORMS, "_UI_BadDataValue_diagnostic", new Object [] { getFeatureLabel(eAttribute, context), getObjectLabel(eObject, context) }, new Object [] { eObject, eAttribute }, context); diagnostics.add(diagnostic); return diagnostic; }
/** * @since 2.6 */ protected static void reportInvariantDelegateNotFound(EClass eClass, EObject eObject, DiagnosticChain diagnostics, Map<Object, Object> context, EOperation invariant, int severity, String source, int code, String validationDelegate) { diagnostics.add (new BasicDiagnostic (severity, source, code, EcorePlugin.INSTANCE.getString("_UI_InvariantDelegateNotFound_diagnostic", new Object[] { invariant.getName(), getObjectLabel(eObject, context), validationDelegate }), new Object [] { eObject })); }
/** * @see #INVALID_REFERENCE */ protected void reportInvalidReference(EAnnotation eAnnotation, EModelElement eModelElement, EObject reference, DiagnosticChain diagnostics, Map<Object, Object> context) { diagnostics.add( createDiagnostic( Diagnostic.WARNING, INVALID_REFERENCE, getString(getEcoreResourceLocator(), "_UI_InvalidAnnotationReference_diagnostic", annotationName, EObjectValidator.getObjectLabel(reference, context)), eAnnotation, EcorePackage.Literals.EANNOTATION__REFERENCES, reference)); }
/** * @since 2.6 */ protected static void reportInvariantDelegateViolation(EClass eClass, EObject eObject, DiagnosticChain diagnostics, Map<Object, Object> context, EOperation invariant, int severity, String source, int code) { diagnostics.add (new BasicDiagnostic (severity, source, code, EcorePlugin.INSTANCE.getString("_UI_GenericInvariant_diagnostic", new Object[] { invariant.getName(), getObjectLabel(eObject, context) }), new Object [] { eObject })); }
/** * @since 2.6 */ protected static void reportInvariantDelegateViolation(EClass eClass, EObject eObject, DiagnosticChain diagnostics, Map<Object, Object> context, EOperation invariant, int severity, String source, int code) { diagnostics.add (new BasicDiagnostic (severity, source, code, EcorePlugin.INSTANCE.getString("_UI_GenericInvariant_diagnostic", new Object[] { invariant.getName(), getObjectLabel(eObject, context) }), new Object [] { eObject })); }
/** * @see #INVALID_CONTENT */ protected void reportInvalidContent(EAnnotation eAnnotation, EModelElement eModelElement, EObject content, DiagnosticChain diagnostics, Map<Object, Object> context) { diagnostics.add( createDiagnostic( Diagnostic.WARNING, INVALID_CONTENT, getString(getEcoreResourceLocator(), "_UI_InvalidAnnotationContent_diagnostic", annotationName, EObjectValidator.getObjectLabel(content, context)), eAnnotation, EcorePackage.Literals.EANNOTATION__CONTENTS, content)); }
org.eclipse.emf.ecore.plugin.EcorePlugin.INSTANCE .getString( "_UI_GenericInvariant_diagnostic", new Object[]{"checkNoInvalidValues", org.eclipse.emf.ecore.util.EObjectValidator.getObjectLabel(collectionType, context)}), //$NON-NLS-1$ //$NON-NLS-2$ new Object[]{collectionType}));
/** * @see #INVALID_ANNOTATION */ protected void reportInvalidAnnotation( EAnnotation eAnnotation, EModelElement eModelElement, EAnnotation nestedEAnnotation, DiagnosticChain diagnostics, Map<Object, Object> context) { diagnostics.add( createDiagnostic( Diagnostic.WARNING, INVALID_ANNOTATION, getString(getEcoreResourceLocator(), "_UI_InvalidAnnotationAnnotation_diagnostic", annotationName, EObjectValidator.getObjectLabel(nestedEAnnotation, context)), eAnnotation, EcorePackage.Literals.EANNOTATION__CONTENTS, nestedEAnnotation)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * @param eivL_event The receiving '<em><b>EIVL event</b></em>' model object. * @param diagnostics The chain of diagnostics to which problems are to be appended. * @param context The cache of context-specific information. * <!-- end-model-doc --> * @generated NOT */ public static boolean validateCode(EIVL_event eivL_event, DiagnosticChain diagnostics, Map<Object, Object> context) { if ((eivL_event != null) && (eivL_event.getCode() != null) && (TimingEvent.get(eivL_event.getCode()) == null)) { if (diagnostics != null) { diagnostics.add(new BasicDiagnostic( Diagnostic.ERROR, DatatypesValidator.DIAGNOSTIC_SOURCE, DatatypesValidator.EIVL_EVENT__CODE, org.eclipse.emf.ecore.plugin.EcorePlugin.INSTANCE.getString( "_UI_GenericInvariant_diagnostic", new Object[] { "validateCode", org.eclipse.emf.ecore.util.EObjectValidator.getObjectLabel(eivL_event, context) }), new Object[] { eivL_event })); } return false; } return true; }