blob: 473c63a75bd3edc1aa30c9f0d765e78813587650 [file] [log] [blame]
/*
* Copyright (c) 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: TimeExpressionOperations.java,v 1.3 2006/11/08 20:26:09 khussey Exp $
*/
package org.eclipse.uml2.uml.internal.operations;
import org.eclipse.uml2.uml.TimeExpression;
import org.eclipse.uml2.uml.ValueSpecification;
/**
* <!-- begin-user-doc -->
* A static utility class that provides operations related to '<em><b>Time Expression</b></em>' model objects.
* <!-- end-user-doc -->
*
* <p>
* The following operations are supported:
* <ul>
* <li>{@link org.eclipse.uml2.uml.TimeExpression#stringValue() <em>String Value</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class TimeExpressionOperations
extends ValueSpecificationOperations {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected TimeExpressionOperations() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated NOT
*/
public static String stringValue(TimeExpression timeExpression) {
ValueSpecification expr = timeExpression.getExpr();
return expr == null || expr instanceof TimeExpression
? ValueSpecificationOperations.stringValue(timeExpression)
: expr.stringValue();
}
} // TimeExpressionOperations