/** | |
* Copyright (c) 2009-2010 Thales Corporate Services S.A.S. | |
* This program and the accompanying materials | |
* are made available under the terms of the Eclipse Public License v2.0 | |
* which accompanies this distribution, and is available at | |
* https://www.eclipse.org/legal/epl-v2.0 | |
* | |
* SPDX-License-Identifier: EPL-2.0 | |
* | |
* Contributors: | |
* Thales Corporate Services S.A.S - initial API and implementation | |
* | |
* $Id$ | |
*/ | |
package org.eclipse.egf.portfolio.eclipse.build.buildfile.impl; | |
import org.eclipse.egf.portfolio.eclipse.build.buildfile.BuildfilePackage; | |
import org.eclipse.egf.portfolio.eclipse.build.buildfile.CreateFolderStep; | |
import org.eclipse.emf.common.notify.Notification; | |
import org.eclipse.emf.ecore.EClass; | |
import org.eclipse.emf.ecore.impl.ENotificationImpl; | |
/** | |
* <!-- begin-user-doc --> | |
* An implementation of the model object '<em><b>Create Folder Step</b></em>'. | |
* <!-- end-user-doc --> | |
* <p> | |
* The following features are implemented: | |
* <ul> | |
* <li>{@link org.eclipse.egf.portfolio.eclipse.build.buildfile.impl.CreateFolderStepImpl#getFolderPath <em>Folder Path</em>}</li> | |
* </ul> | |
* </p> | |
* | |
* @generated | |
*/ | |
public class CreateFolderStepImpl extends FileStepImpl implements CreateFolderStep { | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public static final String copyright = " Copyright (c) 2009-2010 Thales Corporate Services S.A.S.\r\n This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v2.0\r\n which accompanies this distribution, and is available at\r\n https://www.eclipse.org/legal/epl-v2.0\r\n \r\n SPDX-License-Identifier: EPL-2.0\r\n \r\n Contributors:\r\n Thales Corporate Services S.A.S - initial API and implementation"; | |
/** | |
* The default value of the '{@link #getFolderPath() <em>Folder Path</em>}' attribute. | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @see #getFolderPath() | |
* @generated | |
* @ordered | |
*/ | |
protected static final String FOLDER_PATH_EDEFAULT = null; | |
/** | |
* The cached value of the '{@link #getFolderPath() <em>Folder Path</em>}' attribute. | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @see #getFolderPath() | |
* @generated | |
* @ordered | |
*/ | |
protected String folderPath = FOLDER_PATH_EDEFAULT; | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
protected CreateFolderStepImpl() { | |
super(); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
@Override | |
protected EClass eStaticClass() { | |
return BuildfilePackage.Literals.CREATE_FOLDER_STEP; | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public String getFolderPath() { | |
return folderPath; | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public void setFolderPath(String newFolderPath) { | |
String oldFolderPath = folderPath; | |
folderPath = newFolderPath; | |
if (eNotificationRequired()) | |
eNotify(new ENotificationImpl(this, Notification.SET, BuildfilePackage.CREATE_FOLDER_STEP__FOLDER_PATH, oldFolderPath, folderPath)); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
@Override | |
public Object eGet(int featureID, boolean resolve, boolean coreType) { | |
switch (featureID) { | |
case BuildfilePackage.CREATE_FOLDER_STEP__FOLDER_PATH: | |
return getFolderPath(); | |
} | |
return super.eGet(featureID, resolve, coreType); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
@Override | |
public void eSet(int featureID, Object newValue) { | |
switch (featureID) { | |
case BuildfilePackage.CREATE_FOLDER_STEP__FOLDER_PATH: | |
setFolderPath((String)newValue); | |
return; | |
} | |
super.eSet(featureID, newValue); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
@Override | |
public void eUnset(int featureID) { | |
switch (featureID) { | |
case BuildfilePackage.CREATE_FOLDER_STEP__FOLDER_PATH: | |
setFolderPath(FOLDER_PATH_EDEFAULT); | |
return; | |
} | |
super.eUnset(featureID); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
@Override | |
public boolean eIsSet(int featureID) { | |
switch (featureID) { | |
case BuildfilePackage.CREATE_FOLDER_STEP__FOLDER_PATH: | |
return FOLDER_PATH_EDEFAULT == null ? folderPath != null : !FOLDER_PATH_EDEFAULT.equals(folderPath); | |
} | |
return super.eIsSet(featureID); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
@Override | |
public String toString() { | |
if (eIsProxy()) return super.toString(); | |
StringBuffer result = new StringBuffer(super.toString()); | |
result.append(" (folderPath: "); | |
result.append(folderPath); | |
result.append(')'); | |
return result.toString(); | |
} | |
} //CreateFolderStepImpl |