blob: f52e29595913b7c912f35b919da87fdbcf8d2e36 [file] [log] [blame]
/*
* Copyright (c) 2005, 2007 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: QualifierValue.java,v 1.4 2007/04/25 17:47:05 khussey Exp $
*/
package org.eclipse.uml2.uml;
import java.util.Map;
import org.eclipse.emf.common.util.DiagnosticChain;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Qualifier Value</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* A qualifier value is not an action. It is an element that identifies links. It gives a single qualifier within a link end data specification.
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.uml2.uml.QualifierValue#getQualifier <em>Qualifier</em>}</li>
* <li>{@link org.eclipse.uml2.uml.QualifierValue#getValue <em>Value</em>}</li>
* </ul>
* </p>
*
* @see org.eclipse.uml2.uml.UMLPackage#getQualifierValue()
* @model
* @generated
*/
public interface QualifierValue
extends Element {
/**
* Returns the value of the '<em><b>Qualifier</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* Attribute representing the qualifier for which the value is to be specified.
* <!-- end-model-doc -->
* @return the value of the '<em>Qualifier</em>' reference.
* @see #setQualifier(Property)
* @see org.eclipse.uml2.uml.UMLPackage#getQualifierValue_Qualifier()
* @model required="true" ordered="false"
* @generated
*/
Property getQualifier();
/**
* Sets the value of the '{@link org.eclipse.uml2.uml.QualifierValue#getQualifier <em>Qualifier</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Qualifier</em>' reference.
* @see #getQualifier()
* @generated
*/
void setQualifier(Property value);
/**
* Returns the value of the '<em><b>Value</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* Input pin from which the specified value for the qualifier is taken.
* <!-- end-model-doc -->
* @return the value of the '<em>Value</em>' reference.
* @see #setValue(InputPin)
* @see org.eclipse.uml2.uml.UMLPackage#getQualifierValue_Value()
* @model required="true" ordered="false"
* @generated
*/
InputPin getValue();
/**
* Sets the value of the '{@link org.eclipse.uml2.uml.QualifierValue#getValue <em>Value</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Value</em>' reference.
* @see #getValue()
* @generated
*/
void setValue(InputPin value);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The qualifier attribute must be a qualifier of the association end of the link-end data.
* self.LinkEndData.end->collect(qualifier)->includes(self.qualifier)
* @param diagnostics The chain of diagnostics to which problems are to be appended.
* @param context The cache of context-specific information.
* <!-- end-model-doc -->
* @model
* @generated
*/
boolean validateQualifierAttribute(DiagnosticChain diagnostics,
Map<Object, Object> context);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The type of the qualifier value input pin is the same as the type of the qualifier attribute.
* self.value.type = self.qualifier.type
* @param diagnostics The chain of diagnostics to which problems are to be appended.
* @param context The cache of context-specific information.
* <!-- end-model-doc -->
* @model
* @generated
*/
boolean validateTypeOfQualifier(DiagnosticChain diagnostics,
Map<Object, Object> context);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The multiplicity of the qualifier value input pin is "1..1".
* self.value.multiplicity.is(1,1)
* @param diagnostics The chain of diagnostics to which problems are to be appended.
* @param context The cache of context-specific information.
* <!-- end-model-doc -->
* @model
* @generated
*/
boolean validateMultiplicityOfQualifier(DiagnosticChain diagnostics,
Map<Object, Object> context);
} // QualifierValue