![JAR search and dependency download from the Maven repository](/logo.png)
org.contextmapper.dsl.contextMappingDSL.impl.DomainPartImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of context-mapper-dsl Show documentation
Show all versions of context-mapper-dsl Show documentation
Use the ContextMapper DSL in your standalone application.
/**
* generated by Xtext 2.20.0
*/
package org.contextmapper.dsl.contextMappingDSL.impl;
import org.contextmapper.dsl.contextMappingDSL.ContextMappingDSLPackage;
import org.contextmapper.dsl.contextMappingDSL.DomainPart;
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 'Domain Part'.
*
*
* The following features are implemented:
*
*
* - {@link org.contextmapper.dsl.contextMappingDSL.impl.DomainPartImpl#getName Name}
* - {@link org.contextmapper.dsl.contextMappingDSL.impl.DomainPartImpl#getDomainVisionStatement Domain Vision Statement}
*
*
* @generated
*/
public class DomainPartImpl extends MinimalEObjectImpl.Container implements DomainPart
{
/**
* The default value of the '{@link #getName() Name}' attribute.
*
*
* @see #getName()
* @generated
* @ordered
*/
protected static final String NAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getName() Name}' attribute.
*
*
* @see #getName()
* @generated
* @ordered
*/
protected String name = NAME_EDEFAULT;
/**
* The default value of the '{@link #getDomainVisionStatement() Domain Vision Statement}' attribute.
*
*
* @see #getDomainVisionStatement()
* @generated
* @ordered
*/
protected static final String DOMAIN_VISION_STATEMENT_EDEFAULT = null;
/**
* The cached value of the '{@link #getDomainVisionStatement() Domain Vision Statement}' attribute.
*
*
* @see #getDomainVisionStatement()
* @generated
* @ordered
*/
protected String domainVisionStatement = DOMAIN_VISION_STATEMENT_EDEFAULT;
/**
*
*
* @generated
*/
protected DomainPartImpl()
{
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass()
{
return ContextMappingDSLPackage.Literals.DOMAIN_PART;
}
/**
*
*
* @generated
*/
public String getName()
{
return name;
}
/**
*
*
* @generated
*/
public void setName(String newName)
{
String oldName = name;
name = newName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ContextMappingDSLPackage.DOMAIN_PART__NAME, oldName, name));
}
/**
*
*
* @generated
*/
public String getDomainVisionStatement()
{
return domainVisionStatement;
}
/**
*
*
* @generated
*/
public void setDomainVisionStatement(String newDomainVisionStatement)
{
String oldDomainVisionStatement = domainVisionStatement;
domainVisionStatement = newDomainVisionStatement;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ContextMappingDSLPackage.DOMAIN_PART__DOMAIN_VISION_STATEMENT, oldDomainVisionStatement, domainVisionStatement));
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType)
{
switch (featureID)
{
case ContextMappingDSLPackage.DOMAIN_PART__NAME:
return getName();
case ContextMappingDSLPackage.DOMAIN_PART__DOMAIN_VISION_STATEMENT:
return getDomainVisionStatement();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue)
{
switch (featureID)
{
case ContextMappingDSLPackage.DOMAIN_PART__NAME:
setName((String)newValue);
return;
case ContextMappingDSLPackage.DOMAIN_PART__DOMAIN_VISION_STATEMENT:
setDomainVisionStatement((String)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID)
{
switch (featureID)
{
case ContextMappingDSLPackage.DOMAIN_PART__NAME:
setName(NAME_EDEFAULT);
return;
case ContextMappingDSLPackage.DOMAIN_PART__DOMAIN_VISION_STATEMENT:
setDomainVisionStatement(DOMAIN_VISION_STATEMENT_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID)
{
switch (featureID)
{
case ContextMappingDSLPackage.DOMAIN_PART__NAME:
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
case ContextMappingDSLPackage.DOMAIN_PART__DOMAIN_VISION_STATEMENT:
return DOMAIN_VISION_STATEMENT_EDEFAULT == null ? domainVisionStatement != null : !DOMAIN_VISION_STATEMENT_EDEFAULT.equals(domainVisionStatement);
}
return super.eIsSet(featureID);
}
/**
*
*
* @generated
*/
@Override
public String toString()
{
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (name: ");
result.append(name);
result.append(", domainVisionStatement: ");
result.append(domainVisionStatement);
result.append(')');
return result.toString();
}
} //DomainPartImpl
© 2015 - 2025 Weber Informatics LLC | Privacy Policy