/**
* generated by Xtext 2.12.0
*/
package com.minres.rdl.rdl.util;
import com.minres.rdl.rdl.*;
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;
/**
*
* The Adapter Factory for the model.
* It provides an adapter createXXX
method for each class of the model.
*
* @see com.minres.rdl.rdl.RdlPackage
* @generated
*/
public class RdlAdapterFactory extends AdapterFactoryImpl
{
/**
* The cached model package.
*
*
* @generated
*/
protected static RdlPackage modelPackage;
/**
* Creates an instance of the adapter factory.
*
*
* @generated
*/
public RdlAdapterFactory()
{
if (modelPackage == null)
{
modelPackage = RdlPackage.eINSTANCE;
}
}
/**
* Returns whether this factory is applicable for the type of the object.
*
* This implementation returns true
if the object is either the model's package or is an instance object of the model.
*
* @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 createXXX
methods.
*
*
* @generated
*/
protected RdlSwitch modelSwitch =
new RdlSwitch()
{
@Override
public Adapter caseRoot(Root object)
{
return createRootAdapter();
}
@Override
public Adapter caseInclude(Include object)
{
return createIncludeAdapter();
}
@Override
public Adapter casePropertyDefinition(PropertyDefinition object)
{
return createPropertyDefinitionAdapter();
}
@Override
public Adapter casePropertyDefault(PropertyDefault object)
{
return createPropertyDefaultAdapter();
}
@Override
public Adapter casePropertyUsage(PropertyUsage object)
{
return createPropertyUsageAdapter();
}
@Override
public Adapter caseComponentDefinition(ComponentDefinition object)
{
return createComponentDefinitionAdapter();
}
@Override
public Adapter caseInstantiation(Instantiation object)
{
return createInstantiationAdapter();
}
@Override
public Adapter caseComponentInstance(ComponentInstance object)
{
return createComponentInstanceAdapter();
}
@Override
public Adapter caseRange(Range object)
{
return createRangeAdapter();
}
@Override
public Adapter casePropertyAssignment(PropertyAssignment object)
{
return createPropertyAssignmentAdapter();
}
@Override
public Adapter caseDefaultProperyAssignment(DefaultProperyAssignment object)
{
return createDefaultProperyAssignmentAdapter();
}
@Override
public Adapter caseExplicitPropertyAssignment(ExplicitPropertyAssignment object)
{
return createExplicitPropertyAssignmentAdapter();
}
@Override
public Adapter casePostPropertyAssignment(PostPropertyAssignment object)
{
return createPostPropertyAssignmentAdapter();
}
@Override
public Adapter caseInstancePropertyRef(InstancePropertyRef object)
{
return createInstancePropertyRefAdapter();
}
@Override
public Adapter caseEntity(Entity object)
{
return createEntityAdapter();
}
@Override
public Adapter caseInstanceRef(InstanceRef object)
{
return createInstanceRefAdapter();
}
@Override
public Adapter casePropertyAssignmentRhs(PropertyAssignmentRhs object)
{
return createPropertyAssignmentRhsAdapter();
}
@Override
public Adapter caseConcat(Concat object)
{
return createConcatAdapter();
}
@Override
public Adapter caseConcatElem(ConcatElem object)
{
return createConcatElemAdapter();
}
@Override
public Adapter caseRValue(RValue object)
{
return createRValueAdapter();
}
@Override
public Adapter caseEnumDefinition(EnumDefinition object)
{
return createEnumDefinitionAdapter();
}
@Override
public Adapter caseEnumBody(EnumBody object)
{
return createEnumBodyAdapter();
}
@Override
public Adapter caseEnumEntry(EnumEntry object)
{
return createEnumEntryAdapter();
}
@Override
public Adapter caseEnumProperty(EnumProperty object)
{
return createEnumPropertyAdapter();
}
@Override
public Adapter caseEnumInstanceType(EnumInstanceType object)
{
return createEnumInstanceTypeAdapter();
}
@Override
public Adapter defaultCase(EObject object)
{
return createEObjectAdapter();
}
};
/**
* Creates an adapter for the target
.
*
*
* @param target the object to adapt.
* @return the adapter for the target
.
* @generated
*/
@Override
public Adapter createAdapter(Notifier target)
{
return modelSwitch.doSwitch((EObject)target);
}
/**
* Creates a new adapter for an object of class '{@link com.minres.rdl.rdl.Root Root}'.
*
* 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.
*
* @return the new adapter.
* @see com.minres.rdl.rdl.Root
* @generated
*/
public Adapter createRootAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.minres.rdl.rdl.Include Include}'.
*
* 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.
*
* @return the new adapter.
* @see com.minres.rdl.rdl.Include
* @generated
*/
public Adapter createIncludeAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.minres.rdl.rdl.PropertyDefinition Property Definition}'.
*
* 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.
*
* @return the new adapter.
* @see com.minres.rdl.rdl.PropertyDefinition
* @generated
*/
public Adapter createPropertyDefinitionAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.minres.rdl.rdl.PropertyDefault Property Default}'.
*
* 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.
*
* @return the new adapter.
* @see com.minres.rdl.rdl.PropertyDefault
* @generated
*/
public Adapter createPropertyDefaultAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.minres.rdl.rdl.PropertyUsage Property Usage}'.
*
* 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.
*
* @return the new adapter.
* @see com.minres.rdl.rdl.PropertyUsage
* @generated
*/
public Adapter createPropertyUsageAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.minres.rdl.rdl.ComponentDefinition Component Definition}'.
*
* 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.
*
* @return the new adapter.
* @see com.minres.rdl.rdl.ComponentDefinition
* @generated
*/
public Adapter createComponentDefinitionAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.minres.rdl.rdl.Instantiation Instantiation}'.
*
* 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.
*
* @return the new adapter.
* @see com.minres.rdl.rdl.Instantiation
* @generated
*/
public Adapter createInstantiationAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.minres.rdl.rdl.ComponentInstance Component Instance}'.
*
* 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.
*
* @return the new adapter.
* @see com.minres.rdl.rdl.ComponentInstance
* @generated
*/
public Adapter createComponentInstanceAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.minres.rdl.rdl.Range Range}'.
*
* 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.
*
* @return the new adapter.
* @see com.minres.rdl.rdl.Range
* @generated
*/
public Adapter createRangeAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.minres.rdl.rdl.PropertyAssignment Property Assignment}'.
*
* 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.
*
* @return the new adapter.
* @see com.minres.rdl.rdl.PropertyAssignment
* @generated
*/
public Adapter createPropertyAssignmentAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.minres.rdl.rdl.DefaultProperyAssignment Default Propery Assignment}'.
*
* 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.
*
* @return the new adapter.
* @see com.minres.rdl.rdl.DefaultProperyAssignment
* @generated
*/
public Adapter createDefaultProperyAssignmentAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.minres.rdl.rdl.ExplicitPropertyAssignment Explicit Property Assignment}'.
*
* 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.
*
* @return the new adapter.
* @see com.minres.rdl.rdl.ExplicitPropertyAssignment
* @generated
*/
public Adapter createExplicitPropertyAssignmentAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.minres.rdl.rdl.PostPropertyAssignment Post Property Assignment}'.
*
* 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.
*
* @return the new adapter.
* @see com.minres.rdl.rdl.PostPropertyAssignment
* @generated
*/
public Adapter createPostPropertyAssignmentAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.minres.rdl.rdl.InstancePropertyRef Instance Property Ref}'.
*
* 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.
*
* @return the new adapter.
* @see com.minres.rdl.rdl.InstancePropertyRef
* @generated
*/
public Adapter createInstancePropertyRefAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.minres.rdl.rdl.Entity Entity}'.
*
* 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.
*
* @return the new adapter.
* @see com.minres.rdl.rdl.Entity
* @generated
*/
public Adapter createEntityAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.minres.rdl.rdl.InstanceRef Instance Ref}'.
*
* 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.
*
* @return the new adapter.
* @see com.minres.rdl.rdl.InstanceRef
* @generated
*/
public Adapter createInstanceRefAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.minres.rdl.rdl.PropertyAssignmentRhs Property Assignment Rhs}'.
*
* 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.
*
* @return the new adapter.
* @see com.minres.rdl.rdl.PropertyAssignmentRhs
* @generated
*/
public Adapter createPropertyAssignmentRhsAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.minres.rdl.rdl.Concat Concat}'.
*
* 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.
*
* @return the new adapter.
* @see com.minres.rdl.rdl.Concat
* @generated
*/
public Adapter createConcatAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.minres.rdl.rdl.ConcatElem Concat Elem}'.
*
* 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.
*
* @return the new adapter.
* @see com.minres.rdl.rdl.ConcatElem
* @generated
*/
public Adapter createConcatElemAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.minres.rdl.rdl.RValue RValue}'.
*
* 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.
*
* @return the new adapter.
* @see com.minres.rdl.rdl.RValue
* @generated
*/
public Adapter createRValueAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.minres.rdl.rdl.EnumDefinition Enum Definition}'.
*
* 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.
*
* @return the new adapter.
* @see com.minres.rdl.rdl.EnumDefinition
* @generated
*/
public Adapter createEnumDefinitionAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.minres.rdl.rdl.EnumBody Enum Body}'.
*
* 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.
*
* @return the new adapter.
* @see com.minres.rdl.rdl.EnumBody
* @generated
*/
public Adapter createEnumBodyAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.minres.rdl.rdl.EnumEntry Enum Entry}'.
*
* 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.
*
* @return the new adapter.
* @see com.minres.rdl.rdl.EnumEntry
* @generated
*/
public Adapter createEnumEntryAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.minres.rdl.rdl.EnumProperty Enum Property}'.
*
* 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.
*
* @return the new adapter.
* @see com.minres.rdl.rdl.EnumProperty
* @generated
*/
public Adapter createEnumPropertyAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.minres.rdl.rdl.EnumInstanceType Enum Instance Type}'.
*
* 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.
*
* @return the new adapter.
* @see com.minres.rdl.rdl.EnumInstanceType
* @generated
*/
public Adapter createEnumInstanceTypeAdapter()
{
return null;
}
/**
* Creates a new adapter for the default case.
*
* This default implementation returns null.
*
* @return the new adapter.
* @generated
*/
public Adapter createEObjectAdapter()
{
return null;
}
} //RdlAdapterFactory