blob: 63496d2d7e376e954f80af6789bac3c1d5851d72 [file] [log] [blame]
//------------------------------------------------------------------------------
// Copyright (c) 2005, 2006 IBM Corporation and others.
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the Eclipse Public License v1.0
// which accompanies this distribution, and is available at
// http://www.eclipse.org/legal/epl-v10.html
//
// Contributors:
// IBM Corporation - initial implementation
//------------------------------------------------------------------------------
package org.eclipse.epf.library.edit;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EReference;
import com.ibm.uma.MethodConfiguration;
import com.ibm.uma.VariabilityElement;
/**
* @author Phong Nguyen Le
* @since 1.0
*/
public abstract class AbstractConfigurationApplicator implements
IConfigurationApplicator {
public AbstractConfigurationApplicator() {
super();
}
/*
* (non-Javadoc)
*
* @see com.ibm.library.edit.IConfigurationApplicator#getAttribute(com.ibm.uma.VariabilityElement,
* org.eclipse.emf.ecore.EAttribute, com.ibm.uma.MethodConfiguration)
*/
public Object getAttribute(VariabilityElement ve, EAttribute attribute,
MethodConfiguration config) {
return ve.eGet(attribute);
}
/*
* (non-Javadoc)
*
* @see com.ibm.library.edit.IConfigurationApplicator#getReference(com.ibm.uma.VariabilityElement,
* org.eclipse.emf.ecore.EReference, com.ibm.uma.MethodConfiguration)
*/
public Object getReference(VariabilityElement ve, EReference ref,
MethodConfiguration config) {
return ve.eGet(ref);
}
/* (non-Javadoc)
* @see org.eclipse.epf.library.edit.IConfigurationApplicator#revolve(java.lang.Object, com.ibm.uma.MethodConfiguration)
*/
public Object resolve(Object object, MethodConfiguration config) {
return object;
}
}