/** * <copyright> * </copyright> * * $Id$ */ package fr.inria.atlanmod.collaboro.history.util; import fr.inria.atlanmod.collaboro.history.*; 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 fr.inria.atlanmod.collaboro.history.HistoryPackage * @generated */ public class HistoryAdapterFactory extends AdapterFactoryImpl { /** * The cached model package. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected static HistoryPackage modelPackage; /** * Creates an instance of the adapter factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public HistoryAdapterFactory() { if (modelPackage == null) { modelPackage = HistoryPackage.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 HistorySwitch<Adapter> modelSwitch = new HistorySwitch<Adapter>() { @Override public Adapter caseHistory(History object) { return createHistoryAdapter(); } @Override public Adapter caseVersionHistory(VersionHistory object) { return createVersionHistoryAdapter(); } @Override public Adapter caseIdElement(IdElement object) { return createIdElementAdapter(); } @Override public Adapter caseUser(User object) { return createUserAdapter(); } @Override public Adapter caseVersion(Version object) { return createVersionAdapter(); } @Override public Adapter caseVote(Vote object) { return createVoteAdapter(); } @Override public Adapter caseCollaboration(Collaboration object) { return createCollaborationAdapter(); } @Override public Adapter caseProposal(Proposal object) { return createProposalAdapter(); } @Override public Adapter caseSolution(Solution object) { return createSolutionAdapter(); } @Override public Adapter caseComment(Comment object) { return createCommentAdapter(); } @Override public Adapter caseModelChange(ModelChange object) { return createModelChangeAdapter(); } @Override public Adapter caseAdd(Add object) { return createAddAdapter(); } @Override public Adapter caseUpdate(Update object) { return createUpdateAdapter(); } @Override public Adapter caseDelete(Delete object) { return createDeleteAdapter(); } @Override public Adapter caseSyntaxElement(SyntaxElement object) { return createSyntaxElementAdapter(); } @Override public Adapter caseAbstractSyntaxElement(AbstractSyntaxElement object) { return createAbstractSyntaxElementAdapter(); } @Override public Adapter caseExistingAbstractSyntaxElement(ExistingAbstractSyntaxElement object) { return createExistingAbstractSyntaxElementAdapter(); } @Override public Adapter caseNewAbstractSyntaxElement(NewAbstractSyntaxElement object) { return createNewAbstractSyntaxElementAdapter(); } @Override public Adapter caseConcreteSyntaxElement(ConcreteSyntaxElement object) { return createConcreteSyntaxElementAdapter(); } @Override public Adapter caseMetaInfo(MetaInfo object) { return createMetaInfoAdapter(); } @Override public Adapter casePriority(Priority object) { return createPriorityAdapter(); } @Override public Adapter caseTagBased(TagBased object) { return createTagBasedAdapter(); } @Override public Adapter caseTag(Tag object) { return createTagAdapter(); } @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 fr.inria.atlanmod.collaboro.history.History <em>History</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 fr.inria.atlanmod.collaboro.history.History * @generated */ public Adapter createHistoryAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.inria.atlanmod.collaboro.history.VersionHistory <em>Version History</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 fr.inria.atlanmod.collaboro.history.VersionHistory * @generated */ public Adapter createVersionHistoryAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.inria.atlanmod.collaboro.history.IdElement <em>Id 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 fr.inria.atlanmod.collaboro.history.IdElement * @generated */ public Adapter createIdElementAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.inria.atlanmod.collaboro.history.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 fr.inria.atlanmod.collaboro.history.User * @generated */ public Adapter createUserAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.inria.atlanmod.collaboro.history.Version <em>Version</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 fr.inria.atlanmod.collaboro.history.Version * @generated */ public Adapter createVersionAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.inria.atlanmod.collaboro.history.Vote <em>Vote</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 fr.inria.atlanmod.collaboro.history.Vote * @generated */ public Adapter createVoteAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.inria.atlanmod.collaboro.history.Collaboration <em>Collaboration</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 fr.inria.atlanmod.collaboro.history.Collaboration * @generated */ public Adapter createCollaborationAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.inria.atlanmod.collaboro.history.Proposal <em>Proposal</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 fr.inria.atlanmod.collaboro.history.Proposal * @generated */ public Adapter createProposalAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.inria.atlanmod.collaboro.history.Solution <em>Solution</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 fr.inria.atlanmod.collaboro.history.Solution * @generated */ public Adapter createSolutionAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.inria.atlanmod.collaboro.history.Comment <em>Comment</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 fr.inria.atlanmod.collaboro.history.Comment * @generated */ public Adapter createCommentAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.inria.atlanmod.collaboro.history.ModelChange <em>Model Change</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 fr.inria.atlanmod.collaboro.history.ModelChange * @generated */ public Adapter createModelChangeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.inria.atlanmod.collaboro.history.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 fr.inria.atlanmod.collaboro.history.Add * @generated */ public Adapter createAddAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.inria.atlanmod.collaboro.history.Update <em>Update</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 fr.inria.atlanmod.collaboro.history.Update * @generated */ public Adapter createUpdateAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.inria.atlanmod.collaboro.history.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 fr.inria.atlanmod.collaboro.history.Delete * @generated */ public Adapter createDeleteAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.inria.atlanmod.collaboro.history.SyntaxElement <em>Syntax 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 fr.inria.atlanmod.collaboro.history.SyntaxElement * @generated */ public Adapter createSyntaxElementAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.inria.atlanmod.collaboro.history.AbstractSyntaxElement <em>Abstract Syntax 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 fr.inria.atlanmod.collaboro.history.AbstractSyntaxElement * @generated */ public Adapter createAbstractSyntaxElementAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.inria.atlanmod.collaboro.history.ExistingAbstractSyntaxElement <em>Existing Abstract Syntax 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 fr.inria.atlanmod.collaboro.history.ExistingAbstractSyntaxElement * @generated */ public Adapter createExistingAbstractSyntaxElementAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.inria.atlanmod.collaboro.history.NewAbstractSyntaxElement <em>New Abstract Syntax 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 fr.inria.atlanmod.collaboro.history.NewAbstractSyntaxElement * @generated */ public Adapter createNewAbstractSyntaxElementAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.inria.atlanmod.collaboro.history.ConcreteSyntaxElement <em>Concrete Syntax 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 fr.inria.atlanmod.collaboro.history.ConcreteSyntaxElement * @generated */ public Adapter createConcreteSyntaxElementAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.inria.atlanmod.collaboro.history.MetaInfo <em>Meta Info</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 fr.inria.atlanmod.collaboro.history.MetaInfo * @generated */ public Adapter createMetaInfoAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.inria.atlanmod.collaboro.history.Priority <em>Priority</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 fr.inria.atlanmod.collaboro.history.Priority * @generated */ public Adapter createPriorityAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.inria.atlanmod.collaboro.history.TagBased <em>Tag Based</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 fr.inria.atlanmod.collaboro.history.TagBased * @generated */ public Adapter createTagBasedAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.inria.atlanmod.collaboro.history.Tag <em>Tag</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 fr.inria.atlanmod.collaboro.history.Tag * @generated */ public Adapter createTagAdapter() { 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; } } //HistoryAdapterFactory