blob: 1d2d531e71407c132d9d0f2294847facc0d7381d [file] [log] [blame]
package org.eclipse.stem.definitions.labels.impl;
/*******************************************************************************
* Copyright (c) 2006 IBM Corporation 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 Corporation - initial API and implementation
*******************************************************************************/
import org.eclipse.emf.ecore.EClass;
import org.eclipse.stem.definitions.labels.LabelsFactory;
import org.eclipse.stem.definitions.labels.LabelsPackage;
import org.eclipse.stem.definitions.labels.RelativePhysicalRelationshipLabel;
import org.eclipse.stem.definitions.labels.RelativePhysicalRelationshipLabelValue;
/**
* <!-- begin-user-doc --> An implementation of the model object '<em><b>Relative Physical Relationship Label</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link org.eclipse.stem.definitions.labels.impl.RelativePhysicalRelationshipLabelImpl#getCurrentRelationship <em>Current Relationship</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class RelativePhysicalRelationshipLabelImpl extends
PhysicalRelationshipLabelImpl implements
RelativePhysicalRelationshipLabel {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated NOT
*/
protected RelativePhysicalRelationshipLabelImpl() {
super();
setCurrentValue(LabelsFactory.eINSTANCE
.createRelativePhysicalRelationshipLabelValue());
} // RelativePhysicalRelationshipLabelImpl
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return LabelsPackage.Literals.RELATIVE_PHYSICAL_RELATIONSHIP_LABEL;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated NOT
*/
public RelativePhysicalRelationshipLabelValue getCurrentRelationship() {
return (RelativePhysicalRelationshipLabelValue) getCurrentValue();
} // getCurrentRelationship
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case LabelsPackage.RELATIVE_PHYSICAL_RELATIONSHIP_LABEL__CURRENT_RELATIONSHIP:
return getCurrentRelationship();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case LabelsPackage.RELATIVE_PHYSICAL_RELATIONSHIP_LABEL__CURRENT_RELATIONSHIP:
return getCurrentRelationship() != null;
}
return super.eIsSet(featureID);
}
/**
* @see org.eclipse.stem.core.graph.impl.LabelImpl#toString()
*/
@Override
public String toString() {
return super.toString();
}
} // RelativePhysicalRelationshipLabelImpl