blob: bdcf9a03b86a58d53df32e1130fbd033e9d598d3 [file] [log] [blame]
/*
* Copyright (c) 2005, 2011 IBM Corporation, CEA, 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
* Kenn Hussey (CEA) - 327039
*
* $Id: EnumerationLiteral.java,v 1.7 2007/10/23 15:54:21 jbruck 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>Enumeration Literal</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* An enumeration literal is a user-defined data value for an enumeration.
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.uml2.uml.EnumerationLiteral#getEnumeration <em>Enumeration</em>}</li>
* </ul>
* </p>
*
* @see org.eclipse.uml2.uml.UMLPackage#getEnumerationLiteral()
* @model
* @generated
*/
public interface EnumerationLiteral
extends InstanceSpecification {
/**
* Returns the value of the '<em><b>Enumeration</b></em>' container reference.
* It is bidirectional and its opposite is '{@link org.eclipse.uml2.uml.Enumeration#getOwnedLiterals <em>Owned Literal</em>}'.
* <p>
* This feature subsets the following features:
* <ul>
* <li>'{@link org.eclipse.uml2.uml.NamedElement#getNamespace() <em>Namespace</em>}'</li>
* </ul>
* </p>
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The Enumeration that this EnumerationLiteral is a member of.
* <!-- end-model-doc -->
* @return the value of the '<em>Enumeration</em>' container reference.
* @see #setEnumeration(Enumeration)
* @see org.eclipse.uml2.uml.UMLPackage#getEnumerationLiteral_Enumeration()
* @see org.eclipse.uml2.uml.Enumeration#getOwnedLiterals
* @model opposite="ownedLiteral" transient="false" ordered="false"
* @generated
*/
Enumeration getEnumeration();
/**
* Sets the value of the '{@link org.eclipse.uml2.uml.EnumerationLiteral#getEnumeration <em>Enumeration</em>}' container reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Enumeration</em>' container reference.
* @see #getEnumeration()
* @generated
*/
void setEnumeration(Enumeration value);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* classifier = enumeration
* @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 validateClassifierEqualsOwningEnumeration(
DiagnosticChain diagnostics, Map<Object, Object> context);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* Missing derivation for EnumerationLiteral::/classifier : Enumeration
* true
* <!-- end-model-doc -->
* @model kind="operation" required="true" ordered="false"
* annotation="http://www.eclipse.org/emf/2002/GenModel suppressedVisibility='true'"
* @generated
*/
Enumeration getClassifier();
} // EnumerationLiteral