/**
* Copyright (c) 2015 Willink Transformations 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:
* E.D.Willink - Initial API and implementation
*/
package org.eclipse.ocl.pivot.uml.internal.oclforuml;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.uml2.uml.DataType;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Integer</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* Specifies that a DataType behaves as an Integer and optionally defines a limited numeric range that an implementation must support. Computations resulting in values beyond a specified minimum or maximum limits are ill-defined. The derived BoundedInteger stereotype may be used to define exact precisions and an overflow behavior.
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link org.eclipse.ocl.pivot.uml.internal.oclforuml.Integer#getBase_DataType <em>Base Data Type</em>}</li>
* <li>{@link org.eclipse.ocl.pivot.uml.internal.oclforuml.Integer#getMaximum <em>Maximum</em>}</li>
* <li>{@link org.eclipse.ocl.pivot.uml.internal.oclforuml.Integer#getMinimum <em>Minimum</em>}</li>
* </ul>
*
* @see org.eclipse.ocl.pivot.uml.internal.oclforuml.OCLforUMLPackage#getInteger()
* @model
* @generated
*/
public interface Integer
extends EObject {
/**
* Returns the value of the '<em><b>Base Data Type</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Base Data Type</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 Data Type</em>' reference.
* @see #setBase_DataType(DataType)
* @see org.eclipse.ocl.pivot.uml.internal.oclforuml.OCLforUMLPackage#getInteger_Base_DataType()
* @model required="true" ordered="false"
* @generated
*/
DataType getBase_DataType();
/**
* Sets the value of the '{@link org.eclipse.ocl.pivot.uml.internal.oclforuml.Integer#getBase_DataType <em>Base Data Type</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Base Data Type</em>' reference.
* @see #getBase_DataType()
* @generated
*/
void setBase_DataType(DataType value);
/**
* Returns the value of the '<em><b>Maximum</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The most positive inclusive value of the DataType. Defaults to unlimited.
* <!-- end-model-doc -->
* @return the value of the '<em>Maximum</em>' attribute.
* @see #isSetMaximum()
* @see #unsetMaximum()
* @see #setMaximum(int)
* @see org.eclipse.ocl.pivot.uml.internal.oclforuml.OCLforUMLPackage#getInteger_Maximum()
* @model unsettable="true" dataType="org.eclipse.uml2.types.Integer" ordered="false"
* @generated
*/
int getMaximum();
/**
* Sets the value of the '{@link org.eclipse.ocl.pivot.uml.internal.oclforuml.Integer#getMaximum <em>Maximum</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Maximum</em>' attribute.
* @see #isSetMaximum()
* @see #unsetMaximum()
* @see #getMaximum()
* @generated
*/
void setMaximum(int value);
/**
* Unsets the value of the '{@link org.eclipse.ocl.pivot.uml.internal.oclforuml.Integer#getMaximum <em>Maximum</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #isSetMaximum()
* @see #getMaximum()
* @see #setMaximum(int)
* @generated
*/
void unsetMaximum();
/**
* Returns whether the value of the '{@link org.eclipse.ocl.pivot.uml.internal.oclforuml.Integer#getMaximum <em>Maximum</em>}' attribute is set.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return whether the value of the '<em>Maximum</em>' attribute is set.
* @see #unsetMaximum()
* @see #getMaximum()
* @see #setMaximum(int)
* @generated
*/
boolean isSetMaximum();
/**
* Returns the value of the '<em><b>Minimum</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The most negative inclusive value of the DataType. Defaults to unlimited.
* <!-- end-model-doc -->
* @return the value of the '<em>Minimum</em>' attribute.
* @see #isSetMinimum()
* @see #unsetMinimum()
* @see #setMinimum(int)
* @see org.eclipse.ocl.pivot.uml.internal.oclforuml.OCLforUMLPackage#getInteger_Minimum()
* @model unsettable="true" dataType="org.eclipse.uml2.types.Integer" ordered="false"
* @generated
*/
int getMinimum();
/**
* Sets the value of the '{@link org.eclipse.ocl.pivot.uml.internal.oclforuml.Integer#getMinimum <em>Minimum</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Minimum</em>' attribute.
* @see #isSetMinimum()
* @see #unsetMinimum()
* @see #getMinimum()
* @generated
*/
void setMinimum(int value);
/**
* Unsets the value of the '{@link org.eclipse.ocl.pivot.uml.internal.oclforuml.Integer#getMinimum <em>Minimum</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #isSetMinimum()
* @see #getMinimum()
* @see #setMinimum(int)
* @generated
*/
void unsetMinimum();
/**
* Returns whether the value of the '{@link org.eclipse.ocl.pivot.uml.internal.oclforuml.Integer#getMinimum <em>Minimum</em>}' attribute is set.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return whether the value of the '<em>Minimum</em>' attribute is set.
* @see #unsetMinimum()
* @see #getMinimum()
* @see #setMinimum(int)
* @generated
*/
boolean isSetMinimum();
} // Integer