/**
* <copyright>
* </copyright>
*
* $Id$
*/
package org.jboss.tools.smooks.model.smooks.util;
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.xml.type.AnyType;
import org.jboss.tools.smooks.model.common.AbstractAnyType;
import org.jboss.tools.smooks.model.smooks.AbstractReader;
import org.jboss.tools.smooks.model.smooks.AbstractResourceConfig;
import org.jboss.tools.smooks.model.smooks.ConditionType;
import org.jboss.tools.smooks.model.smooks.ConditionsType;
import org.jboss.tools.smooks.model.smooks.DocumentRoot;
import org.jboss.tools.smooks.model.smooks.ElementVisitor;
import org.jboss.tools.smooks.model.smooks.FeaturesType;
import org.jboss.tools.smooks.model.smooks.HandlerType;
import org.jboss.tools.smooks.model.smooks.HandlersType;
import org.jboss.tools.smooks.model.smooks.ImportType;
import org.jboss.tools.smooks.model.smooks.ParamType;
import org.jboss.tools.smooks.model.smooks.ParamsType;
import org.jboss.tools.smooks.model.smooks.ProfileType;
import org.jboss.tools.smooks.model.smooks.ProfilesType;
import org.jboss.tools.smooks.model.smooks.ReaderType;
import org.jboss.tools.smooks.model.smooks.ResourceConfigType;
import org.jboss.tools.smooks.model.smooks.ResourceType;
import org.jboss.tools.smooks.model.smooks.SetOffType;
import org.jboss.tools.smooks.model.smooks.SetOnType;
import org.jboss.tools.smooks.model.smooks.SmooksPackage;
import org.jboss.tools.smooks.model.smooks.SmooksResourceListType;
/**
* <!-- begin-user-doc -->
* The <b>Adapter Factory</b> for the model.
* It provides an adapter <code>createXXX</code> method for each class of the model.
* <!-- end-user-doc -->
* @see org.jboss.tools.smooks.model.smooks.SmooksPackage
* @generated
*/
public class SmooksAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static SmooksPackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public SmooksAdapterFactory() {
if (modelPackage == null) {
modelPackage = SmooksPackage.eINSTANCE;
}
}
/**
* Returns whether this factory is applicable for the type of the object.
* <!-- begin-user-doc -->
* This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
* <!-- end-user-doc -->
* @return whether this factory is applicable for the type of the object.
* @generated
*/
@Override
public boolean isFactoryForType(Object object) {
if (object == modelPackage) {
return true;
}
if (object instanceof EObject) {
return ((EObject)object).eClass().getEPackage() == modelPackage;
}
return false;
}
/**
* The switch that delegates to the <code>createXXX</code> methods.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected SmooksSwitch<Adapter> modelSwitch =
new SmooksSwitch<Adapter>() {
@Override
public Adapter caseAbstractReader(AbstractReader object) {
return createAbstractReaderAdapter();
}
@Override
public Adapter caseAbstractResourceConfig(AbstractResourceConfig object) {
return createAbstractResourceConfigAdapter();
}
@Override
public Adapter caseConditionsType(ConditionsType object) {
return createConditionsTypeAdapter();
}
@Override
public Adapter caseConditionType(ConditionType object) {
return createConditionTypeAdapter();
}
@Override
public Adapter caseDocumentRoot(DocumentRoot object) {
return createDocumentRootAdapter();
}
@Override
public Adapter caseElementVisitor(ElementVisitor object) {
return createElementVisitorAdapter();
}
@Override
public Adapter caseFeaturesType(FeaturesType object) {
return createFeaturesTypeAdapter();
}
@Override
public Adapter caseHandlersType(HandlersType object) {
return createHandlersTypeAdapter();
}
@Override
public Adapter caseHandlerType(HandlerType object) {
return createHandlerTypeAdapter();
}
@Override
public Adapter caseImportType(ImportType object) {
return createImportTypeAdapter();
}
@Override
public Adapter caseParamsType(ParamsType object) {
return createParamsTypeAdapter();
}
@Override
public Adapter caseParamType(ParamType object) {
return createParamTypeAdapter();
}
@Override
public Adapter caseProfilesType(ProfilesType object) {
return createProfilesTypeAdapter();
}
@Override
public Adapter caseProfileType(ProfileType object) {
return createProfileTypeAdapter();
}
@Override
public Adapter caseReaderType(ReaderType object) {
return createReaderTypeAdapter();
}
@Override
public Adapter caseResourceConfigType(ResourceConfigType object) {
return createResourceConfigTypeAdapter();
}
@Override
public Adapter caseResourceType(ResourceType object) {
return createResourceTypeAdapter();
}
@Override
public Adapter caseSetOffType(SetOffType object) {
return createSetOffTypeAdapter();
}
@Override
public Adapter caseSetOnType(SetOnType object) {
return createSetOnTypeAdapter();
}
@Override
public Adapter caseSmooksResourceListType(SmooksResourceListType object) {
return createSmooksResourceListTypeAdapter();
}
@Override
public Adapter caseAnyType(AnyType object) {
return createAnyTypeAdapter();
}
@Override
public Adapter caseAbstractAnyType(AbstractAnyType object) {
return createAbstractAnyTypeAdapter();
}
@Override
public Adapter defaultCase(EObject object) {
return createEObjectAdapter();
}
};
/**
* Creates an adapter for the <code>target</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param target the object to adapt.
* @return the adapter for the <code>target</code>.
* @generated
*/
@Override
public Adapter createAdapter(Notifier target) {
return modelSwitch.doSwitch((EObject)target);
}
/**
* Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.smooks.AbstractReader <em>Abstract Reader</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.jboss.tools.smooks.model.smooks.AbstractReader
* @generated
*/
public Adapter createAbstractReaderAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.smooks.AbstractResourceConfig <em>Abstract Resource Config</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.jboss.tools.smooks.model.smooks.AbstractResourceConfig
* @generated
*/
public Adapter createAbstractResourceConfigAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.smooks.ConditionsType <em>Conditions Type</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.jboss.tools.smooks.model.smooks.ConditionsType
* @generated
*/
public Adapter createConditionsTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.smooks.ConditionType <em>Condition Type</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.jboss.tools.smooks.model.smooks.ConditionType
* @generated
*/
public Adapter createConditionTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.smooks.DocumentRoot <em>Document Root</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.jboss.tools.smooks.model.smooks.DocumentRoot
* @generated
*/
public Adapter createDocumentRootAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.smooks.ElementVisitor <em>Element Visitor</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.jboss.tools.smooks.model.smooks.ElementVisitor
* @generated
*/
public Adapter createElementVisitorAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.smooks.FeaturesType <em>Features Type</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.jboss.tools.smooks.model.smooks.FeaturesType
* @generated
*/
public Adapter createFeaturesTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.smooks.HandlersType <em>Handlers Type</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.jboss.tools.smooks.model.smooks.HandlersType
* @generated
*/
public Adapter createHandlersTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.smooks.HandlerType <em>Handler Type</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.jboss.tools.smooks.model.smooks.HandlerType
* @generated
*/
public Adapter createHandlerTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.smooks.ImportType <em>Import Type</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.jboss.tools.smooks.model.smooks.ImportType
* @generated
*/
public Adapter createImportTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.smooks.ParamsType <em>Params Type</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.jboss.tools.smooks.model.smooks.ParamsType
* @generated
*/
public Adapter createParamsTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.smooks.ParamType <em>Param Type</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.jboss.tools.smooks.model.smooks.ParamType
* @generated
*/
public Adapter createParamTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.smooks.ProfilesType <em>Profiles Type</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.jboss.tools.smooks.model.smooks.ProfilesType
* @generated
*/
public Adapter createProfilesTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.smooks.ProfileType <em>Profile Type</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.jboss.tools.smooks.model.smooks.ProfileType
* @generated
*/
public Adapter createProfileTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.smooks.ReaderType <em>Reader Type</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.jboss.tools.smooks.model.smooks.ReaderType
* @generated
*/
public Adapter createReaderTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.smooks.ResourceConfigType <em>Resource Config Type</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.jboss.tools.smooks.model.smooks.ResourceConfigType
* @generated
*/
public Adapter createResourceConfigTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.smooks.ResourceType <em>Resource Type</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.jboss.tools.smooks.model.smooks.ResourceType
* @generated
*/
public Adapter createResourceTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.smooks.SetOffType <em>Set Off Type</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.jboss.tools.smooks.model.smooks.SetOffType
* @generated
*/
public Adapter createSetOffTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.smooks.SetOnType <em>Set On Type</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.jboss.tools.smooks.model.smooks.SetOnType
* @generated
*/
public Adapter createSetOnTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.smooks.SmooksResourceListType <em>Resource List Type</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.jboss.tools.smooks.model.smooks.SmooksResourceListType
* @generated
*/
public Adapter createSmooksResourceListTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.emf.ecore.xml.type.AnyType <em>Any Type</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.eclipse.emf.ecore.xml.type.AnyType
* @generated
*/
public Adapter createAnyTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.common.AbstractAnyType <em>Abstract Any Type</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.jboss.tools.smooks.model.common.AbstractAnyType
* @generated
*/
public Adapter createAbstractAnyTypeAdapter() {
return null;
}
/**
* Creates a new adapter for the default case.
* <!-- begin-user-doc -->
* This default implementation returns null.
* <!-- end-user-doc -->
* @return the new adapter.
* @generated
*/
public Adapter createEObjectAdapter() {
return null;
}
} //SmooksAdapterFactory