/**
*/
package com.perforce.example.p4dsl.p4Dsl.util;
import com.perforce.example.p4dsl.p4Dsl.*;
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;
/**
* <!-- 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 com.perforce.example.p4dsl.p4Dsl.P4DslPackage
* @generated
*/
public class P4DslAdapterFactory extends AdapterFactoryImpl
{
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static P4DslPackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public P4DslAdapterFactory()
{
if (modelPackage == null)
{
modelPackage = P4DslPackage.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 P4DslSwitch<Adapter> modelSwitch =
new P4DslSwitch<Adapter>()
{
@Override
public Adapter caseModel(Model object)
{
return createModelAdapter();
}
@Override
public Adapter caseCommand(Command object)
{
return createCommandAdapter();
}
@Override
public Adapter caseP4Command(P4Command object)
{
return createP4CommandAdapter();
}
@Override
public Adapter casePUCFlag(PUCFlag object)
{
return createPUCFlagAdapter();
}
@Override
public Adapter casePort(Port object)
{
return createPortAdapter();
}
@Override
public Adapter caseUser(User object)
{
return createUserAdapter();
}
@Override
public Adapter caseClient(Client object)
{
return createClientAdapter();
}
@Override
public Adapter caseFileBasedCommand(FileBasedCommand object)
{
return createFileBasedCommandAdapter();
}
@Override
public Adapter caseAdd(Add object)
{
return createAddAdapter();
}
@Override
public Adapter caseEdit(Edit object)
{
return createEditAdapter();
}
@Override
public Adapter caseDelete(Delete object)
{
return createDeleteAdapter();
}
@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 com.perforce.example.p4dsl.p4Dsl.Model <em>Model</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 com.perforce.example.p4dsl.p4Dsl.Model
* @generated
*/
public Adapter createModelAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.perforce.example.p4dsl.p4Dsl.Command <em>Command</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 com.perforce.example.p4dsl.p4Dsl.Command
* @generated
*/
public Adapter createCommandAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.perforce.example.p4dsl.p4Dsl.P4Command <em>P4 Command</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 com.perforce.example.p4dsl.p4Dsl.P4Command
* @generated
*/
public Adapter createP4CommandAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.perforce.example.p4dsl.p4Dsl.PUCFlag <em>PUC Flag</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 com.perforce.example.p4dsl.p4Dsl.PUCFlag
* @generated
*/
public Adapter createPUCFlagAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.perforce.example.p4dsl.p4Dsl.Port <em>Port</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 com.perforce.example.p4dsl.p4Dsl.Port
* @generated
*/
public Adapter createPortAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.perforce.example.p4dsl.p4Dsl.User <em>User</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 com.perforce.example.p4dsl.p4Dsl.User
* @generated
*/
public Adapter createUserAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.perforce.example.p4dsl.p4Dsl.Client <em>Client</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 com.perforce.example.p4dsl.p4Dsl.Client
* @generated
*/
public Adapter createClientAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.perforce.example.p4dsl.p4Dsl.FileBasedCommand <em>File Based Command</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 com.perforce.example.p4dsl.p4Dsl.FileBasedCommand
* @generated
*/
public Adapter createFileBasedCommandAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.perforce.example.p4dsl.p4Dsl.Add <em>Add</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 com.perforce.example.p4dsl.p4Dsl.Add
* @generated
*/
public Adapter createAddAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.perforce.example.p4dsl.p4Dsl.Edit <em>Edit</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 com.perforce.example.p4dsl.p4Dsl.Edit
* @generated
*/
public Adapter createEditAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.perforce.example.p4dsl.p4Dsl.Delete <em>Delete</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 com.perforce.example.p4dsl.p4Dsl.Delete
* @generated
*/
public Adapter createDeleteAdapter()
{
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;
}
} //P4DslAdapterFactory