protected void reportMaxViolation (EDataType eDataType, Object value, Object bound, boolean isInclusive, DiagnosticChain diagnostics, Map<Object, Object> context) { diagnostics.add (createDiagnostic (Diagnostic.ERROR, DIAGNOSTIC_SOURCE, DATA_VALUE__VALUE_IN_RANGE, isInclusive ? "_UI_MaxInclusiveConstraint_diagnostic" : "_UI_MaxExclusiveConstraint_diagnostic", new Object [] { getValueLabel(eDataType, value, context), "<", getValueLabel(eDataType, bound, context) }, new Object [] { value, bound, isInclusive ? Boolean.TRUE : Boolean.FALSE }, context)); }
protected void reportMinViolation (EDataType eDataType, Object value, Object bound, boolean isInclusive, DiagnosticChain diagnostics, Map<Object, Object> context) { diagnostics.add (createDiagnostic (Diagnostic.ERROR, DIAGNOSTIC_SOURCE, DATA_VALUE__VALUE_IN_RANGE, isInclusive ? "_UI_MinInclusiveConstraint_diagnostic" : "_UI_MinExclusiveConstraint_diagnostic", new Object [] { getValueLabel(eDataType, value, context), isInclusive ? ">=" : ">", getValueLabel(eDataType, bound, context) }, new Object [] { value, bound, isInclusive ? Boolean.TRUE : Boolean.FALSE }, context)); }
protected void reportMaxViolation (EDataType eDataType, Object value, Object bound, boolean isInclusive, DiagnosticChain diagnostics, Map<Object, Object> context) { diagnostics.add (createDiagnostic (Diagnostic.ERROR, DIAGNOSTIC_SOURCE, DATA_VALUE__VALUE_IN_RANGE, isInclusive ? "_UI_MaxInclusiveConstraint_diagnostic" : "_UI_MaxExclusiveConstraint_diagnostic", new Object [] { getValueLabel(eDataType, value, context), "<", getValueLabel(eDataType, bound, context) }, new Object [] { value, bound, isInclusive ? Boolean.TRUE : Boolean.FALSE }, context)); }
protected void reportMinViolation (EDataType eDataType, Object value, Object bound, boolean isInclusive, DiagnosticChain diagnostics, Map<Object, Object> context) { diagnostics.add (createDiagnostic (Diagnostic.ERROR, DIAGNOSTIC_SOURCE, DATA_VALUE__VALUE_IN_RANGE, isInclusive ? "_UI_MinInclusiveConstraint_diagnostic" : "_UI_MinExclusiveConstraint_diagnostic", new Object [] { getValueLabel(eDataType, value, context), isInclusive ? ">=" : ">", getValueLabel(eDataType, bound, context) }, new Object [] { value, bound, isInclusive ? Boolean.TRUE : Boolean.FALSE }, context)); }
/** * @since 2.6 */ protected void reportConstraintDelegateException(EDataType eDataType, Object value, 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, getValueLabel(eDataType, value, context), throwable.getClass().getName() + ": " + throwable.getLocalizedMessage() }), new Object [] { value, throwable })); }
/** * @since 2.6 */ protected void reportConstraintDelegateException(EDataType eDataType, Object value, 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, getValueLabel(eDataType, value, context), throwable.getClass().getName() + ": " + throwable.getLocalizedMessage() }), new Object [] { value, throwable })); }
protected void reportMaxLengthViolation (EDataType eDataType, Object value, int length, int bound, DiagnosticChain diagnostics, Map<Object, Object> context) { diagnostics.add (createDiagnostic (Diagnostic.ERROR, DIAGNOSTIC_SOURCE, DATA_VALUE__LENGTH_IN_RANGE, "_UI_MaxLengthConstraint_diagnostic", new Object [] { getValueLabel(eDataType, value, context), Integer.toString(length), Integer.toString(bound) }, new Object [] { value, eDataType, length, bound }, context)); }
protected void reportMaxLengthViolation (EDataType eDataType, Object value, int length, int bound, DiagnosticChain diagnostics, Map<Object, Object> context) { diagnostics.add (createDiagnostic (Diagnostic.ERROR, DIAGNOSTIC_SOURCE, DATA_VALUE__LENGTH_IN_RANGE, "_UI_MaxLengthConstraint_diagnostic", new Object [] { getValueLabel(eDataType, value, context), Integer.toString(length), Integer.toString(bound) }, new Object [] { value, eDataType, length, bound }, context)); }
protected void reportMinLengthViolation (EDataType eDataType, Object value, int length, int bound, DiagnosticChain diagnostics, Map<Object, Object> context) { diagnostics.add (createDiagnostic (Diagnostic.ERROR, DIAGNOSTIC_SOURCE, DATA_VALUE__LENGTH_IN_RANGE, "_UI_MinLengthConstraint_diagnostic", new Object [] { getValueLabel(eDataType, value, context), Integer.toString(length), Integer.toString(bound) }, new Object [] { value, eDataType, length, bound }, context)); }
protected void reportMinLengthViolation (EDataType eDataType, Object value, int length, int bound, DiagnosticChain diagnostics, Map<Object, Object> context) { diagnostics.add (createDiagnostic (Diagnostic.ERROR, DIAGNOSTIC_SOURCE, DATA_VALUE__LENGTH_IN_RANGE, "_UI_MinLengthConstraint_diagnostic", new Object [] { getValueLabel(eDataType, value, context), Integer.toString(length), Integer.toString(bound) }, new Object [] { value, eDataType, length, bound }, context)); }
protected void reportFractionDigitsViolation (EDataType eDataType, Object value, int fractionDigits, DiagnosticChain diagnostics, Map<Object, Object> context) { diagnostics.add (createDiagnostic (Diagnostic.ERROR, DIAGNOSTIC_SOURCE, DATA_VALUE__FRACTION_DIGITS_IN_RANGE, "_UI_FractionDigitsConstraint_diagnostic", new Object [] { getValueLabel(eDataType, value, context), fractionDigits }, new Object [] { value, eDataType, fractionDigits }, context)); }
protected void reportTotalDigitsViolation (EDataType eDataType, Object value, int totalDigits, DiagnosticChain diagnostics, Map<Object, Object> context) { diagnostics.add (createDiagnostic (Diagnostic.ERROR, DIAGNOSTIC_SOURCE, DATA_VALUE__TOTAL_DIGITS_IN_RANGE, "_UI_TotalDigitsConstraint_diagnostic", new Object [] { getValueLabel(eDataType, value, context), totalDigits }, new Object [] { value, eDataType, totalDigits }, context)); }
protected void reportTotalDigitsViolation (EDataType eDataType, Object value, int totalDigits, DiagnosticChain diagnostics, Map<Object, Object> context) { diagnostics.add (createDiagnostic (Diagnostic.ERROR, DIAGNOSTIC_SOURCE, DATA_VALUE__TOTAL_DIGITS_IN_RANGE, "_UI_TotalDigitsConstraint_diagnostic", new Object [] { getValueLabel(eDataType, value, context), totalDigits }, new Object [] { value, eDataType, totalDigits }, context)); }
protected void reportDataValueTypeViolation (EDataType eDataType, Object value, DiagnosticChain diagnostics, Map<Object, Object> context) { diagnostics.add (createDiagnostic (Diagnostic.ERROR, DIAGNOSTIC_SOURCE, DATA_VALUE__TYPE_CORRECT, "_UI_BadDataValueType_diagnostic", new Object [] { getValueLabel(eDataType, value, context), value == null ? "<null>" : value.getClass().getName(), eDataType.getInstanceClassName() }, new Object [] { value, eDataType }, context)); }
protected void reportFractionDigitsViolation (EDataType eDataType, Object value, int fractionDigits, DiagnosticChain diagnostics, Map<Object, Object> context) { diagnostics.add (createDiagnostic (Diagnostic.ERROR, DIAGNOSTIC_SOURCE, DATA_VALUE__FRACTION_DIGITS_IN_RANGE, "_UI_FractionDigitsConstraint_diagnostic", new Object [] { getValueLabel(eDataType, value, context), fractionDigits }, new Object [] { value, eDataType, fractionDigits }, context)); }
protected void reportDataValueTypeViolation (EDataType eDataType, Object value, DiagnosticChain diagnostics, Map<Object, Object> context) { diagnostics.add (createDiagnostic (Diagnostic.ERROR, DIAGNOSTIC_SOURCE, DATA_VALUE__TYPE_CORRECT, "_UI_BadDataValueType_diagnostic", new Object [] { getValueLabel(eDataType, value, context), value == null ? "<null>" : value.getClass().getName(), eDataType.getInstanceClassName() }, new Object [] { value, eDataType }, context)); }
/** * @since 2.6 */ protected void reportConstraintDelegateNotFound(EDataType eDataType, Object value, 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, getValueLabel(eDataType, value, context), validationDelegate }), new Object [] { value })); }
/** * @since 2.6 */ protected void reportConstraintDelegateViolation(EDataType eDataType, Object value, 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, getValueLabel(eDataType, value, context) }), new Object [] { value })); }
/** * @since 2.6 */ protected void reportConstraintDelegateNotFound(EDataType eDataType, Object value, 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, getValueLabel(eDataType, value, context), validationDelegate }), new Object [] { value })); }
/** * @since 2.6 */ protected void reportConstraintDelegateViolation(EDataType eDataType, Object value, 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, getValueLabel(eDataType, value, context) }), new Object [] { value })); }