001/** 002 */ 003package org.nasdanika.rag.model.util; 004 005import org.eclipse.emf.common.notify.Adapter; 006import org.eclipse.emf.common.notify.Notifier; 007 008import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; 009 010import org.eclipse.emf.ecore.EObject; 011 012import org.nasdanika.ncore.StringIdentity; 013 014import org.nasdanika.rag.model.*; 015 016/** 017 * <!-- begin-user-doc --> 018 * The <b>Adapter Factory</b> for the model. 019 * It provides an adapter <code>createXXX</code> method for each class of the model. 020 * <!-- end-user-doc --> 021 * @see org.nasdanika.rag.model.RagPackage 022 * @generated 023 */ 024public class RagAdapterFactory extends AdapterFactoryImpl { 025 /** 026 * The cached model package. 027 * <!-- begin-user-doc --> 028 * <!-- end-user-doc --> 029 * @generated 030 */ 031 protected static RagPackage modelPackage; 032 033 /** 034 * Creates an instance of the adapter factory. 035 * <!-- begin-user-doc --> 036 * <!-- end-user-doc --> 037 * @generated 038 */ 039 public RagAdapterFactory() { 040 if (modelPackage == null) { 041 modelPackage = RagPackage.eINSTANCE; 042 } 043 } 044 045 /** 046 * Returns whether this factory is applicable for the type of the object. 047 * <!-- begin-user-doc --> 048 * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. 049 * <!-- end-user-doc --> 050 * @return whether this factory is applicable for the type of the object. 051 * @generated 052 */ 053 @Override 054 public boolean isFactoryForType(Object object) { 055 if (object == modelPackage) { 056 return true; 057 } 058 if (object instanceof EObject) { 059 return ((EObject)object).eClass().getEPackage() == modelPackage; 060 } 061 return false; 062 } 063 064 /** 065 * The switch that delegates to the <code>createXXX</code> methods. 066 * <!-- begin-user-doc --> 067 * <!-- end-user-doc --> 068 * @generated 069 */ 070 protected RagSwitch<Adapter> modelSwitch = 071 new RagSwitch<Adapter>() { 072 @Override 073 public Adapter caseDoubleVectorStringItem(DoubleVectorStringItem object) { 074 return createDoubleVectorStringItemAdapter(); 075 } 076 @Override 077 public Adapter caseDoubleVectorStringStore(DoubleVectorStringStore object) { 078 return createDoubleVectorStringStoreAdapter(); 079 } 080 @Override 081 public Adapter caseFloatVectorStringItem(FloatVectorStringItem object) { 082 return createFloatVectorStringItemAdapter(); 083 } 084 @Override 085 public Adapter caseFloatVectorStringStore(FloatVectorStringStore object) { 086 return createFloatVectorStringStoreAdapter(); 087 } 088 @Override 089 public Adapter caseStringIdentity(StringIdentity object) { 090 return createStringIdentityAdapter(); 091 } 092 @Override 093 public Adapter defaultCase(EObject object) { 094 return createEObjectAdapter(); 095 } 096 }; 097 098 /** 099 * Creates an adapter for the <code>target</code>. 100 * <!-- begin-user-doc --> 101 * <!-- end-user-doc --> 102 * @param target the object to adapt. 103 * @return the adapter for the <code>target</code>. 104 * @generated 105 */ 106 @Override 107 public Adapter createAdapter(Notifier target) { 108 return modelSwitch.doSwitch((EObject)target); 109 } 110 111 112 /** 113 * Creates a new adapter for an object of class '{@link org.nasdanika.rag.model.DoubleVectorStringItem <em>Double Vector String Item</em>}'. 114 * <!-- begin-user-doc --> 115 * This default implementation returns null so that we can easily ignore cases; 116 * it's useful to ignore a case when inheritance will catch all the cases anyway. 117 * <!-- end-user-doc --> 118 * @return the new adapter. 119 * @see org.nasdanika.rag.model.DoubleVectorStringItem 120 * @generated 121 */ 122 public Adapter createDoubleVectorStringItemAdapter() { 123 return null; 124 } 125 126 /** 127 * Creates a new adapter for an object of class '{@link org.nasdanika.rag.model.DoubleVectorStringStore <em>Double Vector String Store</em>}'. 128 * <!-- begin-user-doc --> 129 * This default implementation returns null so that we can easily ignore cases; 130 * it's useful to ignore a case when inheritance will catch all the cases anyway. 131 * <!-- end-user-doc --> 132 * @return the new adapter. 133 * @see org.nasdanika.rag.model.DoubleVectorStringStore 134 * @generated 135 */ 136 public Adapter createDoubleVectorStringStoreAdapter() { 137 return null; 138 } 139 140 /** 141 * Creates a new adapter for an object of class '{@link org.nasdanika.rag.model.FloatVectorStringItem <em>Float Vector String Item</em>}'. 142 * <!-- begin-user-doc --> 143 * This default implementation returns null so that we can easily ignore cases; 144 * it's useful to ignore a case when inheritance will catch all the cases anyway. 145 * <!-- end-user-doc --> 146 * @return the new adapter. 147 * @see org.nasdanika.rag.model.FloatVectorStringItem 148 * @generated 149 */ 150 public Adapter createFloatVectorStringItemAdapter() { 151 return null; 152 } 153 154 /** 155 * Creates a new adapter for an object of class '{@link org.nasdanika.rag.model.FloatVectorStringStore <em>Float Vector String Store</em>}'. 156 * <!-- begin-user-doc --> 157 * This default implementation returns null so that we can easily ignore cases; 158 * it's useful to ignore a case when inheritance will catch all the cases anyway. 159 * <!-- end-user-doc --> 160 * @return the new adapter. 161 * @see org.nasdanika.rag.model.FloatVectorStringStore 162 * @generated 163 */ 164 public Adapter createFloatVectorStringStoreAdapter() { 165 return null; 166 } 167 168 /** 169 * Creates a new adapter for an object of class '{@link org.nasdanika.ncore.StringIdentity <em>String Identity</em>}'. 170 * <!-- begin-user-doc --> 171 * This default implementation returns null so that we can easily ignore cases; 172 * it's useful to ignore a case when inheritance will catch all the cases anyway. 173 * <!-- end-user-doc --> 174 * @return the new adapter. 175 * @see org.nasdanika.ncore.StringIdentity 176 * @generated 177 */ 178 public Adapter createStringIdentityAdapter() { 179 return null; 180 } 181 182 /** 183 * Creates a new adapter for the default case. 184 * <!-- begin-user-doc --> 185 * This default implementation returns null. 186 * <!-- end-user-doc --> 187 * @return the new adapter. 188 * @generated 189 */ 190 public Adapter createEObjectAdapter() { 191 return null; 192 } 193 194} //RagAdapterFactory