All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.uml2.uml.internal.operations.StructuredActivityNodeOperations Maven / Gradle / Ivy

There is a newer version: 5.0.0-v20140602-0749
Show newest version
/*
 * Copyright (c) 2005, 2011 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, 351774
 *
 */
package org.eclipse.uml2.uml.internal.operations;

import java.util.Map;

import org.eclipse.emf.common.util.BasicDiagnostic;
import org.eclipse.emf.common.util.Diagnostic;
import org.eclipse.emf.common.util.DiagnosticChain;

import org.eclipse.uml2.uml.StructuredActivityNode;

import org.eclipse.uml2.uml.util.UMLValidator;

/**
 * 
 * A static utility class that provides operations related to 'Structured Activity Node' model objects.
 * 
 *
 * 

* The following operations are supported: *

    *
  • {@link org.eclipse.uml2.uml.StructuredActivityNode#validateInputPinEdges(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) Validate Input Pin Edges}
  • *
  • {@link org.eclipse.uml2.uml.StructuredActivityNode#validateEdges(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) Validate Edges}
  • *
  • {@link org.eclipse.uml2.uml.StructuredActivityNode#validateOutputPinEdges(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) Validate Output Pin Edges}
  • *
*

* * @generated */ public class StructuredActivityNodeOperations extends ActionOperations { /** * * * @generated */ protected StructuredActivityNodeOperations() { super(); } /** * * * * The outgoing edges of the output pins of a StructuredActivityNode must have targets that are not within the StructuredActivityNode. * true * @param structuredActivityNode The receiving 'Structured Activity Node' model object. * @param diagnostics The chain of diagnostics to which problems are to be appended. * @param context The cache of context-specific information. * * @generated */ public static boolean validateOutputPinEdges( StructuredActivityNode structuredActivityNode, DiagnosticChain diagnostics, Map context) { // TODO: implement this method // -> specify the condition that violates the invariant // -> verify the details of the diagnostic, including severity and message // Ensure that you remove @generated or mark it @generated NOT if (false) { if (diagnostics != null) { diagnostics .add(new BasicDiagnostic( Diagnostic.ERROR, UMLValidator.DIAGNOSTIC_SOURCE, UMLValidator.STRUCTURED_ACTIVITY_NODE__OUTPUT_PIN_EDGES, org.eclipse.emf.ecore.plugin.EcorePlugin.INSTANCE .getString( "_UI_GenericInvariant_diagnostic", new Object[]{"validateOutputPinEdges", org.eclipse.emf.ecore.util.EObjectValidator.getObjectLabel(structuredActivityNode, context)}), //$NON-NLS-1$ //$NON-NLS-2$ new Object[]{structuredActivityNode})); } return false; } return true; } /** * * * * The edges owned by a structured node must have source and target nodes in the structured node, and vice versa. * true * @param structuredActivityNode The receiving 'Structured Activity Node' model object. * @param diagnostics The chain of diagnostics to which problems are to be appended. * @param context The cache of context-specific information. * * @generated */ public static boolean validateEdges( StructuredActivityNode structuredActivityNode, DiagnosticChain diagnostics, Map context) { // TODO: implement this method // -> specify the condition that violates the invariant // -> verify the details of the diagnostic, including severity and message // Ensure that you remove @generated or mark it @generated NOT if (false) { if (diagnostics != null) { diagnostics .add(new BasicDiagnostic( Diagnostic.ERROR, UMLValidator.DIAGNOSTIC_SOURCE, UMLValidator.STRUCTURED_ACTIVITY_NODE__EDGES, org.eclipse.emf.ecore.plugin.EcorePlugin.INSTANCE .getString( "_UI_GenericInvariant_diagnostic", new Object[]{"validateEdges", org.eclipse.emf.ecore.util.EObjectValidator.getObjectLabel(structuredActivityNode, context)}), //$NON-NLS-1$ //$NON-NLS-2$ new Object[]{structuredActivityNode})); } return false; } return true; } /** * * * * The incoming edges of the input pins of a StructuredActivityNode must have sources that are not within the StructuredActivityNode. * true * @param structuredActivityNode The receiving 'Structured Activity Node' model object. * @param diagnostics The chain of diagnostics to which problems are to be appended. * @param context The cache of context-specific information. * * @generated */ public static boolean validateInputPinEdges( StructuredActivityNode structuredActivityNode, DiagnosticChain diagnostics, Map context) { // TODO: implement this method // -> specify the condition that violates the invariant // -> verify the details of the diagnostic, including severity and message // Ensure that you remove @generated or mark it @generated NOT if (false) { if (diagnostics != null) { diagnostics .add(new BasicDiagnostic( Diagnostic.ERROR, UMLValidator.DIAGNOSTIC_SOURCE, UMLValidator.STRUCTURED_ACTIVITY_NODE__INPUT_PIN_EDGES, org.eclipse.emf.ecore.plugin.EcorePlugin.INSTANCE .getString( "_UI_GenericInvariant_diagnostic", new Object[]{"validateInputPinEdges", org.eclipse.emf.ecore.util.EObjectValidator.getObjectLabel(structuredActivityNode, context)}), //$NON-NLS-1$ //$NON-NLS-2$ new Object[]{structuredActivityNode})); } return false; } return true; } } // StructuredActivityNodeOperations




© 2015 - 2025 Weber Informatics LLC | Privacy Policy