/******************************************************************************* * Copyright (c) 2006, 2010 IBM Corporation, Zeligsoft Inc., 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: * IBM - Initial API and implementation * Zeligsoft - Bug 241426 *******************************************************************************/ package org.eclipse.ocl.ecore.impl; import java.util.Map; import org.eclipse.emf.common.util.DiagnosticChain; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EClassifier; import org.eclipse.ocl.ecore.BagType; import org.eclipse.ocl.ecore.EcorePackage; import org.eclipse.ocl.expressions.CollectionKind; import org.eclipse.ocl.types.operations.BagTypeOperations; import org.eclipse.ocl.util.Bag; /** * <!-- begin-user-doc --> * An implementation of the model object '<em><b>Bag Type</b></em>'. * <!-- end-user-doc --> * * @generated */ public class BagTypeImpl extends CollectionTypeImpl implements BagType { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated NOT */ protected BagTypeImpl() { super(); setInstanceClass(Bag.class); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated NOT */ protected BagTypeImpl(EClassifier elementType) { super(elementType); setInstanceClass(Bag.class); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected EClass eStaticClass() { return EcorePackage.Literals.BAG_TYPE; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated NOT */ @Override public CollectionKind getKind() { return CollectionKind.BAG_LITERAL; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated NOT */ @Override public boolean checkCollectionTypeName(DiagnosticChain diagnostics, Map<Object, Object> context) { return BagTypeOperations.checkCollectionTypeName(this, diagnostics, context); } } //BagTypeImpl