org.contextmapper.dsl.contextMappingDSL.util.ContextMappingDSLAdapterFactory Maven / Gradle / Ivy
/**
* generated by Xtext 2.20.0
*/
package org.contextmapper.dsl.contextMappingDSL.util;
import org.contextmapper.dsl.contextMappingDSL.*;
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 org.contextmapper.dsl.contextMappingDSL.ContextMappingDSLPackage
* @generated
*/
public class ContextMappingDSLAdapterFactory extends AdapterFactoryImpl
{
/**
* The cached model package.
*
*
* @generated
*/
protected static ContextMappingDSLPackage modelPackage;
/**
* Creates an instance of the adapter factory.
*
*
* @generated
*/
public ContextMappingDSLAdapterFactory()
{
if (modelPackage == null)
{
modelPackage = ContextMappingDSLPackage.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 ContextMappingDSLSwitch modelSwitch =
new ContextMappingDSLSwitch()
{
@Override
public Adapter caseContextMappingModel(ContextMappingModel object)
{
return createContextMappingModelAdapter();
}
@Override
public Adapter caseImport(Import object)
{
return createImportAdapter();
}
@Override
public Adapter caseContextMap(ContextMap object)
{
return createContextMapAdapter();
}
@Override
public Adapter caseBoundedContext(BoundedContext object)
{
return createBoundedContextAdapter();
}
@Override
public Adapter caseDomainPart(DomainPart object)
{
return createDomainPartAdapter();
}
@Override
public Adapter caseDomain(Domain object)
{
return createDomainAdapter();
}
@Override
public Adapter caseSubdomain(Subdomain object)
{
return createSubdomainAdapter();
}
@Override
public Adapter caseRelationship(Relationship object)
{
return createRelationshipAdapter();
}
@Override
public Adapter caseSymmetricRelationship(SymmetricRelationship object)
{
return createSymmetricRelationshipAdapter();
}
@Override
public Adapter casePartnership(Partnership object)
{
return createPartnershipAdapter();
}
@Override
public Adapter caseSharedKernel(SharedKernel object)
{
return createSharedKernelAdapter();
}
@Override
public Adapter caseUpstreamDownstreamRelationship(UpstreamDownstreamRelationship object)
{
return createUpstreamDownstreamRelationshipAdapter();
}
@Override
public Adapter caseCustomerSupplierRelationship(CustomerSupplierRelationship object)
{
return createCustomerSupplierRelationshipAdapter();
}
@Override
public Adapter caseAggregate(Aggregate object)
{
return createAggregateAdapter();
}
@Override
public Adapter caseUserRequirement(UserRequirement object)
{
return createUserRequirementAdapter();
}
@Override
public Adapter caseUseCase(UseCase object)
{
return createUseCaseAdapter();
}
@Override
public Adapter caseUserStory(UserStory object)
{
return createUserStoryAdapter();
}
@Override
public Adapter caseFeature(Feature object)
{
return createFeatureAdapter();
}
@Override
public Adapter caseSculptorModule(SculptorModule object)
{
return createSculptorModuleAdapter();
}
@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 org.contextmapper.dsl.contextMappingDSL.ContextMappingModel Context Mapping Model}'.
*
* 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 org.contextmapper.dsl.contextMappingDSL.ContextMappingModel
* @generated
*/
public Adapter createContextMappingModelAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.contextmapper.dsl.contextMappingDSL.Import Import}'.
*
* 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 org.contextmapper.dsl.contextMappingDSL.Import
* @generated
*/
public Adapter createImportAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.contextmapper.dsl.contextMappingDSL.ContextMap Context Map}'.
*
* 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 org.contextmapper.dsl.contextMappingDSL.ContextMap
* @generated
*/
public Adapter createContextMapAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.contextmapper.dsl.contextMappingDSL.BoundedContext Bounded Context}'.
*
* 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 org.contextmapper.dsl.contextMappingDSL.BoundedContext
* @generated
*/
public Adapter createBoundedContextAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.contextmapper.dsl.contextMappingDSL.DomainPart Domain Part}'.
*
* 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 org.contextmapper.dsl.contextMappingDSL.DomainPart
* @generated
*/
public Adapter createDomainPartAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.contextmapper.dsl.contextMappingDSL.Domain Domain}'.
*
* 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 org.contextmapper.dsl.contextMappingDSL.Domain
* @generated
*/
public Adapter createDomainAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.contextmapper.dsl.contextMappingDSL.Subdomain Subdomain}'.
*
* 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 org.contextmapper.dsl.contextMappingDSL.Subdomain
* @generated
*/
public Adapter createSubdomainAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.contextmapper.dsl.contextMappingDSL.Relationship Relationship}'.
*
* 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 org.contextmapper.dsl.contextMappingDSL.Relationship
* @generated
*/
public Adapter createRelationshipAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.contextmapper.dsl.contextMappingDSL.SymmetricRelationship Symmetric Relationship}'.
*
* 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 org.contextmapper.dsl.contextMappingDSL.SymmetricRelationship
* @generated
*/
public Adapter createSymmetricRelationshipAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.contextmapper.dsl.contextMappingDSL.Partnership Partnership}'.
*
* 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 org.contextmapper.dsl.contextMappingDSL.Partnership
* @generated
*/
public Adapter createPartnershipAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.contextmapper.dsl.contextMappingDSL.SharedKernel Shared Kernel}'.
*
* 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 org.contextmapper.dsl.contextMappingDSL.SharedKernel
* @generated
*/
public Adapter createSharedKernelAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.contextmapper.dsl.contextMappingDSL.UpstreamDownstreamRelationship Upstream Downstream Relationship}'.
*
* 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 org.contextmapper.dsl.contextMappingDSL.UpstreamDownstreamRelationship
* @generated
*/
public Adapter createUpstreamDownstreamRelationshipAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.contextmapper.dsl.contextMappingDSL.CustomerSupplierRelationship Customer Supplier Relationship}'.
*
* 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 org.contextmapper.dsl.contextMappingDSL.CustomerSupplierRelationship
* @generated
*/
public Adapter createCustomerSupplierRelationshipAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.contextmapper.dsl.contextMappingDSL.Aggregate Aggregate}'.
*
* 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 org.contextmapper.dsl.contextMappingDSL.Aggregate
* @generated
*/
public Adapter createAggregateAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.contextmapper.dsl.contextMappingDSL.UserRequirement User Requirement}'.
*
* 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 org.contextmapper.dsl.contextMappingDSL.UserRequirement
* @generated
*/
public Adapter createUserRequirementAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.contextmapper.dsl.contextMappingDSL.UseCase Use Case}'.
*
* 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 org.contextmapper.dsl.contextMappingDSL.UseCase
* @generated
*/
public Adapter createUseCaseAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.contextmapper.dsl.contextMappingDSL.UserStory User Story}'.
*
* 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 org.contextmapper.dsl.contextMappingDSL.UserStory
* @generated
*/
public Adapter createUserStoryAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.contextmapper.dsl.contextMappingDSL.Feature Feature}'.
*
* 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 org.contextmapper.dsl.contextMappingDSL.Feature
* @generated
*/
public Adapter createFeatureAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.contextmapper.dsl.contextMappingDSL.SculptorModule Sculptor Module}'.
*
* 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 org.contextmapper.dsl.contextMappingDSL.SculptorModule
* @generated
*/
public Adapter createSculptorModuleAdapter()
{
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;
}
} //ContextMappingDSLAdapterFactory