/**
*/
package compositefsm.fsm.util;
import compositefsm.fsm.*;
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 compositefsm.fsm.FsmPackage
* @generated
*/
public class FsmAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static FsmPackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public FsmAdapterFactory() {
if (modelPackage == null) {
modelPackage = FsmPackage.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 FsmSwitch<Adapter> modelSwitch =
new FsmSwitch<Adapter>() {
@Override
public Adapter caseNamedElement(NamedElement object) {
return createNamedElementAdapter();
}
@Override
public Adapter caseStateMachine(StateMachine object) {
return createStateMachineAdapter();
}
@Override
public Adapter caseState(State object) {
return createStateAdapter();
}
@Override
public Adapter caseFinalState(FinalState object) {
return createFinalStateAdapter();
}
@Override
public Adapter caseInitialState(InitialState object) {
return createInitialStateAdapter();
}
@Override
public Adapter caseTransition(Transition object) {
return createTransitionAdapter();
}
@Override
public Adapter caseTimedTransition(TimedTransition object) {
return createTimedTransitionAdapter();
}
@Override
public Adapter caseTrigger(Trigger object) {
return createTriggerAdapter();
}
@Override
public Adapter casePseudostate(Pseudostate object) {
return createPseudostateAdapter();
}
@Override
public Adapter caseFork(Fork object) {
return createForkAdapter();
}
@Override
public Adapter caseJoin(Join object) {
return createJoinAdapter();
}
@Override
public Adapter caseCompositeState(CompositeState object) {
return createCompositeStateAdapter();
}
@Override
public Adapter caseRegion(Region object) {
return createRegionAdapter();
}
@Override
public Adapter caseAction(Action object) {
return createActionAdapter();
}
@Override
public Adapter caseVariable(Variable object) {
return createVariableAdapter();
}
@Override
public Adapter caseChoice(Choice object) {
return createChoiceAdapter();
}
@Override
public Adapter caseGuard(Guard object) {
return createGuardAdapter();
}
@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 compositefsm.fsm.NamedElement <em>Named Element</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 compositefsm.fsm.NamedElement
* @generated
*/
public Adapter createNamedElementAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link compositefsm.fsm.StateMachine <em>State Machine</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 compositefsm.fsm.StateMachine
* @generated
*/
public Adapter createStateMachineAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link compositefsm.fsm.State <em>State</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 compositefsm.fsm.State
* @generated
*/
public Adapter createStateAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link compositefsm.fsm.FinalState <em>Final State</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 compositefsm.fsm.FinalState
* @generated
*/
public Adapter createFinalStateAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link compositefsm.fsm.InitialState <em>Initial State</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 compositefsm.fsm.InitialState
* @generated
*/
public Adapter createInitialStateAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link compositefsm.fsm.Transition <em>Transition</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 compositefsm.fsm.Transition
* @generated
*/
public Adapter createTransitionAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link compositefsm.fsm.TimedTransition <em>Timed Transition</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 compositefsm.fsm.TimedTransition
* @generated
*/
public Adapter createTimedTransitionAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link compositefsm.fsm.Trigger <em>Trigger</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 compositefsm.fsm.Trigger
* @generated
*/
public Adapter createTriggerAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link compositefsm.fsm.Pseudostate <em>Pseudostate</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 compositefsm.fsm.Pseudostate
* @generated
*/
public Adapter createPseudostateAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link compositefsm.fsm.Fork <em>Fork</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 compositefsm.fsm.Fork
* @generated
*/
public Adapter createForkAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link compositefsm.fsm.Join <em>Join</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 compositefsm.fsm.Join
* @generated
*/
public Adapter createJoinAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link compositefsm.fsm.CompositeState <em>Composite State</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 compositefsm.fsm.CompositeState
* @generated
*/
public Adapter createCompositeStateAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link compositefsm.fsm.Region <em>Region</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 compositefsm.fsm.Region
* @generated
*/
public Adapter createRegionAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link compositefsm.fsm.Action <em>Action</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 compositefsm.fsm.Action
* @generated
*/
public Adapter createActionAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link compositefsm.fsm.Variable <em>Variable</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 compositefsm.fsm.Variable
* @generated
*/
public Adapter createVariableAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link compositefsm.fsm.Choice <em>Choice</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 compositefsm.fsm.Choice
* @generated
*/
public Adapter createChoiceAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link compositefsm.fsm.Guard <em>Guard</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 compositefsm.fsm.Guard
* @generated
*/
public Adapter createGuardAdapter() {
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;
}
} //FsmAdapterFactory