blob: a310358a374a7224c01c151bc62f93bd54e64725 [file] [log] [blame]
/**
* <copyright>
*
* Copyright (c) 2005, 2010 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* SAP AG - initial API, implementation and documentation
*
* </copyright>
*/
package org.eclipse.graphiti.mm.algorithms.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.graphiti.mm.GraphicsAlgorithmContainer;
import org.eclipse.graphiti.mm.PropertyContainer;
import org.eclipse.graphiti.mm.algorithms.*;
import org.eclipse.graphiti.mm.algorithms.styles.AbstractStyle;
/**
* <!-- 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.eclipse.graphiti.mm.algorithms.AlgorithmsPackage
* @generated
*/
public class AlgorithmsAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static AlgorithmsPackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public AlgorithmsAdapterFactory() {
if (modelPackage == null) {
modelPackage = AlgorithmsPackage.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 AlgorithmsSwitch<Adapter> modelSwitch =
new AlgorithmsSwitch<Adapter>() {
@Override
public Adapter caseGraphicsAlgorithm(GraphicsAlgorithm object) {
return createGraphicsAlgorithmAdapter();
}
@Override
public Adapter casePolyline(Polyline object) {
return createPolylineAdapter();
}
@Override
public Adapter caseEllipse(Ellipse object) {
return createEllipseAdapter();
}
@Override
public Adapter caseText(Text object) {
return createTextAdapter();
}
@Override
public Adapter casePolygon(Polygon object) {
return createPolygonAdapter();
}
@Override
public Adapter caseRectangle(Rectangle object) {
return createRectangleAdapter();
}
@Override
public Adapter caseRoundedRectangle(RoundedRectangle object) {
return createRoundedRectangleAdapter();
}
@Override
public Adapter caseImage(Image object) {
return createImageAdapter();
}
@Override
public Adapter casePlatformGraphicsAlgorithm(PlatformGraphicsAlgorithm object) {
return createPlatformGraphicsAlgorithmAdapter();
}
@Override
public Adapter caseAbstractText(AbstractText object) {
return createAbstractTextAdapter();
}
@Override
public Adapter caseMultiText(MultiText object) {
return createMultiTextAdapter();
}
@Override
public Adapter casePropertyContainer(PropertyContainer object) {
return createPropertyContainerAdapter();
}
@Override
public Adapter caseGraphicsAlgorithmContainer(GraphicsAlgorithmContainer object) {
return createGraphicsAlgorithmContainerAdapter();
}
@Override
public Adapter caseAbstractStyle(AbstractStyle object) {
return createAbstractStyleAdapter();
}
@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.eclipse.graphiti.mm.algorithms.GraphicsAlgorithm <em>Graphics Algorithm</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.graphiti.mm.algorithms.GraphicsAlgorithm
* @generated
*/
public Adapter createGraphicsAlgorithmAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.graphiti.mm.algorithms.Polyline <em>Polyline</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.graphiti.mm.algorithms.Polyline
* @generated
*/
public Adapter createPolylineAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.graphiti.mm.algorithms.Ellipse <em>Ellipse</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.graphiti.mm.algorithms.Ellipse
* @generated
*/
public Adapter createEllipseAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.graphiti.mm.algorithms.Text <em>Text</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.graphiti.mm.algorithms.Text
* @generated
*/
public Adapter createTextAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.graphiti.mm.algorithms.Polygon <em>Polygon</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.graphiti.mm.algorithms.Polygon
* @generated
*/
public Adapter createPolygonAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.graphiti.mm.algorithms.Rectangle <em>Rectangle</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.graphiti.mm.algorithms.Rectangle
* @generated
*/
public Adapter createRectangleAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.graphiti.mm.algorithms.RoundedRectangle <em>Rounded Rectangle</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.graphiti.mm.algorithms.RoundedRectangle
* @generated
*/
public Adapter createRoundedRectangleAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.graphiti.mm.algorithms.Image <em>Image</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.graphiti.mm.algorithms.Image
* @generated
*/
public Adapter createImageAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.graphiti.mm.algorithms.PlatformGraphicsAlgorithm <em>Platform Graphics Algorithm</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.graphiti.mm.algorithms.PlatformGraphicsAlgorithm
* @generated
*/
public Adapter createPlatformGraphicsAlgorithmAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.graphiti.mm.algorithms.AbstractText <em>Abstract Text</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.graphiti.mm.algorithms.AbstractText
* @generated
*/
public Adapter createAbstractTextAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.graphiti.mm.algorithms.MultiText <em>Multi Text</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.graphiti.mm.algorithms.MultiText
* @generated
*/
public Adapter createMultiTextAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.graphiti.mm.PropertyContainer <em>Property Container</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.graphiti.mm.PropertyContainer
* @generated
*/
public Adapter createPropertyContainerAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.graphiti.mm.GraphicsAlgorithmContainer <em>Graphics Algorithm Container</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.graphiti.mm.GraphicsAlgorithmContainer
* @generated
*/
public Adapter createGraphicsAlgorithmContainerAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.graphiti.mm.algorithms.styles.AbstractStyle <em>Abstract Style</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.graphiti.mm.algorithms.styles.AbstractStyle
* @generated
*/
public Adapter createAbstractStyleAdapter() {
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;
}
} //AlgorithmsAdapterFactory