blob: 0c36e67703e4ed8a41da06d54e50fa5ec9ddcabc [file] [log] [blame]
/*
* Copyright (c) 2005, 2015 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, 451350
*
*/
package org.eclipse.uml2.uml.internal.operations;
import org.eclipse.uml2.uml.Model;
import org.eclipse.uml2.uml.NamedElement;
/**
* <!-- begin-user-doc -->
* A static utility class that provides operations related to '<em><b>Model</b></em>' model objects.
* <!-- end-user-doc -->
*
* <p>
* The following operations are supported:
* </p>
* <ul>
* <li>{@link org.eclipse.uml2.uml.Model#isMetamodel() <em>Is Metamodel</em>}</li>
* </ul>
*
* @generated
*/
public class ModelOperations
extends PackageOperations {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected ModelOperations() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* Determines whether this model is a metamodel.
* @param model The receiving '<em><b>Model</b></em>' model object.
* <!-- end-model-doc -->
* @generated NOT
*/
public static boolean isMetamodel(Model model) {
return model.getAppliedStereotype("StandardProfile" //$NON-NLS-1$
+ NamedElement.SEPARATOR + "Metamodel") != null; //$NON-NLS-1$
}
} // ModelOperations