de.opitzconsulting.orcasDsl.impl.RangePartitionValueImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of orcas-domainextension-syex Show documentation
Show all versions of orcas-domainextension-syex Show documentation
orcas model modified by syntax extensions (contains the original model). If custom-syntax-extensions are provided, there will be a custom artifact.
The newest version!
/**
*/
package de.opitzconsulting.orcasDsl.impl;
import de.opitzconsulting.orcasDsl.OrcasDslPackage;
import de.opitzconsulting.orcasDsl.RangePartitionValue;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
/**
*
* An implementation of the model object 'Range Partition Value'.
*
*
* The following features are implemented:
*
*
* - {@link de.opitzconsulting.orcasDsl.impl.RangePartitionValueImpl#getMaxvalue Maxvalue}
* - {@link de.opitzconsulting.orcasDsl.impl.RangePartitionValueImpl#getValue Value}
*
*
* @generated
*/
public class RangePartitionValueImpl extends MinimalEObjectImpl.Container implements RangePartitionValue
{
/**
* The default value of the '{@link #getMaxvalue() Maxvalue}' attribute.
*
*
* @see #getMaxvalue()
* @generated
* @ordered
*/
public static final String MAXVALUE_EDEFAULT = null;
/**
* The cached value of the '{@link #getMaxvalue() Maxvalue}' attribute.
*
*
* @see #getMaxvalue()
* @generated
* @ordered
*/
public String maxvalue = MAXVALUE_EDEFAULT;
/**
* The default value of the '{@link #getValue() Value}' attribute.
*
*
* @see #getValue()
* @generated
* @ordered
*/
public static final String VALUE_EDEFAULT = null;
/**
* The cached value of the '{@link #getValue() Value}' attribute.
*
*
* @see #getValue()
* @generated
* @ordered
*/
public String value = VALUE_EDEFAULT;
/**
*
*
* @generated
*/
public RangePartitionValueImpl()
{
super();
}
/**
*
*
* @generated
*/
@Override
public EClass eStaticClass()
{
return OrcasDslPackage.Literals.RANGE_PARTITION_VALUE;
}
/**
*
*
* @generated
*/
public String getMaxvalue()
{
return maxvalue;
}
/**
*
*
* @generated
*/
public void setMaxvalue(String newMaxvalue)
{
String oldMaxvalue = maxvalue;
maxvalue = newMaxvalue;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.RANGE_PARTITION_VALUE__MAXVALUE, oldMaxvalue, maxvalue));
}
/**
*
*
* @generated
*/
public String getValue()
{
return value;
}
/**
*
*
* @generated
*/
public void setValue(String newValue)
{
String oldValue = value;
value = newValue;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.RANGE_PARTITION_VALUE__VALUE, oldValue, value));
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType)
{
switch (featureID)
{
case OrcasDslPackage.RANGE_PARTITION_VALUE__MAXVALUE:
return getMaxvalue();
case OrcasDslPackage.RANGE_PARTITION_VALUE__VALUE:
return getValue();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue)
{
switch (featureID)
{
case OrcasDslPackage.RANGE_PARTITION_VALUE__MAXVALUE:
setMaxvalue((String)newValue);
return;
case OrcasDslPackage.RANGE_PARTITION_VALUE__VALUE:
setValue((String)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID)
{
switch (featureID)
{
case OrcasDslPackage.RANGE_PARTITION_VALUE__MAXVALUE:
setMaxvalue(MAXVALUE_EDEFAULT);
return;
case OrcasDslPackage.RANGE_PARTITION_VALUE__VALUE:
setValue(VALUE_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID)
{
switch (featureID)
{
case OrcasDslPackage.RANGE_PARTITION_VALUE__MAXVALUE:
return MAXVALUE_EDEFAULT == null ? maxvalue != null : !MAXVALUE_EDEFAULT.equals(maxvalue);
case OrcasDslPackage.RANGE_PARTITION_VALUE__VALUE:
return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
}
return super.eIsSet(featureID);
}
/**
*
*
* @generated
*/
@Override
public String toString()
{
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (maxvalue: ");
result.append(maxvalue);
result.append(", value: ");
result.append(value);
result.append(')');
return result.toString();
}
} //RangePartitionValueImpl
© 2015 - 2025 Weber Informatics LLC | Privacy Policy