blob: 7f4d1f393257c3236fe40f3929d797abf3fb36e4 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2015 David Carlson and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* David Carlson (Clinical Cloud Solutions, LLC) - initial API and implementation
*******************************************************************************/
/**
*/
package org.eclipse.mdht.uml.aml.constraint.impl;
import java.lang.reflect.InvocationTargetException;
import java.util.Map;
import org.eclipse.emf.common.util.BasicDiagnostic;
import org.eclipse.emf.common.util.Diagnostic;
import org.eclipse.emf.common.util.DiagnosticChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.plugin.EcorePlugin;
import org.eclipse.emf.ecore.util.EObjectValidator;
import org.eclipse.mdht.uml.aml.constraint.ArchetypeRoot;
import org.eclipse.mdht.uml.aml.constraint.ConstraintPackage;
import org.eclipse.mdht.uml.aml.constraint.util.ConstraintValidator;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Archetype Root</b></em>'.
* <!-- end-user-doc -->
*
* @generated
*/
public class ArchetypeRootImpl extends ComplexObjectConstraintImpl implements ArchetypeRoot {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected ArchetypeRootImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return ConstraintPackage.Literals.ARCHETYPE_ROOT;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean validateAOMVARXNCexternalreferencenodeidentifiervalidity(DiagnosticChain diagnostics, Map<Object, Object> context) {
// TODO: implement this method
// -> specify the condition that violates the invariant
// -> verify the details of the diagnostic, including severity and message
// Ensure that you remove @generated or mark it @generated NOT
if (false) {
if (diagnostics != null) {
diagnostics.add
(new BasicDiagnostic
(Diagnostic.ERROR,
ConstraintValidator.DIAGNOSTIC_SOURCE,
ConstraintValidator.ARCHETYPE_ROOT__AOMVARXN_CEXTERNALREFERENCENODEIDENTIFIERVALIDITY,
EcorePlugin.INSTANCE.getString("_UI_GenericInvariant_diagnostic", new Object[] { "validateAOMVARXNCexternalreferencenodeidentifiervalidity", EObjectValidator.getObjectLabel(this, context) }),
new Object [] { this }));
}
return false;
}
return true;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean validateAOMVARXTVexternalreferencetypevalidity(DiagnosticChain diagnostics, Map<Object, Object> context) {
// TODO: implement this method
// -> specify the condition that violates the invariant
// -> verify the details of the diagnostic, including severity and message
// Ensure that you remove @generated or mark it @generated NOT
if (false) {
if (diagnostics != null) {
diagnostics.add
(new BasicDiagnostic
(Diagnostic.ERROR,
ConstraintValidator.DIAGNOSTIC_SOURCE,
ConstraintValidator.ARCHETYPE_ROOT__AOMVARXT_VEXTERNALREFERENCETYPEVALIDITY,
EcorePlugin.INSTANCE.getString("_UI_GenericInvariant_diagnostic", new Object[] { "validateAOMVARXTVexternalreferencetypevalidity", EObjectValidator.getObjectLabel(this, context) }),
new Object [] { this }));
}
return false;
}
return true;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean validateAOMVARXSexternalreferenceconformstoslot(DiagnosticChain diagnostics, Map<Object, Object> context) {
// TODO: implement this method
// -> specify the condition that violates the invariant
// -> verify the details of the diagnostic, including severity and message
// Ensure that you remove @generated or mark it @generated NOT
if (false) {
if (diagnostics != null) {
diagnostics.add
(new BasicDiagnostic
(Diagnostic.ERROR,
ConstraintValidator.DIAGNOSTIC_SOURCE,
ConstraintValidator.ARCHETYPE_ROOT__AOMVARX_SEXTERNALREFERENCECONFORMSTOSLOT,
EcorePlugin.INSTANCE.getString("_UI_GenericInvariant_diagnostic", new Object[] { "validateAOMVARXSexternalreferenceconformstoslot", EObjectValidator.getObjectLabel(this, context) }),
new Object [] { this }));
}
return false;
}
return true;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean validateAOMVARXRexternalreferencereferstoresolvableartefact(DiagnosticChain diagnostics, Map<Object, Object> context) {
// TODO: implement this method
// -> specify the condition that violates the invariant
// -> verify the details of the diagnostic, including severity and message
// Ensure that you remove @generated or mark it @generated NOT
if (false) {
if (diagnostics != null) {
diagnostics.add
(new BasicDiagnostic
(Diagnostic.ERROR,
ConstraintValidator.DIAGNOSTIC_SOURCE,
ConstraintValidator.ARCHETYPE_ROOT__AOMVARX_REXTERNALREFERENCEREFERSTORESOLVABLEARTEFACT,
EcorePlugin.INSTANCE.getString("_UI_GenericInvariant_diagnostic", new Object[] { "validateAOMVARXRexternalreferencereferstoresolvableartefact", EObjectValidator.getObjectLabel(this, context) }),
new Object [] { this }));
}
return false;
}
return true;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean validateAOMVARXIDexternalreferenceslotfillingidvalidity(DiagnosticChain diagnostics, Map<Object, Object> context) {
// TODO: implement this method
// -> specify the condition that violates the invariant
// -> verify the details of the diagnostic, including severity and message
// Ensure that you remove @generated or mark it @generated NOT
if (false) {
if (diagnostics != null) {
diagnostics.add
(new BasicDiagnostic
(Diagnostic.ERROR,
ConstraintValidator.DIAGNOSTIC_SOURCE,
ConstraintValidator.ARCHETYPE_ROOT__AOMVARXI_DEXTERNALREFERENCESLOTFILLINGIDVALIDITY,
EcorePlugin.INSTANCE.getString("_UI_GenericInvariant_diagnostic", new Object[] { "validateAOMVARXIDexternalreferenceslotfillingidvalidity", EObjectValidator.getObjectLabel(this, context) }),
new Object [] { this }));
}
return false;
}
return true;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean validateAOMCARCHETYPEROOTInvariantArchetypeRefValidity(DiagnosticChain diagnostics, Map<Object, Object> context) {
// TODO: implement this method
// -> specify the condition that violates the invariant
// -> verify the details of the diagnostic, including severity and message
// Ensure that you remove @generated or mark it @generated NOT
if (false) {
if (diagnostics != null) {
diagnostics.add
(new BasicDiagnostic
(Diagnostic.ERROR,
ConstraintValidator.DIAGNOSTIC_SOURCE,
ConstraintValidator.ARCHETYPE_ROOT__AOMCARCHETYPEROOT_INVARIANT_ARCHETYPE_REF_VALIDITY,
EcorePlugin.INSTANCE.getString("_UI_GenericInvariant_diagnostic", new Object[] { "validateAOMCARCHETYPEROOTInvariantArchetypeRefValidity", EObjectValidator.getObjectLabel(this, context) }),
new Object [] { this }));
}
return false;
}
return true;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean validateAOMVARXAVexternalreferencenodearchetypereferencevalidity(DiagnosticChain diagnostics, Map<Object, Object> context) {
// TODO: implement this method
// -> specify the condition that violates the invariant
// -> verify the details of the diagnostic, including severity and message
// Ensure that you remove @generated or mark it @generated NOT
if (false) {
if (diagnostics != null) {
diagnostics.add
(new BasicDiagnostic
(Diagnostic.ERROR,
ConstraintValidator.DIAGNOSTIC_SOURCE,
ConstraintValidator.ARCHETYPE_ROOT__AOMVARXA_VEXTERNALREFERENCENODEARCHETYPEREFERENCEVALIDITY,
EcorePlugin.INSTANCE.getString("_UI_GenericInvariant_diagnostic", new Object[] { "validateAOMVARXAVexternalreferencenodearchetypereferencevalidity", EObjectValidator.getObjectLabel(this, context) }),
new Object [] { this }));
}
return false;
}
return true;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
@SuppressWarnings("unchecked")
public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException {
switch (operationID) {
case ConstraintPackage.ARCHETYPE_ROOT___VALIDATE_AOMVARXN_CEXTERNALREFERENCENODEIDENTIFIERVALIDITY__DIAGNOSTICCHAIN_MAP:
return validateAOMVARXNCexternalreferencenodeidentifiervalidity((DiagnosticChain)arguments.get(0), (Map<Object, Object>)arguments.get(1));
case ConstraintPackage.ARCHETYPE_ROOT___VALIDATE_AOMVARXT_VEXTERNALREFERENCETYPEVALIDITY__DIAGNOSTICCHAIN_MAP:
return validateAOMVARXTVexternalreferencetypevalidity((DiagnosticChain)arguments.get(0), (Map<Object, Object>)arguments.get(1));
case ConstraintPackage.ARCHETYPE_ROOT___VALIDATE_AOMVARX_SEXTERNALREFERENCECONFORMSTOSLOT__DIAGNOSTICCHAIN_MAP:
return validateAOMVARXSexternalreferenceconformstoslot((DiagnosticChain)arguments.get(0), (Map<Object, Object>)arguments.get(1));
case ConstraintPackage.ARCHETYPE_ROOT___VALIDATE_AOMVARX_REXTERNALREFERENCEREFERSTORESOLVABLEARTEFACT__DIAGNOSTICCHAIN_MAP:
return validateAOMVARXRexternalreferencereferstoresolvableartefact((DiagnosticChain)arguments.get(0), (Map<Object, Object>)arguments.get(1));
case ConstraintPackage.ARCHETYPE_ROOT___VALIDATE_AOMVARXI_DEXTERNALREFERENCESLOTFILLINGIDVALIDITY__DIAGNOSTICCHAIN_MAP:
return validateAOMVARXIDexternalreferenceslotfillingidvalidity((DiagnosticChain)arguments.get(0), (Map<Object, Object>)arguments.get(1));
case ConstraintPackage.ARCHETYPE_ROOT___VALIDATE_AOMCARCHETYPEROOT_INVARIANT_ARCHETYPE_REF_VALIDITY__DIAGNOSTICCHAIN_MAP:
return validateAOMCARCHETYPEROOTInvariantArchetypeRefValidity((DiagnosticChain)arguments.get(0), (Map<Object, Object>)arguments.get(1));
case ConstraintPackage.ARCHETYPE_ROOT___VALIDATE_AOMVARXA_VEXTERNALREFERENCENODEARCHETYPEREFERENCEVALIDITY__DIAGNOSTICCHAIN_MAP:
return validateAOMVARXAVexternalreferencenodearchetypereferencevalidity((DiagnosticChain)arguments.get(0), (Map<Object, Object>)arguments.get(1));
}
return super.eInvoke(operationID, arguments);
}
} //ArchetypeRootImpl