|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.ecore.util.Diagnostician
public class Diagnostician
A validity checker for basic EObject constraints.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.EValidator |
---|
EValidator.Descriptor, EValidator.PatternMatcher, EValidator.Registry, EValidator.SubstitutionLabelProvider |
Field Summary | |
---|---|
protected EValidator.Registry |
eValidatorRegistry
|
static Diagnostician |
INSTANCE
|
Fields inherited from interface org.eclipse.emf.ecore.EValidator |
---|
MARKER, RELATED_URIS_ATTRIBUTE, URI_ATTRIBUTE |
Constructor Summary | |
---|---|
Diagnostician()
|
|
Diagnostician(EValidator.Registry eValidatorRegistry)
|
Method Summary | |
---|---|
java.util.Map<java.lang.Object,java.lang.Object> |
createDefaultContext()
|
BasicDiagnostic |
createDefaultDiagnostic(EDataType eDataType,
java.lang.Object value)
|
BasicDiagnostic |
createDefaultDiagnostic(EObject eObject)
|
protected boolean |
doValidateContents(EObject eObject,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
java.lang.String |
getFeatureLabel(EStructuralFeature eStructuralFeature)
Returns the label used to identify a feature. |
java.lang.String |
getObjectLabel(EObject eObject)
Returns the label to identify an object. |
java.lang.String |
getValueLabel(EDataType eDataType,
java.lang.Object value)
Returns the label to identify a value of some data type. |
boolean |
validate(EClass eClass,
EObject eObject,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
Diagnostic |
validate(EDataType eDataType,
java.lang.Object value)
|
boolean |
validate(EDataType eDataType,
java.lang.Object value,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
Diagnostic |
validate(EObject eObject)
|
boolean |
validate(EObject eObject,
DiagnosticChain diagnostics)
Validates the object in the given context, optionally producing diagnostics. |
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. |
Diagnostic |
validate(EObject eObject,
java.util.Map<?,?> contextEntries)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Diagnostician INSTANCE
protected EValidator.Registry eValidatorRegistry
Constructor Detail |
---|
public Diagnostician(EValidator.Registry eValidatorRegistry)
public Diagnostician()
Method Detail |
---|
public java.lang.String getObjectLabel(EObject eObject)
EValidator.SubstitutionLabelProvider
getObjectLabel
in interface EValidator.SubstitutionLabelProvider
public java.lang.String getFeatureLabel(EStructuralFeature eStructuralFeature)
EValidator.SubstitutionLabelProvider
getFeatureLabel
in interface EValidator.SubstitutionLabelProvider
public java.lang.String getValueLabel(EDataType eDataType, java.lang.Object value)
EValidator.SubstitutionLabelProvider
getValueLabel
in interface EValidator.SubstitutionLabelProvider
public java.util.Map<java.lang.Object,java.lang.Object> createDefaultContext()
public BasicDiagnostic createDefaultDiagnostic(EObject eObject)
public BasicDiagnostic createDefaultDiagnostic(EDataType eDataType, java.lang.Object value)
public Diagnostic validate(EObject eObject)
public Diagnostic validate(EObject eObject, java.util.Map<?,?> contextEntries)
public boolean validate(EObject eObject, DiagnosticChain diagnostics)
eObject
- the object to validate.diagnostics
- a place to accumulate diagnostics; if it's null
, no diagnostics should be produced.
public boolean validate(EObject eObject, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
EValidator
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 doValidateContents(EObject eObject, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
public Diagnostic validate(EDataType eDataType, java.lang.Object value)
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
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |