blob: b06ffbf0bb5e1745c7b8be116274f3727dc671f0 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009 The University of York.
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* Contributors:
* Louis Rose - initial API and implementation
******************************************************************************
*
* $Id$
*/
package org.eclipse.epsilon.hutn.model;
import org.eclipse.emf.common.util.EList;
import org.eclipse.epsilon.hutn.model.hutn.ClassObject;
import org.eclipse.epsilon.hutn.model.hutn.HutnFactory;
import org.eclipse.epsilon.hutn.model.hutn.ReferenceSlot;
public abstract class HutnExtendedFactory {
private HutnExtendedFactory() {}
public static ReferenceSlot createReferenceSlot(String feature, ClassObject owner, EList<String> values) {
final ReferenceSlot referenceSlot = HutnFactory.eINSTANCE.createReferenceSlot();
referenceSlot.setFeature(feature);
referenceSlot.setOwner(owner);
referenceSlot.setValues(values);
return referenceSlot;
}
}