/*******************************************************************************
* Copyright (c) 2006-2012
* Software Technology Group, Dresden University of Technology
* DevBoost GmbH, Berlin, Amtsgericht Charlottenburg, HRB 140026
*
* 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:
* Software Technology Group - TU Dresden, Germany;
* DevBoost GmbH - Berlin, Germany
* - initial API and implementation
******************************************************************************/
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package org.oasisopen.names.tc.opendocument.xmlns.presentation.util;
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;
import org.oasisopen.names.tc.opendocument.xmlns.presentation.AnimationGroupType;
import org.oasisopen.names.tc.opendocument.xmlns.presentation.AnimationsType1;
import org.oasisopen.names.tc.opendocument.xmlns.presentation.DateTimeDeclType;
import org.oasisopen.names.tc.opendocument.xmlns.presentation.DateTimeType;
import org.oasisopen.names.tc.opendocument.xmlns.presentation.DimType;
import org.oasisopen.names.tc.opendocument.xmlns.presentation.DocumentRoot;
import org.oasisopen.names.tc.opendocument.xmlns.presentation.EventListenerType;
import org.oasisopen.names.tc.opendocument.xmlns.presentation.FooterDeclType;
import org.oasisopen.names.tc.opendocument.xmlns.presentation.FooterType;
import org.oasisopen.names.tc.opendocument.xmlns.presentation.HeaderDeclType;
import org.oasisopen.names.tc.opendocument.xmlns.presentation.HeaderType;
import org.oasisopen.names.tc.opendocument.xmlns.presentation.HideShapeType;
import org.oasisopen.names.tc.opendocument.xmlns.presentation.HideTextType;
import org.oasisopen.names.tc.opendocument.xmlns.presentation.NotesType;
import org.oasisopen.names.tc.opendocument.xmlns.presentation.PlaceholderType;
import org.oasisopen.names.tc.opendocument.xmlns.presentation.PlayType;
import org.oasisopen.names.tc.opendocument.xmlns.presentation.PresentationPackage;
import org.oasisopen.names.tc.opendocument.xmlns.presentation.SettingsType;
import org.oasisopen.names.tc.opendocument.xmlns.presentation.ShowShapeType;
import org.oasisopen.names.tc.opendocument.xmlns.presentation.ShowTextType;
import org.oasisopen.names.tc.opendocument.xmlns.presentation.ShowType;
import org.oasisopen.names.tc.opendocument.xmlns.presentation.SoundType;
/**
* <!-- 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.oasisopen.names.tc.opendocument.xmlns.presentation.PresentationPackage
* @generated
*/
public class PresentationAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static PresentationPackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public PresentationAdapterFactory() {
if (modelPackage == null) {
modelPackage = PresentationPackage.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 PresentationSwitch<Adapter> modelSwitch =
new PresentationSwitch<Adapter>() {
@Override
public Adapter caseAnimationGroupType(AnimationGroupType object) {
return createAnimationGroupTypeAdapter();
}
@Override
public Adapter caseAnimationsType1(AnimationsType1 object) {
return createAnimationsType1Adapter();
}
@Override
public Adapter caseDateTimeDeclType(DateTimeDeclType object) {
return createDateTimeDeclTypeAdapter();
}
@Override
public Adapter caseDateTimeType(DateTimeType object) {
return createDateTimeTypeAdapter();
}
@Override
public Adapter caseDimType(DimType object) {
return createDimTypeAdapter();
}
@Override
public Adapter caseEventListenerType(EventListenerType object) {
return createEventListenerTypeAdapter();
}
@Override
public Adapter caseFooterDeclType(FooterDeclType object) {
return createFooterDeclTypeAdapter();
}
@Override
public Adapter caseFooterType(FooterType object) {
return createFooterTypeAdapter();
}
@Override
public Adapter caseHeaderDeclType(HeaderDeclType object) {
return createHeaderDeclTypeAdapter();
}
@Override
public Adapter caseHeaderType(HeaderType object) {
return createHeaderTypeAdapter();
}
@Override
public Adapter caseHideShapeType(HideShapeType object) {
return createHideShapeTypeAdapter();
}
@Override
public Adapter caseHideTextType(HideTextType object) {
return createHideTextTypeAdapter();
}
@Override
public Adapter caseNotesType(NotesType object) {
return createNotesTypeAdapter();
}
@Override
public Adapter casePlaceholderType(PlaceholderType object) {
return createPlaceholderTypeAdapter();
}
@Override
public Adapter casePlayType(PlayType object) {
return createPlayTypeAdapter();
}
@Override
public Adapter caseSettingsType(SettingsType object) {
return createSettingsTypeAdapter();
}
@Override
public Adapter caseShowShapeType(ShowShapeType object) {
return createShowShapeTypeAdapter();
}
@Override
public Adapter caseShowTextType(ShowTextType object) {
return createShowTextTypeAdapter();
}
@Override
public Adapter caseShowType(ShowType object) {
return createShowTypeAdapter();
}
@Override
public Adapter caseSoundType(SoundType object) {
return createSoundTypeAdapter();
}
@Override
public Adapter caseDocumentRoot(DocumentRoot object) {
return createDocumentRootAdapter();
}
@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.oasisopen.names.tc.opendocument.xmlns.presentation.AnimationGroupType <em>Animation Group Type</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.oasisopen.names.tc.opendocument.xmlns.presentation.AnimationGroupType
* @generated
*/
public Adapter createAnimationGroupTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.presentation.AnimationsType1 <em>Animations Type1</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.oasisopen.names.tc.opendocument.xmlns.presentation.AnimationsType1
* @generated
*/
public Adapter createAnimationsType1Adapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.presentation.DateTimeDeclType <em>Date Time Decl Type</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.oasisopen.names.tc.opendocument.xmlns.presentation.DateTimeDeclType
* @generated
*/
public Adapter createDateTimeDeclTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.presentation.DateTimeType <em>Date Time Type</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.oasisopen.names.tc.opendocument.xmlns.presentation.DateTimeType
* @generated
*/
public Adapter createDateTimeTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.presentation.DimType <em>Dim Type</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.oasisopen.names.tc.opendocument.xmlns.presentation.DimType
* @generated
*/
public Adapter createDimTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.presentation.EventListenerType <em>Event Listener Type</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.oasisopen.names.tc.opendocument.xmlns.presentation.EventListenerType
* @generated
*/
public Adapter createEventListenerTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.presentation.FooterDeclType <em>Footer Decl Type</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.oasisopen.names.tc.opendocument.xmlns.presentation.FooterDeclType
* @generated
*/
public Adapter createFooterDeclTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.presentation.FooterType <em>Footer Type</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.oasisopen.names.tc.opendocument.xmlns.presentation.FooterType
* @generated
*/
public Adapter createFooterTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.presentation.HeaderDeclType <em>Header Decl Type</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.oasisopen.names.tc.opendocument.xmlns.presentation.HeaderDeclType
* @generated
*/
public Adapter createHeaderDeclTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.presentation.HeaderType <em>Header Type</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.oasisopen.names.tc.opendocument.xmlns.presentation.HeaderType
* @generated
*/
public Adapter createHeaderTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.presentation.HideShapeType <em>Hide Shape Type</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.oasisopen.names.tc.opendocument.xmlns.presentation.HideShapeType
* @generated
*/
public Adapter createHideShapeTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.presentation.HideTextType <em>Hide Text Type</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.oasisopen.names.tc.opendocument.xmlns.presentation.HideTextType
* @generated
*/
public Adapter createHideTextTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.presentation.NotesType <em>Notes Type</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.oasisopen.names.tc.opendocument.xmlns.presentation.NotesType
* @generated
*/
public Adapter createNotesTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.presentation.PlaceholderType <em>Placeholder Type</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.oasisopen.names.tc.opendocument.xmlns.presentation.PlaceholderType
* @generated
*/
public Adapter createPlaceholderTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.presentation.PlayType <em>Play Type</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.oasisopen.names.tc.opendocument.xmlns.presentation.PlayType
* @generated
*/
public Adapter createPlayTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.presentation.SettingsType <em>Settings Type</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.oasisopen.names.tc.opendocument.xmlns.presentation.SettingsType
* @generated
*/
public Adapter createSettingsTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.presentation.ShowShapeType <em>Show Shape Type</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.oasisopen.names.tc.opendocument.xmlns.presentation.ShowShapeType
* @generated
*/
public Adapter createShowShapeTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.presentation.ShowTextType <em>Show Text Type</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.oasisopen.names.tc.opendocument.xmlns.presentation.ShowTextType
* @generated
*/
public Adapter createShowTextTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.presentation.ShowType <em>Show Type</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.oasisopen.names.tc.opendocument.xmlns.presentation.ShowType
* @generated
*/
public Adapter createShowTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.presentation.SoundType <em>Sound Type</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.oasisopen.names.tc.opendocument.xmlns.presentation.SoundType
* @generated
*/
public Adapter createSoundTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.presentation.DocumentRoot <em>Document Root</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.oasisopen.names.tc.opendocument.xmlns.presentation.DocumentRoot
* @generated
*/
public Adapter createDocumentRootAdapter() {
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;
}
} //PresentationAdapterFactory