blob: d46be9eb5b54b41c7bbf4324ce6dc3a8b3088c84 [file] [log] [blame]
/**
* <copyright>
* </copyright>
*
*/
package org.eclipse.e4.cSS.util;
import org.eclipse.e4.cSS.*;
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 org.eclipse.e4.cSS.CSSPackage
* @generated
*/
public class CSSAdapterFactory extends AdapterFactoryImpl
{
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static CSSPackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public CSSAdapterFactory()
{
if (modelPackage == null)
{
modelPackage = CSSPackage.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 CSSSwitch<Adapter> modelSwitch =
new CSSSwitch<Adapter>()
{
@Override
public Adapter casestylesheet(stylesheet object)
{
return createstylesheetAdapter();
}
@Override
public Adapter caseRules(Rules object)
{
return createRulesAdapter();
}
@Override
public Adapter casecss_import(css_import object)
{
return createcss_importAdapter();
}
@Override
public Adapter caseselector(selector object)
{
return createselectorAdapter();
}
@Override
public Adapter casesimple_selector(simple_selector object)
{
return createsimple_selectorAdapter();
}
@Override
public Adapter casepseudo(pseudo object)
{
return createpseudoAdapter();
}
@Override
public Adapter caseelement_name(element_name object)
{
return createelement_nameAdapter();
}
@Override
public Adapter casedeclaration(declaration object)
{
return createdeclarationAdapter();
}
@Override
public Adapter caseexpr(expr object)
{
return createexprAdapter();
}
@Override
public Adapter caseterm(term object)
{
return createtermAdapter();
}
@Override
public Adapter casefunction(function object)
{
return createfunctionAdapter();
}
@Override
public Adapter caseURI(URI object)
{
return createURIAdapter();
}
@Override
public Adapter casecss_hash_class(css_hash_class object)
{
return createcss_hash_classAdapter();
}
@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.e4.cSS.stylesheet <em>stylesheet</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.e4.cSS.stylesheet
* @generated
*/
public Adapter createstylesheetAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.e4.cSS.Rules <em>Rules</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.e4.cSS.Rules
* @generated
*/
public Adapter createRulesAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.e4.cSS.css_import <em>css import</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.e4.cSS.css_import
* @generated
*/
public Adapter createcss_importAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.e4.cSS.selector <em>selector</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.e4.cSS.selector
* @generated
*/
public Adapter createselectorAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.e4.cSS.simple_selector <em>simple selector</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.e4.cSS.simple_selector
* @generated
*/
public Adapter createsimple_selectorAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.e4.cSS.pseudo <em>pseudo</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.e4.cSS.pseudo
* @generated
*/
public Adapter createpseudoAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.e4.cSS.element_name <em>element name</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.e4.cSS.element_name
* @generated
*/
public Adapter createelement_nameAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.e4.cSS.declaration <em>declaration</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.e4.cSS.declaration
* @generated
*/
public Adapter createdeclarationAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.e4.cSS.expr <em>expr</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.e4.cSS.expr
* @generated
*/
public Adapter createexprAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.e4.cSS.term <em>term</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.e4.cSS.term
* @generated
*/
public Adapter createtermAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.e4.cSS.function <em>function</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.e4.cSS.function
* @generated
*/
public Adapter createfunctionAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.e4.cSS.URI <em>URI</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.e4.cSS.URI
* @generated
*/
public Adapter createURIAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.e4.cSS.css_hash_class <em>css hash class</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.e4.cSS.css_hash_class
* @generated
*/
public Adapter createcss_hash_classAdapter()
{
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;
}
} //CSSAdapterFactory