org.eclipse.gmf.validate
Class GMFValidator
java.lang.Object
org.eclipse.gmf.internal.validate.ValidatorChain
org.eclipse.gmf.validate.GMFValidator
- All Implemented Interfaces:
- org.eclipse.emf.ecore.EValidator
public class GMFValidator
- extends org.eclipse.gmf.internal.validate.ValidatorChain
Validator of GMF constraint annotations.
FIXME: though API, should be changed - no need to extend ValidatorChain, and all the fields are sort of odd
See details.
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.EValidator |
org.eclipse.emf.ecore.EValidator.Descriptor, org.eclipse.emf.ecore.EValidator.PatternMatcher, org.eclipse.emf.ecore.EValidator.Registry, org.eclipse.emf.ecore.EValidator.SubstitutionLabelProvider, org.eclipse.emf.ecore.EValidator.ValidationDelegate |
Field Summary |
static org.eclipse.emf.ecore.EValidator |
INSTANCE
Ecore compliant validator instance. |
Fields inherited from interface org.eclipse.emf.ecore.EValidator |
MARKER, RELATED_URIS_ATTRIBUTE, URI_ATTRIBUTE |
Method Summary |
static org.eclipse.emf.common.util.Diagnostic |
validate(org.eclipse.emf.ecore.EObject eObject)
Validates the given object using its registered EValidator and
additionally performs validation of OCL constraints annotations ,
value-spec and constraint definitions. |
static org.eclipse.emf.common.util.Diagnostic |
validate(org.eclipse.emf.ecore.EObject eObject,
ValidationOptions options)
Validates the given object using its registered EValidator and
additionally performs validation of OCL constraints annotations ,
value-spec and constraint definitions. |
Methods inherited from class org.eclipse.gmf.internal.validate.ValidatorChain |
validate, validate, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final org.eclipse.emf.ecore.EValidator INSTANCE
- Ecore compliant validator instance.
validate
public static org.eclipse.emf.common.util.Diagnostic validate(org.eclipse.emf.ecore.EObject eObject)
- Validates the given object using its registered EValidator and
additionally performs validation of
OCL constraints annotations
,
value-spec and constraint definitions.
- Parameters:
eObject
- the subject for validation
- Returns:
- resulting root diagnostic object containing the children diagnostic elements representing
the concrete constraint validation results
validate
public static org.eclipse.emf.common.util.Diagnostic validate(org.eclipse.emf.ecore.EObject eObject,
ValidationOptions options)
- Validates the given object using its registered EValidator and
additionally performs validation of
OCL constraints annotations
,
value-spec and constraint definitions.
- Parameters:
eObject
- the subject for validationoptions
- validation options
- Returns:
- resulting root diagnostic object containing the children diagnostic elements representing
the concrete constraint validation results
Copyright © 2012. All Rights Reserved.