| /******************************************************************************* |
| * 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.terminology; |
| |
| import java.util.Map; |
| |
| import org.eclipse.emf.common.util.DiagnosticChain; |
| |
| import org.eclipse.uml2.uml.Enumeration; |
| import org.eclipse.uml2.uml.EnumerationLiteral; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * A representation of the model object '<em><b>Enumerated Value Domain</b></em>'. |
| * <!-- end-user-doc --> |
| * |
| * <p> |
| * The following features are supported: |
| * </p> |
| * <ul> |
| * <li>{@link org.eclipse.mdht.uml.aml.terminology.EnumeratedValueDomain#getBase_Enumeration <em>Base Enumeration</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.aml.terminology.EnumeratedValueDomain#getValueSetBinding <em>Value Set Binding</em>}</li> |
| * </ul> |
| * |
| * @see org.eclipse.mdht.uml.aml.terminology.TerminologyPackage#getEnumeratedValueDomain() |
| * @model |
| * @generated |
| */ |
| public interface EnumeratedValueDomain extends IdentifiedItem { |
| /** |
| * Returns the value of the '<em><b>Base Enumeration</b></em>' reference. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of the '<em>Base Enumeration</em>' reference isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @return the value of the '<em>Base Enumeration</em>' reference. |
| * @see #setBase_Enumeration(Enumeration) |
| * @see org.eclipse.mdht.uml.aml.terminology.TerminologyPackage#getEnumeratedValueDomain_Base_Enumeration() |
| * @model required="true" ordered="false" |
| * @generated |
| */ |
| Enumeration getBase_Enumeration(); |
| |
| /** |
| * Sets the value of the '{@link org.eclipse.mdht.uml.aml.terminology.EnumeratedValueDomain#getBase_Enumeration <em>Base Enumeration</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param value the new value of the '<em>Base Enumeration</em>' reference. |
| * @see #getBase_Enumeration() |
| * @generated |
| */ |
| void setBase_Enumeration(Enumeration value); |
| |
| /** |
| * Returns the value of the '<em><b>Value Set Binding</b></em>' reference. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of the '<em>Value Set Binding</em>' reference isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @return the value of the '<em>Value Set Binding</em>' reference. |
| * @see #setValueSetBinding(EnumerationLiteral) |
| * @see org.eclipse.mdht.uml.aml.terminology.TerminologyPackage#getEnumeratedValueDomain_ValueSetBinding() |
| * @model ordered="false" |
| * @generated |
| */ |
| EnumerationLiteral getValueSetBinding(); |
| |
| /** |
| * Sets the value of the '{@link org.eclipse.mdht.uml.aml.terminology.EnumeratedValueDomain#getValueSetBinding <em>Value Set Binding</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param value the new value of the '<em>Value Set Binding</em>' reference. |
| * @see #getValueSetBinding() |
| * @generated |
| */ |
| void setValueSetBinding(EnumerationLiteral value); |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * self.base_Enumeration.ownedLiteral->forAll(x:EnumerationLiteral|x.stereotypedBy('PermissibleValue')) |
| * @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 validatePermissibleValues(DiagnosticChain diagnostics, Map<Object, Object> context); |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * not(self.valueSetBinding.oclIsUndefined()) |
| * implies( |
| * self.valueSetBinding.stereotypedBy('ValueSetReference') |
| * or self.valueSetBinding.stereotypedBy('ValueSetDefinitionReference') |
| * ) |
| * |
| * |
| * |
| * @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 validateBindingIsValueSetOrDefinition(DiagnosticChain diagnostics, Map<Object, Object> context); |
| |
| } // EnumeratedValueDomain |