/** * <copyright> * </copyright> * * $Id$ */ package org.eclipse.mylyn.docs.epub.dc.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.eclipse.mylyn.docs.epub.dc.*; /** * <!-- 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.eclipse.mylyn.docs.epub.dc.DCPackage * @generated */ public class DCAdapterFactory extends AdapterFactoryImpl { /** * The cached model package. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected static DCPackage modelPackage; /** * Creates an instance of the adapter factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public DCAdapterFactory() { if (modelPackage == null) { modelPackage = DCPackage.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 DCSwitch<Adapter> modelSwitch = new DCSwitch<Adapter>() { @Override public Adapter caseTitle(Title object) { return createTitleAdapter(); } @Override public Adapter caseCreator(Creator object) { return createCreatorAdapter(); } @Override public Adapter caseSubject(Subject object) { return createSubjectAdapter(); } @Override public Adapter caseDescription(Description object) { return createDescriptionAdapter(); } @Override public Adapter casePublisher(Publisher object) { return createPublisherAdapter(); } @Override public Adapter caseContributor(Contributor object) { return createContributorAdapter(); } @Override public Adapter caseDate(Date object) { return createDateAdapter(); } @Override public Adapter caseType(Type object) { return createTypeAdapter(); } @Override public Adapter caseFormat(Format object) { return createFormatAdapter(); } @Override public Adapter caseIdentifier(Identifier object) { return createIdentifierAdapter(); } @Override public Adapter caseSource(Source object) { return createSourceAdapter(); } @Override public Adapter caseLanguage(Language object) { return createLanguageAdapter(); } @Override public Adapter caseRelation(Relation object) { return createRelationAdapter(); } @Override public Adapter caseCoverage(Coverage object) { return createCoverageAdapter(); } @Override public Adapter caseRights(Rights object) { return createRightsAdapter(); } @Override public Adapter caseDCType(DCType object) { return createDCTypeAdapter(); } @Override public Adapter caseLocalizedDCType(LocalizedDCType object) { return createLocalizedDCTypeAdapter(); } @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.eclipse.mylyn.docs.epub.dc.Title <em>Title</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.eclipse.mylyn.docs.epub.dc.Title * @generated */ public Adapter createTitleAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.mylyn.docs.epub.dc.Creator <em>Creator</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.eclipse.mylyn.docs.epub.dc.Creator * @generated */ public Adapter createCreatorAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.mylyn.docs.epub.dc.Subject <em>Subject</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.eclipse.mylyn.docs.epub.dc.Subject * @generated */ public Adapter createSubjectAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.mylyn.docs.epub.dc.Description <em>Description</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.eclipse.mylyn.docs.epub.dc.Description * @generated */ public Adapter createDescriptionAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.mylyn.docs.epub.dc.Publisher <em>Publisher</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.eclipse.mylyn.docs.epub.dc.Publisher * @generated */ public Adapter createPublisherAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.mylyn.docs.epub.dc.Contributor <em>Contributor</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.eclipse.mylyn.docs.epub.dc.Contributor * @generated */ public Adapter createContributorAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.mylyn.docs.epub.dc.Date <em>Date</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.eclipse.mylyn.docs.epub.dc.Date * @generated */ public Adapter createDateAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.mylyn.docs.epub.dc.Type <em>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.eclipse.mylyn.docs.epub.dc.Type * @generated */ public Adapter createTypeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.mylyn.docs.epub.dc.Format <em>Format</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.eclipse.mylyn.docs.epub.dc.Format * @generated */ public Adapter createFormatAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.mylyn.docs.epub.dc.Identifier <em>Identifier</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.eclipse.mylyn.docs.epub.dc.Identifier * @generated */ public Adapter createIdentifierAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.mylyn.docs.epub.dc.Source <em>Source</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.eclipse.mylyn.docs.epub.dc.Source * @generated */ public Adapter createSourceAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.mylyn.docs.epub.dc.Language <em>Language</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.eclipse.mylyn.docs.epub.dc.Language * @generated */ public Adapter createLanguageAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.mylyn.docs.epub.dc.Relation <em>Relation</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.eclipse.mylyn.docs.epub.dc.Relation * @generated */ public Adapter createRelationAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.mylyn.docs.epub.dc.Coverage <em>Coverage</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.eclipse.mylyn.docs.epub.dc.Coverage * @generated */ public Adapter createCoverageAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.mylyn.docs.epub.dc.Rights <em>Rights</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.eclipse.mylyn.docs.epub.dc.Rights * @generated */ public Adapter createRightsAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.mylyn.docs.epub.dc.DCType <em>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.eclipse.mylyn.docs.epub.dc.DCType * @generated */ public Adapter createDCTypeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.mylyn.docs.epub.dc.LocalizedDCType <em>Localized DC 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.eclipse.mylyn.docs.epub.dc.LocalizedDCType * @generated */ public Adapter createLocalizedDCTypeAdapter() { 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; } } //DCAdapterFactory