|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.ecore.util.Diagnostician
A validity checker for basic EObject constraints.
Nested Class Summary |
Nested classes inherited from class 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, URI_ATTRIBUTE |
Constructor Summary | |
Diagnostician()
|
|
Diagnostician(EValidator.Registry eValidatorRegistry)
|
Method Summary | |
protected boolean |
doValidateContents(EObject eObject,
DiagnosticChain diagnostics,
Map context)
|
String |
getFeatureLabel(EStructuralFeature eStructuralFeature)
Returns the label used to identify a feature. |
String |
getObjectLabel(EObject eObject)
Returns the label to identify an object. |
String |
getValueLabel(EDataType eDataType,
Object value)
Returns the label to identify a value of some data type. |
boolean |
validate(EClass eClass,
EObject eObject,
DiagnosticChain diagnostics,
Map context)
|
Diagnostic |
validate(EDataType eDataType,
Object value)
|
boolean |
validate(EDataType eDataType,
Object value,
DiagnosticChain diagnostics,
Map 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,
Map context)
Validates the object in the given context, optionally producing diagnostics. |
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 String getObjectLabel(EObject eObject)
EValidator.SubstitutionLabelProvider
getObjectLabel
in interface EValidator.SubstitutionLabelProvider
public String getFeatureLabel(EStructuralFeature eStructuralFeature)
EValidator.SubstitutionLabelProvider
getFeatureLabel
in interface EValidator.SubstitutionLabelProvider
public String getValueLabel(EDataType eDataType, Object value)
EValidator.SubstitutionLabelProvider
getValueLabel
in interface EValidator.SubstitutionLabelProvider
public Diagnostic validate(EObject eObject)
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, Map 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, Map context)
validate
in interface EValidator
protected boolean doValidateContents(EObject eObject, DiagnosticChain diagnostics, Map context)
public Diagnostic validate(EDataType eDataType, Object value)
public boolean validate(EDataType eDataType, Object value, DiagnosticChain diagnostics, Map 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 |