org.eclipse.uml2.uml.ValueSpecification Maven / Gradle / Ivy
/*
* 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: ValueSpecification.java,v 1.3 2006/05/12 20:38:03 khussey Exp $
*/
package org.eclipse.uml2.uml;
/**
*
* A representation of the model object 'Value Specification'.
*
*
*
* ValueSpecification specializes ParameterableElement to specify that a value specification can be exposed as a formal template parameter, and provided as an actual parameter in a binding of a template.
* A value specification is the specification of a (possibly empty) set of instances, including both objects and data values.
*
*
*
* @see org.eclipse.uml2.uml.UMLPackage#getValueSpecification()
* @model abstract="true"
* @generated
*/
public interface ValueSpecification
extends PackageableElement, TypedElement {
/**
*
*
*
* 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 value specifications 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 the value of all literals.
* result = false
*
* @model kind="operation" dataType="org.eclipse.uml2.types.Boolean" required="true" ordered="false"
* @generated
*/
boolean isComputable();
/**
*
*
*
* The query integerValue() gives a single Integer value when one can be computed.
* result = Set{}
*
* @model dataType="org.eclipse.uml2.types.Integer" ordered="false"
* @generated
*/
int integerValue();
/**
*
*
*
* The query booleanValue() gives a single Boolean value when one can be computed.
* result = Set{}
*
* @model dataType="org.eclipse.uml2.types.Boolean" ordered="false"
* @generated
*/
boolean booleanValue();
/**
*
*
*
* The query stringValue() gives a single String value when one can be computed.
* result = Set{}
*
* @model dataType="org.eclipse.uml2.types.String" ordered="false"
* @generated
*/
String stringValue();
/**
*
*
*
* The query unlimitedValue() gives a single UnlimitedNatural value when one can be computed.
* result = Set{}
*
* @model dataType="org.eclipse.uml2.types.UnlimitedNatural" ordered="false"
* @generated
*/
int unlimitedValue();
/**
*
*
*
* The query isNull() returns true when it can be computed that the value is null.
* result = false
*
* @model kind="operation" dataType="org.eclipse.uml2.types.Boolean" required="true" ordered="false"
* @generated
*/
boolean isNull();
/**
*
*
*
* The query realValue() gives a single Real value when one can be computed.
* result = Set{}
*
* @model dataType="org.eclipse.uml2.types.Real" ordered="false"
* @generated
*/
double realValue();
} // ValueSpecification