blob: 2f6e6e032a1c5fc672c3e2d5526837c8b99e37b7 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2008-2011 Chair for Applied Software Engineering,
* Technische Universitaet Muenchen.
* 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:
******************************************************************************/
package org.eclipse.emf.emfstore.internal.server.model.versioning.operations;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.emfstore.internal.common.model.Project;
/**
* <!-- begin-user-doc --> A representation of the model object ' <em><b>Feature Operation</b></em>'. <!-- end-user-doc
* -->
*
* <p>
* The following features are supported:
* <ul>
* <li>
* {@link org.eclipse.emf.emfstore.internal.server.model.versioning.operations.FeatureOperation#getFeatureName
* <em>Feature Name</em>}</li>
* </ul>
* </p>
*
* @see org.eclipse.emf.emfstore.internal.server.model.versioning.operations.OperationsPackage#getFeatureOperation()
* @model abstract="true"
* @generated
*/
public interface FeatureOperation extends AbstractOperation {
/**
* Returns the value of the '<em><b>Feature Name</b></em>' attribute.
* The default value is <code>""</code>.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Feature Name</em>' attribute isn't clear, there really should be more of a description
* here...
* </p>
* <!-- end-user-doc -->
*
* @return the value of the '<em>Feature Name</em>' attribute.
* @see #setFeatureName(String)
* @see org.eclipse.emf.emfstore.internal.server.model.versioning.operations.OperationsPackage#getFeatureOperation_FeatureName()
* @model default=""
* @generated
*/
String getFeatureName();
/**
* Sets the value of the '
* {@link org.eclipse.emf.emfstore.internal.server.model.versioning.operations.FeatureOperation#getFeatureName
* <em>Feature Name</em>}' attribute.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
*
* @param value the new value of the '<em>Feature Name</em>' attribute.
* @see #getFeatureName()
* @generated
*/
void setFeatureName(String value);
/**
* Returns the value of the '<em><b>Unset</b></em>' attribute.
* The literals are from the enumeration
* {@link org.eclipse.emf.emfstore.internal.server.model.versioning.operations.UnsetType}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Unset</em>' attribute isn't clear, there really should be more of a description
* here...
* </p>
* <!-- end-user-doc -->
*
* @return the value of the '<em>Unset</em>' attribute.
* @see org.eclipse.emf.emfstore.internal.server.model.versioning.operations.UnsetType
* @see #setUnset(UnsetType)
* @see org.eclipse.emf.emfstore.internal.server.model.versioning.operations.OperationsPackage#getFeatureOperation_Unset()
* @model
* @generated
*/
UnsetType getUnset();
/**
* Sets the value of the '
* {@link org.eclipse.emf.emfstore.internal.server.model.versioning.operations.FeatureOperation#getUnset
* <em>Unset</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @param value the new value of the '<em>Unset</em>' attribute.
* @see org.eclipse.emf.emfstore.internal.server.model.versioning.operations.UnsetType
* @see #getUnset()
* @generated
*/
void setUnset(UnsetType value);
/**
* Get the feature from the Eclass of the model element identified by the
* model element of the operation.
*
* @param project
* the project
* @return the feature
* @throws UnkownFeatureException
* if the feature can not be found in the eclass of the
* corresponding model element
*/
EStructuralFeature getFeature(Project project) throws UnkownFeatureException;
/**
* Get the feature from the eclass of the given model element.
*
* @param modelElement
* the model element
* @return the feature
* @throws UnkownFeatureException
* if the feature can not be found in the eclass of the
* corresponding model element
*/
EStructuralFeature getFeature(EObject modelElement) throws UnkownFeatureException;
} // FeatureOperation