public class EObjectValidator extends java.lang.Object implements EValidator
Modifier and Type | Class and Description |
---|---|
class |
EObjectValidator.DynamicEClassValidator |
class |
EObjectValidator.DynamicEDataTypeValidator |
EValidator.Descriptor, EValidator.PatternMatcher, EValidator.Registry, EValidator.SubstitutionLabelProvider, EValidator.ValidationDelegate
Modifier and Type | Field and Description |
---|---|
static int |
DATA_VALUE__FRACTION_DIGITS_IN_RANGE |
static int |
DATA_VALUE__LENGTH_IN_RANGE |
static int |
DATA_VALUE__MATCHES_PATTERN |
static int |
DATA_VALUE__TOTAL_DIGITS_IN_RANGE |
static int |
DATA_VALUE__TYPE_CORRECT |
static int |
DATA_VALUE__VALUE_IN_ENUMERATION |
static int |
DATA_VALUE__VALUE_IN_RANGE |
static java.lang.String |
DIAGNOSTIC_SOURCE |
static int |
EOBJECT__EVERY_BIDIRECTIONAL_REFERENCE_IS_PAIRED |
static int |
EOBJECT__EVERY_DATA_VALUE_CONFORMS |
static int |
EOBJECT__EVERY_KEY_UNIQUE |
static int |
EOBJECT__EVERY_MAP_ENTRY_UNIQUE |
static int |
EOBJECT__EVERY_MULTIPCITY_CONFORMS |
static int |
EOBJECT__EVERY_PROXY_RESOLVES |
static int |
EOBJECT__EVERY_REFERENCE_IS_CONTAINED |
static int |
EOBJECT__NO_CIRCULAR_CONTAINMENT |
static int |
EOBJECT__UNIQUE_ID |
static EObjectValidator |
INSTANCE |
static java.lang.String |
ROOT_OBJECT
A key to be used in
context maps to indicate the root object at which validation started. |
MARKER, RELATED_URIS_ATTRIBUTE, URI_ATTRIBUTE
Constructor and Description |
---|
EObjectValidator() |
Modifier and Type | Method and Description |
---|---|
protected DiagnosticChain |
createBadDataValueDiagnostic(EObject eObject,
EAttribute eAttribute,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected BasicDiagnostic |
createDiagnostic(int severity,
java.lang.String source,
int code,
java.lang.String messageKey,
java.lang.Object[] messageSubstitutions,
java.lang.Object[] data,
java.util.Map<java.lang.Object,java.lang.Object> context)
Creates a new
basic diagnostic . |
protected ResourceLocator |
getEcoreResourceLocator()
Returns the resource locator for
fetching Ecore-specific messages. |
protected java.lang.String |
getEcoreString(java.lang.String key,
java.lang.Object[] substitutions)
Returns a translated message with the given substitutions.
|
protected EPackage |
getEPackage() |
static java.lang.String |
getFeatureLabel(EStructuralFeature eStructuralFeature,
java.util.Map<java.lang.Object,java.lang.Object> context) |
static java.lang.String |
getObjectLabel(EObject eObject,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected ResourceLocator |
getResourceLocator()
Returns the resource locator for
fetching model-specific messages. |
protected EValidator |
getRootEValidator(java.util.Map<java.lang.Object,java.lang.Object> context) |
protected java.lang.String |
getString(java.lang.String key,
java.lang.Object[] substitutions)
Returns a translated message with the given substitutions.
|
protected static EValidator.ValidationDelegate.Registry |
getValidationDelegateRegistry(java.util.Map<java.lang.Object,java.lang.Object> context) |
static java.lang.String |
getValueLabel(EDataType eDataType,
java.lang.Object value,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected boolean |
isEcoreString(java.lang.String key) |
protected void |
reportConstraintDelegateException(EClass eClass,
EObject eObject,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context,
java.lang.String constraint,
int severity,
java.lang.String source,
int code,
java.lang.Throwable throwable) |
protected void |
reportConstraintDelegateException(EDataType eDataType,
java.lang.Object value,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context,
java.lang.String constraint,
int severity,
java.lang.String source,
int code,
java.lang.Throwable throwable) |
protected void |
reportConstraintDelegateNotFound(EClass eClass,
EObject eObject,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context,
java.lang.String constraint,
int severity,
java.lang.String source,
int code,
java.lang.String validationDelegate) |
protected void |
reportConstraintDelegateNotFound(EDataType eDataType,
java.lang.Object value,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context,
java.lang.String constraint,
int severity,
java.lang.String source,
int code,
java.lang.String validationDelegate) |
protected void |
reportConstraintDelegateViolation(EClass eClass,
EObject eObject,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context,
java.lang.String constraint,
int severity,
java.lang.String source,
int code) |
protected void |
reportConstraintDelegateViolation(EDataType eDataType,
java.lang.Object value,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context,
java.lang.String constraint,
int severity,
java.lang.String source,
int code) |
protected void |
reportDataValuePatternViolation(EDataType eDataType,
java.lang.Object value,
EValidator.PatternMatcher[] patterns,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected void |
reportDataValueTypeViolation(EDataType eDataType,
java.lang.Object value,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected void |
reportEnumerationViolation(EDataType eDataType,
java.lang.Object value,
java.util.Collection<?> values,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected void |
reportFractionDigitsViolation(EDataType eDataType,
java.lang.Object value,
int fractionDigits,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected static void |
reportInvariantDelegateException(EClass eClass,
EObject eObject,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context,
EOperation invariant,
int severity,
java.lang.String source,
int code,
java.lang.Throwable throwable) |
protected static void |
reportInvariantDelegateNotFound(EClass eClass,
EObject eObject,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context,
EOperation invariant,
int severity,
java.lang.String source,
int code,
java.lang.String validationDelegate) |
protected static void |
reportInvariantDelegateViolation(EClass eClass,
EObject eObject,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context,
EOperation invariant,
int severity,
java.lang.String source,
int code) |
protected void |
reportMaxLengthViolation(EDataType eDataType,
java.lang.Object value,
int length,
int bound,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected void |
reportMaxViolation(EDataType eDataType,
java.lang.Object value,
java.lang.Object bound,
boolean isInclusive,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected void |
reportMinLengthViolation(EDataType eDataType,
java.lang.Object value,
int length,
int bound,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected void |
reportMinViolation(EDataType eDataType,
java.lang.Object value,
java.lang.Object bound,
boolean isInclusive,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected void |
reportTotalDigitsViolation(EDataType eDataType,
java.lang.Object value,
int totalDigits,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
boolean |
validate_BidirectionalReferenceIsPaired(EObject eObject,
EReference eReference,
EReference eOpposite,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected boolean |
validate_DataValueConforms(EObject eObject,
EAttribute eAttribute,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
boolean |
validate_EveryBidirectionalReferenceIsPaired(EObject eObject,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
boolean |
validate_EveryDataValueConforms(EObject eObject,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
boolean |
validate_EveryDefaultConstraint(EObject object,
DiagnosticChain theDiagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
boolean |
validate_EveryKeyUnique(EObject eObject,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
boolean |
validate_EveryMapEntryUnique(EObject eObject,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
boolean |
validate_EveryMultiplicityConforms(EObject eObject,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
boolean |
validate_EveryProxyResolves(EObject eObject,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
boolean |
validate_EveryReferenceIsContained(EObject eObject,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected boolean |
validate_KeyUnique(EObject eObject,
EReference eReference,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected boolean |
validate_MapEntryUnique(EObject eObject,
EReference eReference,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected boolean |
validate_MultiplicityConforms(EObject eObject,
EStructuralFeature eStructuralFeature,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
boolean |
validate_NoCircularContainment(EObject eObject,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
boolean |
validate_UniqueID(EObject eObject,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
boolean |
validate(EClass eClass,
EObject eObject,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
static boolean |
validate(EClass eClass,
EObject eObject,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context,
java.lang.String validationDelegate,
EOperation invariant,
java.lang.String expression,
int severity,
java.lang.String source,
int code)
Delegates evaluation of the given invariant expression against the object in the given context.
|
boolean |
validate(EClass eClass,
EObject eObject,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context,
java.lang.String validationDelegate,
java.lang.String constraint,
java.lang.String expression,
int severity,
java.lang.String source,
int code)
Delegates evaluation of the given constraint expression against the object in the given context.
|
boolean |
validate(EDataType eDataType,
java.lang.Object value,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
boolean |
validate(EDataType eDataType,
java.lang.Object value,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context,
java.lang.String validationDelegate,
java.lang.String constraint,
java.lang.String expression,
int severity,
java.lang.String source,
int code)
Delegates evaluation of the given constraint expression against the value in the given context.
|
boolean |
validate(EObject eObject,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
Validates the object in the given context, optionally producing diagnostics.
|
protected boolean |
validate(int classifierID,
java.lang.Object object,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected boolean |
validatePattern(EDataType eDataType,
java.lang.Object value,
EValidator.PatternMatcher[][] patterns,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected static java.util.Collection<java.lang.Object> |
wrapEnumerationValues(java.lang.Object[] values) |
public static final EObjectValidator INSTANCE
public static final java.lang.String DIAGNOSTIC_SOURCE
public static final int EOBJECT__EVERY_MULTIPCITY_CONFORMS
public static final int EOBJECT__EVERY_DATA_VALUE_CONFORMS
public static final int EOBJECT__EVERY_REFERENCE_IS_CONTAINED
public static final int EOBJECT__EVERY_PROXY_RESOLVES
public static final int DATA_VALUE__VALUE_IN_RANGE
public static final int DATA_VALUE__LENGTH_IN_RANGE
public static final int DATA_VALUE__TYPE_CORRECT
public static final int DATA_VALUE__VALUE_IN_ENUMERATION
public static final int DATA_VALUE__MATCHES_PATTERN
public static final int DATA_VALUE__TOTAL_DIGITS_IN_RANGE
public static final int DATA_VALUE__FRACTION_DIGITS_IN_RANGE
public static final int EOBJECT__UNIQUE_ID
public static final int EOBJECT__EVERY_KEY_UNIQUE
public static final int EOBJECT__EVERY_MAP_ENTRY_UNIQUE
public static final int EOBJECT__NO_CIRCULAR_CONTAINMENT
public static final int EOBJECT__EVERY_BIDIRECTIONAL_REFERENCE_IS_PAIRED
public static final java.lang.String ROOT_OBJECT
context
maps to indicate the root object at which validation started.
It's used to detect circular containment
and to prevent infinite recursion
.
The value of the entry must be the rootEObject
.public static java.lang.String getObjectLabel(EObject eObject, java.util.Map<java.lang.Object,java.lang.Object> context)
public static java.lang.String getFeatureLabel(EStructuralFeature eStructuralFeature, java.util.Map<java.lang.Object,java.lang.Object> context)
public static java.lang.String getValueLabel(EDataType eDataType, java.lang.Object value, java.util.Map<java.lang.Object,java.lang.Object> context)
protected EPackage getEPackage()
protected EValidator getRootEValidator(java.util.Map<java.lang.Object,java.lang.Object> context)
protected static EValidator.ValidationDelegate.Registry getValidationDelegateRegistry(java.util.Map<java.lang.Object,java.lang.Object> context)
public static boolean validate(EClass eClass, EObject eObject, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context, java.lang.String validationDelegate, EOperation invariant, java.lang.String expression, int severity, java.lang.String source, int code)
public boolean validate(EClass eClass, EObject eObject, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context, java.lang.String validationDelegate, java.lang.String constraint, java.lang.String expression, int severity, java.lang.String source, int code)
public boolean validate(EDataType eDataType, java.lang.Object value, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context, java.lang.String validationDelegate, java.lang.String constraint, java.lang.String expression, int severity, java.lang.String source, int code)
public boolean validate(EObject eObject, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
validate
in interface EValidator
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.public boolean validate(EClass eClass, EObject eObject, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
validate
in interface EValidator
protected boolean validate(int classifierID, java.lang.Object object, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
public boolean validate_EveryDefaultConstraint(EObject object, DiagnosticChain theDiagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
public boolean validate_NoCircularContainment(EObject eObject, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
public boolean validate_EveryBidirectionalReferenceIsPaired(EObject eObject, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
public boolean validate_BidirectionalReferenceIsPaired(EObject eObject, EReference eReference, EReference eOpposite, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
public boolean validate_EveryMultiplicityConforms(EObject eObject, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected boolean validate_MultiplicityConforms(EObject eObject, EStructuralFeature eStructuralFeature, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
public boolean validate_EveryProxyResolves(EObject eObject, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
public boolean validate_EveryReferenceIsContained(EObject eObject, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
public boolean validate_EveryDataValueConforms(EObject eObject, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected boolean validate_DataValueConforms(EObject eObject, EAttribute eAttribute, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected DiagnosticChain createBadDataValueDiagnostic(EObject eObject, EAttribute eAttribute, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected boolean validatePattern(EDataType eDataType, java.lang.Object value, EValidator.PatternMatcher[][] patterns, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
public boolean validate(EDataType eDataType, java.lang.Object value, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
validate
in interface EValidator
protected void reportMinViolation(EDataType eDataType, java.lang.Object value, java.lang.Object bound, boolean isInclusive, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void reportMaxViolation(EDataType eDataType, java.lang.Object value, java.lang.Object bound, boolean isInclusive, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void reportMinLengthViolation(EDataType eDataType, java.lang.Object value, int length, int bound, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void reportMaxLengthViolation(EDataType eDataType, java.lang.Object value, int length, int bound, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void reportTotalDigitsViolation(EDataType eDataType, java.lang.Object value, int totalDigits, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void reportFractionDigitsViolation(EDataType eDataType, java.lang.Object value, int fractionDigits, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void reportEnumerationViolation(EDataType eDataType, java.lang.Object value, java.util.Collection<?> values, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void reportDataValuePatternViolation(EDataType eDataType, java.lang.Object value, EValidator.PatternMatcher[] patterns, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void reportDataValueTypeViolation(EDataType eDataType, java.lang.Object value, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void reportConstraintDelegateViolation(EDataType eDataType, java.lang.Object value, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context, java.lang.String constraint, int severity, java.lang.String source, int code)
protected void reportConstraintDelegateException(EDataType eDataType, java.lang.Object value, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context, java.lang.String constraint, int severity, java.lang.String source, int code, java.lang.Throwable throwable)
protected void reportConstraintDelegateNotFound(EDataType eDataType, java.lang.Object value, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context, java.lang.String constraint, int severity, java.lang.String source, int code, java.lang.String validationDelegate)
protected void reportConstraintDelegateViolation(EClass eClass, EObject eObject, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context, java.lang.String constraint, int severity, java.lang.String source, int code)
protected void reportConstraintDelegateException(EClass eClass, EObject eObject, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context, java.lang.String constraint, int severity, java.lang.String source, int code, java.lang.Throwable throwable)
protected void reportConstraintDelegateNotFound(EClass eClass, EObject eObject, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context, java.lang.String constraint, int severity, java.lang.String source, int code, java.lang.String validationDelegate)
protected static void reportInvariantDelegateViolation(EClass eClass, EObject eObject, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context, EOperation invariant, int severity, java.lang.String source, int code)
protected static void reportInvariantDelegateException(EClass eClass, EObject eObject, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context, EOperation invariant, int severity, java.lang.String source, int code, java.lang.Throwable throwable)
protected static void reportInvariantDelegateNotFound(EClass eClass, EObject eObject, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context, EOperation invariant, int severity, java.lang.String source, int code, java.lang.String validationDelegate)
protected static java.util.Collection<java.lang.Object> wrapEnumerationValues(java.lang.Object[] values)
public boolean validate_UniqueID(EObject eObject, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
public boolean validate_EveryKeyUnique(EObject eObject, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
eObject
- diagnostics
- context
- protected boolean validate_KeyUnique(EObject eObject, EReference eReference, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
eObject
- eReference
- diagnostics
- context
- public boolean validate_EveryMapEntryUnique(EObject eObject, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
eObject
- diagnostics
- context
- protected boolean validate_MapEntryUnique(EObject eObject, EReference eReference, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
eObject
- eReference
- diagnostics
- context
- protected BasicDiagnostic createDiagnostic(int severity, java.lang.String source, int code, java.lang.String messageKey, java.lang.Object[] messageSubstitutions, java.lang.Object[] data, java.util.Map<java.lang.Object,java.lang.Object> context)
basic diagnostic
.
If the source is "org.eclipse.emf.ecore"
,
it calls getEcoreString(String, Object[])
;
otherwise it calls getString(String, Object[])
.severity
- an indicator of the severity of the problem.source
- the unique identifier of the source.code
- the source-specific identity code.messageKey
- the key of the message.messageSubstitutions
- the substitutions for the key; null
if there are no substitutions.data
- the data associated with the diagnosticcontext
- a place to cache information, if it's null
, no cache is supported.BasicDiagnostic.BasicDiagnostic(int, String, int, String, Object[])
protected java.lang.String getEcoreString(java.lang.String key, java.lang.Object[] substitutions)
Ecore resource locator
is used.key
- the key for the message.substitutions
- the substitutions for the key; null
if there are no substitutions.protected ResourceLocator getEcoreResourceLocator()
fetching
Ecore-specific messages.protected boolean isEcoreString(java.lang.String key)
protected java.lang.String getString(java.lang.String key, java.lang.Object[] substitutions)
resource locator
is used.key
- the key for the message.substitutions
- the substitutions for the key; null
if there are no substitutions.protected ResourceLocator getResourceLocator()
fetching
model-specific messages.
This implementation returns the Ecore resource locator
;
derived validators must override this to return the resource locator for their model.