/**
* Copyright (c) 2013 MEDEVIT <office@medevit.at>.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* MEDEVIT <office@medevit.at> - initial API and implementation
*/
package ch.elexis.core.model.util;
import ch.elexis.core.model.*;
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 ch.elexis.core.model.ModelPackage
* @generated
*/
public class ModelAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static ModelPackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ModelAdapterFactory() {
if (modelPackage == null) {
modelPackage = ModelPackage.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 ModelSwitch<Adapter> modelSwitch =
new ModelSwitch<Adapter>() {
@Override
public Adapter caseIContact(IContact object) {
return createIContactAdapter();
}
@Override
public Adapter caseIPersistentObject(IPersistentObject object) {
return createIPersistentObjectAdapter();
}
@Override
public Adapter caseIXid(IXid object) {
return createIXidAdapter();
}
@Override
public Adapter caseICodeElement(ICodeElement object) {
return createICodeElementAdapter();
}
@Override
public Adapter caseIChangeListener(IChangeListener object) {
return createIChangeListenerAdapter();
}
@Override
public Adapter caseISticker(ISticker object) {
return createIStickerAdapter();
}
@Override
public Adapter caseIPerson(IPerson object) {
return createIPersonAdapter();
}
@Override
public Adapter caseIPatient(IPatient object) {
return createIPatientAdapter();
}
@Override
public Adapter caseIUser(IUser object) {
return createIUserAdapter();
}
@Override
public Adapter caseIdentifiable(Identifiable object) {
return createIdentifiableAdapter();
}
@Override
public Adapter caseDeleteable(Deleteable object) {
return createDeleteableAdapter();
}
@Override
public Adapter caseILabItem(ILabItem object) {
return createILabItemAdapter();
}
@Override
public Adapter caseILabResult(ILabResult object) {
return createILabResultAdapter();
}
@Override
public Adapter caseILabOrder(ILabOrder object) {
return createILabOrderAdapter();
}
@Override
public Adapter caseIPeriod(IPeriod object) {
return createIPeriodAdapter();
}
@Override
public Adapter caseIDocument(IDocument object) {
return createIDocumentAdapter();
}
@Override
public Adapter caseICategory(ICategory object) {
return createICategoryAdapter();
}
@Override
public Adapter caseIHistory(IHistory object) {
return createIHistoryAdapter();
}
@Override
public <T> Adapter caseComparable(Comparable<T> object) {
return createComparableAdapter();
}
@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 ch.elexis.core.model.IContact <em>IContact</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 ch.elexis.core.model.IContact
* @generated
*/
public Adapter createIContactAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link ch.elexis.core.model.IPersistentObject <em>IPersistent Object</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 ch.elexis.core.model.IPersistentObject
* @generated
*/
public Adapter createIPersistentObjectAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link ch.elexis.core.model.IXid <em>IXid</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 ch.elexis.core.model.IXid
* @generated
*/
public Adapter createIXidAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link ch.elexis.core.model.ICodeElement <em>ICode 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 ch.elexis.core.model.ICodeElement
* @generated
*/
public Adapter createICodeElementAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link ch.elexis.core.model.IChangeListener <em>IChange Listener</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 ch.elexis.core.model.IChangeListener
* @generated
*/
public Adapter createIChangeListenerAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link ch.elexis.core.model.ISticker <em>ISticker</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 ch.elexis.core.model.ISticker
* @generated
*/
public Adapter createIStickerAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link ch.elexis.core.model.IPerson <em>IPerson</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 ch.elexis.core.model.IPerson
* @generated
*/
public Adapter createIPersonAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link ch.elexis.core.model.IPatient <em>IPatient</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 ch.elexis.core.model.IPatient
* @generated
*/
public Adapter createIPatientAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link ch.elexis.core.model.IUser <em>IUser</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 ch.elexis.core.model.IUser
* @generated
*/
public Adapter createIUserAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link ch.elexis.core.model.Identifiable <em>Identifiable</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 ch.elexis.core.model.Identifiable
* @generated
*/
public Adapter createIdentifiableAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link ch.elexis.core.model.Deleteable <em>Deleteable</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 ch.elexis.core.model.Deleteable
* @generated
*/
public Adapter createDeleteableAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link ch.elexis.core.model.ILabItem <em>ILab Item</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 ch.elexis.core.model.ILabItem
* @generated
*/
public Adapter createILabItemAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link ch.elexis.core.model.ILabResult <em>ILab Result</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 ch.elexis.core.model.ILabResult
* @generated
*/
public Adapter createILabResultAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link ch.elexis.core.model.ILabOrder <em>ILab Order</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 ch.elexis.core.model.ILabOrder
* @generated
*/
public Adapter createILabOrderAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link ch.elexis.core.model.IPeriod <em>IPeriod</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 ch.elexis.core.model.IPeriod
* @generated
*/
public Adapter createIPeriodAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link ch.elexis.core.model.IDocument <em>IDocument</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 ch.elexis.core.model.IDocument
* @generated
*/
public Adapter createIDocumentAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link ch.elexis.core.model.ICategory <em>ICategory</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 ch.elexis.core.model.ICategory
* @generated
*/
public Adapter createICategoryAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link ch.elexis.core.model.IHistory <em>IHistory</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 ch.elexis.core.model.IHistory
* @generated
*/
public Adapter createIHistoryAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link java.lang.Comparable <em>Comparable</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 java.lang.Comparable
* @generated
*/
public Adapter createComparableAdapter() {
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;
}
} //ModelAdapterFactory