blob: 8bc87d77eb73acec507e4ad0b60576db51eb4518 [file] [log] [blame]
/*
* Copyright (c) 2005, 2018 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 v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* IBM - initial API and implementation
* Kenn Hussey (CEA) - 327039, 418466, 451350, 485756
* Kenn Hussey - 535301
*
*/
package org.eclipse.uml2.uml.internal.operations;
import org.eclipse.emf.common.util.EList;
import org.eclipse.uml2.uml.DataType;
import org.eclipse.uml2.uml.Operation;
import org.eclipse.uml2.uml.Property;
import org.eclipse.uml2.uml.Type;
/**
* <!-- begin-user-doc -->
* A static utility class that provides operations related to '<em><b>Data Type</b></em>' model objects.
* <!-- end-user-doc -->
*
* <p>
* The following operations are supported:
* </p>
* <ul>
* <li>{@link org.eclipse.uml2.uml.DataType#createOwnedAttribute(java.lang.String, org.eclipse.uml2.uml.Type, int, int) <em>Create Owned Attribute</em>}</li>
* <li>{@link org.eclipse.uml2.uml.DataType#createOwnedOperation(java.lang.String, org.eclipse.emf.common.util.EList, org.eclipse.emf.common.util.EList, org.eclipse.uml2.uml.Type) <em>Create Owned Operation</em>}</li>
* </ul>
*
* @generated
*/
public class DataTypeOperations
extends ClassifierOperations {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected DataTypeOperations() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* Creates an operation with the specified name, parameter names, parameter types, and return type (or null) as an owned operation of this data type.
* @param dataType The receiving '<em><b>Data Type</b></em>' model object.
* @param name The name for the new operation, or null.
* @param parameterNames The parameter names for the new operation, or null.
* @param parameterTypes The parameter types for the new operation, or null.
* @param returnType The return type for the new operation, or null.
* <!-- end-model-doc -->
* @generated NOT
*/
public static Operation createOwnedOperation(DataType dataType, String name,
EList<String> parameterNames, EList<Type> parameterTypes,
Type returnType) {
return TypeOperations.createOwnedOperation(dataType, name,
parameterNames, parameterTypes, returnType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* Creates a property with the specified name, type, lower bound, and upper bound as an owned attribute of this data type.
* @param dataType The receiving '<em><b>Data Type</b></em>' model object.
* @param name The name for the new attribute, or null.
* @param type The type for the new attribute, or null.
* @param lower The lower bound for the new attribute.
* @param upper The upper bound for the new attribute.
* <!-- end-model-doc -->
* @generated NOT
*/
public static Property createOwnedAttribute(DataType dataType, String name,
Type type, int lower, int upper) {
return TypeOperations.createOwnedAttribute(dataType, name, type, lower,
upper);
}
} // DataTypeOperations