/* license-start
*
* Copyright (C) 2008 - 2013 Crispico, <http://www.crispico.com/>.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details, at <http://www.gnu.org/licenses/>.
*
* Contributors:
* Crispico - Initial API and implementation
*
* license-end
*/
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package org.flowerplatform.emf_model.notation.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.flowerplatform.emf_model.notation.*;
/**
* <!-- 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.flowerplatform.emf_model.notation.NotationPackage
* @generated
*/
public class NotationAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static NotationPackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotationAdapterFactory() {
if (modelPackage == null) {
modelPackage = NotationPackage.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 NotationSwitch<Adapter> modelSwitch =
new NotationSwitch<Adapter>() {
@Override
public Adapter caseNotationElement(NotationElement object) {
return createNotationElementAdapter();
}
@Override
public Adapter caseView(View object) {
return createViewAdapter();
}
@Override
public Adapter caseNode(Node object) {
return createNodeAdapter();
}
@Override
public Adapter caseCategorySeparator(CategorySeparator object) {
return createCategorySeparatorAdapter();
}
@Override
public Adapter caseEdge(Edge object) {
return createEdgeAdapter();
}
@Override
public Adapter caseDiagram(Diagram object) {
return createDiagramAdapter();
}
@Override
public Adapter caseLayoutConstraint(LayoutConstraint object) {
return createLayoutConstraintAdapter();
}
@Override
public Adapter caseLocation(Location object) {
return createLocationAdapter();
}
@Override
public Adapter caseBounds(Bounds object) {
return createBoundsAdapter();
}
@Override
public Adapter caseNote(Note object) {
return createNoteAdapter();
}
@Override
public Adapter caseMindMapNode(MindMapNode object) {
return createMindMapNodeAdapter();
}
@Override
public Adapter caseExpandableNode(ExpandableNode object) {
return createExpandableNodeAdapter();
}
@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.flowerplatform.emf_model.notation.NotationElement <em>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 org.flowerplatform.emf_model.notation.NotationElement
* @generated
*/
public Adapter createNotationElementAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.flowerplatform.emf_model.notation.View <em>View</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.flowerplatform.emf_model.notation.View
* @generated
*/
public Adapter createViewAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.flowerplatform.emf_model.notation.Node <em>Node</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.flowerplatform.emf_model.notation.Node
* @generated
*/
public Adapter createNodeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.flowerplatform.emf_model.notation.CategorySeparator <em>Category Separator</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.flowerplatform.emf_model.notation.CategorySeparator
* @generated
*/
public Adapter createCategorySeparatorAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.flowerplatform.emf_model.notation.Edge <em>Edge</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.flowerplatform.emf_model.notation.Edge
* @generated
*/
public Adapter createEdgeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.flowerplatform.emf_model.notation.Diagram <em>Diagram</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.flowerplatform.emf_model.notation.Diagram
* @generated
*/
public Adapter createDiagramAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.flowerplatform.emf_model.notation.LayoutConstraint <em>Layout Constraint</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.flowerplatform.emf_model.notation.LayoutConstraint
* @generated
*/
public Adapter createLayoutConstraintAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.flowerplatform.emf_model.notation.Location <em>Location</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.flowerplatform.emf_model.notation.Location
* @generated
*/
public Adapter createLocationAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.flowerplatform.emf_model.notation.Bounds <em>Bounds</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.flowerplatform.emf_model.notation.Bounds
* @generated
*/
public Adapter createBoundsAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.flowerplatform.emf_model.notation.Note <em>Note</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.flowerplatform.emf_model.notation.Note
* @generated
*/
public Adapter createNoteAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.flowerplatform.emf_model.notation.MindMapNode <em>Mind Map Node</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.flowerplatform.emf_model.notation.MindMapNode
* @generated
*/
public Adapter createMindMapNodeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.flowerplatform.emf_model.notation.ExpandableNode <em>Expandable Node</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.flowerplatform.emf_model.notation.ExpandableNode
* @generated
*/
public Adapter createExpandableNodeAdapter() {
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;
}
} //NotationAdapterFactory