- * Contexts: - * Category returns Category - * - * Constraint: - * (name=ID label=STRING description=STRING? rules+=Rule*) - *- */ - protected void sequence_Category(ISerializationContext context, Category semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - *
- * Contexts: - * Context returns DuplicateContext - * DuplicateContext returns DuplicateContext - * - * Constraint: - * (contextType=[EClass|QualifiedID] contextFeature=[EStructuralFeature|ID]? markerType=[EClass|QualifiedID] markerFeature=[EStructuralFeature|ID]?) - *- */ - protected void sequence_DuplicateContext(ISerializationContext context, DuplicateContext semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - *
- * Contexts: - * Import returns Import - * - * Constraint: - * package=[EPackage|STRING] - *- */ - protected void sequence_Import(ISerializationContext context, Import semanticObject) { - if (errorAcceptor != null) { - if (transientValues.isValueTransient(semanticObject, ValidPackage.Literals.IMPORT__PACKAGE) == ValueTransient.YES) - errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ValidPackage.Literals.IMPORT__PACKAGE)); - } - SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); - feeder.accept(grammarAccess.getImportAccess().getPackageEPackageSTRINGTerminalRuleCall_1_0_1(), semanticObject.eGet(ValidPackage.Literals.IMPORT__PACKAGE, false)); - feeder.finish(); - } - - - /** - *
- * Contexts: - * Context returns NativeContext - * NativeContext returns NativeContext - * - * Constraint: - * ( - * contextType=[EClass|QualifiedID] - * contextFeature=[EStructuralFeature|ID]? - * (named?='as' givenName=ID)? - * (markerType=[EClass|QualifiedID] markerFeature=[EStructuralFeature|ID])? - * quickFixes+=QuickFix* - * ) - *- */ - protected void sequence_NativeContext(ISerializationContext context, NativeContext semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - *
- * Contexts: - * Rule returns NativeRule - * NativeRule returns NativeRule - * - * Constraint: - * ( - * (optional?='optional' | checkKind=CheckKind)* - * severity=SeverityKind - * name=ID - * label=STRING - * description=STRING? - * message=STRING - * contexts+=NativeContext+ - * ) - *- */ - protected void sequence_NativeRule(ISerializationContext context, NativeRule semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - *
- * Contexts: - * QuickFix returns QuickFix - * - * Constraint: - * (quickFixKind=QuickFixKind? name=ID label=STRING message=STRING) - *- */ - protected void sequence_QuickFix(ISerializationContext context, QuickFix semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - *
- * Contexts: - * Rule returns RangeRule - * PredefinedRule returns RangeRule - * RangeRule returns RangeRule - * - * Constraint: - * ( - * (optional?='optional' | checkKind=CheckKind)* - * severity=SeverityKind - * name=ID - * label=STRING - * description=STRING? - * message=STRING? - * min=INT? - * max=INT - * contexts+=SimpleContext+ - * ) - *- */ - protected void sequence_RangeRule(ISerializationContext context, RangeRule semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - *
- * Contexts: - * Context returns SimpleContext - * SimpleContext returns SimpleContext - * - * Constraint: - * (contextType=[EClass|QualifiedID] contextFeature=[EStructuralFeature|ID]?) - *- */ - protected void sequence_SimpleContext(ISerializationContext context, SimpleContext semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - *
- * Contexts: - * Rule returns SizeRule - * PredefinedRule returns SizeRule - * SizeRule returns SizeRule - * - * Constraint: - * ( - * (optional?='optional' | checkKind=CheckKind)* - * severity=SeverityKind - * name=ID - * label=STRING - * description=STRING? - * message=STRING? - * min=INT? - * max=INT - * contexts+=SimpleContext+ - * ) - *- */ - protected void sequence_SizeRule(ISerializationContext context, SizeRule semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - *
- * Contexts: - * Rule returns UniqueRule - * PredefinedRule returns UniqueRule - * UniqueRule returns UniqueRule - * - * Constraint: - * ( - * (optional?='optional' | checkKind=CheckKind)* - * severity=SeverityKind - * name=ID - * label=STRING - * description=STRING? - * message=STRING? - * contexts+=DuplicateContext+ - * ) - *- */ - protected void sequence_UniqueRule(ISerializationContext context, UniqueRule semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - *
- * Contexts: - * ValidModel returns ValidModel - * - * Constraint: - * ((imports+=Import+ categories+=Category+) | categories+=Category+)? - *- */ - protected void sequence_ValidModel(ISerializationContext context, ValidModel semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - -} diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/serializer/AbstractValidSyntacticSequencer.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/serializer/AbstractValidSyntacticSequencer.java deleted file mode 100644 index 0902f94808..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/serializer/AbstractValidSyntacticSequencer.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * generated by Xtext - */ -package com.avaloq.tools.ddk.xtext.valid.serializer; - -import com.avaloq.tools.ddk.xtext.valid.services.ValidGrammarAccess; -import com.google.inject.Inject; -import java.util.List; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.xtext.IGrammarAccess; -import org.eclipse.xtext.RuleCall; -import org.eclipse.xtext.nodemodel.INode; -import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias; -import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition; -import org.eclipse.xtext.serializer.sequencer.AbstractSyntacticSequencer; - -@SuppressWarnings("all") -public abstract class AbstractValidSyntacticSequencer extends AbstractSyntacticSequencer { - - protected ValidGrammarAccess grammarAccess; - - @Inject - protected void init(IGrammarAccess access) { - grammarAccess = (ValidGrammarAccess) access; - } - - @Override - protected String getUnassignedRuleCallToken(EObject semanticObject, RuleCall ruleCall, INode node) { - return ""; - } - - - @Override - protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) { - if (transition.getAmbiguousSyntaxes().isEmpty()) return; - List
- * The following features are supported: - *
- *null.
- * @generated
- */
- public static CheckKind get(String literal)
- {
- for (int i = 0; i < VALUES_ARRAY.length; ++i)
- {
- CheckKind result = VALUES_ARRAY[i];
- if (result.toString().equals(literal))
- {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the 'Check Kind' literal with the specified name.
- *
- *
- * @param name the name.
- * @return the matching enumerator or null.
- * @generated
- */
- public static CheckKind getByName(String name)
- {
- for (int i = 0; i < VALUES_ARRAY.length; ++i)
- {
- CheckKind result = VALUES_ARRAY[i];
- if (result.getName().equals(name))
- {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the 'Check Kind' literal with the specified integer value.
- *
- *
- * @param value the integer value.
- * @return the matching enumerator or null.
- * @generated
- */
- public static CheckKind get(int value)
- {
- switch (value)
- {
- case FAST_VALUE: return FAST;
- case NORMAL_VALUE: return NORMAL;
- case EXPENSIVE_VALUE: return EXPENSIVE;
- }
- return null;
- }
-
- /**
- *
- *
- * @generated
- */
- private final int value;
-
- /**
- *
- *
- * @generated
- */
- private final String name;
-
- /**
- *
- *
- * @generated
- */
- private final String literal;
-
- /**
- * Only this class can construct instances.
- *
- *
- * @generated
- */
- private CheckKind(int value, String name, String literal)
- {
- this.value = value;
- this.name = name;
- this.literal = literal;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public int getValue()
- {
- return value;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public String getName()
- {
- return name;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public String getLiteral()
- {
- return literal;
- }
-
- /**
- * Returns the literal value of the enumerator, which is its string representation.
- *
- *
- * @generated
- */
- @Override
- public String toString()
- {
- return literal;
- }
-
-} //CheckKind
diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/Context.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/Context.java
deleted file mode 100644
index 564dbe58a7..0000000000
--- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/Context.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/**
- */
-package com.avaloq.tools.ddk.xtext.valid.valid;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-
-/**
- *
- * A representation of the model object 'Context'.
- *
- *
- * - * The following features are supported: - *
- *- * The following features are supported: - *
- *- * The following features are supported: - *
- *- * The following features are supported: - *
- *- * The following features are supported: - *
- *- * The following features are supported: - *
- *null.
- * @generated
- */
- public static QuickFixKind get(String literal)
- {
- for (int i = 0; i < VALUES_ARRAY.length; ++i)
- {
- QuickFixKind result = VALUES_ARRAY[i];
- if (result.toString().equals(literal))
- {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the 'Quick Fix Kind' literal with the specified name.
- *
- *
- * @param name the name.
- * @return the matching enumerator or null.
- * @generated
- */
- public static QuickFixKind getByName(String name)
- {
- for (int i = 0; i < VALUES_ARRAY.length; ++i)
- {
- QuickFixKind result = VALUES_ARRAY[i];
- if (result.getName().equals(name))
- {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the 'Quick Fix Kind' literal with the specified integer value.
- *
- *
- * @param value the integer value.
- * @return the matching enumerator or null.
- * @generated
- */
- public static QuickFixKind get(int value)
- {
- switch (value)
- {
- case SEMANTIC_VALUE: return SEMANTIC;
- case TEXTUAL_VALUE: return TEXTUAL;
- }
- return null;
- }
-
- /**
- *
- *
- * @generated
- */
- private final int value;
-
- /**
- *
- *
- * @generated
- */
- private final String name;
-
- /**
- *
- *
- * @generated
- */
- private final String literal;
-
- /**
- * Only this class can construct instances.
- *
- *
- * @generated
- */
- private QuickFixKind(int value, String name, String literal)
- {
- this.value = value;
- this.name = name;
- this.literal = literal;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public int getValue()
- {
- return value;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public String getName()
- {
- return name;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public String getLiteral()
- {
- return literal;
- }
-
- /**
- * Returns the literal value of the enumerator, which is its string representation.
- *
- *
- * @generated
- */
- @Override
- public String toString()
- {
- return literal;
- }
-
-} //QuickFixKind
diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/RangeRule.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/RangeRule.java
deleted file mode 100644
index e9ad2a37fc..0000000000
--- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/RangeRule.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/**
- */
-package com.avaloq.tools.ddk.xtext.valid.valid;
-
-import org.eclipse.emf.common.util.EList;
-
-/**
- *
- * A representation of the model object 'Range Rule'.
- *
- *
- * - * The following features are supported: - *
- *- * The following features are supported: - *
- *null.
- * @generated
- */
- public static SeverityKind get(String literal)
- {
- for (int i = 0; i < VALUES_ARRAY.length; ++i)
- {
- SeverityKind result = VALUES_ARRAY[i];
- if (result.toString().equals(literal))
- {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the 'Severity Kind' literal with the specified name.
- *
- *
- * @param name the name.
- * @return the matching enumerator or null.
- * @generated
- */
- public static SeverityKind getByName(String name)
- {
- for (int i = 0; i < VALUES_ARRAY.length; ++i)
- {
- SeverityKind result = VALUES_ARRAY[i];
- if (result.getName().equals(name))
- {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the 'Severity Kind' literal with the specified integer value.
- *
- *
- * @param value the integer value.
- * @return the matching enumerator or null.
- * @generated
- */
- public static SeverityKind get(int value)
- {
- switch (value)
- {
- case ERROR_VALUE: return ERROR;
- case WARNING_VALUE: return WARNING;
- }
- return null;
- }
-
- /**
- *
- *
- * @generated
- */
- private final int value;
-
- /**
- *
- *
- * @generated
- */
- private final String name;
-
- /**
- *
- *
- * @generated
- */
- private final String literal;
-
- /**
- * Only this class can construct instances.
- *
- *
- * @generated
- */
- private SeverityKind(int value, String name, String literal)
- {
- this.value = value;
- this.name = name;
- this.literal = literal;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public int getValue()
- {
- return value;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public String getName()
- {
- return name;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public String getLiteral()
- {
- return literal;
- }
-
- /**
- * Returns the literal value of the enumerator, which is its string representation.
- *
- *
- * @generated
- */
- @Override
- public String toString()
- {
- return literal;
- }
-
-} //SeverityKind
diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/SimpleContext.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/SimpleContext.java
deleted file mode 100644
index 42388978af..0000000000
--- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/SimpleContext.java
+++ /dev/null
@@ -1,18 +0,0 @@
-/**
- */
-package com.avaloq.tools.ddk.xtext.valid.valid;
-
-
-/**
- *
- * A representation of the model object 'Simple Context'.
- *
- *
- *
- * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getSimpleContext()
- * @model
- * @generated
- */
-public interface SimpleContext extends Context
-{
-} // SimpleContext
diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/SizeRule.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/SizeRule.java
deleted file mode 100644
index 1ee52fc8bc..0000000000
--- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/SizeRule.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/**
- */
-package com.avaloq.tools.ddk.xtext.valid.valid;
-
-import org.eclipse.emf.common.util.EList;
-
-/**
- *
- * A representation of the model object 'Size Rule'.
- *
- *
- * - * The following features are supported: - *
- *- * The following features are supported: - *
- *- * The following features are supported: - *
- *- * The following features are implemented: - *
- *- * The following features are implemented: - *
- *- * The following features are implemented: - *
- *- * The following features are implemented: - *
- *- * The following features are implemented: - *
- *- * The following features are implemented: - *
- *- * The following features are implemented: - *
- *- * The following features are implemented: - *
- *- * The following features are implemented: - *
- *- * The following features are implemented: - *
- *- * The following features are implemented: - *
- *- * The following features are implemented: - *
- *Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#eNS_URI - * @see #init() - * @generated - */ - private ValidPackageImpl() - { - super(eNS_URI, ValidFactory.eINSTANCE); - } - /** - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - * - *
This method is used to initialize {@link ValidPackage#eINSTANCE} when that field is accessed.
- * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
- *
- *
- * @see #eNS_URI
- * @see #createPackageContents()
- * @see #initializePackageContents()
- * @generated
- */
- public static ValidPackage init()
- {
- if (isInited) return (ValidPackage)EPackage.Registry.INSTANCE.getEPackage(ValidPackage.eNS_URI);
-
- // Obtain or create and register package
- Object registeredValidPackage = EPackage.Registry.INSTANCE.get(eNS_URI);
- ValidPackageImpl theValidPackage = registeredValidPackage instanceof ValidPackageImpl ? (ValidPackageImpl)registeredValidPackage : new ValidPackageImpl();
-
- isInited = true;
-
- // Initialize simple dependencies
- EcorePackage.eINSTANCE.eClass();
-
- // Create package meta-data objects
- theValidPackage.createPackageContents();
-
- // Initialize created meta-data
- theValidPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theValidPackage.freeze();
-
- // Update the registry and return the package
- EPackage.Registry.INSTANCE.put(ValidPackage.eNS_URI, theValidPackage);
- return theValidPackage;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EClass getValidModel()
- {
- return validModelEClass;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EReference getValidModel_Imports()
- {
- return (EReference)validModelEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EReference getValidModel_Categories()
- {
- return (EReference)validModelEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EClass getImport()
- {
- return importEClass;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EReference getImport_Package()
- {
- return (EReference)importEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EClass getCategory()
- {
- return categoryEClass;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EAttribute getCategory_Name()
- {
- return (EAttribute)categoryEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EAttribute getCategory_Label()
- {
- return (EAttribute)categoryEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EAttribute getCategory_Description()
- {
- return (EAttribute)categoryEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EReference getCategory_Rules()
- {
- return (EReference)categoryEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EClass getRule()
- {
- return ruleEClass;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EAttribute getRule_Optional()
- {
- return (EAttribute)ruleEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EAttribute getRule_CheckKind()
- {
- return (EAttribute)ruleEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EAttribute getRule_Severity()
- {
- return (EAttribute)ruleEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EAttribute getRule_Name()
- {
- return (EAttribute)ruleEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EAttribute getRule_Label()
- {
- return (EAttribute)ruleEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EAttribute getRule_Description()
- {
- return (EAttribute)ruleEClass.getEStructuralFeatures().get(5);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EAttribute getRule_Message()
- {
- return (EAttribute)ruleEClass.getEStructuralFeatures().get(6);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EClass getPredefinedRule()
- {
- return predefinedRuleEClass;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EClass getNativeRule()
- {
- return nativeRuleEClass;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EReference getNativeRule_Contexts()
- {
- return (EReference)nativeRuleEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EClass getSizeRule()
- {
- return sizeRuleEClass;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EAttribute getSizeRule_Min()
- {
- return (EAttribute)sizeRuleEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EAttribute getSizeRule_Max()
- {
- return (EAttribute)sizeRuleEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EReference getSizeRule_Contexts()
- {
- return (EReference)sizeRuleEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EClass getRangeRule()
- {
- return rangeRuleEClass;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EAttribute getRangeRule_Min()
- {
- return (EAttribute)rangeRuleEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EAttribute getRangeRule_Max()
- {
- return (EAttribute)rangeRuleEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EReference getRangeRule_Contexts()
- {
- return (EReference)rangeRuleEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EClass getUniqueRule()
- {
- return uniqueRuleEClass;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EReference getUniqueRule_Contexts()
- {
- return (EReference)uniqueRuleEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EClass getContext()
- {
- return contextEClass;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EReference getContext_ContextType()
- {
- return (EReference)contextEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EReference getContext_ContextFeature()
- {
- return (EReference)contextEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EClass getSimpleContext()
- {
- return simpleContextEClass;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EClass getDuplicateContext()
- {
- return duplicateContextEClass;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EReference getDuplicateContext_MarkerType()
- {
- return (EReference)duplicateContextEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EReference getDuplicateContext_MarkerFeature()
- {
- return (EReference)duplicateContextEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EClass getNativeContext()
- {
- return nativeContextEClass;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EAttribute getNativeContext_Named()
- {
- return (EAttribute)nativeContextEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EAttribute getNativeContext_GivenName()
- {
- return (EAttribute)nativeContextEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EReference getNativeContext_MarkerType()
- {
- return (EReference)nativeContextEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EReference getNativeContext_MarkerFeature()
- {
- return (EReference)nativeContextEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EReference getNativeContext_QuickFixes()
- {
- return (EReference)nativeContextEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EClass getQuickFix()
- {
- return quickFixEClass;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EAttribute getQuickFix_QuickFixKind()
- {
- return (EAttribute)quickFixEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EAttribute getQuickFix_Name()
- {
- return (EAttribute)quickFixEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EAttribute getQuickFix_Label()
- {
- return (EAttribute)quickFixEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EAttribute getQuickFix_Message()
- {
- return (EAttribute)quickFixEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EEnum getCheckKind()
- {
- return checkKindEEnum;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EEnum getSeverityKind()
- {
- return severityKindEEnum;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EEnum getQuickFixKind()
- {
- return quickFixKindEEnum;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public ValidFactory getValidFactory()
- {
- return (ValidFactory)getEFactoryInstance();
- }
-
- /**
- *
- *
- * @generated
- */
- private boolean isCreated = false;
-
- /**
- * Creates the meta-model objects for the package. This method is
- * guarded to have no affect on any invocation but its first.
- *
- *
- * @generated
- */
- public void createPackageContents()
- {
- if (isCreated) return;
- isCreated = true;
-
- // Create classes and their features
- validModelEClass = createEClass(VALID_MODEL);
- createEReference(validModelEClass, VALID_MODEL__IMPORTS);
- createEReference(validModelEClass, VALID_MODEL__CATEGORIES);
-
- importEClass = createEClass(IMPORT);
- createEReference(importEClass, IMPORT__PACKAGE);
-
- categoryEClass = createEClass(CATEGORY);
- createEAttribute(categoryEClass, CATEGORY__NAME);
- createEAttribute(categoryEClass, CATEGORY__LABEL);
- createEAttribute(categoryEClass, CATEGORY__DESCRIPTION);
- createEReference(categoryEClass, CATEGORY__RULES);
-
- ruleEClass = createEClass(RULE);
- createEAttribute(ruleEClass, RULE__OPTIONAL);
- createEAttribute(ruleEClass, RULE__CHECK_KIND);
- createEAttribute(ruleEClass, RULE__SEVERITY);
- createEAttribute(ruleEClass, RULE__NAME);
- createEAttribute(ruleEClass, RULE__LABEL);
- createEAttribute(ruleEClass, RULE__DESCRIPTION);
- createEAttribute(ruleEClass, RULE__MESSAGE);
-
- predefinedRuleEClass = createEClass(PREDEFINED_RULE);
-
- nativeRuleEClass = createEClass(NATIVE_RULE);
- createEReference(nativeRuleEClass, NATIVE_RULE__CONTEXTS);
-
- sizeRuleEClass = createEClass(SIZE_RULE);
- createEAttribute(sizeRuleEClass, SIZE_RULE__MIN);
- createEAttribute(sizeRuleEClass, SIZE_RULE__MAX);
- createEReference(sizeRuleEClass, SIZE_RULE__CONTEXTS);
-
- rangeRuleEClass = createEClass(RANGE_RULE);
- createEAttribute(rangeRuleEClass, RANGE_RULE__MIN);
- createEAttribute(rangeRuleEClass, RANGE_RULE__MAX);
- createEReference(rangeRuleEClass, RANGE_RULE__CONTEXTS);
-
- uniqueRuleEClass = createEClass(UNIQUE_RULE);
- createEReference(uniqueRuleEClass, UNIQUE_RULE__CONTEXTS);
-
- contextEClass = createEClass(CONTEXT);
- createEReference(contextEClass, CONTEXT__CONTEXT_TYPE);
- createEReference(contextEClass, CONTEXT__CONTEXT_FEATURE);
-
- simpleContextEClass = createEClass(SIMPLE_CONTEXT);
-
- duplicateContextEClass = createEClass(DUPLICATE_CONTEXT);
- createEReference(duplicateContextEClass, DUPLICATE_CONTEXT__MARKER_TYPE);
- createEReference(duplicateContextEClass, DUPLICATE_CONTEXT__MARKER_FEATURE);
-
- nativeContextEClass = createEClass(NATIVE_CONTEXT);
- createEAttribute(nativeContextEClass, NATIVE_CONTEXT__NAMED);
- createEAttribute(nativeContextEClass, NATIVE_CONTEXT__GIVEN_NAME);
- createEReference(nativeContextEClass, NATIVE_CONTEXT__MARKER_TYPE);
- createEReference(nativeContextEClass, NATIVE_CONTEXT__MARKER_FEATURE);
- createEReference(nativeContextEClass, NATIVE_CONTEXT__QUICK_FIXES);
-
- quickFixEClass = createEClass(QUICK_FIX);
- createEAttribute(quickFixEClass, QUICK_FIX__QUICK_FIX_KIND);
- createEAttribute(quickFixEClass, QUICK_FIX__NAME);
- createEAttribute(quickFixEClass, QUICK_FIX__LABEL);
- createEAttribute(quickFixEClass, QUICK_FIX__MESSAGE);
-
- // Create enums
- checkKindEEnum = createEEnum(CHECK_KIND);
- severityKindEEnum = createEEnum(SEVERITY_KIND);
- quickFixKindEEnum = createEEnum(QUICK_FIX_KIND);
- }
-
- /**
- *
- *
- * @generated
- */
- private boolean isInitialized = false;
-
- /**
- * Complete the initialization of the package and its meta-model. This
- * method is guarded to have no affect on any invocation but its first.
- *
- *
- * @generated
- */
- public void initializePackageContents()
- {
- if (isInitialized) return;
- isInitialized = true;
-
- // Initialize package
- setName(eNAME);
- setNsPrefix(eNS_PREFIX);
- setNsURI(eNS_URI);
-
- // Obtain other dependent packages
- EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);
-
- // Create type parameters
-
- // Set bounds for type parameters
-
- // Add supertypes to classes
- predefinedRuleEClass.getESuperTypes().add(this.getRule());
- nativeRuleEClass.getESuperTypes().add(this.getRule());
- sizeRuleEClass.getESuperTypes().add(this.getPredefinedRule());
- rangeRuleEClass.getESuperTypes().add(this.getPredefinedRule());
- uniqueRuleEClass.getESuperTypes().add(this.getPredefinedRule());
- simpleContextEClass.getESuperTypes().add(this.getContext());
- duplicateContextEClass.getESuperTypes().add(this.getContext());
- nativeContextEClass.getESuperTypes().add(this.getContext());
-
- // Initialize classes and features; add operations and parameters
- initEClass(validModelEClass, ValidModel.class, "ValidModel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getValidModel_Imports(), this.getImport(), null, "imports", null, 0, -1, ValidModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getValidModel_Categories(), this.getCategory(), null, "categories", null, 0, -1, ValidModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(importEClass, Import.class, "Import", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getImport_Package(), theEcorePackage.getEPackage(), null, "package", null, 0, 1, Import.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(categoryEClass, Category.class, "Category", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getCategory_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Category.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getCategory_Label(), theEcorePackage.getEString(), "label", null, 0, 1, Category.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getCategory_Description(), theEcorePackage.getEString(), "description", null, 0, 1, Category.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getCategory_Rules(), this.getRule(), null, "rules", null, 0, -1, Category.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(ruleEClass, Rule.class, "Rule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getRule_Optional(), theEcorePackage.getEBoolean(), "optional", null, 0, 1, Rule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getRule_CheckKind(), this.getCheckKind(), "checkKind", null, 0, 1, Rule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getRule_Severity(), this.getSeverityKind(), "severity", null, 0, 1, Rule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getRule_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Rule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getRule_Label(), theEcorePackage.getEString(), "label", null, 0, 1, Rule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getRule_Description(), theEcorePackage.getEString(), "description", null, 0, 1, Rule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getRule_Message(), theEcorePackage.getEString(), "message", null, 0, 1, Rule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(predefinedRuleEClass, PredefinedRule.class, "PredefinedRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
- initEClass(nativeRuleEClass, NativeRule.class, "NativeRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getNativeRule_Contexts(), this.getNativeContext(), null, "contexts", null, 0, -1, NativeRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(sizeRuleEClass, SizeRule.class, "SizeRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getSizeRule_Min(), theEcorePackage.getEInt(), "min", null, 0, 1, SizeRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getSizeRule_Max(), theEcorePackage.getEInt(), "max", null, 0, 1, SizeRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getSizeRule_Contexts(), this.getSimpleContext(), null, "contexts", null, 0, -1, SizeRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(rangeRuleEClass, RangeRule.class, "RangeRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getRangeRule_Min(), theEcorePackage.getEInt(), "min", null, 0, 1, RangeRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getRangeRule_Max(), theEcorePackage.getEInt(), "max", null, 0, 1, RangeRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getRangeRule_Contexts(), this.getSimpleContext(), null, "contexts", null, 0, -1, RangeRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(uniqueRuleEClass, UniqueRule.class, "UniqueRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getUniqueRule_Contexts(), this.getDuplicateContext(), null, "contexts", null, 0, -1, UniqueRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(contextEClass, Context.class, "Context", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getContext_ContextType(), theEcorePackage.getEClass(), null, "contextType", null, 0, 1, Context.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getContext_ContextFeature(), theEcorePackage.getEStructuralFeature(), null, "contextFeature", null, 0, 1, Context.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(simpleContextEClass, SimpleContext.class, "SimpleContext", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
- initEClass(duplicateContextEClass, DuplicateContext.class, "DuplicateContext", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getDuplicateContext_MarkerType(), theEcorePackage.getEClass(), null, "markerType", null, 0, 1, DuplicateContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getDuplicateContext_MarkerFeature(), theEcorePackage.getEStructuralFeature(), null, "markerFeature", null, 0, 1, DuplicateContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(nativeContextEClass, NativeContext.class, "NativeContext", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getNativeContext_Named(), theEcorePackage.getEBoolean(), "named", null, 0, 1, NativeContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getNativeContext_GivenName(), theEcorePackage.getEString(), "givenName", null, 0, 1, NativeContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getNativeContext_MarkerType(), theEcorePackage.getEClass(), null, "markerType", null, 0, 1, NativeContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getNativeContext_MarkerFeature(), theEcorePackage.getEStructuralFeature(), null, "markerFeature", null, 0, 1, NativeContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getNativeContext_QuickFixes(), this.getQuickFix(), null, "quickFixes", null, 0, -1, NativeContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(quickFixEClass, QuickFix.class, "QuickFix", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getQuickFix_QuickFixKind(), this.getQuickFixKind(), "quickFixKind", null, 0, 1, QuickFix.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getQuickFix_Name(), theEcorePackage.getEString(), "name", null, 0, 1, QuickFix.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getQuickFix_Label(), theEcorePackage.getEString(), "label", null, 0, 1, QuickFix.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getQuickFix_Message(), theEcorePackage.getEString(), "message", null, 0, 1, QuickFix.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- // Initialize enums and add enum literals
- initEEnum(checkKindEEnum, CheckKind.class, "CheckKind");
- addEEnumLiteral(checkKindEEnum, CheckKind.FAST);
- addEEnumLiteral(checkKindEEnum, CheckKind.NORMAL);
- addEEnumLiteral(checkKindEEnum, CheckKind.EXPENSIVE);
-
- initEEnum(severityKindEEnum, SeverityKind.class, "SeverityKind");
- addEEnumLiteral(severityKindEEnum, SeverityKind.ERROR);
- addEEnumLiteral(severityKindEEnum, SeverityKind.WARNING);
-
- initEEnum(quickFixKindEEnum, QuickFixKind.class, "QuickFixKind");
- addEEnumLiteral(quickFixKindEEnum, QuickFixKind.SEMANTIC);
- addEEnumLiteral(quickFixKindEEnum, QuickFixKind.TEXTUAL);
-
- // Create resource
- createResource(eNS_URI);
- }
-
-} //ValidPackageImpl
diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/util/ValidAdapterFactory.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/util/ValidAdapterFactory.java
deleted file mode 100644
index 28a05d4537..0000000000
--- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/util/ValidAdapterFactory.java
+++ /dev/null
@@ -1,392 +0,0 @@
-/**
- */
-package com.avaloq.tools.ddk.xtext.valid.valid.util;
-
-import com.avaloq.tools.ddk.xtext.valid.valid.*;
-
-import org.eclipse.emf.common.notify.Adapter;
-import org.eclipse.emf.common.notify.Notifier;
-
-import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- *
- * The Adapter Factory for the model.
- * It provides an adapter createXXX method for each class of the model.
- *
- * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage
- * @generated
- */
-public class ValidAdapterFactory extends AdapterFactoryImpl
-{
- /**
- * The cached model package.
- *
- *
- * @generated
- */
- protected static ValidPackage modelPackage;
-
- /**
- * Creates an instance of the adapter factory.
- *
- *
- * @generated
- */
- public ValidAdapterFactory()
- {
- if (modelPackage == null)
- {
- modelPackage = ValidPackage.eINSTANCE;
- }
- }
-
- /**
- * Returns whether this factory is applicable for the type of the object.
- *
- * This implementation returns true if the object is either the model's package or is an instance object of the model.
- *
- * @return whether this factory is applicable for the type of the object.
- * @generated
- */
- @Override
- public boolean isFactoryForType(Object object)
- {
- if (object == modelPackage)
- {
- return true;
- }
- if (object instanceof EObject)
- {
- return ((EObject)object).eClass().getEPackage() == modelPackage;
- }
- return false;
- }
-
- /**
- * The switch that delegates to the createXXX methods.
- *
- *
- * @generated
- */
- protected ValidSwitchtarget.
- *
- *
- * @param target the object to adapt.
- * @return the adapter for the target.
- * @generated
- */
- @Override
- public Adapter createAdapter(Notifier target)
- {
- return modelSwitch.doSwitch((EObject)target);
- }
-
-
- /**
- * Creates a new adapter for an object of class '{@link com.avaloq.tools.ddk.xtext.valid.valid.ValidModel Model}'.
- *
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidModel
- * @generated
- */
- public Adapter createValidModelAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link com.avaloq.tools.ddk.xtext.valid.valid.Import Import}'.
- *
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see com.avaloq.tools.ddk.xtext.valid.valid.Import
- * @generated
- */
- public Adapter createImportAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link com.avaloq.tools.ddk.xtext.valid.valid.Category Category}'.
- *
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see com.avaloq.tools.ddk.xtext.valid.valid.Category
- * @generated
- */
- public Adapter createCategoryAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link com.avaloq.tools.ddk.xtext.valid.valid.Rule Rule}'.
- *
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see com.avaloq.tools.ddk.xtext.valid.valid.Rule
- * @generated
- */
- public Adapter createRuleAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link com.avaloq.tools.ddk.xtext.valid.valid.PredefinedRule Predefined Rule}'.
- *
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see com.avaloq.tools.ddk.xtext.valid.valid.PredefinedRule
- * @generated
- */
- public Adapter createPredefinedRuleAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link com.avaloq.tools.ddk.xtext.valid.valid.NativeRule Native Rule}'.
- *
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see com.avaloq.tools.ddk.xtext.valid.valid.NativeRule
- * @generated
- */
- public Adapter createNativeRuleAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link com.avaloq.tools.ddk.xtext.valid.valid.SizeRule Size Rule}'.
- *
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see com.avaloq.tools.ddk.xtext.valid.valid.SizeRule
- * @generated
- */
- public Adapter createSizeRuleAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link com.avaloq.tools.ddk.xtext.valid.valid.RangeRule Range Rule}'.
- *
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see com.avaloq.tools.ddk.xtext.valid.valid.RangeRule
- * @generated
- */
- public Adapter createRangeRuleAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link com.avaloq.tools.ddk.xtext.valid.valid.UniqueRule Unique Rule}'.
- *
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see com.avaloq.tools.ddk.xtext.valid.valid.UniqueRule
- * @generated
- */
- public Adapter createUniqueRuleAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link com.avaloq.tools.ddk.xtext.valid.valid.Context Context}'.
- *
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see com.avaloq.tools.ddk.xtext.valid.valid.Context
- * @generated
- */
- public Adapter createContextAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link com.avaloq.tools.ddk.xtext.valid.valid.SimpleContext Simple Context}'.
- *
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see com.avaloq.tools.ddk.xtext.valid.valid.SimpleContext
- * @generated
- */
- public Adapter createSimpleContextAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link com.avaloq.tools.ddk.xtext.valid.valid.DuplicateContext Duplicate Context}'.
- *
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see com.avaloq.tools.ddk.xtext.valid.valid.DuplicateContext
- * @generated
- */
- public Adapter createDuplicateContextAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link com.avaloq.tools.ddk.xtext.valid.valid.NativeContext Native Context}'.
- *
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see com.avaloq.tools.ddk.xtext.valid.valid.NativeContext
- * @generated
- */
- public Adapter createNativeContextAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link com.avaloq.tools.ddk.xtext.valid.valid.QuickFix Quick Fix}'.
- *
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see com.avaloq.tools.ddk.xtext.valid.valid.QuickFix
- * @generated
- */
- public Adapter createQuickFixAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for the default case.
- *
- * This default implementation returns null.
- *
- * @return the new adapter.
- * @generated
- */
- public Adapter createEObjectAdapter()
- {
- return null;
- }
-
-} //ValidAdapterFactory
diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/util/ValidSwitch.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/util/ValidSwitch.java
deleted file mode 100644
index 7ce5a17b6e..0000000000
--- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/util/ValidSwitch.java
+++ /dev/null
@@ -1,429 +0,0 @@
-/**
- */
-package com.avaloq.tools.ddk.xtext.valid.valid.util;
-
-import com.avaloq.tools.ddk.xtext.valid.valid.*;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-
-import org.eclipse.emf.ecore.util.Switch;
-
-/**
- *
- * The Switch for the model's inheritance hierarchy.
- * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
- * to invoke the caseXXX method for each class of the model,
- * starting with the actual class of the object
- * and proceeding up the inheritance hierarchy
- * until a non-null result is returned,
- * which is the result of the switch.
- *
- * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage
- * @generated
- */
-public class ValidSwitchcaseXXX for each class of the model until one returns a non null result; it yields that result.
- *
- *
- * @return the first non-null result returned by a caseXXX call.
- * @generated
- */
- @Override
- protected T doSwitch(int classifierID, EObject theEObject)
- {
- switch (classifierID)
- {
- case ValidPackage.VALID_MODEL:
- {
- ValidModel validModel = (ValidModel)theEObject;
- T result = caseValidModel(validModel);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case ValidPackage.IMPORT:
- {
- Import import_ = (Import)theEObject;
- T result = caseImport(import_);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case ValidPackage.CATEGORY:
- {
- Category category = (Category)theEObject;
- T result = caseCategory(category);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case ValidPackage.RULE:
- {
- Rule rule = (Rule)theEObject;
- T result = caseRule(rule);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case ValidPackage.PREDEFINED_RULE:
- {
- PredefinedRule predefinedRule = (PredefinedRule)theEObject;
- T result = casePredefinedRule(predefinedRule);
- if (result == null) result = caseRule(predefinedRule);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case ValidPackage.NATIVE_RULE:
- {
- NativeRule nativeRule = (NativeRule)theEObject;
- T result = caseNativeRule(nativeRule);
- if (result == null) result = caseRule(nativeRule);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case ValidPackage.SIZE_RULE:
- {
- SizeRule sizeRule = (SizeRule)theEObject;
- T result = caseSizeRule(sizeRule);
- if (result == null) result = casePredefinedRule(sizeRule);
- if (result == null) result = caseRule(sizeRule);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case ValidPackage.RANGE_RULE:
- {
- RangeRule rangeRule = (RangeRule)theEObject;
- T result = caseRangeRule(rangeRule);
- if (result == null) result = casePredefinedRule(rangeRule);
- if (result == null) result = caseRule(rangeRule);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case ValidPackage.UNIQUE_RULE:
- {
- UniqueRule uniqueRule = (UniqueRule)theEObject;
- T result = caseUniqueRule(uniqueRule);
- if (result == null) result = casePredefinedRule(uniqueRule);
- if (result == null) result = caseRule(uniqueRule);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case ValidPackage.CONTEXT:
- {
- Context context = (Context)theEObject;
- T result = caseContext(context);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case ValidPackage.SIMPLE_CONTEXT:
- {
- SimpleContext simpleContext = (SimpleContext)theEObject;
- T result = caseSimpleContext(simpleContext);
- if (result == null) result = caseContext(simpleContext);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case ValidPackage.DUPLICATE_CONTEXT:
- {
- DuplicateContext duplicateContext = (DuplicateContext)theEObject;
- T result = caseDuplicateContext(duplicateContext);
- if (result == null) result = caseContext(duplicateContext);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case ValidPackage.NATIVE_CONTEXT:
- {
- NativeContext nativeContext = (NativeContext)theEObject;
- T result = caseNativeContext(nativeContext);
- if (result == null) result = caseContext(nativeContext);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case ValidPackage.QUICK_FIX:
- {
- QuickFix quickFix = (QuickFix)theEObject;
- T result = caseQuickFix(quickFix);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- default: return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Model'.
- *
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- *
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of 'Model'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseValidModel(ValidModel object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Import'.
- *
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- *
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of 'Import'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseImport(Import object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Category'.
- *
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- *
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of 'Category'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseCategory(Category object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Rule'.
- *
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- *
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of 'Rule'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseRule(Rule object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Predefined Rule'.
- *
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- *
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of 'Predefined Rule'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T casePredefinedRule(PredefinedRule object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Native Rule'.
- *
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- *
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of 'Native Rule'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseNativeRule(NativeRule object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Size Rule'.
- *
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- *
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of 'Size Rule'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseSizeRule(SizeRule object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Range Rule'.
- *
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- *
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of 'Range Rule'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseRangeRule(RangeRule object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Unique Rule'.
- *
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- *
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of 'Unique Rule'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseUniqueRule(UniqueRule object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Context'.
- *
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- *
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of 'Context'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseContext(Context object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Simple Context'.
- *
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- *
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of 'Simple Context'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseSimpleContext(SimpleContext object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Duplicate Context'.
- *
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- *
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of 'Duplicate Context'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseDuplicateContext(DuplicateContext object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Native Context'.
- *
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- *
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of 'Native Context'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseNativeContext(NativeContext object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Quick Fix'.
- *
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- *
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of 'Quick Fix'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseQuickFix(QuickFix object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'EObject'.
- *
- * This implementation returns null;
- * returning a non-null result will terminate the switch, but this is the last case anyway.
- *
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of 'EObject'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject)
- * @generated
- */
- @Override
- public T defaultCase(EObject object)
- {
- return null;
- }
-
-} //ValidSwitch
diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/validation/AbstractValidValidator.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/validation/AbstractValidValidator.java
deleted file mode 100644
index 347f0ed412..0000000000
--- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/validation/AbstractValidValidator.java
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * generated by Xtext
- */
-package com.avaloq.tools.ddk.xtext.valid.validation;
-
-import java.util.ArrayList;
-import java.util.List;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.xtext.validation.AbstractDeclarativeValidator;
-
-public abstract class AbstractValidValidator extends AbstractDeclarativeValidator {
-
- @Override
- protected List