Update of /cvsroot/modelwizard/source/Model Wizard Plugin/src/net/sourceforge/modelWizard/ShoppingCartSchema/util In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv3970/src/net/sourceforge/modelWizard/ShoppingCartSchema/util Modified Files: ShoppingCartSchemaResourceImpl.java ShoppingCartSchemaResourceFactoryImpl.java ShoppingCartSchemaAdapterFactory.java Log Message: removed unused imports or reformatted import order (ctrl-shift-o) Index: ShoppingCartSchemaAdapterFactory.java =================================================================== RCS file: /cvsroot/modelwizard/source/Model Wizard Plugin/src/net/sourceforge/modelWizard/ShoppingCartSchema/util/ShoppingCartSchemaAdapterFactory.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ShoppingCartSchemaAdapterFactory.java 6 Oct 2005 15:59:06 -0000 1.1 --- ShoppingCartSchemaAdapterFactory.java 24 Oct 2006 21:45:01 -0000 1.2 *************** *** 1,192 **** ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.ShoppingCartSchema.util; ! ! import net.sourceforge.modelWizard.ShoppingCartSchema.DocumentRoot; ! import net.sourceforge.modelWizard.ShoppingCartSchema.Profile; ! import net.sourceforge.modelWizard.ShoppingCartSchema.ProfilePointer; ! import net.sourceforge.modelWizard.ShoppingCartSchema.ShoppingCartSchemaPackage; ! import net.sourceforge.modelWizard.ShoppingCartSchema.ShoppingCartType; ! ! 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 net.sourceforge.modelWizard.ShoppingCartSchema.ShoppingCartSchemaPackage ! * @generated ! */ ! public class ShoppingCartSchemaAdapterFactory extends AdapterFactoryImpl { ! /** ! * The cached model package. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! protected static ShoppingCartSchemaPackage modelPackage; ! ! /** ! * Creates an instance of the adapter factory. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public ShoppingCartSchemaAdapterFactory() { ! if (modelPackage == null) { ! modelPackage = ShoppingCartSchemaPackage.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 ! */ ! public boolean isFactoryForType(Object object) { ! if (object == modelPackage) { ! return true; ! } ! if (object instanceof EObject) { ! return ((EObject)object).eClass().getEPackage() == modelPackage; ! } ! return false; ! } ! ! /** ! * The switch the delegates to the <code>createXXX</code> methods. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! protected ShoppingCartSchemaSwitch modelSwitch = ! new ShoppingCartSchemaSwitch() { ! public Object caseClass(net.sourceforge.modelWizard.ShoppingCartSchema.Class object) { ! return createClassAdapter(); ! } ! public Object caseDocumentRoot(DocumentRoot object) { ! return createDocumentRootAdapter(); ! } ! public Object caseProfile(Profile object) { ! return createProfileAdapter(); ! } ! public Object caseProfilePointer(ProfilePointer object) { ! return createProfilePointerAdapter(); ! } ! public Object caseShoppingCartType(ShoppingCartType object) { ! return createShoppingCartTypeAdapter(); ! } ! 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. ! * @return the adapter for the <code>target</code>. ! * @generated ! */ ! public Adapter createAdapter(Notifier target) { ! return (Adapter)modelSwitch.doSwitch((EObject)target); ! } ! ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.ShoppingCartSchema.Class <em>Class</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 net.sourceforge.modelWizard.ShoppingCartSchema.Class ! * @generated ! */ ! public Adapter createClassAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.ShoppingCartSchema.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 net.sourceforge.modelWizard.ShoppingCartSchema.DocumentRoot ! * @generated ! */ ! public Adapter createDocumentRootAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.ShoppingCartSchema.Profile <em>Profile</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 net.sourceforge.modelWizard.ShoppingCartSchema.Profile ! * @generated ! */ ! public Adapter createProfileAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.ShoppingCartSchema.ProfilePointer <em>Profile Pointer</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 net.sourceforge.modelWizard.ShoppingCartSchema.ProfilePointer ! * @generated ! */ ! public Adapter createProfilePointerAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.ShoppingCartSchema.ShoppingCartType <em>Shopping Cart 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 net.sourceforge.modelWizard.ShoppingCartSchema.ShoppingCartType ! * @generated ! */ ! public Adapter createShoppingCartTypeAdapter() { ! 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; ! } ! ! } //ShoppingCartSchemaAdapterFactory --- 1,190 ---- ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.ShoppingCartSchema.util; ! ! import net.sourceforge.modelWizard.ShoppingCartSchema.DocumentRoot; ! import net.sourceforge.modelWizard.ShoppingCartSchema.Profile; ! import net.sourceforge.modelWizard.ShoppingCartSchema.ProfilePointer; ! import net.sourceforge.modelWizard.ShoppingCartSchema.ShoppingCartSchemaPackage; ! import net.sourceforge.modelWizard.ShoppingCartSchema.ShoppingCartType; ! ! 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 net.sourceforge.modelWizard.ShoppingCartSchema.ShoppingCartSchemaPackage ! * @generated ! */ ! public class ShoppingCartSchemaAdapterFactory extends AdapterFactoryImpl { ! /** ! * The cached model package. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! protected static ShoppingCartSchemaPackage modelPackage; ! ! /** ! * Creates an instance of the adapter factory. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public ShoppingCartSchemaAdapterFactory() { ! if (modelPackage == null) { ! modelPackage = ShoppingCartSchemaPackage.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 ! */ ! public boolean isFactoryForType(Object object) { ! if (object == modelPackage) { ! return true; ! } ! if (object instanceof EObject) { ! return ((EObject)object).eClass().getEPackage() == modelPackage; ! } ! return false; ! } ! ! /** ! * The switch the delegates to the <code>createXXX</code> methods. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! protected ShoppingCartSchemaSwitch modelSwitch = ! new ShoppingCartSchemaSwitch() { ! public Object caseClass(net.sourceforge.modelWizard.ShoppingCartSchema.Class object) { ! return createClassAdapter(); ! } ! public Object caseDocumentRoot(DocumentRoot object) { ! return createDocumentRootAdapter(); ! } ! public Object caseProfile(Profile object) { ! return createProfileAdapter(); ! } ! public Object caseProfilePointer(ProfilePointer object) { ! return createProfilePointerAdapter(); ! } ! public Object caseShoppingCartType(ShoppingCartType object) { ! return createShoppingCartTypeAdapter(); ! } ! 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. ! * @return the adapter for the <code>target</code>. ! * @generated ! */ ! public Adapter createAdapter(Notifier target) { ! return (Adapter)modelSwitch.doSwitch((EObject)target); ! } ! ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.ShoppingCartSchema.Class <em>Class</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 net.sourceforge.modelWizard.ShoppingCartSchema.Class ! * @generated ! */ ! public Adapter createClassAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.ShoppingCartSchema.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 net.sourceforge.modelWizard.ShoppingCartSchema.DocumentRoot ! * @generated ! */ ! public Adapter createDocumentRootAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.ShoppingCartSchema.Profile <em>Profile</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 net.sourceforge.modelWizard.ShoppingCartSchema.Profile ! * @generated ! */ ! public Adapter createProfileAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.ShoppingCartSchema.ProfilePointer <em>Profile Pointer</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 net.sourceforge.modelWizard.ShoppingCartSchema.ProfilePointer ! * @generated ! */ ! public Adapter createProfilePointerAdapter() { ! return null; ! } ! ! /** ! * Creates a new adapter for an object of class '{@link net.sourceforge.modelWizard.ShoppingCartSchema.ShoppingCartType <em>Shopping Cart 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 net.sourceforge.modelWizard.ShoppingCartSchema.ShoppingCartType ! * @generated ! */ ! public Adapter createShoppingCartTypeAdapter() { ! 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; ! } ! ! } //ShoppingCartSchemaAdapterFactory Index: ShoppingCartSchemaResourceImpl.java =================================================================== RCS file: /cvsroot/modelwizard/source/Model Wizard Plugin/src/net/sourceforge/modelWizard/ShoppingCartSchema/util/ShoppingCartSchemaResourceImpl.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ShoppingCartSchemaResourceImpl.java 6 Oct 2005 15:59:06 -0000 1.1 --- ShoppingCartSchemaResourceImpl.java 24 Oct 2006 21:45:01 -0000 1.2 *************** *** 1,32 **** ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.ShoppingCartSchema.util; ! ! import org.eclipse.emf.common.util.URI; ! ! import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; ! ! /** ! * <!-- begin-user-doc --> ! * The <b>Resource </b> associated with the package. ! * <!-- end-user-doc --> ! * @see net.sourceforge.modelWizard.ShoppingCartSchema.util.ShoppingCartSchemaResourceFactoryImpl ! * @generated ! */ ! public class ShoppingCartSchemaResourceImpl extends XMLResourceImpl { ! /** ! * Creates an instance of the resource. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param uri the URI of the new resource. ! * @generated ! */ ! public ShoppingCartSchemaResourceImpl(URI uri) { ! super(uri); ! } ! ! } //ShoppingCartSchemaResourceImpl --- 1,31 ---- ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.ShoppingCartSchema.util; ! ! import org.eclipse.emf.common.util.URI; ! import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; ! ! /** ! * <!-- begin-user-doc --> ! * The <b>Resource </b> associated with the package. ! * <!-- end-user-doc --> ! * @see net.sourceforge.modelWizard.ShoppingCartSchema.util.ShoppingCartSchemaResourceFactoryImpl ! * @generated ! */ ! public class ShoppingCartSchemaResourceImpl extends XMLResourceImpl { ! /** ! * Creates an instance of the resource. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @param uri the URI of the new resource. ! * @generated ! */ ! public ShoppingCartSchemaResourceImpl(URI uri) { ! super(uri); ! } ! ! } //ShoppingCartSchemaResourceImpl Index: ShoppingCartSchemaResourceFactoryImpl.java =================================================================== RCS file: /cvsroot/modelwizard/source/Model Wizard Plugin/src/net/sourceforge/modelWizard/ShoppingCartSchema/util/ShoppingCartSchemaResourceFactoryImpl.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ShoppingCartSchemaResourceFactoryImpl.java 6 Oct 2005 15:59:06 -0000 1.1 --- ShoppingCartSchemaResourceFactoryImpl.java 24 Oct 2006 21:45:01 -0000 1.2 *************** *** 1,71 **** ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.ShoppingCartSchema.util; ! ! import net.sourceforge.modelWizard.ShoppingCartSchema.ShoppingCartSchemaPackage; ! ! import org.eclipse.emf.common.util.URI; ! ! import org.eclipse.emf.ecore.EPackage; ! ! import org.eclipse.emf.ecore.impl.EPackageRegistryImpl; ! ! import org.eclipse.emf.ecore.resource.Resource; ! ! import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; ! ! import org.eclipse.emf.ecore.util.BasicExtendedMetaData; ! import org.eclipse.emf.ecore.util.ExtendedMetaData; ! ! import org.eclipse.emf.ecore.xmi.XMLResource; ! ! /** ! * <!-- begin-user-doc --> ! * The <b>Resource Factory</b> associated with the package. ! * <!-- end-user-doc --> ! * @see net.sourceforge.modelWizard.ShoppingCartSchema.util.ShoppingCartSchemaResourceImpl ! * @generated ! */ ! public class ShoppingCartSchemaResourceFactoryImpl extends ResourceFactoryImpl { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! protected ExtendedMetaData extendedMetaData; ! ! /** ! * Creates an instance of the resource factory. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public ShoppingCartSchemaResourceFactoryImpl() { ! super(); ! extendedMetaData = new BasicExtendedMetaData(new EPackageRegistryImpl(EPackage.Registry.INSTANCE)); ! extendedMetaData.putPackage(null, ShoppingCartSchemaPackage.eINSTANCE); ! } ! ! /** ! * Creates an instance of the resource. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public Resource createResource(URI uri) { ! XMLResource result = new ShoppingCartSchemaResourceImpl(uri); ! result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData); ! result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData); ! ! result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); ! result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); ! ! result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); ! return result; ! } ! ! } //ShoppingCartSchemaResourceFactoryImpl --- 1,65 ---- ! /** ! * <copyright> ! * </copyright> ! * ! * $Id$ ! */ ! package net.sourceforge.modelWizard.ShoppingCartSchema.util; ! ! import net.sourceforge.modelWizard.ShoppingCartSchema.ShoppingCartSchemaPackage; ! ! import org.eclipse.emf.common.util.URI; ! import org.eclipse.emf.ecore.EPackage; ! import org.eclipse.emf.ecore.impl.EPackageRegistryImpl; ! import org.eclipse.emf.ecore.resource.Resource; ! import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; ! import org.eclipse.emf.ecore.util.BasicExtendedMetaData; ! import org.eclipse.emf.ecore.util.ExtendedMetaData; ! import org.eclipse.emf.ecore.xmi.XMLResource; ! ! /** ! * <!-- begin-user-doc --> ! * The <b>Resource Factory</b> associated with the package. ! * <!-- end-user-doc --> ! * @see net.sourceforge.modelWizard.ShoppingCartSchema.util.ShoppingCartSchemaResourceImpl ! * @generated ! */ ! public class ShoppingCartSchemaResourceFactoryImpl extends ResourceFactoryImpl { ! /** ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! protected ExtendedMetaData extendedMetaData; ! ! /** ! * Creates an instance of the resource factory. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public ShoppingCartSchemaResourceFactoryImpl() { ! super(); ! extendedMetaData = new BasicExtendedMetaData(new EPackageRegistryImpl(EPackage.Registry.INSTANCE)); ! extendedMetaData.putPackage(null, ShoppingCartSchemaPackage.eINSTANCE); ! } ! ! /** ! * Creates an instance of the resource. ! * <!-- begin-user-doc --> ! * <!-- end-user-doc --> ! * @generated ! */ ! public Resource createResource(URI uri) { ! XMLResource result = new ShoppingCartSchemaResourceImpl(uri); ! result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData); ! result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData); ! ! result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); ! result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); ! ! result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); ! return result; ! } ! ! } //ShoppingCartSchemaResourceFactoryImpl |