/** */ package org.archstudio.xadl3.structure_3_0.util; import org.archstudio.xadl3.structure_3_0.Brick; import org.archstudio.xadl3.structure_3_0.Component; import org.archstudio.xadl3.structure_3_0.Connector; import org.archstudio.xadl3.structure_3_0.DocumentRoot; import org.archstudio.xadl3.structure_3_0.Interface; import org.archstudio.xadl3.structure_3_0.InterfaceMapping; import org.archstudio.xadl3.structure_3_0.Link; import org.archstudio.xadl3.structure_3_0.Structure; import org.archstudio.xadl3.structure_3_0.Structure_3_0Package; import org.archstudio.xadl3.structure_3_0.SubStructure; 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 org.archstudio.xadl3.structure_3_0.Structure_3_0Package * @generated */ public class Structure_3_0AdapterFactory extends AdapterFactoryImpl { /** * The cached model package. <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated */ protected static Structure_3_0Package modelPackage; /** * Creates an instance of the adapter factory. <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated */ public Structure_3_0AdapterFactory() { if (modelPackage == null) { modelPackage = Structure_3_0Package.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 Structure_3_0Switch<Adapter> modelSwitch = new Structure_3_0Switch<Adapter>() { @Override public Adapter caseBrick(Brick object) { return createBrickAdapter(); } @Override public Adapter caseComponent(Component object) { return createComponentAdapter(); } @Override public Adapter caseConnector(Connector object) { return createConnectorAdapter(); } @Override public Adapter caseDocumentRoot(DocumentRoot object) { return createDocumentRootAdapter(); } @Override public Adapter caseInterface(Interface object) { return createInterfaceAdapter(); } @Override public Adapter caseInterfaceMapping(InterfaceMapping object) { return createInterfaceMappingAdapter(); } @Override public Adapter caseLink(Link object) { return createLinkAdapter(); } @Override public Adapter caseStructure(Structure object) { return createStructureAdapter(); } @Override public Adapter caseSubStructure(SubStructure object) { return createSubStructureAdapter(); } @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.archstudio.xadl3.structure_3_0.Brick <em>Brick</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.archstudio.xadl3.structure_3_0.Brick * @generated */ public Adapter createBrickAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.archstudio.xadl3.structure_3_0.Component * <em>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.archstudio.xadl3.structure_3_0.Component * @generated */ public Adapter createComponentAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.archstudio.xadl3.structure_3_0.Connector * <em>Connector</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.archstudio.xadl3.structure_3_0.Connector * @generated */ public Adapter createConnectorAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.archstudio.xadl3.structure_3_0.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.archstudio.xadl3.structure_3_0.DocumentRoot * @generated */ public Adapter createDocumentRootAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.archstudio.xadl3.structure_3_0.Interface * <em>Interface</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.archstudio.xadl3.structure_3_0.Interface * @generated */ public Adapter createInterfaceAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.archstudio.xadl3.structure_3_0.InterfaceMapping * <em>Interface Mapping</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.archstudio.xadl3.structure_3_0.InterfaceMapping * @generated */ public Adapter createInterfaceMappingAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.archstudio.xadl3.structure_3_0.Link <em>Link</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.archstudio.xadl3.structure_3_0.Link * @generated */ public Adapter createLinkAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.archstudio.xadl3.structure_3_0.Structure * <em>Structure</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.archstudio.xadl3.structure_3_0.Structure * @generated */ public Adapter createStructureAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.archstudio.xadl3.structure_3_0.SubStructure * <em>Sub Structure</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.archstudio.xadl3.structure_3_0.SubStructure * @generated */ public Adapter createSubStructureAdapter() { 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; } } // Structure_3_0AdapterFactory