/**
* <copyright>
* </copyright>
*
* $Id$
*/
package fr.inria.atlanmod.collaboro.notation.util;
import fr.inria.atlanmod.collaboro.notation.*;
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.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 caseIdElement(IdElement object) {
return createIdElementAdapter();
}
@Override
public Adapter caseNotationElement(NotationElement object) {
return createNotationElementAdapter();
}
@Override
public Adapter caseGraphicalElement(GraphicalElement object) {
return createGraphicalElementAdapter();
}
@Override
public Adapter caseImage(Image object) {
return createImageAdapter();
}
@Override
public Adapter caseFigure(Figure object) {
return createFigureAdapter();
}
@Override
public Adapter caseRectangle(Rectangle object) {
return createRectangleAdapter();
}
@Override
public Adapter caseLine(Line object) {
return createLineAdapter();
}
@Override
public Adapter caseLabel(Label object) {
return createLabelAdapter();
}
@Override
public Adapter caseTextualElement(TextualElement object) {
return createTextualElementAdapter();
}
@Override
public Adapter caseToken(Token object) {
return createTokenAdapter();
}
@Override
public Adapter caseKeyword(Keyword object) {
return createKeywordAdapter();
}
@Override
public Adapter caseValue(Value object) {
return createValueAdapter();
}
@Override
public Adapter caseAttributeValue(AttributeValue object) {
return createAttributeValueAdapter();
}
@Override
public Adapter caseReferenceValue(ReferenceValue object) {
return createReferenceValueAdapter();
}
@Override
public Adapter caseSyntaxOf(SyntaxOf object) {
return createSyntaxOfAdapter();
}
@Override
public Adapter caseComposite(Composite object) {
return createCompositeAdapter();
}
@Override
public Adapter caseDefinition(Definition object) {
return createDefinitionAdapter();
}
@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.notation.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.notation.IdElement
* @generated
*/
public Adapter createIdElementAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link fr.inria.atlanmod.collaboro.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 fr.inria.atlanmod.collaboro.notation.NotationElement
* @generated
*/
public Adapter createNotationElementAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link fr.inria.atlanmod.collaboro.notation.GraphicalElement <em>Graphical 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.notation.GraphicalElement
* @generated
*/
public Adapter createGraphicalElementAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link fr.inria.atlanmod.collaboro.notation.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 fr.inria.atlanmod.collaboro.notation.Image
* @generated
*/
public Adapter createImageAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link fr.inria.atlanmod.collaboro.notation.Figure <em>Figure</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.notation.Figure
* @generated
*/
public Adapter createFigureAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link fr.inria.atlanmod.collaboro.notation.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 fr.inria.atlanmod.collaboro.notation.Rectangle
* @generated
*/
public Adapter createRectangleAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link fr.inria.atlanmod.collaboro.notation.Line <em>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 fr.inria.atlanmod.collaboro.notation.Line
* @generated
*/
public Adapter createLineAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link fr.inria.atlanmod.collaboro.notation.Label <em>Label</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.notation.Label
* @generated
*/
public Adapter createLabelAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link fr.inria.atlanmod.collaboro.notation.TextualElement <em>Textual 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.notation.TextualElement
* @generated
*/
public Adapter createTextualElementAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link fr.inria.atlanmod.collaboro.notation.Token <em>Token</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.notation.Token
* @generated
*/
public Adapter createTokenAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link fr.inria.atlanmod.collaboro.notation.Keyword <em>Keyword</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.notation.Keyword
* @generated
*/
public Adapter createKeywordAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link fr.inria.atlanmod.collaboro.notation.Value <em>Value</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.notation.Value
* @generated
*/
public Adapter createValueAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link fr.inria.atlanmod.collaboro.notation.AttributeValue <em>Attribute Value</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.notation.AttributeValue
* @generated
*/
public Adapter createAttributeValueAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link fr.inria.atlanmod.collaboro.notation.ReferenceValue <em>Reference Value</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.notation.ReferenceValue
* @generated
*/
public Adapter createReferenceValueAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link fr.inria.atlanmod.collaboro.notation.SyntaxOf <em>Syntax Of</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.notation.SyntaxOf
* @generated
*/
public Adapter createSyntaxOfAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link fr.inria.atlanmod.collaboro.notation.Composite <em>Composite</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.notation.Composite
* @generated
*/
public Adapter createCompositeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link fr.inria.atlanmod.collaboro.notation.Definition <em>Definition</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.notation.Definition
* @generated
*/
public Adapter createDefinitionAdapter() {
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