|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.ecore.util.EObjectValidator org.eclipse.emf.henshin.model.util.HenshinValidator
public class HenshinValidator
The Validator for the Henshin model.
HenshinPackage
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.util.EObjectValidator |
---|
EObjectValidator.DynamicEClassValidator, EObjectValidator.DynamicEDataTypeValidator |
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.EValidator |
---|
EValidator.Descriptor, EValidator.PatternMatcher, EValidator.Registry, EValidator.SubstitutionLabelProvider, EValidator.ValidationDelegate |
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. |
static HenshinValidator |
INSTANCE
The cached model package |
Fields inherited from interface org.eclipse.emf.ecore.EValidator |
---|
MARKER, RELATED_URIS_ATTRIBUTE, URI_ATTRIBUTE |
Constructor Summary | |
---|---|
HenshinValidator()
Creates an instance of the switch. |
Method Summary | |
---|---|
protected BasicDiagnostic |
createDiagnostic(int severity,
String source,
int code,
String messageKey,
Object[] messageSubstitutions,
Object[] data,
Map<Object,Object> context,
String additionalMessage)
|
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 |
validateAction(Action action,
DiagnosticChain diagnostics,
Map<Object,Object> context)
|
boolean |
validateAnd(And and,
DiagnosticChain diagnostics,
Map<Object,Object> context)
|
boolean |
validateAnnotation(Annotation annotation,
DiagnosticChain diagnostics,
Map<Object,Object> context)
|
boolean |
validateAttribute(Attribute attribute,
DiagnosticChain diagnostics,
Map<Object,Object> context)
|
boolean |
validateAttributeCondition(AttributeCondition attributeCondition,
DiagnosticChain diagnostics,
Map<Object,Object> context)
|
boolean |
validateBinaryFormula(BinaryFormula binaryFormula,
DiagnosticChain diagnostics,
Map<Object,Object> context)
|
boolean |
validateConditionalUnit(ConditionalUnit conditionalUnit,
DiagnosticChain diagnostics,
Map<Object,Object> context)
|
boolean |
validateEdge_equalParentGraphs(Edge edge,
DiagnosticChain diagnostics,
Map<Object,Object> context)
Validates the equalParentGraphs constraint of 'Edge'. |
boolean |
validateEdge(Edge edge,
DiagnosticChain diagnostics,
Map<Object,Object> context)
|
boolean |
validateFormula(Formula formula,
DiagnosticChain diagnostics,
Map<Object,Object> context)
|
boolean |
validateGraph_uniqueNodeNames(Graph graph,
DiagnosticChain diagnostics,
Map<Object,Object> context)
Validates the uniqueNodeNames constraint of 'Graph'. |
boolean |
validateGraph(Graph graph,
DiagnosticChain diagnostics,
Map<Object,Object> context)
|
boolean |
validateGraphElement(GraphElement graphElement,
DiagnosticChain diagnostics,
Map<Object,Object> context)
|
boolean |
validateIndependentUnit(IndependentUnit independentUnit,
DiagnosticChain diagnostics,
Map<Object,Object> context)
|
boolean |
validateIteratedUnit_iterationsNotEmpty(IteratedUnit iteratedUnit,
DiagnosticChain diagnostics,
Map<Object,Object> context)
Validates the iterationsNotEmpty constraint of 'Iterated Unit'. |
boolean |
validateIteratedUnit(IteratedUnit iteratedUnit,
DiagnosticChain diagnostics,
Map<Object,Object> context)
|
boolean |
validateLoopUnit(LoopUnit loopUnit,
DiagnosticChain diagnostics,
Map<Object,Object> context)
|
boolean |
validateMapping(Mapping mapping,
DiagnosticChain diagnostics,
Map<Object,Object> context)
|
boolean |
validateModelElement(ModelElement modelElement,
DiagnosticChain diagnostics,
Map<Object,Object> context)
|
boolean |
validateModule(Module module,
DiagnosticChain diagnostics,
Map<Object,Object> context)
|
boolean |
validateMultiUnit(MultiUnit multiUnit,
DiagnosticChain diagnostics,
Map<Object,Object> context)
|
boolean |
validateNamedElement(NamedElement namedElement,
DiagnosticChain diagnostics,
Map<Object,Object> context)
|
boolean |
validateNestedCondition_mappingImageContainedInCurrent(NestedCondition nestedCondition,
DiagnosticChain diagnostics,
Map<Object,Object> context)
Validates the mappingImageContainedInCurrent constraint of 'Nested Condition'. |
boolean |
validateNestedCondition_mappingOriginContainedInParentCondition(NestedCondition nestedCondition,
DiagnosticChain diagnostics,
Map<Object,Object> context)
Validates the mappingOriginContainedInParentCondition constraint of 'Nested Condition'. |
boolean |
validateNestedCondition(NestedCondition nestedCondition,
DiagnosticChain diagnostics,
Map<Object,Object> context)
|
boolean |
validateNode_uniqueAttributeTypes(Node node,
DiagnosticChain diagnostics,
Map<Object,Object> context)
Validates the uniqueAttributeTypes constraint of 'Node'. |
boolean |
validateNode(Node node,
DiagnosticChain diagnostics,
Map<Object,Object> context)
|
boolean |
validateNot(Not not,
DiagnosticChain diagnostics,
Map<Object,Object> context)
|
boolean |
validateOr(Or or,
DiagnosticChain diagnostics,
Map<Object,Object> context)
|
boolean |
validateParameter_nameNotEmpty(Parameter parameter,
DiagnosticChain diagnostics,
Map<Object,Object> context)
Validates the nameNotEmpty constraint of 'Parameter'. |
boolean |
validateParameter_nameNotTypeName(Parameter parameter,
DiagnosticChain diagnostics,
Map<Object,Object> context)
Validates the nameNotTypeName constraint of 'Parameter'. |
boolean |
validateParameter(Parameter parameter,
DiagnosticChain diagnostics,
Map<Object,Object> context)
|
boolean |
validateParameterMapping(ParameterMapping parameterMapping,
DiagnosticChain diagnostics,
Map<Object,Object> context)
|
boolean |
validatePriorityUnit(PriorityUnit priorityUnit,
DiagnosticChain diagnostics,
Map<Object,Object> context)
|
boolean |
validateRule_createdEdgesNotDerived(Rule rule,
DiagnosticChain diagnostics,
Map<Object,Object> context)
Validates the createdEdgesNotDerived constraint of 'Rule'. |
boolean |
validateRule_createdNodesNotAbstract(Rule rule,
DiagnosticChain diagnostics,
Map<Object,Object> context)
Validates the createdNodesNotAbstract constraint of 'Rule'. |
boolean |
validateRule_deletedEdgesNotDerived(Rule rule,
DiagnosticChain diagnostics,
Map<Object,Object> context)
Validates the deletedEdgesNotDerived constraint of 'Rule'. |
boolean |
validateRule_mappingsFromLeft2Right(Rule rule,
DiagnosticChain diagnostics,
Map<Object,Object> context)
Validates the mappingsFromLeft2Right constraint of 'Rule'. |
boolean |
validateRule(Rule rule,
DiagnosticChain diagnostics,
Map<Object,Object> context)
|
boolean |
validateSequentialUnit(SequentialUnit sequentialUnit,
DiagnosticChain diagnostics,
Map<Object,Object> context)
|
boolean |
validateUnaryFormula(UnaryFormula unaryFormula,
DiagnosticChain diagnostics,
Map<Object,Object> context)
|
boolean |
validateUnaryUnit(UnaryUnit unaryUnit,
DiagnosticChain diagnostics,
Map<Object,Object> context)
|
boolean |
validateUnit_parameterMappingsPointToDirectSubUnit(Unit unit,
DiagnosticChain diagnostics,
Map<Object,Object> context)
Validates the parameterMappingsPointToDirectSubUnit constraint of 'Unit'. |
boolean |
validateUnit_parameterNamesUnique(Unit unit,
DiagnosticChain diagnostics,
Map<Object,Object> context)
Validates the parameterNamesUnique constraint of 'Unit'. |
boolean |
validateUnit(Unit unit,
DiagnosticChain diagnostics,
Map<Object,Object> context)
|
boolean |
validateXor(Xor xor,
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 |
---|
public static final HenshinValidator INSTANCE
public static final String DIAGNOSTIC_SOURCE
source
of diagnostic codes
from this package.
Diagnostic.getSource()
,
Diagnostic.getCode()
,
Constant Field Valuesprotected static final int DIAGNOSTIC_CODE_COUNT
Constructor Detail |
---|
public HenshinValidator()
Method Detail |
---|
protected EPackage getEPackage()
getEPackage
in class EObjectValidator
protected boolean validate(int classifierID, Object value, DiagnosticChain diagnostics, Map<Object,Object> context)
validateXXX
for the corresponding classifier of the model.
validate
in class EObjectValidator
public boolean validateModelElement(ModelElement modelElement, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateAnnotation(Annotation annotation, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateNamedElement(NamedElement namedElement, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateRule(Rule rule, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateRule_mappingsFromLeft2Right(Rule rule, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateRule_createdNodesNotAbstract(Rule rule, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateRule_createdEdgesNotDerived(Rule rule, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateRule_deletedEdgesNotDerived(Rule rule, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateAttributeCondition(AttributeCondition attributeCondition, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateParameter(Parameter parameter, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateParameter_nameNotEmpty(Parameter parameter, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateParameter_nameNotTypeName(Parameter parameter, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateGraph(Graph graph, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateGraph_uniqueNodeNames(Graph graph, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateGraphElement(GraphElement graphElement, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateModule(Module module, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateUnit(Unit unit, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateUnit_parameterNamesUnique(Unit unit, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateUnit_parameterMappingsPointToDirectSubUnit(Unit unit, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateMapping(Mapping mapping, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateNode(Node node, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateNode_uniqueAttributeTypes(Node node, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateAttribute(Attribute attribute, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateEdge(Edge edge, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateEdge_equalParentGraphs(Edge edge, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateUnaryUnit(UnaryUnit unaryUnit, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateMultiUnit(MultiUnit multiUnit, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateIndependentUnit(IndependentUnit independentUnit, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateSequentialUnit(SequentialUnit sequentialUnit, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateConditionalUnit(ConditionalUnit conditionalUnit, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validatePriorityUnit(PriorityUnit priorityUnit, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateIteratedUnit(IteratedUnit iteratedUnit, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateIteratedUnit_iterationsNotEmpty(IteratedUnit iteratedUnit, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateLoopUnit(LoopUnit loopUnit, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateNestedCondition(NestedCondition nestedCondition, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateNestedCondition_mappingOriginContainedInParentCondition(NestedCondition nestedCondition, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateNestedCondition_mappingImageContainedInCurrent(NestedCondition nestedCondition, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateFormula(Formula formula, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateUnaryFormula(UnaryFormula unaryFormula, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateBinaryFormula(BinaryFormula binaryFormula, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateAnd(And and, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateOr(Or or, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateNot(Not not, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateAction(Action action, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateXor(Xor xor, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateParameterMapping(ParameterMapping parameterMapping, DiagnosticChain diagnostics, Map<Object,Object> context)
public ResourceLocator getResourceLocator()
getResourceLocator
in class EObjectValidator
protected BasicDiagnostic createDiagnostic(int severity, String source, int code, String messageKey, Object[] messageSubstitutions, Object[] data, Map<Object,Object> context, String additionalMessage)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |