org.eclipse.uml2.uml.validation
Interface IEValidatorProvider

All Known Implementing Classes:
IEValidatorProvider.Default, IEValidatorProvider.UML

public interface IEValidatorProvider

A protocol for package-to-validator mappings.


Nested Class Summary
static class IEValidatorProvider.Default
          The default EValidator provider uses the validator registry to look up whatever validator is there.
static class IEValidatorProvider.UML
          The UML IEValidatorProvider maps the UML package to the standard UML validator.
 
Method Summary
 org.eclipse.emf.ecore.EValidator getEValidator(org.eclipse.emf.ecore.EPackage ePackage)
          Obtains an appropriate EValidator for validation of instances of the specified ePackage.
 org.eclipse.emf.ecore.EValidator.SubstitutionLabelProvider getSubstitutionLabelProvider(org.eclipse.emf.ecore.EPackage ePackage)
          Obtains an appropriate substitution-label provider for presentation of element names in validation of elements of the specified ePackage .
 

Method Detail

getEValidator

org.eclipse.emf.ecore.EValidator getEValidator(org.eclipse.emf.ecore.EPackage ePackage)
Obtains an appropriate EValidator for validation of instances of the specified ePackage.

Parameters:
ePackage - a package for which to obtain a validator
Returns:
a suitable validator, or null if none could be found

getSubstitutionLabelProvider

org.eclipse.emf.ecore.EValidator.SubstitutionLabelProvider getSubstitutionLabelProvider(org.eclipse.emf.ecore.EPackage ePackage)
Obtains an appropriate substitution-label provider for presentation of element names in validation of elements of the specified ePackage .

Parameters:
ePackage - a package for which to obtain a substitution-label provider
Returns:
a suitable provider, or @{code null} if none could be found

Copyright 2003, 2012 IBM Corporation, CEA, and others.
All Rights Reserved.