Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/VertexOperations.java')
-rw-r--r--plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/VertexOperations.java69
1 files changed, 69 insertions, 0 deletions
diff --git a/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/VertexOperations.java b/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/VertexOperations.java
new file mode 100644
index 00000000..b4461891
--- /dev/null
+++ b/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/VertexOperations.java
@@ -0,0 +1,69 @@
+/*
+ * Copyright (c) 2005 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: VertexOperations.java,v 1.1 2005/11/14 22:25:54 khussey Exp $
+ */
+package org.eclipse.uml2.uml.internal.operations;
+
+import org.eclipse.uml2.uml.StateMachine;
+import org.eclipse.uml2.uml.Vertex;
+
+/**
+ * <!-- begin-user-doc -->
+ * A static utility class that provides operations related to '<em><b>Vertex</b></em>' model objects.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following operations are supported:
+ * <ul>
+ * <li>{@link org.eclipse.uml2.uml.Vertex#containingStatemachine() <em>Containing Statemachine</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public final class VertexOperations {
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private VertexOperations() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * The operation containingStatemachine() returns the state machine in which this Vertex is defined
+ * result = if not container->isEmpty()
+ * then
+ * -- the container is a region
+ * container.containingStateMachine()
+ * else if (oclIsKindOf(Pseudostate)) then
+ * -- entry or exit point?
+ * if (kind = #entryPoint) or (kind = #exitPoint) then
+ * stateMachine
+ * else if (oclIsKindOf(ConnectionPointReference)) then
+ * state.containingStateMachine() -- no other valid cases possible
+ * endif
+ *
+ * <!-- end-model-doc -->
+ * @generated
+ */
+ public static StateMachine containingStatemachine(Vertex vertex) {
+ // TODO: implement this method
+ // Ensure that you remove @generated or mark it @generated NOT
+ throw new UnsupportedOperationException();
+ }
+
+} // VertexOperations \ No newline at end of file

Back to the top