
BusinessDomainDsl.impl.BoolPropertyImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mod4j-businessdomain-mm Show documentation
Show all versions of mod4j-businessdomain-mm Show documentation
This Eclipse plug-in project contains the BusinessDomain meta model.
The newest version!
/**
*
*
*
* $Id$
*/
package BusinessDomainDsl.impl;
import BusinessDomainDsl.BoolProperty;
import BusinessDomainDsl.BusinessDomainDslPackage;
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 'Bool Property'.
*
*
* The following features are implemented:
*
* - {@link BusinessDomainDsl.impl.BoolPropertyImpl#isDefaultValue Default Value}
*
*
*
* @generated
*/
public class BoolPropertyImpl extends PropertyImpl implements BoolProperty {
/**
* The default value of the '{@link #isDefaultValue() Default Value}' attribute.
*
*
* @see #isDefaultValue()
* @generated
* @ordered
*/
protected static final boolean DEFAULT_VALUE_EDEFAULT = false;
/**
* The cached value of the '{@link #isDefaultValue() Default Value}' attribute.
*
*
* @see #isDefaultValue()
* @generated
* @ordered
*/
protected boolean defaultValue = DEFAULT_VALUE_EDEFAULT;
/**
*
*
* @generated
*/
protected BoolPropertyImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return BusinessDomainDslPackage.Literals.BOOL_PROPERTY;
}
/**
*
*
* @generated
*/
public boolean isDefaultValue() {
return defaultValue;
}
/**
*
*
* @generated
*/
public void setDefaultValue(boolean newDefaultValue) {
boolean oldDefaultValue = defaultValue;
defaultValue = newDefaultValue;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, BusinessDomainDslPackage.BOOL_PROPERTY__DEFAULT_VALUE, oldDefaultValue, defaultValue));
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case BusinessDomainDslPackage.BOOL_PROPERTY__DEFAULT_VALUE:
return isDefaultValue();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case BusinessDomainDslPackage.BOOL_PROPERTY__DEFAULT_VALUE:
setDefaultValue((Boolean)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case BusinessDomainDslPackage.BOOL_PROPERTY__DEFAULT_VALUE:
setDefaultValue(DEFAULT_VALUE_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case BusinessDomainDslPackage.BOOL_PROPERTY__DEFAULT_VALUE:
return defaultValue != DEFAULT_VALUE_EDEFAULT;
}
return super.eIsSet(featureID);
}
/**
*
*
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (defaultValue: ");
result.append(defaultValue);
result.append(')');
return result.toString();
}
} //BoolPropertyImpl
© 2015 - 2025 Weber Informatics LLC | Privacy Policy