
BusinessDomainDsl.impl.UniqueRuleImpl 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.BusinessDomainDslPackage;
import BusinessDomainDsl.Property;
import BusinessDomainDsl.UniqueRule;
import java.util.Collection;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.util.EObjectResolvingEList;
/**
*
* An implementation of the model object 'Unique Rule'.
*
*
* The following features are implemented:
*
* - {@link BusinessDomainDsl.impl.UniqueRuleImpl#getProperties Properties}
*
*
*
* @generated
*/
public class UniqueRuleImpl extends AbstractBusinessRuleImpl implements UniqueRule {
/**
* The cached value of the '{@link #getProperties() Properties}' reference list.
*
*
* @see #getProperties()
* @generated
* @ordered
*/
protected EList properties;
/**
*
*
* @generated
*/
protected UniqueRuleImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return BusinessDomainDslPackage.Literals.UNIQUE_RULE;
}
/**
*
*
* @generated
*/
public EList getProperties() {
if (properties == null) {
properties = new EObjectResolvingEList(Property.class, this, BusinessDomainDslPackage.UNIQUE_RULE__PROPERTIES);
}
return properties;
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case BusinessDomainDslPackage.UNIQUE_RULE__PROPERTIES:
return getProperties();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case BusinessDomainDslPackage.UNIQUE_RULE__PROPERTIES:
getProperties().clear();
getProperties().addAll((Collection extends Property>)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case BusinessDomainDslPackage.UNIQUE_RULE__PROPERTIES:
getProperties().clear();
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case BusinessDomainDslPackage.UNIQUE_RULE__PROPERTIES:
return properties != null && !properties.isEmpty();
}
return super.eIsSet(featureID);
}
} //UniqueRuleImpl
© 2015 - 2025 Weber Informatics LLC | Privacy Policy