/******************************************************************************* * Copyright (c) 2010, 2015 Willink Transformations 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: * E.D.Willink - Initial API and implementation *******************************************************************************/ package org.eclipse.ocl.pivot; import java.util.Map; import org.eclipse.emf.common.util.DiagnosticChain; import org.eclipse.ocl.pivot.library.LibraryFeature; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>Feature</b></em>'. * <!-- end-user-doc --> * * <!-- begin-model-doc --> * A Feature declares a behavioral or structural characteristic of Classifiers. * <!-- end-model-doc --> * * <p> * The following features are supported: * </p> * <ul> * <li>{@link org.eclipse.ocl.pivot.Feature#getImplementation <em>Implementation</em>}</li> * <li>{@link org.eclipse.ocl.pivot.Feature#getImplementationClass <em>Implementation Class</em>}</li> * <li>{@link org.eclipse.ocl.pivot.Feature#isIsStatic <em>Is Static</em>}</li> * </ul> * * @see org.eclipse.ocl.pivot.PivotPackage#getFeature() * @generated */ public interface Feature extends TypedElement { /** * Returns the value of the '<em><b>Implementation Class</b></em>' attribute. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Implementation Class</em>' attribute isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Implementation Class</em>' attribute. * @see #setImplementationClass(String) * @see org.eclipse.ocl.pivot.PivotPackage#getFeature_ImplementationClass() * @generated */ String getImplementationClass(); /** * Sets the value of the '{@link org.eclipse.ocl.pivot.Feature#getImplementationClass <em>Implementation Class</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Implementation Class</em>' attribute. * @see #getImplementationClass() * @generated */ void setImplementationClass(String value); /** * Returns the value of the '<em><b>Is Static</b></em>' attribute. * The default value is <code>"false"</code>. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Is Static</em>' attribute isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * <!-- begin-model-doc --> * Specifies whether this Feature characterizes individual instances classified by the Classifier (false) or the Classifier itself (true). * <!-- end-model-doc --> * @return the value of the '<em>Is Static</em>' attribute. * @see #setIsStatic(boolean) * @see org.eclipse.ocl.pivot.PivotPackage#getFeature_IsStatic() * @generated */ boolean isIsStatic(); /** * Sets the value of the '{@link org.eclipse.ocl.pivot.Feature#isIsStatic <em>Is Static</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Is Static</em>' attribute. * @see #isIsStatic() * @generated */ void setIsStatic(boolean value); /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ boolean validateTypeIsNotInvalid(DiagnosticChain diagnostics, Map<Object, Object> context); /** * Returns the value of the '<em><b>Implementation</b></em>' attribute. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Implementation</em>' attribute isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Implementation</em>' attribute. * @see #setImplementation(LibraryFeature) * @see org.eclipse.ocl.pivot.PivotPackage#getFeature_Implementation() * @generated */ LibraryFeature getImplementation(); /** * Sets the value of the '{@link org.eclipse.ocl.pivot.Feature#getImplementation <em>Implementation</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Implementation</em>' attribute. * @see #getImplementation() * @generated */ void setImplementation(LibraryFeature value); org.eclipse.ocl.pivot.Class getOwningClass(); } // Feature