EGF Engine
Release 0.1.0

org.eclipse.egf.pattern.util
Class PatternValidator

java.lang.Object
  extended by EObjectValidator
      extended by org.eclipse.egf.pattern.util.PatternValidator

public class PatternValidator
extends EObjectValidator

The Validator for the model.

See Also:
PatternPackage

Field Summary
protected static int DIAGNOSTIC_CODE_COUNT
          A constant with a fixed name that can be used as the base value for additional hand written constants in a derived class
static String DIAGNOSTIC_SOURCE
          A constant for the source of diagnostic codes from this package
protected  EcoreValidator ecoreValidator
          The cached base package validator
static PatternValidator INSTANCE
          The cached model package
 
Constructor Summary
PatternValidator()
          Creates an instance of the switch
 
Method Summary
protected  EPackage getEPackage()
          Returns the package of this validator switch
 ResourceLocator getResourceLocator()
          Returns the resource locator that will be used to fetch messages for this validator's diagnostics
protected  boolean validate(int classifierID, Object value, DiagnosticChain diagnostics, Map<Object,Object> context)
          Calls validateXXX for the corresponding classifier of the model
 boolean validateGenerator(Generator generator, DiagnosticChain diagnostics, Map<Object,Object> context)
           
 boolean validatePattern_overall(Pattern pattern, DiagnosticChain diagnostics, Map<Object,Object> context)
          Validates the overall constraint of 'Pattern'.
 boolean validatePattern(Pattern pattern, DiagnosticChain diagnostics, Map<Object,Object> context)
           
 boolean validatePPropertyChangeListener(PropertyChangeListener pPropertyChangeListener, DiagnosticChain diagnostics, Map<Object,Object> context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final PatternValidator INSTANCE
The cached model package


DIAGNOSTIC_SOURCE

public static final String DIAGNOSTIC_SOURCE
A constant for the source of diagnostic codes from this package.

See Also:
org.eclipse.emf.common.util.Diagnostic#getSource(), org.eclipse.emf.common.util.Diagnostic#getCode(), Constant Field Values

DIAGNOSTIC_CODE_COUNT

protected static final int DIAGNOSTIC_CODE_COUNT
A constant with a fixed name that can be used as the base value for additional hand written constants in a derived class.

See Also:
Constant Field Values

ecoreValidator

protected EcoreValidator ecoreValidator
The cached base package validator.

Constructor Detail

PatternValidator

public PatternValidator()
Creates an instance of the switch.

Method Detail

getEPackage

protected EPackage getEPackage()
Returns the package of this validator switch.


validate

protected boolean validate(int classifierID,
                           Object value,
                           DiagnosticChain diagnostics,
                           Map<Object,Object> context)
Calls validateXXX for the corresponding classifier of the model.


validateGenerator

public boolean validateGenerator(Generator generator,
                                 DiagnosticChain diagnostics,
                                 Map<Object,Object> context)


validatePattern

public boolean validatePattern(Pattern pattern,
                               DiagnosticChain diagnostics,
                               Map<Object,Object> context)


validatePattern_overall

public boolean validatePattern_overall(Pattern pattern,
                                       DiagnosticChain diagnostics,
                                       Map<Object,Object> context)
Validates the overall constraint of 'Pattern'.


validatePPropertyChangeListener

public boolean validatePPropertyChangeListener(PropertyChangeListener pPropertyChangeListener,
                                               DiagnosticChain diagnostics,
                                               Map<Object,Object> context)


getResourceLocator

public ResourceLocator getResourceLocator()
Returns the resource locator that will be used to fetch messages for this validator's diagnostics.


EGF Engine
Release 0.1.0

Copyright (c) Thales Corporate Services S.A.S, 2009.

This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.