diff options
Diffstat (limited to 'tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/samples/emf/hibernate/usertype/util/UsertypeAdapterFactory.java')
-rwxr-xr-x | tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/samples/emf/hibernate/usertype/util/UsertypeAdapterFactory.java | 138 |
1 files changed, 70 insertions, 68 deletions
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/samples/emf/hibernate/usertype/util/UsertypeAdapterFactory.java b/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/samples/emf/hibernate/usertype/util/UsertypeAdapterFactory.java index 6d752d50a..994047de0 100755 --- a/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/samples/emf/hibernate/usertype/util/UsertypeAdapterFactory.java +++ b/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/samples/emf/hibernate/usertype/util/UsertypeAdapterFactory.java @@ -10,33 +10,30 @@ 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.emf.teneo.samples.emf.hibernate.usertype.*; import org.eclipse.emf.teneo.samples.emf.hibernate.usertype.Address; +import org.eclipse.emf.teneo.samples.emf.hibernate.usertype.Certificate; import org.eclipse.emf.teneo.samples.emf.hibernate.usertype.City; import org.eclipse.emf.teneo.samples.emf.hibernate.usertype.Person; import org.eclipse.emf.teneo.samples.emf.hibernate.usertype.UsertypePackage; /** - * <!-- 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 --> + * <!-- 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.emf.teneo.samples.emf.hibernate.usertype.UsertypePackage * @generated */ public class UsertypeAdapterFactory extends AdapterFactoryImpl { /** - * The cached model package. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * The cached model package. <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ protected static UsertypePackage modelPackage; /** - * Creates an instance of the adapter factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * Creates an instance of the adapter factory. <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ public UsertypeAdapterFactory() { @@ -46,10 +43,10 @@ public class UsertypeAdapterFactory extends AdapterFactoryImpl { } /** - * 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 --> + * 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 */ @@ -58,55 +55,58 @@ public class UsertypeAdapterFactory extends AdapterFactoryImpl { return true; } if (object instanceof EObject) { - return ((EObject)object).eClass().getEPackage() == modelPackage; + return ((EObject) object).eClass().getEPackage() == modelPackage; } return false; } /** - * The switch that delegates to the <code>createXXX</code> methods. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * The switch that delegates to the <code>createXXX</code> methods. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * * @generated */ - protected UsertypeSwitch modelSwitch = - new UsertypeSwitch() { - public Object casePerson(Person object) { - return createPersonAdapter(); - } - public Object caseAddress(Address object) { - return createAddressAdapter(); - } - public Object caseCity(City object) { - return createCityAdapter(); - } - public Object caseCertificate(Certificate object) { - return createCertificateAdapter(); - } - public Object defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; + protected UsertypeSwitch modelSwitch = new UsertypeSwitch() { + public Object casePerson(Person object) { + return createPersonAdapter(); + } + + public Object caseAddress(Address object) { + return createAddressAdapter(); + } + + public Object caseCity(City object) { + return createCityAdapter(); + } + + public Object caseCertificate(Certificate object) { + return createCertificateAdapter(); + } + + public Object 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. + * 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 */ public Adapter createAdapter(Notifier target) { - return (Adapter)modelSwitch.doSwitch((EObject)target); + return (Adapter) modelSwitch.doSwitch((EObject) target); } - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.samples.emf.hibernate.usertype.Person <em>Person</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 --> + * Creates a new adapter for an object of class ' + * {@link org.eclipse.emf.teneo.samples.emf.hibernate.usertype.Person <em>Person</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.emf.teneo.samples.emf.hibernate.usertype.Person * @generated @@ -116,11 +116,12 @@ public class UsertypeAdapterFactory extends AdapterFactoryImpl { } /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.samples.emf.hibernate.usertype.Address <em>Address</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 --> + * Creates a new adapter for an object of class ' + * {@link org.eclipse.emf.teneo.samples.emf.hibernate.usertype.Address <em>Address</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.emf.teneo.samples.emf.hibernate.usertype.Address * @generated @@ -130,11 +131,12 @@ public class UsertypeAdapterFactory extends AdapterFactoryImpl { } /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.samples.emf.hibernate.usertype.City <em>City</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 --> + * Creates a new adapter for an object of class ' + * {@link org.eclipse.emf.teneo.samples.emf.hibernate.usertype.City <em>City</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.emf.teneo.samples.emf.hibernate.usertype.City * @generated @@ -144,11 +146,12 @@ public class UsertypeAdapterFactory extends AdapterFactoryImpl { } /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.samples.emf.hibernate.usertype.Certificate <em>Certificate</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 --> + * Creates a new adapter for an object of class ' + * {@link org.eclipse.emf.teneo.samples.emf.hibernate.usertype.Certificate <em>Certificate</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.emf.teneo.samples.emf.hibernate.usertype.Certificate * @generated @@ -158,10 +161,9 @@ public class UsertypeAdapterFactory extends AdapterFactoryImpl { } /** - * Creates a new adapter for the default case. - * <!-- begin-user-doc --> - * This default implementation returns null. - * <!-- end-user-doc --> + * Creates a new adapter for the default case. <!-- begin-user-doc --> This default implementation + * returns null. <!-- end-user-doc --> + * * @return the new adapter. * @generated */ @@ -169,4 +171,4 @@ public class UsertypeAdapterFactory extends AdapterFactoryImpl { return null; } -} //UsertypeAdapterFactory +} // UsertypeAdapterFactory |