public class ComposedEValidator
extends java.lang.Object
implements org.eclipse.emf.ecore.EValidator
A ComposedEValidator may be installed to displace an EValidator.Registry.INSTANCE entry. This in itself is harmless but since the EValidator.Registry.INSTANCE is global, any additional EValidators added to the ComposedEValidator should restrict their activities to ResourceSets in which they are required.
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
Modifier and Type | Field and Description |
---|---|
protected java.util.List<org.eclipse.emf.ecore.EValidator> |
eValidators |
Constructor and Description |
---|
ComposedEValidator(org.eclipse.emf.ecore.EValidator eValidator) |
Modifier and Type | Method and Description |
---|---|
void |
addChild(org.eclipse.emf.ecore.EValidator eValidator)
Add a child EValidator, suppressing null and duplicates.
|
java.util.List<org.eclipse.emf.ecore.EValidator> |
getChildren() |
static ComposedEValidator |
install(org.eclipse.emf.ecore.EPackage ePackage)
Install a ComposedEValidator for ePackage displacing the prevailing EValidator.Registry.INSTANCE
entry and adding it as the first ComposedEValidator child.
|
boolean |
removeChild(org.eclipse.emf.ecore.EValidator eValidator) |
boolean |
validate(org.eclipse.emf.ecore.EClass eClass,
org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
boolean |
validate(org.eclipse.emf.ecore.EDataType eDataType,
java.lang.Object value,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
boolean |
validate(org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
@NonNull protected final java.util.List<org.eclipse.emf.ecore.EValidator> eValidators
public ComposedEValidator(@Nullable org.eclipse.emf.ecore.EValidator eValidator)
@NonNull public static ComposedEValidator install(@NonNull org.eclipse.emf.ecore.EPackage ePackage)
public void addChild(@Nullable org.eclipse.emf.ecore.EValidator eValidator)
@NonNull public java.util.List<org.eclipse.emf.ecore.EValidator> getChildren()
public boolean removeChild(@Nullable org.eclipse.emf.ecore.EValidator eValidator)
public boolean validate(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
validate
in interface org.eclipse.emf.ecore.EValidator
public boolean validate(org.eclipse.emf.ecore.EClass eClass, org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
validate
in interface org.eclipse.emf.ecore.EValidator
public boolean validate(org.eclipse.emf.ecore.EDataType eDataType, java.lang.Object value, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
validate
in interface org.eclipse.emf.ecore.EValidator