blob: 79f15dd0eab57e98a14de35b7b66ad0f75d0bb06 [file] [log] [blame]
/*
* Copyright (c) 2005, 2014 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, 418466
* Christian W. Damus (CEA) - 251963
*
*/
package org.eclipse.uml2.uml;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Value Specification</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* A ValueSpecification is the specification of a (possibly empty) set of values. A ValueSpecification is a ParameterableElement that may be exposed as a formal TemplateParameter and provided as the actual parameter in the binding of a template.
* <p>From package UML::Values.</p>
* <!-- end-model-doc -->
*
*
* @see org.eclipse.uml2.uml.UMLPackage#getValueSpecification()
* @model abstract="true"
* @generated
*/
public interface ValueSpecification
extends PackageableElement, TypedElement {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The query isComputable() determines whether a value specification can be computed in a model. This operation cannot be fully defined in OCL. A conforming implementation is expected to deliver true for this operation for all ValueSpecifications that it can compute, and to compute all of those for which the operation is true. A conforming implementation is expected to be able to compute at least the value of all LiteralSpecifications.
* result = (false)
* <p>From package UML::Values.</p>
* <!-- end-model-doc -->
* @model kind="operation" dataType="org.eclipse.uml2.types.Boolean" required="true" ordered="false"
* @generated
*/
boolean isComputable();
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The query integerValue() gives a single Integer value when one can be computed.
* result = (null)
* <p>From package UML::Values.</p>
* <!-- end-model-doc -->
* @model dataType="org.eclipse.uml2.types.Integer" ordered="false"
* @generated
*/
int integerValue();
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The query booleanValue() gives a single Boolean value when one can be computed.
* result = (null)
* <p>From package UML::Values.</p>
* <!-- end-model-doc -->
* @model dataType="org.eclipse.uml2.types.Boolean" ordered="false"
* @generated
*/
boolean booleanValue();
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The query stringValue() gives a single String value when one can be computed.
* result = (null)
* <p>From package UML::Values.</p>
* <!-- end-model-doc -->
* @model dataType="org.eclipse.uml2.types.String" ordered="false"
* @generated
*/
String stringValue();
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The query unlimitedValue() gives a single UnlimitedNatural value when one can be computed.
* result = (null)
* <p>From package UML::Values.</p>
* <!-- end-model-doc -->
* @model dataType="org.eclipse.uml2.types.UnlimitedNatural" ordered="false"
* @generated
*/
int unlimitedValue();
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The query isNull() returns true when it can be computed that the value is null.
* result = (false)
* <p>From package UML::Values.</p>
* <!-- end-model-doc -->
* @model kind="operation" dataType="org.eclipse.uml2.types.Boolean" required="true" ordered="false"
* @generated
*/
boolean isNull();
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The query realValue() gives a single Real value when one can be computed.
* result = (null)
* <p>From package UML::Values.</p>
* <!-- end-model-doc -->
* @model dataType="org.eclipse.uml2.types.Real" ordered="false"
* @generated
*/
double realValue();
} // ValueSpecification