Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright (c) 2011 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:
   *   CEA - initial API and implementation
  *   Kenn Hussey (CEA) - 351774
  *
  */
 package org.eclipse.uml2.uml.profile.l2.internal.operations;
 
 import java.util.Map;
 
 
 
A static utility class that provides operations related to 'Implement' model objects.

The following operations are supported:

  • Validate Implements Specification

Generated:
not
 
 public class ImplementOperations
 		extends UMLUtil {

Generated:
 
 	protected ImplementOperations() {
 		super();
 	}

self.base_Component.clientDependency.supplier->select(oclIsKindOf(Classifier)).oclAsType(Classifier).extension_Specificaiton->notEmpty()

Parameters:
implement The receiving 'Implement' model object.
diagnostics The chain of diagnostics to which problems are to be appended.
context The cache of context-specific information.
Generated:
NOT
 
 	public static boolean validateImplementsSpecification(Implement implement,
 			DiagnosticChain diagnosticsMap<ObjectObjectcontext) {
 		boolean result = true;
 
 		Component base_Component = implement.getBase_Component();
 
 		if (base_Component != null) {
 			result = false;
 
 			LOOP : for (Dependency dependency : base_Component
 
 				for (NamedElement supplier : dependency.getSuppliers()) {
 
 					if (getStereotypeApplication(supplierSpecification.class) != null) {
 						result = true;
 						break LOOP;
 					}
 				}
 			}
 
 			if (!result && diagnostics != null) {
 						"_UI_Implement_ImplementsSpecification_diagnostic"//$NON-NLS-1$
 						getMessageSubstitutions(contextbase_Component)),
 					new Object[]{base_Component}));
 			}
 		}
 
		return result;
	}
// ImplementOperations
New to GrepCode? Check out our FAQ X