/*******************************************************************************
* 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.office.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.office.AnnotationType;
import org.oasisopen.names.tc.opendocument.xmlns.office.AutomaticStylesType;
import org.oasisopen.names.tc.opendocument.xmlns.office.ChangeInfoType;
import org.oasisopen.names.tc.opendocument.xmlns.office.ChartType;
import org.oasisopen.names.tc.opendocument.xmlns.office.DocumentContentType;
import org.oasisopen.names.tc.opendocument.xmlns.office.DocumentMetaType;
import org.oasisopen.names.tc.opendocument.xmlns.office.DocumentRoot;
import org.oasisopen.names.tc.opendocument.xmlns.office.DocumentSettingsType;
import org.oasisopen.names.tc.opendocument.xmlns.office.DocumentStylesType;
import org.oasisopen.names.tc.opendocument.xmlns.office.DocumentType;
import org.oasisopen.names.tc.opendocument.xmlns.office.DrawingType;
import org.oasisopen.names.tc.opendocument.xmlns.office.EventListenersType;
import org.oasisopen.names.tc.opendocument.xmlns.office.FontFaceDeclsType;
import org.oasisopen.names.tc.opendocument.xmlns.office.FormsType;
import org.oasisopen.names.tc.opendocument.xmlns.office.MasterStylesType;
import org.oasisopen.names.tc.opendocument.xmlns.office.OfficePackage;
import org.oasisopen.names.tc.opendocument.xmlns.office.PresentationType;
import org.oasisopen.names.tc.opendocument.xmlns.office.ScriptType;
import org.oasisopen.names.tc.opendocument.xmlns.office.ScriptsType;
import org.oasisopen.names.tc.opendocument.xmlns.office.SettingsType;
import org.oasisopen.names.tc.opendocument.xmlns.office.SpreadsheetType;
import org.oasisopen.names.tc.opendocument.xmlns.office.StylesType;
import org.oasisopen.names.tc.opendocument.xmlns.office.TextType;
import org.oasisopen.names.tc.opendocument.xmlns.text.OfficeMeta;
/**
* <!-- 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.office.OfficePackage
* @generated
*/
public class OfficeAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static OfficePackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public OfficeAdapterFactory() {
if (modelPackage == null) {
modelPackage = OfficePackage.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 OfficeSwitch<Adapter> modelSwitch =
new OfficeSwitch<Adapter>() {
@Override
public Adapter caseAnnotationType(AnnotationType object) {
return createAnnotationTypeAdapter();
}
@Override
public Adapter caseAutomaticStylesType(AutomaticStylesType object) {
return createAutomaticStylesTypeAdapter();
}
@Override
public Adapter caseChangeInfoType(ChangeInfoType object) {
return createChangeInfoTypeAdapter();
}
@Override
public Adapter caseChartType(ChartType object) {
return createChartTypeAdapter();
}
@Override
public Adapter caseDocumentContentType(DocumentContentType object) {
return createDocumentContentTypeAdapter();
}
@Override
public Adapter caseDocumentMetaType(DocumentMetaType object) {
return createDocumentMetaTypeAdapter();
}
@Override
public Adapter caseDocumentSettingsType(DocumentSettingsType object) {
return createDocumentSettingsTypeAdapter();
}
@Override
public Adapter caseDocumentStylesType(DocumentStylesType object) {
return createDocumentStylesTypeAdapter();
}
@Override
public Adapter caseDocumentType(DocumentType object) {
return createDocumentTypeAdapter();
}
@Override
public Adapter caseDrawingType(DrawingType object) {
return createDrawingTypeAdapter();
}
@Override
public Adapter caseEventListenersType(EventListenersType object) {
return createEventListenersTypeAdapter();
}
@Override
public Adapter caseFontFaceDeclsType(FontFaceDeclsType object) {
return createFontFaceDeclsTypeAdapter();
}
@Override
public Adapter caseFormsType(FormsType object) {
return createFormsTypeAdapter();
}
@Override
public Adapter caseMasterStylesType(MasterStylesType object) {
return createMasterStylesTypeAdapter();
}
@Override
public Adapter casePresentationType(PresentationType object) {
return createPresentationTypeAdapter();
}
@Override
public Adapter caseScriptsType(ScriptsType object) {
return createScriptsTypeAdapter();
}
@Override
public Adapter caseScriptType(ScriptType object) {
return createScriptTypeAdapter();
}
@Override
public Adapter caseSettingsType(SettingsType object) {
return createSettingsTypeAdapter();
}
@Override
public Adapter caseSpreadsheetType(SpreadsheetType object) {
return createSpreadsheetTypeAdapter();
}
@Override
public Adapter caseStylesType(StylesType object) {
return createStylesTypeAdapter();
}
@Override
public Adapter caseTextType(TextType object) {
return createTextTypeAdapter();
}
@Override
public Adapter caseDocumentRoot(DocumentRoot object) {
return createDocumentRootAdapter();
}
@Override
public Adapter caseOfficeMeta(OfficeMeta object) {
return createOfficeMetaAdapter();
}
@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.office.AnnotationType <em>Annotation 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.office.AnnotationType
* @generated
*/
public Adapter createAnnotationTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.office.AutomaticStylesType <em>Automatic Styles 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.office.AutomaticStylesType
* @generated
*/
public Adapter createAutomaticStylesTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.office.ChangeInfoType <em>Change Info 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.office.ChangeInfoType
* @generated
*/
public Adapter createChangeInfoTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.office.ChartType <em>Chart 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.office.ChartType
* @generated
*/
public Adapter createChartTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.office.DocumentContentType <em>Document Content 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.office.DocumentContentType
* @generated
*/
public Adapter createDocumentContentTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.office.DocumentMetaType <em>Document Meta 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.office.DocumentMetaType
* @generated
*/
public Adapter createDocumentMetaTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.office.DocumentSettingsType <em>Document 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.office.DocumentSettingsType
* @generated
*/
public Adapter createDocumentSettingsTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.office.DocumentStylesType <em>Document Styles 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.office.DocumentStylesType
* @generated
*/
public Adapter createDocumentStylesTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.office.DocumentType <em>Document 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.office.DocumentType
* @generated
*/
public Adapter createDocumentTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.office.DrawingType <em>Drawing 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.office.DrawingType
* @generated
*/
public Adapter createDrawingTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.office.EventListenersType <em>Event Listeners 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.office.EventListenersType
* @generated
*/
public Adapter createEventListenersTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.office.FontFaceDeclsType <em>Font Face Decls 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.office.FontFaceDeclsType
* @generated
*/
public Adapter createFontFaceDeclsTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.office.FormsType <em>Forms 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.office.FormsType
* @generated
*/
public Adapter createFormsTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.office.MasterStylesType <em>Master Styles 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.office.MasterStylesType
* @generated
*/
public Adapter createMasterStylesTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.office.PresentationType <em>Presentation 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.office.PresentationType
* @generated
*/
public Adapter createPresentationTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.office.ScriptsType <em>Scripts 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.office.ScriptsType
* @generated
*/
public Adapter createScriptsTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.office.ScriptType <em>Script 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.office.ScriptType
* @generated
*/
public Adapter createScriptTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.office.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.office.SettingsType
* @generated
*/
public Adapter createSettingsTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.office.SpreadsheetType <em>Spreadsheet 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.office.SpreadsheetType
* @generated
*/
public Adapter createSpreadsheetTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.office.StylesType <em>Styles 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.office.StylesType
* @generated
*/
public Adapter createStylesTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.office.TextType <em>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.office.TextType
* @generated
*/
public Adapter createTextTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.office.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.office.DocumentRoot
* @generated
*/
public Adapter createDocumentRootAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.text.OfficeMeta <em>Office Meta</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.text.OfficeMeta
* @generated
*/
public Adapter createOfficeMetaAdapter() {
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;
}
} //OfficeAdapterFactory