kieker.analysis.model.analysisMetaModel.impl.MRepositoryConnector Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kieker Show documentation
Show all versions of kieker Show documentation
Kieker: Application Performance Monitoring and Dynamic Software Analysis
/**
*/
package kieker.analysis.model.analysisMetaModel.impl;
import kieker.analysis.model.analysisMetaModel.MIAnalysisMetaModelPackage;
import kieker.analysis.model.analysisMetaModel.MIRepository;
import kieker.analysis.model.analysisMetaModel.MIRepositoryConnector;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
/**
*
* An implementation of the model object 'Repository Connector'.
*
*
* The following features are implemented:
*
* - {@link kieker.analysis.model.analysisMetaModel.impl.MRepositoryConnector#getName Name}
* - {@link kieker.analysis.model.analysisMetaModel.impl.MRepositoryConnector#getRepository Repository}
* - {@link kieker.analysis.model.analysisMetaModel.impl.MRepositoryConnector#getId Id}
*
*
*
* @generated
*/
public class MRepositoryConnector extends EObjectImpl implements MIRepositoryConnector {
/**
* 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 cached value of the '{@link #getRepository() Repository}' reference.
*
*
* @see #getRepository()
* @generated
* @ordered
*/
protected MIRepository repository;
/**
* The default value of the '{@link #getId() Id}' attribute.
*
*
* @see #getId()
* @generated
* @ordered
*/
protected static final String ID_EDEFAULT = null;
/**
* The cached value of the '{@link #getId() Id}' attribute.
*
*
* @see #getId()
* @generated
* @ordered
*/
protected String id = ID_EDEFAULT;
/**
*
*
* @generated
*/
protected MRepositoryConnector() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return MIAnalysisMetaModelPackage.Literals.REPOSITORY_CONNECTOR;
}
/**
*
*
* @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, MIAnalysisMetaModelPackage.REPOSITORY_CONNECTOR__NAME, oldName, name));
}
/**
*
*
* @generated
*/
public MIRepository getRepository() {
if (repository != null && repository.eIsProxy()) {
InternalEObject oldRepository = (InternalEObject)repository;
repository = (MIRepository)eResolveProxy(oldRepository);
if (repository != oldRepository) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, MIAnalysisMetaModelPackage.REPOSITORY_CONNECTOR__REPOSITORY, oldRepository, repository));
}
}
return repository;
}
/**
*
*
* @generated
*/
public MIRepository basicGetRepository() {
return repository;
}
/**
*
*
* @generated
*/
public void setRepository(MIRepository newRepository) {
MIRepository oldRepository = repository;
repository = newRepository;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, MIAnalysisMetaModelPackage.REPOSITORY_CONNECTOR__REPOSITORY, oldRepository, repository));
}
/**
*
*
* @generated
*/
public String getId() {
return id;
}
/**
*
*
* @generated
*/
public void setId(String newId) {
String oldId = id;
id = newId;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, MIAnalysisMetaModelPackage.REPOSITORY_CONNECTOR__ID, oldId, id));
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case MIAnalysisMetaModelPackage.REPOSITORY_CONNECTOR__NAME:
return getName();
case MIAnalysisMetaModelPackage.REPOSITORY_CONNECTOR__REPOSITORY:
if (resolve) return getRepository();
return basicGetRepository();
case MIAnalysisMetaModelPackage.REPOSITORY_CONNECTOR__ID:
return getId();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case MIAnalysisMetaModelPackage.REPOSITORY_CONNECTOR__NAME:
setName((String)newValue);
return;
case MIAnalysisMetaModelPackage.REPOSITORY_CONNECTOR__REPOSITORY:
setRepository((MIRepository)newValue);
return;
case MIAnalysisMetaModelPackage.REPOSITORY_CONNECTOR__ID:
setId((String)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case MIAnalysisMetaModelPackage.REPOSITORY_CONNECTOR__NAME:
setName(NAME_EDEFAULT);
return;
case MIAnalysisMetaModelPackage.REPOSITORY_CONNECTOR__REPOSITORY:
setRepository((MIRepository)null);
return;
case MIAnalysisMetaModelPackage.REPOSITORY_CONNECTOR__ID:
setId(ID_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case MIAnalysisMetaModelPackage.REPOSITORY_CONNECTOR__NAME:
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
case MIAnalysisMetaModelPackage.REPOSITORY_CONNECTOR__REPOSITORY:
return repository != null;
case MIAnalysisMetaModelPackage.REPOSITORY_CONNECTOR__ID:
return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
}
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(", id: ");
result.append(id);
result.append(')');
return result.toString();
}
} //MRepositoryConnector