blob: b829354860d010d3b2a54b1b654d495fb36f21dc [file] [log] [blame]
/*
* Copyright (c) 2005 IBM Corporation 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
*
* $Id: AssociationClass.java,v 1.2 2005/12/14 22:34:16 khussey Exp $
*/
package org.eclipse.uml2.uml;
import java.util.Map;
import org.eclipse.emf.common.util.DiagnosticChain;
import org.eclipse.emf.common.util.EList;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Association Class</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* In the metamodel, an AssociationClass is a declaration of a semantic relationship between Classifiers, which has a set of features of its own. AssociationClass is both an Association and a Class.
* <!-- end-model-doc -->
*
*
* @see org.eclipse.uml2.uml.UMLPackage#getAssociationClass()
* @model
* @generated
*/
public interface AssociationClass
extends org.eclipse.uml2.uml.Class, Association {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* An AssociationClass cannot be defined between itself and something else.
* self.endType->excludes(self) and self.endType>collect(et|et.allparents()->excludes(self))
* <!-- end-model-doc -->
* @model
* @generated
*/
boolean validateCannotBeDefined(DiagnosticChain diagnostics, Map context);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The operation allConnections results in the set of all AssociationEnds of the Association.
* result = memberEnd->union ( self.parents ()->collect (p | p.allConnections () )
* <!-- end-model-doc -->
* @model type="org.eclipse.uml2.uml.Property" lower="2" ordered="false"
* annotation="http://www.eclipse.org/emf/2002/Ecore constraints='spec'"
* @generated
*/
EList allConnections();
} // AssociationClass