/**
*/
package de.sebastianbenz.task.util;
import de.sebastianbenz.task.*;
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 de.sebastianbenz.task.TaskPackage
* @generated
*/
public class TaskAdapterFactory extends AdapterFactoryImpl
{
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static TaskPackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public TaskAdapterFactory()
{
if (modelPackage == null)
{
modelPackage = TaskPackage.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 TaskSwitch<Adapter> modelSwitch =
new TaskSwitch<Adapter>()
{
@Override
public Adapter caseTaskModel(TaskModel object)
{
return createTaskModelAdapter();
}
@Override
public Adapter caseContent(Content object)
{
return createContentAdapter();
}
@Override
public Adapter caseTask(Task object)
{
return createTaskAdapter();
}
@Override
public Adapter caseNote(Note object)
{
return createNoteAdapter();
}
@Override
public Adapter caseProject(Project object)
{
return createProjectAdapter();
}
@Override
public Adapter caseGlobalTaskModel(GlobalTaskModel object)
{
return createGlobalTaskModelAdapter();
}
@Override
public Adapter caseContainer(Container object)
{
return createContainerAdapter();
}
@Override
public Adapter caseEmptyLine(EmptyLine object)
{
return createEmptyLineAdapter();
}
@Override
public Adapter caseCode(Code object)
{
return createCodeAdapter();
}
@Override
public Adapter caseTextSegment(TextSegment object)
{
return createTextSegmentAdapter();
}
@Override
public Adapter caseTag(Tag object)
{
return createTagAdapter();
}
@Override
public Adapter caseLink(Link object)
{
return createLinkAdapter();
}
@Override
public Adapter caseText(Text object)
{
return createTextAdapter();
}
@Override
public Adapter caseImage(Image object)
{
return createImageAdapter();
}
@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 de.sebastianbenz.task.TaskModel <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 de.sebastianbenz.task.TaskModel
* @generated
*/
public Adapter createTaskModelAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.sebastianbenz.task.Content <em>Content</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 de.sebastianbenz.task.Content
* @generated
*/
public Adapter createContentAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.sebastianbenz.task.Task <em>Task</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 de.sebastianbenz.task.Task
* @generated
*/
public Adapter createTaskAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.sebastianbenz.task.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 de.sebastianbenz.task.Note
* @generated
*/
public Adapter createNoteAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.sebastianbenz.task.Project <em>Project</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 de.sebastianbenz.task.Project
* @generated
*/
public Adapter createProjectAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.sebastianbenz.task.GlobalTaskModel <em>Global Task 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 de.sebastianbenz.task.GlobalTaskModel
* @generated
*/
public Adapter createGlobalTaskModelAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.sebastianbenz.task.Container <em>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 de.sebastianbenz.task.Container
* @generated
*/
public Adapter createContainerAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.sebastianbenz.task.EmptyLine <em>Empty Line</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 de.sebastianbenz.task.EmptyLine
* @generated
*/
public Adapter createEmptyLineAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.sebastianbenz.task.Code <em>Code</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 de.sebastianbenz.task.Code
* @generated
*/
public Adapter createCodeAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.sebastianbenz.task.TextSegment <em>Text Segment</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 de.sebastianbenz.task.TextSegment
* @generated
*/
public Adapter createTextSegmentAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.sebastianbenz.task.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 de.sebastianbenz.task.Tag
* @generated
*/
public Adapter createTagAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.sebastianbenz.task.Link <em>Link</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 de.sebastianbenz.task.Link
* @generated
*/
public Adapter createLinkAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.sebastianbenz.task.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 de.sebastianbenz.task.Text
* @generated
*/
public Adapter createTextAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.sebastianbenz.task.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 de.sebastianbenz.task.Image
* @generated
*/
public Adapter createImageAdapter()
{
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;
}
} //TaskAdapterFactory