/**
 */
package org.eclipse.emf.ecp.view.edapt.util.test.model.w;

import org.eclipse.emf.ecore.EFactory;

/**
 * <!-- begin-user-doc -->
 * The <b>Factory</b> for the model.
 * It provides a create method for each non-abstract class of the model.
 * <!-- end-user-doc -->
 * 
 * @see org.eclipse.emf.ecp.view.edapt.util.test.model.w.EdaptTestWPackage
 * @generated
 */
public interface EdaptTestWFactory extends EFactory {
	/**
	 * The singleton instance of the factory.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * 
	 * @generated
	 */
	EdaptTestWFactory eINSTANCE = org.eclipse.emf.ecp.view.edapt.util.test.model.w.impl.EdaptTestWFactoryImpl.init();

	/**
	 * Returns a new object of class '<em>W</em>'.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * 
	 * @return a new object of class '<em>W</em>'.
	 * @generated
	 */
	EdaptTestW createW();

	/**
	 * Returns the package supported by this factory.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * 
	 * @return the package supported by this factory.
	 * @generated
	 */
	EdaptTestWPackage getWPackage();

} // EdaptTestWFactory
