blob: 0c59d2cdfee51dc1c51e81c49c05ec7b0812da5a [file] [log] [blame]
/**
* Copyright (c) 2011, 2012 Ericsson AB and others.
*
* 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:
* Ericsson AB
*/
package org.eclipse.mylyn.reviews.r4e.internal.transform.resources.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.reviews.frame.core.model.Review;
import org.eclipse.mylyn.reviews.frame.core.model.ReviewComponent;
import org.eclipse.mylyn.reviews.frame.core.model.ReviewGroup;
import org.eclipse.mylyn.reviews.frame.core.model.SubModelRoot;
import org.eclipse.mylyn.reviews.r4e.core.model.R4EFormalReview;
import org.eclipse.mylyn.reviews.r4e.core.model.R4EReview;
import org.eclipse.mylyn.reviews.r4e.core.model.R4EReviewComponent;
import org.eclipse.mylyn.reviews.r4e.core.model.R4EReviewGroup;
import org.eclipse.mylyn.reviews.r4e.internal.transform.resources.*;
/**
* <!-- 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.reviews.r4e.internal.transform.resources.TransResPackage
* @generated
*/
public class TransResAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
protected static TransResPackage modelPackage;
/**
* Creates an instance of the adapter factory. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
public TransResAdapterFactory() {
if (modelPackage == null) {
modelPackage = TransResPackage.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 TransResSwitch<Adapter> modelSwitch = new TransResSwitch<Adapter>() {
@Override
public Adapter caseReviewGroupRes(ReviewGroupRes object) {
return createReviewGroupResAdapter();
}
@Override
public Adapter caseReviewRes(ReviewRes object) {
return createReviewResAdapter();
}
@Override
public Adapter caseReviewComponent(ReviewComponent object) {
return createReviewComponentAdapter();
}
@Override
public Adapter caseSubModelRoot(SubModelRoot object) {
return createSubModelRootAdapter();
}
@Override
public Adapter caseReviewGroup(ReviewGroup object) {
return createReviewGroupAdapter();
}
@Override
public Adapter caseR4EReviewComponent(R4EReviewComponent object) {
return createR4EReviewComponentAdapter();
}
@Override
public Adapter caseR4EReviewGroup(R4EReviewGroup object) {
return createR4EReviewGroupAdapter();
}
@Override
public Adapter caseReview(Review object) {
return createReviewAdapter();
}
@Override
public Adapter caseR4EReview(R4EReview object) {
return createR4EReviewAdapter();
}
@Override
public Adapter caseR4EFormalReview(R4EFormalReview object) {
return createR4EFormalReviewAdapter();
}
@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.reviews.r4e.internal.transform.resources.ReviewGroupRes <em>Review Group Res</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.reviews.r4e.internal.transform.resources.ReviewGroupRes
* @generated
*/
public Adapter createReviewGroupResAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '
* {@link org.eclipse.mylyn.reviews.r4e.internal.transform.resources.ReviewRes <em>Review Res</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.reviews.r4e.internal.transform.resources.ReviewRes
* @generated
*/
public Adapter createReviewResAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.mylyn.reviews.frame.core.model.ReviewComponent
* <em>Review Component</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.reviews.frame.core.model.ReviewComponent
* @generated
*/
public Adapter createReviewComponentAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.mylyn.reviews.frame.core.model.SubModelRoot
* <em>Sub Model 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.eclipse.mylyn.reviews.frame.core.model.SubModelRoot
* @generated
*/
public Adapter createSubModelRootAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.mylyn.reviews.frame.core.model.ReviewGroup
* <em>Review Group</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.reviews.frame.core.model.ReviewGroup
* @generated
*/
public Adapter createReviewGroupAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.mylyn.reviews.r4e.core.model.R4EReviewComponent
* <em>R4E Review Component</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.reviews.r4e.core.model.R4EReviewComponent
* @generated
*/
public Adapter createR4EReviewComponentAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.mylyn.reviews.r4e.core.model.R4EReviewGroup
* <em>R4E Review Group</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.reviews.r4e.core.model.R4EReviewGroup
* @generated
*/
public Adapter createR4EReviewGroupAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.mylyn.reviews.frame.core.model.Review
* <em>Review</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.reviews.frame.core.model.Review
* @generated
*/
public Adapter createReviewAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.mylyn.reviews.r4e.core.model.R4EReview
* <em>R4E Review</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.reviews.r4e.core.model.R4EReview
* @generated
*/
public Adapter createR4EReviewAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.mylyn.reviews.r4e.core.model.R4EFormalReview
* <em>R4E Formal Review</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.reviews.r4e.core.model.R4EFormalReview
* @generated
*/
public Adapter createR4EFormalReviewAdapter() {
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;
}
} //TransResAdapterFactory