blob: 44ec901fd691a1fbbbe775d0c5a2e0b9b5fd1a9d [file] [log] [blame]
/*
* Copyright (c) 2005, 2006 IBM Corporation 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
*
* $Id: LiteralIntegerOperations.java,v 1.6 2006/01/05 22:43:25 khussey Exp $
*/
package org.eclipse.uml2.uml.internal.operations;
import org.eclipse.uml2.uml.LiteralInteger;
/**
* <!-- begin-user-doc -->
* A static utility class that provides operations related to '<em><b>Literal Integer</b></em>' model objects.
* <!-- end-user-doc -->
*
* <p>
* The following operations are supported:
* <ul>
* <li>{@link org.eclipse.uml2.uml.LiteralInteger#stringValue() <em>String Value</em>}</li>
* <li>{@link org.eclipse.uml2.uml.LiteralInteger#isComputable() <em>Is Computable</em>}</li>
* <li>{@link org.eclipse.uml2.uml.LiteralInteger#integerValue() <em>Integer Value</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class LiteralIntegerOperations
extends ValueSpecificationOperations {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected LiteralIntegerOperations() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The query isComputable() is redefined to be true.
* result = true
* <!-- end-model-doc -->
* @generated NOT
*/
public static boolean isComputable(LiteralInteger literalInteger) {
return true;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The query integerValue() gives the value.
* result = value
* <!-- end-model-doc -->
* @generated NOT
*/
public static int integerValue(LiteralInteger literalInteger) {
return literalInteger.getValue();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated NOT
*/
public static String stringValue(LiteralInteger literalInteger) {
return String.valueOf(literalInteger.getValue());
}
} // LiteralIntegerOperations