/**
*/
package hu.bme.mit.inf.dslreasoner.viatra2logic.viatra2logicannotations.impl;
import hu.bme.mit.inf.dslreasoner.logic.model.logicproblem.impl.RelationAnnotationImpl;
import hu.bme.mit.inf.dslreasoner.viatra2logic.viatra2logicannotations.TransfomedViatraQuery;
import hu.bme.mit.inf.dslreasoner.viatra2logic.viatra2logicannotations.Viatra2LogicAnnotationsPackage;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
/**
*
* An implementation of the model object 'Transfomed Viatra Query'.
*
*
* The following features are implemented:
*
*
* - {@link hu.bme.mit.inf.dslreasoner.viatra2logic.viatra2logicannotations.impl.TransfomedViatraQueryImpl#getPatternFullyQualifiedName Pattern Fully Qualified Name}
*
*
* @generated
*/
public class TransfomedViatraQueryImpl extends RelationAnnotationImpl implements TransfomedViatraQuery {
/**
* The default value of the '{@link #getPatternFullyQualifiedName() Pattern Fully Qualified Name}' attribute.
*
*
* @see #getPatternFullyQualifiedName()
* @generated
* @ordered
*/
protected static final String PATTERN_FULLY_QUALIFIED_NAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getPatternFullyQualifiedName() Pattern Fully Qualified Name}' attribute.
*
*
* @see #getPatternFullyQualifiedName()
* @generated
* @ordered
*/
protected String patternFullyQualifiedName = PATTERN_FULLY_QUALIFIED_NAME_EDEFAULT;
/**
*
*
* @generated
*/
protected TransfomedViatraQueryImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return Viatra2LogicAnnotationsPackage.Literals.TRANSFOMED_VIATRA_QUERY;
}
/**
*
*
* @generated
*/
public String getPatternFullyQualifiedName() {
return patternFullyQualifiedName;
}
/**
*
*
* @generated
*/
public void setPatternFullyQualifiedName(String newPatternFullyQualifiedName) {
String oldPatternFullyQualifiedName = patternFullyQualifiedName;
patternFullyQualifiedName = newPatternFullyQualifiedName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Viatra2LogicAnnotationsPackage.TRANSFOMED_VIATRA_QUERY__PATTERN_FULLY_QUALIFIED_NAME, oldPatternFullyQualifiedName, patternFullyQualifiedName));
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case Viatra2LogicAnnotationsPackage.TRANSFOMED_VIATRA_QUERY__PATTERN_FULLY_QUALIFIED_NAME:
return getPatternFullyQualifiedName();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case Viatra2LogicAnnotationsPackage.TRANSFOMED_VIATRA_QUERY__PATTERN_FULLY_QUALIFIED_NAME:
setPatternFullyQualifiedName((String)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case Viatra2LogicAnnotationsPackage.TRANSFOMED_VIATRA_QUERY__PATTERN_FULLY_QUALIFIED_NAME:
setPatternFullyQualifiedName(PATTERN_FULLY_QUALIFIED_NAME_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case Viatra2LogicAnnotationsPackage.TRANSFOMED_VIATRA_QUERY__PATTERN_FULLY_QUALIFIED_NAME:
return PATTERN_FULLY_QUALIFIED_NAME_EDEFAULT == null ? patternFullyQualifiedName != null : !PATTERN_FULLY_QUALIFIED_NAME_EDEFAULT.equals(patternFullyQualifiedName);
}
return super.eIsSet(featureID);
}
/**
*
*
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (patternFullyQualifiedName: ");
result.append(patternFullyQualifiedName);
result.append(')');
return result.toString();
}
} //TransfomedViatraQueryImpl