diff options
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro')
32 files changed, 0 insertions, 7062 deletions
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/Department.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/Department.java deleted file mode 100644 index 4b0aa5d424..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/Department.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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: - * Eike Stepper - initial API and implementation - * - * Initial Publication: - * Eclipse Magazin - http://www.eclipse-magazin.de - */ -package org.gastro.inventory; - -import org.eclipse.emf.common.util.EList; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Department</b></em>'. <!-- end-user-doc --> - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.gastro.inventory.Department#getRecipes <em>Recipes</em>}</li> - * <li>{@link org.gastro.inventory.Department#getRestaurant <em>Restaurant</em>}</li> - * <li>{@link org.gastro.inventory.Department#getEmployees <em>Employees</em>}</li> - * <li>{@link org.gastro.inventory.Department#getStocks <em>Stocks</em>}</li> - * </ul> - * </p> - * - * @see org.gastro.inventory.InventoryPackage#getDepartment() - * @model - * @generated - */ -public interface Department extends Station -{ - /** - * Returns the value of the '<em><b>Recipes</b></em>' containment reference list. The list contents are of type - * {@link org.gastro.inventory.Recipe}. It is bidirectional and its opposite is ' - * {@link org.gastro.inventory.Recipe#getDepartment <em>Department</em>}'. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Recipes</em>' containment reference list isn't clear, there really should be more of a - * description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Recipes</em>' containment reference list. - * @see org.gastro.inventory.InventoryPackage#getDepartment_Recipes() - * @see org.gastro.inventory.Recipe#getDepartment - * @model opposite="department" containment="true" - * @generated - */ - EList<Recipe> getRecipes(); - - /** - * Returns the value of the '<em><b>Restaurant</b></em>' container reference. It is bidirectional and its opposite is - * '{@link org.gastro.inventory.Restaurant#getDepartments <em>Departments</em>}'. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Restaurant</em>' container reference isn't clear, there really should be more of a - * description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Restaurant</em>' container reference. - * @see #setRestaurant(Restaurant) - * @see org.gastro.inventory.InventoryPackage#getDepartment_Restaurant() - * @see org.gastro.inventory.Restaurant#getDepartments - * @model opposite="departments" required="true" transient="false" - * @generated - */ - Restaurant getRestaurant(); - - /** - * Sets the value of the '{@link org.gastro.inventory.Department#getRestaurant <em>Restaurant</em>}' container - * reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Restaurant</em>' container reference. - * @see #getRestaurant() - * @generated - */ - void setRestaurant(Restaurant value); - - /** - * Returns the value of the '<em><b>Employees</b></em>' containment reference list. The list contents are of type - * {@link org.gastro.inventory.Employee}. It is bidirectional and its opposite is ' - * {@link org.gastro.inventory.Employee#getDepartment <em>Department</em>}'. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Employees</em>' containment reference list isn't clear, there really should be more of a - * description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Employees</em>' containment reference list. - * @see org.gastro.inventory.InventoryPackage#getDepartment_Employees() - * @see org.gastro.inventory.Employee#getDepartment - * @model opposite="department" containment="true" - * @generated - */ - EList<Employee> getEmployees(); - - /** - * Returns the value of the '<em><b>Stocks</b></em>' containment reference list. The list contents are of type - * {@link org.gastro.inventory.Stock}. It is bidirectional and its opposite is ' - * {@link org.gastro.inventory.Stock#getDepartment <em>Department</em>}'. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Stocks</em>' containment reference list isn't clear, there really should be more of a - * description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Stocks</em>' containment reference list. - * @see org.gastro.inventory.InventoryPackage#getDepartment_Stocks() - * @see org.gastro.inventory.Stock#getDepartment - * @model opposite="department" containment="true" required="true" - * @generated - */ - EList<Stock> getStocks(); - -} // Department diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/Employee.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/Employee.java deleted file mode 100644 index 14f33dc0c7..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/Employee.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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: - * Eike Stepper - initial API and implementation - * - * Initial Publication: - * Eclipse Magazin - http://www.eclipse-magazin.de - */ -package org.gastro.inventory; - -import org.eclipse.emf.cdo.CDOObject; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Employee</b></em>'. <!-- end-user-doc --> - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.gastro.inventory.Employee#getDepartment <em>Department</em>}</li> - * <li>{@link org.gastro.inventory.Employee#getName <em>Name</em>}</li> - * </ul> - * </p> - * - * @see org.gastro.inventory.InventoryPackage#getEmployee() - * @model - * @extends CDOObject - * @generated - */ -public interface Employee extends CDOObject -{ - /** - * Returns the value of the '<em><b>Department</b></em>' container reference. It is bidirectional and its opposite is - * '{@link org.gastro.inventory.Department#getEmployees <em>Employees</em>}'. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Department</em>' reference isn't clear, there really should be more of a description - * here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Department</em>' container reference. - * @see #setDepartment(Department) - * @see org.gastro.inventory.InventoryPackage#getEmployee_Department() - * @see org.gastro.inventory.Department#getEmployees - * @model opposite="employees" transient="false" - * @generated - */ - Department getDepartment(); - - /** - * Sets the value of the '{@link org.gastro.inventory.Employee#getDepartment <em>Department</em>}' reference. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Department</em>' reference. - * @see #getDepartment() - * @generated - */ - void setDepartment(Department value); - - /** - * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Name</em>' attribute. - * @see #setName(String) - * @see org.gastro.inventory.InventoryPackage#getEmployee_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.gastro.inventory.Employee#getName <em>Name</em>}' attribute. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Name</em>' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - -} // Employee diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/Ingredient.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/Ingredient.java deleted file mode 100644 index 75cc53a6b9..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/Ingredient.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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: - * Eike Stepper - initial API and implementation - * - * Initial Publication: - * Eclipse Magazin - http://www.eclipse-magazin.de - */ -package org.gastro.inventory; - -import org.eclipse.emf.cdo.CDOObject; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Ingredient</b></em>'. <!-- end-user-doc --> - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.gastro.inventory.Ingredient#getRecipe <em>Recipe</em>}</li> - * <li>{@link org.gastro.inventory.Ingredient#getProduct <em>Product</em>}</li> - * <li>{@link org.gastro.inventory.Ingredient#getQuantity <em>Quantity</em>}</li> - * </ul> - * </p> - * - * @see org.gastro.inventory.InventoryPackage#getIngredient() - * @model - * @extends CDOObject - * @generated - */ -public interface Ingredient extends CDOObject -{ - /** - * Returns the value of the '<em><b>Recipe</b></em>' container reference. It is bidirectional and its opposite is ' - * {@link org.gastro.inventory.Recipe#getIngredients <em>Ingredients</em>}'. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Recipe</em>' container reference isn't clear, there really should be more of a - * description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Recipe</em>' container reference. - * @see #setRecipe(Recipe) - * @see org.gastro.inventory.InventoryPackage#getIngredient_Recipe() - * @see org.gastro.inventory.Recipe#getIngredients - * @model opposite="ingredients" required="true" transient="false" - * @generated - */ - Recipe getRecipe(); - - /** - * Sets the value of the '{@link org.gastro.inventory.Ingredient#getRecipe <em>Recipe</em>}' container reference. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Recipe</em>' container reference. - * @see #getRecipe() - * @generated - */ - void setRecipe(Recipe value); - - /** - * Returns the value of the '<em><b>Product</b></em>' reference. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Product</em>' reference isn't clear, there really should be more of a description - * here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Product</em>' reference. - * @see #setProduct(Product) - * @see org.gastro.inventory.InventoryPackage#getIngredient_Product() - * @model required="true" - * @generated - */ - Product getProduct(); - - /** - * Sets the value of the '{@link org.gastro.inventory.Ingredient#getProduct <em>Product</em>}' reference. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Product</em>' reference. - * @see #getProduct() - * @generated - */ - void setProduct(Product value); - - /** - * Returns the value of the '<em><b>Quantity</b></em>' attribute. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Quantity</em>' attribute isn't clear, there really should be more of a description - * here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Quantity</em>' attribute. - * @see #setQuantity(int) - * @see org.gastro.inventory.InventoryPackage#getIngredient_Quantity() - * @model - * @generated - */ - int getQuantity(); - - /** - * Sets the value of the '{@link org.gastro.inventory.Ingredient#getQuantity <em>Quantity</em>}' attribute. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Quantity</em>' attribute. - * @see #getQuantity() - * @generated - */ - void setQuantity(int value); - -} // Ingredient diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/InventoryFactory.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/InventoryFactory.java deleted file mode 100644 index f74eb353bc..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/InventoryFactory.java +++ /dev/null @@ -1,130 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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: - * Eike Stepper - initial API and implementation - * - * Initial Publication: - * Eclipse Magazin - http://www.eclipse-magazin.de - */ -package org.gastro.inventory; - -import org.eclipse.emf.ecore.EFactory; - -/** - * <!-- begin-user-doc --> The <b>Factory</b> for the model. It provides a create method for each non-abstract class of - * the model. <!-- end-user-doc --> - * - * @see org.gastro.inventory.InventoryPackage - * @generated - */ -public interface InventoryFactory extends EFactory -{ - /** - * The singleton instance of the factory. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - InventoryFactory eINSTANCE = org.gastro.inventory.impl.InventoryFactoryImpl.init(); - - /** - * Returns a new object of class '<em>Stock</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Stock</em>'. - * @generated - */ - Stock createStock(); - - /** - * Returns a new object of class '<em>Stock Product</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Stock Product</em>'. - * @generated - */ - StockProduct createStockProduct(); - - /** - * Returns a new object of class '<em>Recipe</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Recipe</em>'. - * @generated - */ - Recipe createRecipe(); - - /** - * Returns a new object of class '<em>Ingredient</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Ingredient</em>'. - * @generated - */ - Ingredient createIngredient(); - - /** - * Returns a new object of class '<em>Menu Card</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Menu Card</em>'. - * @generated - */ - MenuCard createMenuCard(); - - /** - * Returns a new object of class '<em>Restaurant</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Restaurant</em>'. - * @generated - */ - Restaurant createRestaurant(); - - /** - * Returns a new object of class '<em>Department</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Department</em>'. - * @generated - */ - Department createDepartment(); - - /** - * Returns a new object of class '<em>Offering</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Offering</em>'. - * @generated - */ - Offering createOffering(); - - /** - * Returns a new object of class '<em>Table</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Table</em>'. - * @generated - */ - Table createTable(); - - /** - * Returns a new object of class '<em>Employee</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Employee</em>'. - * @generated - */ - Employee createEmployee(); - - /** - * Returns a new object of class '<em>Section</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Section</em>'. - * @generated - */ - Section createSection(); - - /** - * Returns the package supported by this factory. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the package supported by this factory. - * @generated - */ - InventoryPackage getInventoryPackage(); - -} // InventoryFactory diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/InventoryPackage.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/InventoryPackage.java deleted file mode 100644 index 9793a2bdef..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/InventoryPackage.java +++ /dev/null @@ -1,1713 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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: - * Eike Stepper - initial API and implementation - * - * Initial Publication: - * Eclipse Magazin - http://www.eclipse-magazin.de - */ -package org.gastro.inventory; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; - -/** - * <!-- begin-user-doc --> The <b>Package</b> for the model. It contains accessors for the meta objects to represent - * <ul> - * <li>each class,</li> - * <li>each feature of each class,</li> - * <li>each enum,</li> - * <li>and each data type</li> - * </ul> - * <!-- end-user-doc --> - * - * @see org.gastro.inventory.InventoryFactory - * @model kind="package" - * @generated - */ -public interface InventoryPackage extends EPackage -{ - /** - * The package name. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - String eNAME = "inventory"; - - /** - * The package namespace URI. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - String eNS_URI = "http://www.gastro.org/inventory/1.0"; - - /** - * The package namespace name. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - String eNS_PREFIX = "inventory"; - - /** - * The singleton instance of the package. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - InventoryPackage eINSTANCE = org.gastro.inventory.impl.InventoryPackageImpl.init(); - - /** - * The meta object id for the '{@link org.gastro.inventory.impl.StockImpl <em>Stock</em>}' class. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @see org.gastro.inventory.impl.StockImpl - * @see org.gastro.inventory.impl.InventoryPackageImpl#getStock() - * @generated - */ - int STOCK = 0; - - /** - * The feature id for the '<em><b>Products</b></em>' containment reference list. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int STOCK__PRODUCTS = 0; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int STOCK__NAME = 1; - - /** - * The feature id for the '<em><b>Department</b></em>' container reference. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @generated - * @ordered - */ - int STOCK__DEPARTMENT = 2; - - /** - * The number of structural features of the '<em>Stock</em>' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int STOCK_FEATURE_COUNT = 3; - - /** - * The meta object id for the '{@link org.gastro.inventory.impl.ProductImpl <em>Product</em>}' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @see org.gastro.inventory.impl.ProductImpl - * @see org.gastro.inventory.impl.InventoryPackageImpl#getProduct() - * @generated - */ - int PRODUCT = 1; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int PRODUCT__NAME = 0; - - /** - * The number of structural features of the '<em>Product</em>' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int PRODUCT_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.gastro.inventory.impl.StockProductImpl <em>Stock Product</em>}' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @see org.gastro.inventory.impl.StockProductImpl - * @see org.gastro.inventory.impl.InventoryPackageImpl#getStockProduct() - * @generated - */ - int STOCK_PRODUCT = 2; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int STOCK_PRODUCT__NAME = PRODUCT__NAME; - - /** - * The feature id for the '<em><b>Stock</b></em>' container reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int STOCK_PRODUCT__STOCK = PRODUCT_FEATURE_COUNT + 0; - - /** - * The feature id for the '<em><b>Cost</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int STOCK_PRODUCT__COST = PRODUCT_FEATURE_COUNT + 1; - - /** - * The feature id for the '<em><b>Available</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int STOCK_PRODUCT__AVAILABLE = PRODUCT_FEATURE_COUNT + 2; - - /** - * The feature id for the '<em><b>Order Limit</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int STOCK_PRODUCT__ORDER_LIMIT = PRODUCT_FEATURE_COUNT + 3; - - /** - * The number of structural features of the '<em>Stock Product</em>' class. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @generated - * @ordered - */ - int STOCK_PRODUCT_FEATURE_COUNT = PRODUCT_FEATURE_COUNT + 4; - - /** - * The meta object id for the '{@link org.gastro.inventory.impl.RecipeImpl <em>Recipe</em>}' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @see org.gastro.inventory.impl.RecipeImpl - * @see org.gastro.inventory.impl.InventoryPackageImpl#getRecipe() - * @generated - */ - int RECIPE = 3; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int RECIPE__NAME = PRODUCT__NAME; - - /** - * The feature id for the '<em><b>Ingredients</b></em>' containment reference list. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int RECIPE__INGREDIENTS = PRODUCT_FEATURE_COUNT + 0; - - /** - * The feature id for the '<em><b>Department</b></em>' container reference. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @generated - * @ordered - */ - int RECIPE__DEPARTMENT = PRODUCT_FEATURE_COUNT + 1; - - /** - * The feature id for the '<em><b>Cost</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int RECIPE__COST = PRODUCT_FEATURE_COUNT + 2; - - /** - * The number of structural features of the '<em>Recipe</em>' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int RECIPE_FEATURE_COUNT = PRODUCT_FEATURE_COUNT + 3; - - /** - * The meta object id for the '{@link org.gastro.inventory.impl.IngredientImpl <em>Ingredient</em>}' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @see org.gastro.inventory.impl.IngredientImpl - * @see org.gastro.inventory.impl.InventoryPackageImpl#getIngredient() - * @generated - */ - int INGREDIENT = 4; - - /** - * The feature id for the '<em><b>Recipe</b></em>' container reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int INGREDIENT__RECIPE = 0; - - /** - * The feature id for the '<em><b>Product</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int INGREDIENT__PRODUCT = 1; - - /** - * The feature id for the '<em><b>Quantity</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int INGREDIENT__QUANTITY = 2; - - /** - * The number of structural features of the '<em>Ingredient</em>' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int INGREDIENT_FEATURE_COUNT = 3; - - /** - * The meta object id for the '{@link org.gastro.inventory.impl.MenuCardImpl <em>Menu Card</em>}' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @see org.gastro.inventory.impl.MenuCardImpl - * @see org.gastro.inventory.impl.InventoryPackageImpl#getMenuCard() - * @generated - */ - int MENU_CARD = 5; - - /** - * The feature id for the '<em><b>Title</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int MENU_CARD__TITLE = 0; - - /** - * The feature id for the '<em><b>Restaurant</b></em>' container reference. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @generated - * @ordered - */ - int MENU_CARD__RESTAURANT = 1; - - /** - * The feature id for the '<em><b>Sections</b></em>' containment reference list. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int MENU_CARD__SECTIONS = 2; - - /** - * The number of structural features of the '<em>Menu Card</em>' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int MENU_CARD_FEATURE_COUNT = 3; - - /** - * The meta object id for the '{@link org.gastro.inventory.impl.RestaurantImpl <em>Restaurant</em>}' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @see org.gastro.inventory.impl.RestaurantImpl - * @see org.gastro.inventory.impl.InventoryPackageImpl#getRestaurant() - * @generated - */ - int RESTAURANT = 6; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int RESTAURANT__NAME = 0; - - /** - * The feature id for the '<em><b>Departments</b></em>' containment reference list. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int RESTAURANT__DEPARTMENTS = 1; - - /** - * The feature id for the '<em><b>Menu Cards</b></em>' containment reference list. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int RESTAURANT__MENU_CARDS = 2; - - /** - * The feature id for the '<em><b>Tables</b></em>' containment reference list. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int RESTAURANT__TABLES = 3; - - /** - * The feature id for the '<em><b>Stations</b></em>' reference list. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int RESTAURANT__STATIONS = 4; - - /** - * The number of structural features of the '<em>Restaurant</em>' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int RESTAURANT_FEATURE_COUNT = 5; - - /** - * The meta object id for the '{@link org.gastro.inventory.impl.StationImpl <em>Station</em>}' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @see org.gastro.inventory.impl.StationImpl - * @see org.gastro.inventory.impl.InventoryPackageImpl#getStation() - * @generated - */ - int STATION = 11; - - /** - * The feature id for the '<em><b>Station ID</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int STATION__STATION_ID = 0; - - /** - * The number of structural features of the '<em>Station</em>' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int STATION_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.gastro.inventory.impl.DepartmentImpl <em>Department</em>}' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @see org.gastro.inventory.impl.DepartmentImpl - * @see org.gastro.inventory.impl.InventoryPackageImpl#getDepartment() - * @generated - */ - int DEPARTMENT = 7; - - /** - * The feature id for the '<em><b>Station ID</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int DEPARTMENT__STATION_ID = STATION__STATION_ID; - - /** - * The feature id for the '<em><b>Recipes</b></em>' containment reference list. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int DEPARTMENT__RECIPES = STATION_FEATURE_COUNT + 0; - - /** - * The feature id for the '<em><b>Restaurant</b></em>' container reference. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @generated - * @ordered - */ - int DEPARTMENT__RESTAURANT = STATION_FEATURE_COUNT + 1; - - /** - * The feature id for the '<em><b>Employees</b></em>' containment reference list. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int DEPARTMENT__EMPLOYEES = STATION_FEATURE_COUNT + 2; - - /** - * The feature id for the '<em><b>Stocks</b></em>' containment reference list. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int DEPARTMENT__STOCKS = STATION_FEATURE_COUNT + 3; - - /** - * The number of structural features of the '<em>Department</em>' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int DEPARTMENT_FEATURE_COUNT = STATION_FEATURE_COUNT + 4; - - /** - * The meta object id for the '{@link org.gastro.inventory.impl.OfferingImpl <em>Offering</em>}' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @see org.gastro.inventory.impl.OfferingImpl - * @see org.gastro.inventory.impl.InventoryPackageImpl#getOffering() - * @generated - */ - int OFFERING = 8; - - /** - * The feature id for the '<em><b>Product</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int OFFERING__PRODUCT = 0; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int OFFERING__NAME = 1; - - /** - * The feature id for the '<em><b>Description</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int OFFERING__DESCRIPTION = 2; - - /** - * The feature id for the '<em><b>Price</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int OFFERING__PRICE = 3; - - /** - * The feature id for the '<em><b>Section</b></em>' container reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int OFFERING__SECTION = 4; - - /** - * The number of structural features of the '<em>Offering</em>' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int OFFERING_FEATURE_COUNT = 5; - - /** - * The meta object id for the '{@link org.gastro.inventory.impl.TableImpl <em>Table</em>}' class. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @see org.gastro.inventory.impl.TableImpl - * @see org.gastro.inventory.impl.InventoryPackageImpl#getTable() - * @generated - */ - int TABLE = 9; - - /** - * The feature id for the '<em><b>Station ID</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int TABLE__STATION_ID = STATION__STATION_ID; - - /** - * The feature id for the '<em><b>Seats</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int TABLE__SEATS = STATION_FEATURE_COUNT + 0; - - /** - * The feature id for the '<em><b>Restaurant</b></em>' container reference. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @generated - * @ordered - */ - int TABLE__RESTAURANT = STATION_FEATURE_COUNT + 1; - - /** - * The number of structural features of the '<em>Table</em>' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int TABLE_FEATURE_COUNT = STATION_FEATURE_COUNT + 2; - - /** - * The meta object id for the '{@link org.gastro.inventory.impl.EmployeeImpl <em>Employee</em>}' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @see org.gastro.inventory.impl.EmployeeImpl - * @see org.gastro.inventory.impl.InventoryPackageImpl#getEmployee() - * @generated - */ - int EMPLOYEE = 10; - - /** - * The feature id for the '<em><b>Department</b></em>' container reference. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @generated - * @ordered - */ - int EMPLOYEE__DEPARTMENT = 0; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int EMPLOYEE__NAME = 1; - - /** - * The number of structural features of the '<em>Employee</em>' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int EMPLOYEE_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.gastro.inventory.impl.SectionImpl <em>Section</em>}' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @see org.gastro.inventory.impl.SectionImpl - * @see org.gastro.inventory.impl.InventoryPackageImpl#getSection() - * @generated - */ - int SECTION = 12; - - /** - * The feature id for the '<em><b>Menu Card</b></em>' container reference. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @generated - * @ordered - */ - int SECTION__MENU_CARD = 0; - - /** - * The feature id for the '<em><b>Offerings</b></em>' containment reference list. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int SECTION__OFFERINGS = 1; - - /** - * The feature id for the '<em><b>Title</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int SECTION__TITLE = 2; - - /** - * The feature id for the '<em><b>Text</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int SECTION__TEXT = 3; - - /** - * The number of structural features of the '<em>Section</em>' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int SECTION_FEATURE_COUNT = 4; - - /** - * Returns the meta object for class '{@link org.gastro.inventory.Stock <em>Stock</em>}'. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @return the meta object for class '<em>Stock</em>'. - * @see org.gastro.inventory.Stock - * @generated - */ - EClass getStock(); - - /** - * Returns the meta object for the containment reference list '{@link org.gastro.inventory.Stock#getProducts - * <em>Products</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the containment reference list '<em>Products</em>'. - * @see org.gastro.inventory.Stock#getProducts() - * @see #getStock() - * @generated - */ - EReference getStock_Products(); - - /** - * Returns the meta object for the attribute '{@link org.gastro.inventory.Stock#getName <em>Name</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.gastro.inventory.Stock#getName() - * @see #getStock() - * @generated - */ - EAttribute getStock_Name(); - - /** - * Returns the meta object for the container reference '{@link org.gastro.inventory.Stock#getDepartment - * <em>Department</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the container reference '<em>Department</em>'. - * @see org.gastro.inventory.Stock#getDepartment() - * @see #getStock() - * @generated - */ - EReference getStock_Department(); - - /** - * Returns the meta object for class '{@link org.gastro.inventory.Product <em>Product</em>}'. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @return the meta object for class '<em>Product</em>'. - * @see org.gastro.inventory.Product - * @generated - */ - EClass getProduct(); - - /** - * Returns the meta object for the attribute '{@link org.gastro.inventory.Product#getName <em>Name</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.gastro.inventory.Product#getName() - * @see #getProduct() - * @generated - */ - EAttribute getProduct_Name(); - - /** - * Returns the meta object for class '{@link org.gastro.inventory.StockProduct <em>Stock Product</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Stock Product</em>'. - * @see org.gastro.inventory.StockProduct - * @generated - */ - EClass getStockProduct(); - - /** - * Returns the meta object for the container reference '{@link org.gastro.inventory.StockProduct#getStock - * <em>Stock</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the container reference '<em>Stock</em>'. - * @see org.gastro.inventory.StockProduct#getStock() - * @see #getStockProduct() - * @generated - */ - EReference getStockProduct_Stock(); - - /** - * Returns the meta object for the attribute '{@link org.gastro.inventory.StockProduct#getCost <em>Cost</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the attribute '<em>Cost</em>'. - * @see org.gastro.inventory.StockProduct#getCost() - * @see #getStockProduct() - * @generated - */ - EAttribute getStockProduct_Cost(); - - /** - * Returns the meta object for the attribute '{@link org.gastro.inventory.StockProduct#getAvailable - * <em>Available</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the attribute '<em>Available</em>'. - * @see org.gastro.inventory.StockProduct#getAvailable() - * @see #getStockProduct() - * @generated - */ - EAttribute getStockProduct_Available(); - - /** - * Returns the meta object for the attribute '{@link org.gastro.inventory.StockProduct#getOrderLimit - * <em>Order Limit</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the attribute '<em>Order Limit</em>'. - * @see org.gastro.inventory.StockProduct#getOrderLimit() - * @see #getStockProduct() - * @generated - */ - EAttribute getStockProduct_OrderLimit(); - - /** - * Returns the meta object for class '{@link org.gastro.inventory.Recipe <em>Recipe</em>}'. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @return the meta object for class '<em>Recipe</em>'. - * @see org.gastro.inventory.Recipe - * @generated - */ - EClass getRecipe(); - - /** - * Returns the meta object for the containment reference list '{@link org.gastro.inventory.Recipe#getIngredients - * <em>Ingredients</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the containment reference list '<em>Ingredients</em>'. - * @see org.gastro.inventory.Recipe#getIngredients() - * @see #getRecipe() - * @generated - */ - EReference getRecipe_Ingredients(); - - /** - * Returns the meta object for the container reference '{@link org.gastro.inventory.Recipe#getDepartment - * <em>Department</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the container reference '<em>Department</em>'. - * @see org.gastro.inventory.Recipe#getDepartment() - * @see #getRecipe() - * @generated - */ - EReference getRecipe_Department(); - - /** - * Returns the meta object for the attribute '{@link org.gastro.inventory.Recipe#getCost <em>Cost</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the attribute '<em>Cost</em>'. - * @see org.gastro.inventory.Recipe#getCost() - * @see #getRecipe() - * @generated - */ - EAttribute getRecipe_Cost(); - - /** - * Returns the meta object for class '{@link org.gastro.inventory.Ingredient <em>Ingredient</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Ingredient</em>'. - * @see org.gastro.inventory.Ingredient - * @generated - */ - EClass getIngredient(); - - /** - * Returns the meta object for the container reference '{@link org.gastro.inventory.Ingredient#getRecipe - * <em>Recipe</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the container reference '<em>Recipe</em>'. - * @see org.gastro.inventory.Ingredient#getRecipe() - * @see #getIngredient() - * @generated - */ - EReference getIngredient_Recipe(); - - /** - * Returns the meta object for the reference '{@link org.gastro.inventory.Ingredient#getProduct <em>Product</em>}'. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the reference '<em>Product</em>'. - * @see org.gastro.inventory.Ingredient#getProduct() - * @see #getIngredient() - * @generated - */ - EReference getIngredient_Product(); - - /** - * Returns the meta object for the attribute '{@link org.gastro.inventory.Ingredient#getQuantity <em>Quantity</em>}'. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the attribute '<em>Quantity</em>'. - * @see org.gastro.inventory.Ingredient#getQuantity() - * @see #getIngredient() - * @generated - */ - EAttribute getIngredient_Quantity(); - - /** - * Returns the meta object for class '{@link org.gastro.inventory.MenuCard <em>Menu Card</em>}'. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Menu Card</em>'. - * @see org.gastro.inventory.MenuCard - * @generated - */ - EClass getMenuCard(); - - /** - * Returns the meta object for the attribute '{@link org.gastro.inventory.MenuCard#getTitle <em>Title</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the attribute '<em>Title</em>'. - * @see org.gastro.inventory.MenuCard#getTitle() - * @see #getMenuCard() - * @generated - */ - EAttribute getMenuCard_Title(); - - /** - * Returns the meta object for the container reference '{@link org.gastro.inventory.MenuCard#getRestaurant - * <em>Restaurant</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the container reference '<em>Restaurant</em>'. - * @see org.gastro.inventory.MenuCard#getRestaurant() - * @see #getMenuCard() - * @generated - */ - EReference getMenuCard_Restaurant(); - - /** - * Returns the meta object for the containment reference list '{@link org.gastro.inventory.MenuCard#getSections - * <em>Sections</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the containment reference list '<em>Sections</em>'. - * @see org.gastro.inventory.MenuCard#getSections() - * @see #getMenuCard() - * @generated - */ - EReference getMenuCard_Sections(); - - /** - * Returns the meta object for class '{@link org.gastro.inventory.Restaurant <em>Restaurant</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Restaurant</em>'. - * @see org.gastro.inventory.Restaurant - * @generated - */ - EClass getRestaurant(); - - /** - * Returns the meta object for the attribute '{@link org.gastro.inventory.Restaurant#getName <em>Name</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.gastro.inventory.Restaurant#getName() - * @see #getRestaurant() - * @generated - */ - EAttribute getRestaurant_Name(); - - /** - * Returns the meta object for the containment reference list '{@link org.gastro.inventory.Restaurant#getDepartments - * <em>Departments</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the containment reference list '<em>Departments</em>'. - * @see org.gastro.inventory.Restaurant#getDepartments() - * @see #getRestaurant() - * @generated - */ - EReference getRestaurant_Departments(); - - /** - * Returns the meta object for the containment reference list '{@link org.gastro.inventory.Restaurant#getMenuCards - * <em>Menu Cards</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the containment reference list '<em>Menu Cards</em>'. - * @see org.gastro.inventory.Restaurant#getMenuCards() - * @see #getRestaurant() - * @generated - */ - EReference getRestaurant_MenuCards(); - - /** - * Returns the meta object for the containment reference list '{@link org.gastro.inventory.Restaurant#getTables - * <em>Tables</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the containment reference list '<em>Tables</em>'. - * @see org.gastro.inventory.Restaurant#getTables() - * @see #getRestaurant() - * @generated - */ - EReference getRestaurant_Tables(); - - /** - * Returns the meta object for the reference list '{@link org.gastro.inventory.Restaurant#getStations - * <em>Stations</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the reference list '<em>Stations</em>'. - * @see org.gastro.inventory.Restaurant#getStations() - * @see #getRestaurant() - * @generated - */ - EReference getRestaurant_Stations(); - - /** - * Returns the meta object for class '{@link org.gastro.inventory.Department <em>Department</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Department</em>'. - * @see org.gastro.inventory.Department - * @generated - */ - EClass getDepartment(); - - /** - * Returns the meta object for the containment reference list '{@link org.gastro.inventory.Department#getRecipes - * <em>Recipes</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the containment reference list '<em>Recipes</em>'. - * @see org.gastro.inventory.Department#getRecipes() - * @see #getDepartment() - * @generated - */ - EReference getDepartment_Recipes(); - - /** - * Returns the meta object for the container reference '{@link org.gastro.inventory.Department#getRestaurant - * <em>Restaurant</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the container reference '<em>Restaurant</em>'. - * @see org.gastro.inventory.Department#getRestaurant() - * @see #getDepartment() - * @generated - */ - EReference getDepartment_Restaurant(); - - /** - * Returns the meta object for the containment reference list '{@link org.gastro.inventory.Department#getEmployees - * <em>Employees</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the containment reference list '<em>Employees</em>'. - * @see org.gastro.inventory.Department#getEmployees() - * @see #getDepartment() - * @generated - */ - EReference getDepartment_Employees(); - - /** - * Returns the meta object for the containment reference list '{@link org.gastro.inventory.Department#getStocks - * <em>Stocks</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the containment reference list '<em>Stocks</em>'. - * @see org.gastro.inventory.Department#getStocks() - * @see #getDepartment() - * @generated - */ - EReference getDepartment_Stocks(); - - /** - * Returns the meta object for class '{@link org.gastro.inventory.Offering <em>Offering</em>}'. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Offering</em>'. - * @see org.gastro.inventory.Offering - * @generated - */ - EClass getOffering(); - - /** - * Returns the meta object for the reference '{@link org.gastro.inventory.Offering#getProduct <em>Product</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the reference '<em>Product</em>'. - * @see org.gastro.inventory.Offering#getProduct() - * @see #getOffering() - * @generated - */ - EReference getOffering_Product(); - - /** - * Returns the meta object for the attribute '{@link org.gastro.inventory.Offering#getName <em>Name</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.gastro.inventory.Offering#getName() - * @see #getOffering() - * @generated - */ - EAttribute getOffering_Name(); - - /** - * Returns the meta object for the attribute '{@link org.gastro.inventory.Offering#getDescription - * <em>Description</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the attribute '<em>Description</em>'. - * @see org.gastro.inventory.Offering#getDescription() - * @see #getOffering() - * @generated - */ - EAttribute getOffering_Description(); - - /** - * Returns the meta object for the attribute '{@link org.gastro.inventory.Offering#getPrice <em>Price</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the attribute '<em>Price</em>'. - * @see org.gastro.inventory.Offering#getPrice() - * @see #getOffering() - * @generated - */ - EAttribute getOffering_Price(); - - /** - * Returns the meta object for the container reference '{@link org.gastro.inventory.Offering#getSection - * <em>Section</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the container reference '<em>Section</em>'. - * @see org.gastro.inventory.Offering#getSection() - * @see #getOffering() - * @generated - */ - EReference getOffering_Section(); - - /** - * Returns the meta object for class '{@link org.gastro.inventory.Table <em>Table</em>}'. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @return the meta object for class '<em>Table</em>'. - * @see org.gastro.inventory.Table - * @generated - */ - EClass getTable(); - - /** - * Returns the meta object for the attribute '{@link org.gastro.inventory.Table#getSeats <em>Seats</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the attribute '<em>Seats</em>'. - * @see org.gastro.inventory.Table#getSeats() - * @see #getTable() - * @generated - */ - EAttribute getTable_Seats(); - - /** - * Returns the meta object for the container reference '{@link org.gastro.inventory.Table#getRestaurant - * <em>Restaurant</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the container reference '<em>Restaurant</em>'. - * @see org.gastro.inventory.Table#getRestaurant() - * @see #getTable() - * @generated - */ - EReference getTable_Restaurant(); - - /** - * Returns the meta object for class '{@link org.gastro.inventory.Employee <em>Employee</em>}'. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Employee</em>'. - * @see org.gastro.inventory.Employee - * @generated - */ - EClass getEmployee(); - - /** - * Returns the meta object for the container reference '{@link org.gastro.inventory.Employee#getDepartment - * <em>Department</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the container reference '<em>Department</em>'. - * @see org.gastro.inventory.Employee#getDepartment() - * @see #getEmployee() - * @generated - */ - EReference getEmployee_Department(); - - /** - * Returns the meta object for the attribute '{@link org.gastro.inventory.Employee#getName <em>Name</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.gastro.inventory.Employee#getName() - * @see #getEmployee() - * @generated - */ - EAttribute getEmployee_Name(); - - /** - * Returns the meta object for class '{@link org.gastro.inventory.Station <em>Station</em>}'. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @return the meta object for class '<em>Station</em>'. - * @see org.gastro.inventory.Station - * @generated - */ - EClass getStation(); - - /** - * Returns the meta object for the attribute '{@link org.gastro.inventory.Station#getStationID <em>Station ID</em>}'. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the attribute '<em>Station ID</em>'. - * @see org.gastro.inventory.Station#getStationID() - * @see #getStation() - * @generated - */ - EAttribute getStation_StationID(); - - /** - * Returns the meta object for class '{@link org.gastro.inventory.Section <em>Section</em>}'. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @return the meta object for class '<em>Section</em>'. - * @see org.gastro.inventory.Section - * @generated - */ - EClass getSection(); - - /** - * Returns the meta object for the container reference '{@link org.gastro.inventory.Section#getMenuCard - * <em>Menu Card</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the container reference '<em>Menu Card</em>'. - * @see org.gastro.inventory.Section#getMenuCard() - * @see #getSection() - * @generated - */ - EReference getSection_MenuCard(); - - /** - * Returns the meta object for the containment reference list '{@link org.gastro.inventory.Section#getOfferings - * <em>Offerings</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the containment reference list '<em>Offerings</em>'. - * @see org.gastro.inventory.Section#getOfferings() - * @see #getSection() - * @generated - */ - EReference getSection_Offerings(); - - /** - * Returns the meta object for the attribute '{@link org.gastro.inventory.Section#getTitle <em>Title</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the attribute '<em>Title</em>'. - * @see org.gastro.inventory.Section#getTitle() - * @see #getSection() - * @generated - */ - EAttribute getSection_Title(); - - /** - * Returns the meta object for the attribute '{@link org.gastro.inventory.Section#getText <em>Text</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the attribute '<em>Text</em>'. - * @see org.gastro.inventory.Section#getText() - * @see #getSection() - * @generated - */ - EAttribute getSection_Text(); - - /** - * Returns the factory that creates the instances of the model. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the factory that creates the instances of the model. - * @generated - */ - InventoryFactory getInventoryFactory(); - - /** - * <!-- begin-user-doc --> Defines literals for the meta objects that represent - * <ul> - * <li>each class,</li> - * <li>each feature of each class,</li> - * <li>each enum,</li> - * <li>and each data type</li> - * </ul> - * <!-- end-user-doc --> - * - * @generated - */ - interface Literals - { - /** - * The meta object literal for the '{@link org.gastro.inventory.impl.StockImpl <em>Stock</em>}' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @see org.gastro.inventory.impl.StockImpl - * @see org.gastro.inventory.impl.InventoryPackageImpl#getStock() - * @generated - */ - EClass STOCK = eINSTANCE.getStock(); - - /** - * The meta object literal for the '<em><b>Products</b></em>' containment reference list feature. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - EReference STOCK__PRODUCTS = eINSTANCE.getStock_Products(); - - /** - * The meta object literal for the '<em><b>Name</b></em>' attribute feature. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - */ - EAttribute STOCK__NAME = eINSTANCE.getStock_Name(); - - /** - * The meta object literal for the '<em><b>Department</b></em>' container reference feature. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - */ - EReference STOCK__DEPARTMENT = eINSTANCE.getStock_Department(); - - /** - * The meta object literal for the '{@link org.gastro.inventory.impl.ProductImpl <em>Product</em>}' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @see org.gastro.inventory.impl.ProductImpl - * @see org.gastro.inventory.impl.InventoryPackageImpl#getProduct() - * @generated - */ - EClass PRODUCT = eINSTANCE.getProduct(); - - /** - * The meta object literal for the '<em><b>Name</b></em>' attribute feature. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - */ - EAttribute PRODUCT__NAME = eINSTANCE.getProduct_Name(); - - /** - * The meta object literal for the '{@link org.gastro.inventory.impl.StockProductImpl <em>Stock Product</em>}' - * class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.gastro.inventory.impl.StockProductImpl - * @see org.gastro.inventory.impl.InventoryPackageImpl#getStockProduct() - * @generated - */ - EClass STOCK_PRODUCT = eINSTANCE.getStockProduct(); - - /** - * The meta object literal for the '<em><b>Stock</b></em>' container reference feature. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - */ - EReference STOCK_PRODUCT__STOCK = eINSTANCE.getStockProduct_Stock(); - - /** - * The meta object literal for the '<em><b>Cost</b></em>' attribute feature. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - */ - EAttribute STOCK_PRODUCT__COST = eINSTANCE.getStockProduct_Cost(); - - /** - * The meta object literal for the '<em><b>Available</b></em>' attribute feature. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - */ - EAttribute STOCK_PRODUCT__AVAILABLE = eINSTANCE.getStockProduct_Available(); - - /** - * The meta object literal for the '<em><b>Order Limit</b></em>' attribute feature. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - */ - EAttribute STOCK_PRODUCT__ORDER_LIMIT = eINSTANCE.getStockProduct_OrderLimit(); - - /** - * The meta object literal for the '{@link org.gastro.inventory.impl.RecipeImpl <em>Recipe</em>}' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @see org.gastro.inventory.impl.RecipeImpl - * @see org.gastro.inventory.impl.InventoryPackageImpl#getRecipe() - * @generated - */ - EClass RECIPE = eINSTANCE.getRecipe(); - - /** - * The meta object literal for the '<em><b>Ingredients</b></em>' containment reference list feature. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - EReference RECIPE__INGREDIENTS = eINSTANCE.getRecipe_Ingredients(); - - /** - * The meta object literal for the '<em><b>Department</b></em>' container reference feature. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - */ - EReference RECIPE__DEPARTMENT = eINSTANCE.getRecipe_Department(); - - /** - * The meta object literal for the '<em><b>Cost</b></em>' attribute feature. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - */ - EAttribute RECIPE__COST = eINSTANCE.getRecipe_Cost(); - - /** - * The meta object literal for the '{@link org.gastro.inventory.impl.IngredientImpl <em>Ingredient</em>}' class. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.gastro.inventory.impl.IngredientImpl - * @see org.gastro.inventory.impl.InventoryPackageImpl#getIngredient() - * @generated - */ - EClass INGREDIENT = eINSTANCE.getIngredient(); - - /** - * The meta object literal for the '<em><b>Recipe</b></em>' container reference feature. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - */ - EReference INGREDIENT__RECIPE = eINSTANCE.getIngredient_Recipe(); - - /** - * The meta object literal for the '<em><b>Product</b></em>' reference feature. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - */ - EReference INGREDIENT__PRODUCT = eINSTANCE.getIngredient_Product(); - - /** - * The meta object literal for the '<em><b>Quantity</b></em>' attribute feature. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - */ - EAttribute INGREDIENT__QUANTITY = eINSTANCE.getIngredient_Quantity(); - - /** - * The meta object literal for the '{@link org.gastro.inventory.impl.MenuCardImpl <em>Menu Card</em>}' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @see org.gastro.inventory.impl.MenuCardImpl - * @see org.gastro.inventory.impl.InventoryPackageImpl#getMenuCard() - * @generated - */ - EClass MENU_CARD = eINSTANCE.getMenuCard(); - - /** - * The meta object literal for the '<em><b>Title</b></em>' attribute feature. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - */ - EAttribute MENU_CARD__TITLE = eINSTANCE.getMenuCard_Title(); - - /** - * The meta object literal for the '<em><b>Restaurant</b></em>' container reference feature. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - */ - EReference MENU_CARD__RESTAURANT = eINSTANCE.getMenuCard_Restaurant(); - - /** - * The meta object literal for the '<em><b>Sections</b></em>' containment reference list feature. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - EReference MENU_CARD__SECTIONS = eINSTANCE.getMenuCard_Sections(); - - /** - * The meta object literal for the '{@link org.gastro.inventory.impl.RestaurantImpl <em>Restaurant</em>}' class. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.gastro.inventory.impl.RestaurantImpl - * @see org.gastro.inventory.impl.InventoryPackageImpl#getRestaurant() - * @generated - */ - EClass RESTAURANT = eINSTANCE.getRestaurant(); - - /** - * The meta object literal for the '<em><b>Name</b></em>' attribute feature. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - */ - EAttribute RESTAURANT__NAME = eINSTANCE.getRestaurant_Name(); - - /** - * The meta object literal for the '<em><b>Departments</b></em>' containment reference list feature. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - EReference RESTAURANT__DEPARTMENTS = eINSTANCE.getRestaurant_Departments(); - - /** - * The meta object literal for the '<em><b>Menu Cards</b></em>' containment reference list feature. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - EReference RESTAURANT__MENU_CARDS = eINSTANCE.getRestaurant_MenuCards(); - - /** - * The meta object literal for the '<em><b>Tables</b></em>' containment reference list feature. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @generated - */ - EReference RESTAURANT__TABLES = eINSTANCE.getRestaurant_Tables(); - - /** - * The meta object literal for the '<em><b>Stations</b></em>' reference list feature. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - */ - EReference RESTAURANT__STATIONS = eINSTANCE.getRestaurant_Stations(); - - /** - * The meta object literal for the '{@link org.gastro.inventory.impl.DepartmentImpl <em>Department</em>}' class. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.gastro.inventory.impl.DepartmentImpl - * @see org.gastro.inventory.impl.InventoryPackageImpl#getDepartment() - * @generated - */ - EClass DEPARTMENT = eINSTANCE.getDepartment(); - - /** - * The meta object literal for the '<em><b>Recipes</b></em>' containment reference list feature. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @generated - */ - EReference DEPARTMENT__RECIPES = eINSTANCE.getDepartment_Recipes(); - - /** - * The meta object literal for the '<em><b>Restaurant</b></em>' container reference feature. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - */ - EReference DEPARTMENT__RESTAURANT = eINSTANCE.getDepartment_Restaurant(); - - /** - * The meta object literal for the '<em><b>Employees</b></em>' containment reference list feature. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - EReference DEPARTMENT__EMPLOYEES = eINSTANCE.getDepartment_Employees(); - - /** - * The meta object literal for the '<em><b>Stocks</b></em>' containment reference list feature. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @generated - */ - EReference DEPARTMENT__STOCKS = eINSTANCE.getDepartment_Stocks(); - - /** - * The meta object literal for the '{@link org.gastro.inventory.impl.OfferingImpl <em>Offering</em>}' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @see org.gastro.inventory.impl.OfferingImpl - * @see org.gastro.inventory.impl.InventoryPackageImpl#getOffering() - * @generated - */ - EClass OFFERING = eINSTANCE.getOffering(); - - /** - * The meta object literal for the '<em><b>Product</b></em>' reference feature. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - */ - EReference OFFERING__PRODUCT = eINSTANCE.getOffering_Product(); - - /** - * The meta object literal for the '<em><b>Name</b></em>' attribute feature. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - */ - EAttribute OFFERING__NAME = eINSTANCE.getOffering_Name(); - - /** - * The meta object literal for the '<em><b>Description</b></em>' attribute feature. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - */ - EAttribute OFFERING__DESCRIPTION = eINSTANCE.getOffering_Description(); - - /** - * The meta object literal for the '<em><b>Price</b></em>' attribute feature. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - */ - EAttribute OFFERING__PRICE = eINSTANCE.getOffering_Price(); - - /** - * The meta object literal for the '<em><b>Section</b></em>' container reference feature. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - */ - EReference OFFERING__SECTION = eINSTANCE.getOffering_Section(); - - /** - * The meta object literal for the '{@link org.gastro.inventory.impl.TableImpl <em>Table</em>}' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @see org.gastro.inventory.impl.TableImpl - * @see org.gastro.inventory.impl.InventoryPackageImpl#getTable() - * @generated - */ - EClass TABLE = eINSTANCE.getTable(); - - /** - * The meta object literal for the '<em><b>Seats</b></em>' attribute feature. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - */ - EAttribute TABLE__SEATS = eINSTANCE.getTable_Seats(); - - /** - * The meta object literal for the '<em><b>Restaurant</b></em>' container reference feature. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - */ - EReference TABLE__RESTAURANT = eINSTANCE.getTable_Restaurant(); - - /** - * The meta object literal for the '{@link org.gastro.inventory.impl.EmployeeImpl <em>Employee</em>}' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @see org.gastro.inventory.impl.EmployeeImpl - * @see org.gastro.inventory.impl.InventoryPackageImpl#getEmployee() - * @generated - */ - EClass EMPLOYEE = eINSTANCE.getEmployee(); - - /** - * The meta object literal for the '<em><b>Department</b></em>' container reference feature. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - */ - EReference EMPLOYEE__DEPARTMENT = eINSTANCE.getEmployee_Department(); - - /** - * The meta object literal for the '<em><b>Name</b></em>' attribute feature. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - */ - EAttribute EMPLOYEE__NAME = eINSTANCE.getEmployee_Name(); - - /** - * The meta object literal for the '{@link org.gastro.inventory.impl.StationImpl <em>Station</em>}' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @see org.gastro.inventory.impl.StationImpl - * @see org.gastro.inventory.impl.InventoryPackageImpl#getStation() - * @generated - */ - EClass STATION = eINSTANCE.getStation(); - - /** - * The meta object literal for the '<em><b>Station ID</b></em>' attribute feature. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - */ - EAttribute STATION__STATION_ID = eINSTANCE.getStation_StationID(); - - /** - * The meta object literal for the '{@link org.gastro.inventory.impl.SectionImpl <em>Section</em>}' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @see org.gastro.inventory.impl.SectionImpl - * @see org.gastro.inventory.impl.InventoryPackageImpl#getSection() - * @generated - */ - EClass SECTION = eINSTANCE.getSection(); - - /** - * The meta object literal for the '<em><b>Menu Card</b></em>' container reference feature. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - */ - EReference SECTION__MENU_CARD = eINSTANCE.getSection_MenuCard(); - - /** - * The meta object literal for the '<em><b>Offerings</b></em>' containment reference list feature. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - EReference SECTION__OFFERINGS = eINSTANCE.getSection_Offerings(); - - /** - * The meta object literal for the '<em><b>Title</b></em>' attribute feature. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - */ - EAttribute SECTION__TITLE = eINSTANCE.getSection_Title(); - - /** - * The meta object literal for the '<em><b>Text</b></em>' attribute feature. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - */ - EAttribute SECTION__TEXT = eINSTANCE.getSection_Text(); - - } - -} // InventoryPackage diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/MenuCard.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/MenuCard.java deleted file mode 100644 index dfc395643f..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/MenuCard.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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: - * Eike Stepper - initial API and implementation - * - * Initial Publication: - * Eclipse Magazin - http://www.eclipse-magazin.de - */ -package org.gastro.inventory; - -import org.eclipse.emf.cdo.CDOObject; - -import org.eclipse.emf.common.util.EList; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Menu Card</b></em>'. <!-- end-user-doc --> - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.gastro.inventory.MenuCard#getTitle <em>Title</em>}</li> - * <li>{@link org.gastro.inventory.MenuCard#getRestaurant <em>Restaurant</em>}</li> - * <li>{@link org.gastro.inventory.MenuCard#getSections <em>Sections</em>}</li> - * </ul> - * </p> - * - * @see org.gastro.inventory.InventoryPackage#getMenuCard() - * @model - * @extends CDOObject - * @generated - */ -public interface MenuCard extends CDOObject -{ - /** - * Returns the value of the '<em><b>Title</b></em>' attribute. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Title</em>' attribute isn't clear, there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Title</em>' attribute. - * @see #setTitle(String) - * @see org.gastro.inventory.InventoryPackage#getMenuCard_Title() - * @model - * @generated - */ - String getTitle(); - - /** - * Sets the value of the '{@link org.gastro.inventory.MenuCard#getTitle <em>Title</em>}' attribute. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Title</em>' attribute. - * @see #getTitle() - * @generated - */ - void setTitle(String value); - - /** - * Returns the value of the '<em><b>Restaurant</b></em>' container reference. It is bidirectional and its opposite is - * '{@link org.gastro.inventory.Restaurant#getMenuCards <em>Menu Cards</em>}'. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Restaurant</em>' container reference isn't clear, there really should be more of a - * description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Restaurant</em>' container reference. - * @see #setRestaurant(Restaurant) - * @see org.gastro.inventory.InventoryPackage#getMenuCard_Restaurant() - * @see org.gastro.inventory.Restaurant#getMenuCards - * @model opposite="menuCards" required="true" transient="false" - * @generated - */ - Restaurant getRestaurant(); - - /** - * Sets the value of the '{@link org.gastro.inventory.MenuCard#getRestaurant <em>Restaurant</em>}' container - * reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Restaurant</em>' container reference. - * @see #getRestaurant() - * @generated - */ - void setRestaurant(Restaurant value); - - /** - * Returns the value of the '<em><b>Sections</b></em>' containment reference list. The list contents are of type - * {@link org.gastro.inventory.Section}. It is bidirectional and its opposite is ' - * {@link org.gastro.inventory.Section#getMenuCard <em>Menu Card</em>}'. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Sections</em>' containment reference list isn't clear, there really should be more of a - * description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Sections</em>' containment reference list. - * @see org.gastro.inventory.InventoryPackage#getMenuCard_Sections() - * @see org.gastro.inventory.Section#getMenuCard - * @model opposite="menuCard" containment="true" required="true" - * @generated - */ - EList<Section> getSections(); - -} // MenuCard diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/Offering.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/Offering.java deleted file mode 100644 index 5bca0d15fe..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/Offering.java +++ /dev/null @@ -1,173 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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: - * Eike Stepper - initial API and implementation - * - * Initial Publication: - * Eclipse Magazin - http://www.eclipse-magazin.de - */ -package org.gastro.inventory; - -import org.eclipse.emf.cdo.CDOObject; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Offering</b></em>'. <!-- end-user-doc --> - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.gastro.inventory.Offering#getProduct <em>Product</em>}</li> - * <li>{@link org.gastro.inventory.Offering#getName <em>Name</em>}</li> - * <li>{@link org.gastro.inventory.Offering#getDescription <em>Description</em>}</li> - * <li>{@link org.gastro.inventory.Offering#getPrice <em>Price</em>}</li> - * <li>{@link org.gastro.inventory.Offering#getSection <em>Section</em>}</li> - * </ul> - * </p> - * - * @see org.gastro.inventory.InventoryPackage#getOffering() - * @model - * @extends CDOObject - * @generated - */ -public interface Offering extends CDOObject -{ - /** - * Returns the value of the '<em><b>Product</b></em>' reference. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Product</em>' reference isn't clear, there really should be more of a description - * here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Product</em>' reference. - * @see #setProduct(Product) - * @see org.gastro.inventory.InventoryPackage#getOffering_Product() - * @model required="true" - * @generated - */ - Product getProduct(); - - /** - * Sets the value of the '{@link org.gastro.inventory.Offering#getProduct <em>Product</em>}' reference. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Product</em>' reference. - * @see #getProduct() - * @generated - */ - void setProduct(Product value); - - /** - * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Name</em>' attribute. - * @see #setName(String) - * @see org.gastro.inventory.InventoryPackage#getOffering_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.gastro.inventory.Offering#getName <em>Name</em>}' attribute. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Name</em>' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * Returns the value of the '<em><b>Description</b></em>' attribute. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Description</em>' attribute isn't clear, there really should be more of a description - * here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Description</em>' attribute. - * @see #setDescription(String) - * @see org.gastro.inventory.InventoryPackage#getOffering_Description() - * @model - * @generated - */ - String getDescription(); - - /** - * Sets the value of the '{@link org.gastro.inventory.Offering#getDescription <em>Description</em>}' attribute. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Description</em>' attribute. - * @see #getDescription() - * @generated - */ - void setDescription(String value); - - /** - * Returns the value of the '<em><b>Price</b></em>' attribute. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Price</em>' attribute isn't clear, there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Price</em>' attribute. - * @see #setPrice(float) - * @see org.gastro.inventory.InventoryPackage#getOffering_Price() - * @model - * @generated - */ - float getPrice(); - - /** - * Sets the value of the '{@link org.gastro.inventory.Offering#getPrice <em>Price</em>}' attribute. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Price</em>' attribute. - * @see #getPrice() - * @generated - */ - void setPrice(float value); - - /** - * Returns the value of the '<em><b>Section</b></em>' container reference. It is bidirectional and its opposite is ' - * {@link org.gastro.inventory.Section#getOfferings <em>Offerings</em>}'. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Section</em>' container reference isn't clear, there really should be more of a - * description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Section</em>' container reference. - * @see #setSection(Section) - * @see org.gastro.inventory.InventoryPackage#getOffering_Section() - * @see org.gastro.inventory.Section#getOfferings - * @model opposite="offerings" required="true" transient="false" - * @generated - */ - Section getSection(); - - /** - * Sets the value of the '{@link org.gastro.inventory.Offering#getSection <em>Section</em>}' container reference. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Section</em>' container reference. - * @see #getSection() - * @generated - */ - void setSection(Section value); - -} // Offering diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/Product.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/Product.java deleted file mode 100644 index 3169d718d7..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/Product.java +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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: - * Eike Stepper - initial API and implementation - * - * Initial Publication: - * Eclipse Magazin - http://www.eclipse-magazin.de - */ -package org.gastro.inventory; - -import org.eclipse.emf.cdo.CDOObject; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Product</b></em>'. <!-- end-user-doc --> - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.gastro.inventory.Product#getName <em>Name</em>}</li> - * </ul> - * </p> - * - * @see org.gastro.inventory.InventoryPackage#getProduct() - * @model abstract="true" - * @extends CDOObject - * @generated - */ -public interface Product extends CDOObject -{ - /** - * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Name</em>' attribute. - * @see #setName(String) - * @see org.gastro.inventory.InventoryPackage#getProduct_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.gastro.inventory.Product#getName <em>Name</em>}' attribute. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Name</em>' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @model kind="operation" - * @generated - */ - float getCost(); - - /** - * TODO Should be modeled as EOperation! - * - * @ADDED - */ - public Department getDepartment(); -} // Product diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/Recipe.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/Recipe.java deleted file mode 100644 index bb70670f32..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/Recipe.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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: - * Eike Stepper - initial API and implementation - * - * Initial Publication: - * Eclipse Magazin - http://www.eclipse-magazin.de - */ -package org.gastro.inventory; - -import org.eclipse.emf.common.util.EList; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Recipe</b></em>'. <!-- end-user-doc --> - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.gastro.inventory.Recipe#getIngredients <em>Ingredients</em>}</li> - * <li>{@link org.gastro.inventory.Recipe#getDepartment <em>Department</em>}</li> - * <li>{@link org.gastro.inventory.Recipe#getCost <em>Cost</em>}</li> - * </ul> - * </p> - * - * @see org.gastro.inventory.InventoryPackage#getRecipe() - * @model - * @generated - */ -public interface Recipe extends Product -{ - /** - * Returns the value of the '<em><b>Ingredients</b></em>' containment reference list. The list contents are of type - * {@link org.gastro.inventory.Ingredient}. It is bidirectional and its opposite is ' - * {@link org.gastro.inventory.Ingredient#getRecipe <em>Recipe</em>}'. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Ingredients</em>' containment reference list isn't clear, there really should be more of - * a description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Ingredients</em>' containment reference list. - * @see org.gastro.inventory.InventoryPackage#getRecipe_Ingredients() - * @see org.gastro.inventory.Ingredient#getRecipe - * @model opposite="recipe" containment="true" - * @generated - */ - EList<Ingredient> getIngredients(); - - /** - * Returns the value of the '<em><b>Department</b></em>' container reference. It is bidirectional and its opposite is - * '{@link org.gastro.inventory.Department#getRecipes <em>Recipes</em>}'. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Department</em>' reference isn't clear, there really should be more of a description - * here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Department</em>' container reference. - * @see #setDepartment(Department) - * @see org.gastro.inventory.InventoryPackage#getRecipe_Department() - * @see org.gastro.inventory.Department#getRecipes - * @model opposite="recipes" transient="false" - * @generated - */ - Department getDepartment(); - - /** - * Sets the value of the '{@link org.gastro.inventory.Recipe#getDepartment <em>Department</em>}' reference. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Department</em>' reference. - * @see #getDepartment() - * @generated - */ - void setDepartment(Department value); - - /** - * Returns the value of the '<em><b>Cost</b></em>' attribute. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Cost</em>' attribute isn't clear, there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Cost</em>' attribute. - * @see org.gastro.inventory.InventoryPackage#getRecipe_Cost() - * @model transient="true" changeable="false" volatile="true" derived="true" - * @generated - */ - float getCost(); - -} // Recipe diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/Restaurant.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/Restaurant.java deleted file mode 100644 index 6b8c232ec3..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/Restaurant.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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: - * Eike Stepper - initial API and implementation - * - * Initial Publication: - * Eclipse Magazin - http://www.eclipse-magazin.de - */ -package org.gastro.inventory; - -import org.eclipse.emf.cdo.CDOObject; - -import org.eclipse.emf.common.util.EList; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Restaurant</b></em>'. <!-- end-user-doc --> - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.gastro.inventory.Restaurant#getName <em>Name</em>}</li> - * <li>{@link org.gastro.inventory.Restaurant#getDepartments <em>Departments</em>}</li> - * <li>{@link org.gastro.inventory.Restaurant#getMenuCards <em>Menu Cards</em>}</li> - * <li>{@link org.gastro.inventory.Restaurant#getTables <em>Tables</em>}</li> - * <li>{@link org.gastro.inventory.Restaurant#getStations <em>Stations</em>}</li> - * </ul> - * </p> - * - * @see org.gastro.inventory.InventoryPackage#getRestaurant() - * @model - * @extends CDOObject - * @generated - */ -public interface Restaurant extends CDOObject -{ - /** - * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Name</em>' attribute. - * @see #setName(String) - * @see org.gastro.inventory.InventoryPackage#getRestaurant_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.gastro.inventory.Restaurant#getName <em>Name</em>}' attribute. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Name</em>' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * Returns the value of the '<em><b>Departments</b></em>' containment reference list. The list contents are of type - * {@link org.gastro.inventory.Department}. It is bidirectional and its opposite is ' - * {@link org.gastro.inventory.Department#getRestaurant <em>Restaurant</em>}'. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Departments</em>' containment reference list isn't clear, there really should be more of - * a description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Departments</em>' containment reference list. - * @see org.gastro.inventory.InventoryPackage#getRestaurant_Departments() - * @see org.gastro.inventory.Department#getRestaurant - * @model opposite="restaurant" containment="true" - * @generated - */ - EList<Department> getDepartments(); - - /** - * Returns the value of the '<em><b>Menu Cards</b></em>' containment reference list. The list contents are of type - * {@link org.gastro.inventory.MenuCard}. It is bidirectional and its opposite is ' - * {@link org.gastro.inventory.MenuCard#getRestaurant <em>Restaurant</em>}'. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Menu Cards</em>' containment reference list isn't clear, there really should be more of - * a description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Menu Cards</em>' containment reference list. - * @see org.gastro.inventory.InventoryPackage#getRestaurant_MenuCards() - * @see org.gastro.inventory.MenuCard#getRestaurant - * @model opposite="restaurant" containment="true" - * @generated - */ - EList<MenuCard> getMenuCards(); - - /** - * Returns the value of the '<em><b>Tables</b></em>' containment reference list. The list contents are of type - * {@link org.gastro.inventory.Table}. It is bidirectional and its opposite is ' - * {@link org.gastro.inventory.Table#getRestaurant <em>Restaurant</em>}'. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Tables</em>' containment reference list isn't clear, there really should be more of a - * description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Tables</em>' containment reference list. - * @see org.gastro.inventory.InventoryPackage#getRestaurant_Tables() - * @see org.gastro.inventory.Table#getRestaurant - * @model opposite="restaurant" containment="true" - * @generated - */ - EList<Table> getTables(); - - /** - * Returns the value of the '<em><b>Stations</b></em>' reference list. The list contents are of type - * {@link org.gastro.inventory.Station}. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Stations</em>' reference list isn't clear, there really should be more of a description - * here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Stations</em>' reference list. - * @see org.gastro.inventory.InventoryPackage#getRestaurant_Stations() - * @model transient="true" changeable="false" volatile="true" derived="true" - * @generated - */ - EList<Station> getStations(); - -} // Restaurant diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/Section.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/Section.java deleted file mode 100644 index ae67ef55d2..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/Section.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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: - * Eike Stepper - initial API and implementation - * - * Initial Publication: - * Eclipse Magazin - http://www.eclipse-magazin.de - */ -package org.gastro.inventory; - -import org.eclipse.emf.cdo.CDOObject; - -import org.eclipse.emf.common.util.EList; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Section</b></em>'. <!-- end-user-doc --> - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.gastro.inventory.Section#getMenuCard <em>Menu Card</em>}</li> - * <li>{@link org.gastro.inventory.Section#getOfferings <em>Offerings</em>}</li> - * <li>{@link org.gastro.inventory.Section#getTitle <em>Title</em>}</li> - * <li>{@link org.gastro.inventory.Section#getText <em>Text</em>}</li> - * </ul> - * </p> - * - * @see org.gastro.inventory.InventoryPackage#getSection() - * @model - * @extends CDOObject - * @generated - */ -public interface Section extends CDOObject -{ - /** - * Returns the value of the '<em><b>Menu Card</b></em>' container reference. It is bidirectional and its opposite is ' - * {@link org.gastro.inventory.MenuCard#getSections <em>Sections</em>}'. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Menu Card</em>' container reference isn't clear, there really should be more of a - * description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Menu Card</em>' container reference. - * @see #setMenuCard(MenuCard) - * @see org.gastro.inventory.InventoryPackage#getSection_MenuCard() - * @see org.gastro.inventory.MenuCard#getSections - * @model opposite="sections" required="true" transient="false" - * @generated - */ - MenuCard getMenuCard(); - - /** - * Sets the value of the '{@link org.gastro.inventory.Section#getMenuCard <em>Menu Card</em>}' container reference. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Menu Card</em>' container reference. - * @see #getMenuCard() - * @generated - */ - void setMenuCard(MenuCard value); - - /** - * Returns the value of the '<em><b>Offerings</b></em>' containment reference list. The list contents are of type - * {@link org.gastro.inventory.Offering}. It is bidirectional and its opposite is ' - * {@link org.gastro.inventory.Offering#getSection <em>Section</em>}'. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Offerings</em>' containment reference list isn't clear, there really should be more of a - * description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Offerings</em>' containment reference list. - * @see org.gastro.inventory.InventoryPackage#getSection_Offerings() - * @see org.gastro.inventory.Offering#getSection - * @model opposite="section" containment="true" required="true" - * @generated - */ - EList<Offering> getOfferings(); - - /** - * Returns the value of the '<em><b>Title</b></em>' attribute. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Title</em>' attribute isn't clear, there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Title</em>' attribute. - * @see #setTitle(String) - * @see org.gastro.inventory.InventoryPackage#getSection_Title() - * @model - * @generated - */ - String getTitle(); - - /** - * Sets the value of the '{@link org.gastro.inventory.Section#getTitle <em>Title</em>}' attribute. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Title</em>' attribute. - * @see #getTitle() - * @generated - */ - void setTitle(String value); - - /** - * Returns the value of the '<em><b>Text</b></em>' attribute. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Text</em>' attribute isn't clear, there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Text</em>' attribute. - * @see #setText(String) - * @see org.gastro.inventory.InventoryPackage#getSection_Text() - * @model - * @generated - */ - String getText(); - - /** - * Sets the value of the '{@link org.gastro.inventory.Section#getText <em>Text</em>}' attribute. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Text</em>' attribute. - * @see #getText() - * @generated - */ - void setText(String value); - -} // Section diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/Station.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/Station.java deleted file mode 100644 index b8c45bf151..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/Station.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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: - * Eike Stepper - initial API and implementation - * - * Initial Publication: - * Eclipse Magazin - http://www.eclipse-magazin.de - */ -package org.gastro.inventory; - -import org.eclipse.emf.cdo.CDOObject; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Station</b></em>'. <!-- end-user-doc --> - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.gastro.inventory.Station#getStationID <em>Station ID</em>}</li> - * </ul> - * </p> - * - * @see org.gastro.inventory.InventoryPackage#getStation() - * @model abstract="true" - * @extends CDOObject - * @generated - */ -public interface Station extends CDOObject -{ - /** - * Returns the value of the '<em><b>Station ID</b></em>' attribute. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Station ID</em>' attribute isn't clear, there really should be more of a description - * here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Station ID</em>' attribute. - * @see #setStationID(String) - * @see org.gastro.inventory.InventoryPackage#getStation_StationID() - * @model - * @generated - */ - String getStationID(); - - /** - * Sets the value of the '{@link org.gastro.inventory.Station#getStationID <em>Station ID</em>}' attribute. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Station ID</em>' attribute. - * @see #getStationID() - * @generated - */ - void setStationID(String value); - -} // Station diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/Stock.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/Stock.java deleted file mode 100644 index 6e42b308d1..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/Stock.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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: - * Eike Stepper - initial API and implementation - * - * Initial Publication: - * Eclipse Magazin - http://www.eclipse-magazin.de - */ -package org.gastro.inventory; - -import org.eclipse.emf.cdo.CDOObject; - -import org.eclipse.emf.common.util.EList; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Stock</b></em>'. <!-- end-user-doc --> - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.gastro.inventory.Stock#getProducts <em>Products</em>}</li> - * <li>{@link org.gastro.inventory.Stock#getName <em>Name</em>}</li> - * <li>{@link org.gastro.inventory.Stock#getDepartment <em>Department</em>}</li> - * </ul> - * </p> - * - * @see org.gastro.inventory.InventoryPackage#getStock() - * @model - * @extends CDOObject - * @generated - */ -public interface Stock extends CDOObject -{ - /** - * Returns the value of the '<em><b>Products</b></em>' containment reference list. The list contents are of type - * {@link org.gastro.inventory.StockProduct}. It is bidirectional and its opposite is ' - * {@link org.gastro.inventory.StockProduct#getStock <em>Stock</em>}'. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Products</em>' containment reference list isn't clear, there really should be more of a - * description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Products</em>' containment reference list. - * @see org.gastro.inventory.InventoryPackage#getStock_Products() - * @see org.gastro.inventory.StockProduct#getStock - * @model opposite="stock" containment="true" - * @generated - */ - EList<StockProduct> getProducts(); - - /** - * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Name</em>' attribute. - * @see #setName(String) - * @see org.gastro.inventory.InventoryPackage#getStock_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.gastro.inventory.Stock#getName <em>Name</em>}' attribute. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Name</em>' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * Returns the value of the '<em><b>Department</b></em>' container reference. It is bidirectional and its opposite is - * '{@link org.gastro.inventory.Department#getStocks <em>Stocks</em>}'. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Department</em>' container reference isn't clear, there really should be more of a - * description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Department</em>' container reference. - * @see #setDepartment(Department) - * @see org.gastro.inventory.InventoryPackage#getStock_Department() - * @see org.gastro.inventory.Department#getStocks - * @model opposite="stocks" required="true" transient="false" - * @generated - */ - Department getDepartment(); - - /** - * Sets the value of the '{@link org.gastro.inventory.Stock#getDepartment <em>Department</em>}' container reference. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Department</em>' container reference. - * @see #getDepartment() - * @generated - */ - void setDepartment(Department value); - -} // Stock diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/StockProduct.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/StockProduct.java deleted file mode 100644 index a1b0762d83..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/StockProduct.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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: - * Eike Stepper - initial API and implementation - * - * Initial Publication: - * Eclipse Magazin - http://www.eclipse-magazin.de - */ -package org.gastro.inventory; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Stock Product</b></em>'. <!-- end-user-doc --> - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.gastro.inventory.StockProduct#getStock <em>Stock</em>}</li> - * <li>{@link org.gastro.inventory.StockProduct#getCost <em>Cost</em>}</li> - * <li>{@link org.gastro.inventory.StockProduct#getAvailable <em>Available</em>}</li> - * <li>{@link org.gastro.inventory.StockProduct#getOrderLimit <em>Order Limit</em>}</li> - * </ul> - * </p> - * - * @see org.gastro.inventory.InventoryPackage#getStockProduct() - * @model - * @generated - */ -public interface StockProduct extends Product -{ - /** - * Returns the value of the '<em><b>Stock</b></em>' container reference. It is bidirectional and its opposite is ' - * {@link org.gastro.inventory.Stock#getProducts <em>Products</em>}'. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Stock</em>' container reference isn't clear, there really should be more of a - * description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Stock</em>' container reference. - * @see #setStock(Stock) - * @see org.gastro.inventory.InventoryPackage#getStockProduct_Stock() - * @see org.gastro.inventory.Stock#getProducts - * @model opposite="products" required="true" transient="false" - * @generated - */ - Stock getStock(); - - /** - * Sets the value of the '{@link org.gastro.inventory.StockProduct#getStock <em>Stock</em>}' container reference. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Stock</em>' container reference. - * @see #getStock() - * @generated - */ - void setStock(Stock value); - - /** - * Returns the value of the '<em><b>Cost</b></em>' attribute. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Cost</em>' attribute isn't clear, there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Cost</em>' attribute. - * @see #setCost(float) - * @see org.gastro.inventory.InventoryPackage#getStockProduct_Cost() - * @model - * @generated - */ - float getCost(); - - /** - * Sets the value of the '{@link org.gastro.inventory.StockProduct#getCost <em>Cost</em>}' attribute. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Cost</em>' attribute. - * @see #getCost() - * @generated - */ - void setCost(float value); - - /** - * Returns the value of the '<em><b>Available</b></em>' attribute. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Available</em>' attribute isn't clear, there really should be more of a description - * here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Available</em>' attribute. - * @see #setAvailable(int) - * @see org.gastro.inventory.InventoryPackage#getStockProduct_Available() - * @model - * @generated - */ - int getAvailable(); - - /** - * Sets the value of the '{@link org.gastro.inventory.StockProduct#getAvailable <em>Available</em>}' attribute. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Available</em>' attribute. - * @see #getAvailable() - * @generated - */ - void setAvailable(int value); - - /** - * Returns the value of the '<em><b>Order Limit</b></em>' attribute. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Order Limit</em>' attribute isn't clear, there really should be more of a description - * here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Order Limit</em>' attribute. - * @see #setOrderLimit(int) - * @see org.gastro.inventory.InventoryPackage#getStockProduct_OrderLimit() - * @model - * @generated - */ - int getOrderLimit(); - - /** - * Sets the value of the '{@link org.gastro.inventory.StockProduct#getOrderLimit <em>Order Limit</em>}' attribute. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Order Limit</em>' attribute. - * @see #getOrderLimit() - * @generated - */ - void setOrderLimit(int value); - -} // StockProduct diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/Table.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/Table.java deleted file mode 100644 index 4bf1d680cc..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/Table.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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: - * Eike Stepper - initial API and implementation - * - * Initial Publication: - * Eclipse Magazin - http://www.eclipse-magazin.de - */ -package org.gastro.inventory; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Table</b></em>'. <!-- end-user-doc --> - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.gastro.inventory.Table#getSeats <em>Seats</em>}</li> - * <li>{@link org.gastro.inventory.Table#getRestaurant <em>Restaurant</em>}</li> - * </ul> - * </p> - * - * @see org.gastro.inventory.InventoryPackage#getTable() - * @model - * @generated - */ -public interface Table extends Station -{ - /** - * Returns the value of the '<em><b>Seats</b></em>' attribute. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Seats</em>' attribute isn't clear, there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Seats</em>' attribute. - * @see #setSeats(int) - * @see org.gastro.inventory.InventoryPackage#getTable_Seats() - * @model - * @generated - */ - int getSeats(); - - /** - * Sets the value of the '{@link org.gastro.inventory.Table#getSeats <em>Seats</em>}' attribute. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Seats</em>' attribute. - * @see #getSeats() - * @generated - */ - void setSeats(int value); - - /** - * Returns the value of the '<em><b>Restaurant</b></em>' container reference. It is bidirectional and its opposite is - * '{@link org.gastro.inventory.Restaurant#getTables <em>Tables</em>}'. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Restaurant</em>' container reference isn't clear, there really should be more of a - * description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Restaurant</em>' container reference. - * @see #setRestaurant(Restaurant) - * @see org.gastro.inventory.InventoryPackage#getTable_Restaurant() - * @see org.gastro.inventory.Restaurant#getTables - * @model opposite="tables" required="true" transient="false" - * @generated - */ - Restaurant getRestaurant(); - - /** - * Sets the value of the '{@link org.gastro.inventory.Table#getRestaurant <em>Restaurant</em>}' container reference. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Restaurant</em>' container reference. - * @see #getRestaurant() - * @generated - */ - void setRestaurant(Restaurant value); - -} // Table diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/DepartmentImpl.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/DepartmentImpl.java deleted file mode 100644 index 144015abd7..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/DepartmentImpl.java +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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: - * Eike Stepper - initial API and implementation - * - * Initial Publication: - * Eclipse Magazin - http://www.eclipse-magazin.de - */ -package org.gastro.inventory.impl; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; - -import org.gastro.inventory.Department; -import org.gastro.inventory.Employee; -import org.gastro.inventory.InventoryPackage; -import org.gastro.inventory.Recipe; -import org.gastro.inventory.Restaurant; -import org.gastro.inventory.Stock; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Department</b></em>'. <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.gastro.inventory.impl.DepartmentImpl#getRecipes <em>Recipes</em>}</li> - * <li>{@link org.gastro.inventory.impl.DepartmentImpl#getRestaurant <em>Restaurant</em>}</li> - * <li>{@link org.gastro.inventory.impl.DepartmentImpl#getEmployees <em>Employees</em>}</li> - * <li>{@link org.gastro.inventory.impl.DepartmentImpl#getStocks <em>Stocks</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class DepartmentImpl extends StationImpl implements Department -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected DepartmentImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return InventoryPackage.Literals.DEPARTMENT; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - public EList<Recipe> getRecipes() - { - return (EList<Recipe>)eGet(InventoryPackage.Literals.DEPARTMENT__RECIPES, true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public Restaurant getRestaurant() - { - return (Restaurant)eGet(InventoryPackage.Literals.DEPARTMENT__RESTAURANT, true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setRestaurant(Restaurant newRestaurant) - { - eSet(InventoryPackage.Literals.DEPARTMENT__RESTAURANT, newRestaurant); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - public EList<Employee> getEmployees() - { - return (EList<Employee>)eGet(InventoryPackage.Literals.DEPARTMENT__EMPLOYEES, true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - public EList<Stock> getStocks() - { - return (EList<Stock>)eGet(InventoryPackage.Literals.DEPARTMENT__STOCKS, true); - } - -} // DepartmentImpl diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/EmployeeImpl.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/EmployeeImpl.java deleted file mode 100644 index df63267ce8..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/EmployeeImpl.java +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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: - * Eike Stepper - initial API and implementation - * - * Initial Publication: - * Eclipse Magazin - http://www.eclipse-magazin.de - */ -package org.gastro.inventory.impl; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.ecore.EClass; - -import org.gastro.inventory.Department; -import org.gastro.inventory.Employee; -import org.gastro.inventory.InventoryPackage; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Employee</b></em>'. <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.gastro.inventory.impl.EmployeeImpl#getDepartment <em>Department</em>}</li> - * <li>{@link org.gastro.inventory.impl.EmployeeImpl#getName <em>Name</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class EmployeeImpl extends CDOObjectImpl implements Employee -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected EmployeeImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return InventoryPackage.Literals.EMPLOYEE; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public Department getDepartment() - { - return (Department)eGet(InventoryPackage.Literals.EMPLOYEE__DEPARTMENT, true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setDepartment(Department newDepartment) - { - eSet(InventoryPackage.Literals.EMPLOYEE__DEPARTMENT, newDepartment); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public String getName() - { - return (String)eGet(InventoryPackage.Literals.EMPLOYEE__NAME, true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setName(String newName) - { - eSet(InventoryPackage.Literals.EMPLOYEE__NAME, newName); - } - -} // EmployeeImpl diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/IngredientImpl.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/IngredientImpl.java deleted file mode 100644 index a8fef90a0e..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/IngredientImpl.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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: - * Eike Stepper - initial API and implementation - * - * Initial Publication: - * Eclipse Magazin - http://www.eclipse-magazin.de - */ -package org.gastro.inventory.impl; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.ecore.EClass; - -import org.gastro.inventory.Ingredient; -import org.gastro.inventory.InventoryPackage; -import org.gastro.inventory.Product; -import org.gastro.inventory.Recipe; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Ingredient</b></em>'. <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.gastro.inventory.impl.IngredientImpl#getRecipe <em>Recipe</em>}</li> - * <li>{@link org.gastro.inventory.impl.IngredientImpl#getProduct <em>Product</em>}</li> - * <li>{@link org.gastro.inventory.impl.IngredientImpl#getQuantity <em>Quantity</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class IngredientImpl extends CDOObjectImpl implements Ingredient -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected IngredientImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return InventoryPackage.Literals.INGREDIENT; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public Recipe getRecipe() - { - return (Recipe)eGet(InventoryPackage.Literals.INGREDIENT__RECIPE, true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setRecipe(Recipe newRecipe) - { - eSet(InventoryPackage.Literals.INGREDIENT__RECIPE, newRecipe); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public Product getProduct() - { - return (Product)eGet(InventoryPackage.Literals.INGREDIENT__PRODUCT, true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setProduct(Product newProduct) - { - eSet(InventoryPackage.Literals.INGREDIENT__PRODUCT, newProduct); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public int getQuantity() - { - return (Integer)eGet(InventoryPackage.Literals.INGREDIENT__QUANTITY, true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setQuantity(int newQuantity) - { - eSet(InventoryPackage.Literals.INGREDIENT__QUANTITY, newQuantity); - } - -} // IngredientImpl diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/InventoryFactoryImpl.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/InventoryFactoryImpl.java deleted file mode 100644 index a7a7b58618..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/InventoryFactoryImpl.java +++ /dev/null @@ -1,256 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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: - * Eike Stepper - initial API and implementation - * - * Initial Publication: - * Eclipse Magazin - http://www.eclipse-magazin.de - */ -package org.gastro.inventory.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.emf.ecore.plugin.EcorePlugin; - -import org.gastro.inventory.Department; -import org.gastro.inventory.Employee; -import org.gastro.inventory.Ingredient; -import org.gastro.inventory.InventoryFactory; -import org.gastro.inventory.InventoryPackage; -import org.gastro.inventory.MenuCard; -import org.gastro.inventory.Offering; -import org.gastro.inventory.Recipe; -import org.gastro.inventory.Restaurant; -import org.gastro.inventory.Section; -import org.gastro.inventory.Stock; -import org.gastro.inventory.StockProduct; -import org.gastro.inventory.Table; - -/** - * <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!-- end-user-doc --> - * - * @generated - */ -public class InventoryFactoryImpl extends EFactoryImpl implements InventoryFactory -{ - /** - * Creates the default factory implementation. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public static InventoryFactory init() - { - try - { - InventoryFactory theInventoryFactory = (InventoryFactory)EPackage.Registry.INSTANCE - .getEFactory("http://www.gastro.org/inventory/1.0"); - if (theInventoryFactory != null) - { - return theInventoryFactory; - } - } - catch (Exception exception) - { - EcorePlugin.INSTANCE.log(exception); - } - return new InventoryFactoryImpl(); - } - - /** - * Creates an instance of the factory. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public InventoryFactoryImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public EObject create(EClass eClass) - { - switch (eClass.getClassifierID()) - { - case InventoryPackage.STOCK: - return (EObject)createStock(); - case InventoryPackage.STOCK_PRODUCT: - return (EObject)createStockProduct(); - case InventoryPackage.RECIPE: - return (EObject)createRecipe(); - case InventoryPackage.INGREDIENT: - return (EObject)createIngredient(); - case InventoryPackage.MENU_CARD: - return (EObject)createMenuCard(); - case InventoryPackage.RESTAURANT: - return (EObject)createRestaurant(); - case InventoryPackage.DEPARTMENT: - return (EObject)createDepartment(); - case InventoryPackage.OFFERING: - return (EObject)createOffering(); - case InventoryPackage.TABLE: - return (EObject)createTable(); - case InventoryPackage.EMPLOYEE: - return (EObject)createEmployee(); - case InventoryPackage.SECTION: - return (EObject)createSection(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public Stock createStock() - { - StockImpl stock = new StockImpl(); - return stock; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public StockProduct createStockProduct() - { - StockProductImpl stockProduct = new StockProductImpl(); - return stockProduct; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public Recipe createRecipe() - { - RecipeImpl recipe = new RecipeImpl(); - return recipe; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public Ingredient createIngredient() - { - IngredientImpl ingredient = new IngredientImpl(); - return ingredient; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public MenuCard createMenuCard() - { - MenuCardImpl menuCard = new MenuCardImpl(); - return menuCard; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public Restaurant createRestaurant() - { - RestaurantImpl restaurant = new RestaurantImpl(); - return restaurant; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public Department createDepartment() - { - DepartmentImpl department = new DepartmentImpl(); - return department; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public Offering createOffering() - { - OfferingImpl offering = new OfferingImpl(); - return offering; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public Table createTable() - { - TableImpl table = new TableImpl(); - return table; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public Employee createEmployee() - { - EmployeeImpl employee = new EmployeeImpl(); - return employee; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public Section createSection() - { - SectionImpl section = new SectionImpl(); - return section; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public InventoryPackage getInventoryPackage() - { - return (InventoryPackage)getEPackage(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @deprecated - * @generated - */ - @Deprecated - public static InventoryPackage getPackage() - { - return InventoryPackage.eINSTANCE; - } - -} // InventoryFactoryImpl diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/InventoryPackageImpl.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/InventoryPackageImpl.java deleted file mode 100644 index e7486d6296..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/InventoryPackageImpl.java +++ /dev/null @@ -1,999 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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: - * Eike Stepper - initial API and implementation - * - * Initial Publication: - * Eclipse Magazin - http://www.eclipse-magazin.de - */ -package org.gastro.inventory.impl; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.impl.EPackageImpl; - -import org.gastro.inventory.Department; -import org.gastro.inventory.Employee; -import org.gastro.inventory.Ingredient; -import org.gastro.inventory.InventoryFactory; -import org.gastro.inventory.InventoryPackage; -import org.gastro.inventory.MenuCard; -import org.gastro.inventory.Offering; -import org.gastro.inventory.Product; -import org.gastro.inventory.Recipe; -import org.gastro.inventory.Restaurant; -import org.gastro.inventory.Section; -import org.gastro.inventory.Station; -import org.gastro.inventory.Stock; -import org.gastro.inventory.StockProduct; -import org.gastro.inventory.Table; - -/** - * <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!-- end-user-doc --> - * - * @generated - */ -public class InventoryPackageImpl extends EPackageImpl implements InventoryPackage -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass stockEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass productEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass stockProductEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass recipeEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass ingredientEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass menuCardEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass restaurantEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass departmentEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass offeringEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass tableEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass employeeEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass stationEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass sectionEClass = null; - - /** - * Creates an instance of the model <b>Package</b>, registered with {@link org.eclipse.emf.ecore.EPackage.Registry - * EPackage.Registry} by the package package URI value. - * <p> - * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also - * performs initialization of the package, or returns the registered package, if one already exists. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.gastro.inventory.InventoryPackage#eNS_URI - * @see #init() - * @generated - */ - private InventoryPackageImpl() - { - super(eNS_URI, InventoryFactory.eINSTANCE); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. - * <p> - * This method is used to initialize {@link InventoryPackage#eINSTANCE} when that field is accessed. Clients should - * not invoke it directly. Instead, they should simply access that field to obtain the package. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static InventoryPackage init() - { - if (isInited) - return (InventoryPackage)EPackage.Registry.INSTANCE.getEPackage(InventoryPackage.eNS_URI); - - // Obtain or create and register package - InventoryPackageImpl theInventoryPackage = (InventoryPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof InventoryPackageImpl ? EPackage.Registry.INSTANCE - .get(eNS_URI) : new InventoryPackageImpl()); - - isInited = true; - - // Create package meta-data objects - theInventoryPackage.createPackageContents(); - - // Initialize created meta-data - theInventoryPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theInventoryPackage.freeze(); - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(InventoryPackage.eNS_URI, theInventoryPackage); - return theInventoryPackage; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getStock() - { - return stockEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getStock_Products() - { - return (EReference)stockEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getStock_Name() - { - return (EAttribute)stockEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getStock_Department() - { - return (EReference)stockEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getProduct() - { - return productEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getProduct_Name() - { - return (EAttribute)productEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getStockProduct() - { - return stockProductEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getStockProduct_Stock() - { - return (EReference)stockProductEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getStockProduct_Cost() - { - return (EAttribute)stockProductEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getStockProduct_Available() - { - return (EAttribute)stockProductEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getStockProduct_OrderLimit() - { - return (EAttribute)stockProductEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getRecipe() - { - return recipeEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getRecipe_Ingredients() - { - return (EReference)recipeEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getRecipe_Department() - { - return (EReference)recipeEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getRecipe_Cost() - { - return (EAttribute)recipeEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getIngredient() - { - return ingredientEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getIngredient_Recipe() - { - return (EReference)ingredientEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getIngredient_Product() - { - return (EReference)ingredientEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getIngredient_Quantity() - { - return (EAttribute)ingredientEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getMenuCard() - { - return menuCardEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getMenuCard_Title() - { - return (EAttribute)menuCardEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getMenuCard_Restaurant() - { - return (EReference)menuCardEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getMenuCard_Sections() - { - return (EReference)menuCardEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getRestaurant() - { - return restaurantEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getRestaurant_Name() - { - return (EAttribute)restaurantEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getRestaurant_Departments() - { - return (EReference)restaurantEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getRestaurant_MenuCards() - { - return (EReference)restaurantEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getRestaurant_Tables() - { - return (EReference)restaurantEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getRestaurant_Stations() - { - return (EReference)restaurantEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getDepartment() - { - return departmentEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getDepartment_Recipes() - { - return (EReference)departmentEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getDepartment_Restaurant() - { - return (EReference)departmentEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getDepartment_Employees() - { - return (EReference)departmentEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getDepartment_Stocks() - { - return (EReference)departmentEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getOffering() - { - return offeringEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getOffering_Product() - { - return (EReference)offeringEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getOffering_Name() - { - return (EAttribute)offeringEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getOffering_Description() - { - return (EAttribute)offeringEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getOffering_Price() - { - return (EAttribute)offeringEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getOffering_Section() - { - return (EReference)offeringEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getTable() - { - return tableEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getTable_Seats() - { - return (EAttribute)tableEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getTable_Restaurant() - { - return (EReference)tableEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getEmployee() - { - return employeeEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getEmployee_Department() - { - return (EReference)employeeEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getEmployee_Name() - { - return (EAttribute)employeeEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getStation() - { - return stationEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getStation_StationID() - { - return (EAttribute)stationEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getSection() - { - return sectionEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getSection_MenuCard() - { - return (EReference)sectionEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getSection_Offerings() - { - return (EReference)sectionEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getSection_Title() - { - return (EAttribute)sectionEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getSection_Text() - { - return (EAttribute)sectionEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public InventoryFactory getInventoryFactory() - { - return (InventoryFactory)getEFactoryInstance(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is guarded to have no affect on any invocation but its - * first. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void createPackageContents() - { - if (isCreated) - return; - isCreated = true; - - // Create classes and their features - stockEClass = createEClass(STOCK); - createEReference(stockEClass, STOCK__PRODUCTS); - createEAttribute(stockEClass, STOCK__NAME); - createEReference(stockEClass, STOCK__DEPARTMENT); - - productEClass = createEClass(PRODUCT); - createEAttribute(productEClass, PRODUCT__NAME); - - stockProductEClass = createEClass(STOCK_PRODUCT); - createEReference(stockProductEClass, STOCK_PRODUCT__STOCK); - createEAttribute(stockProductEClass, STOCK_PRODUCT__COST); - createEAttribute(stockProductEClass, STOCK_PRODUCT__AVAILABLE); - createEAttribute(stockProductEClass, STOCK_PRODUCT__ORDER_LIMIT); - - recipeEClass = createEClass(RECIPE); - createEReference(recipeEClass, RECIPE__INGREDIENTS); - createEReference(recipeEClass, RECIPE__DEPARTMENT); - createEAttribute(recipeEClass, RECIPE__COST); - - ingredientEClass = createEClass(INGREDIENT); - createEReference(ingredientEClass, INGREDIENT__RECIPE); - createEReference(ingredientEClass, INGREDIENT__PRODUCT); - createEAttribute(ingredientEClass, INGREDIENT__QUANTITY); - - menuCardEClass = createEClass(MENU_CARD); - createEAttribute(menuCardEClass, MENU_CARD__TITLE); - createEReference(menuCardEClass, MENU_CARD__RESTAURANT); - createEReference(menuCardEClass, MENU_CARD__SECTIONS); - - restaurantEClass = createEClass(RESTAURANT); - createEAttribute(restaurantEClass, RESTAURANT__NAME); - createEReference(restaurantEClass, RESTAURANT__DEPARTMENTS); - createEReference(restaurantEClass, RESTAURANT__MENU_CARDS); - createEReference(restaurantEClass, RESTAURANT__TABLES); - createEReference(restaurantEClass, RESTAURANT__STATIONS); - - departmentEClass = createEClass(DEPARTMENT); - createEReference(departmentEClass, DEPARTMENT__RECIPES); - createEReference(departmentEClass, DEPARTMENT__RESTAURANT); - createEReference(departmentEClass, DEPARTMENT__EMPLOYEES); - createEReference(departmentEClass, DEPARTMENT__STOCKS); - - offeringEClass = createEClass(OFFERING); - createEReference(offeringEClass, OFFERING__PRODUCT); - createEAttribute(offeringEClass, OFFERING__NAME); - createEAttribute(offeringEClass, OFFERING__DESCRIPTION); - createEAttribute(offeringEClass, OFFERING__PRICE); - createEReference(offeringEClass, OFFERING__SECTION); - - tableEClass = createEClass(TABLE); - createEAttribute(tableEClass, TABLE__SEATS); - createEReference(tableEClass, TABLE__RESTAURANT); - - employeeEClass = createEClass(EMPLOYEE); - createEReference(employeeEClass, EMPLOYEE__DEPARTMENT); - createEAttribute(employeeEClass, EMPLOYEE__NAME); - - stationEClass = createEClass(STATION); - createEAttribute(stationEClass, STATION__STATION_ID); - - sectionEClass = createEClass(SECTION); - createEReference(sectionEClass, SECTION__MENU_CARD); - createEReference(sectionEClass, SECTION__OFFERINGS); - createEAttribute(sectionEClass, SECTION__TITLE); - createEAttribute(sectionEClass, SECTION__TEXT); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This method is guarded to have no affect on any - * invocation but its first. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void initializePackageContents() - { - if (isInitialized) - return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - stockProductEClass.getESuperTypes().add(this.getProduct()); - recipeEClass.getESuperTypes().add(this.getProduct()); - departmentEClass.getESuperTypes().add(this.getStation()); - tableEClass.getESuperTypes().add(this.getStation()); - - // Initialize classes and features; add operations and parameters - initEClass(stockEClass, Stock.class, "Stock", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getStock_Products(), this.getStockProduct(), this.getStockProduct_Stock(), "products", null, 0, -1, - Stock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getStock_Name(), ecorePackage.getEString(), "name", null, 0, 1, Stock.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getStock_Department(), this.getDepartment(), this.getDepartment_Stocks(), "department", null, 1, 1, - Stock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(productEClass, Product.class, "Product", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getProduct_Name(), ecorePackage.getEString(), "name", null, 0, 1, Product.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - addEOperation(productEClass, ecorePackage.getEFloat(), "getCost", 0, 1, IS_UNIQUE, IS_ORDERED); - - initEClass(stockProductEClass, StockProduct.class, "StockProduct", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEReference(getStockProduct_Stock(), this.getStock(), this.getStock_Products(), "stock", null, 1, 1, - StockProduct.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getStockProduct_Cost(), ecorePackage.getEFloat(), "cost", null, 0, 1, StockProduct.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getStockProduct_Available(), ecorePackage.getEInt(), "available", null, 0, 1, StockProduct.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getStockProduct_OrderLimit(), ecorePackage.getEInt(), "orderLimit", null, 0, 1, StockProduct.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(recipeEClass, Recipe.class, "Recipe", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getRecipe_Ingredients(), this.getIngredient(), this.getIngredient_Recipe(), "ingredients", null, 0, - -1, Recipe.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getRecipe_Department(), this.getDepartment(), this.getDepartment_Recipes(), "department", null, 0, - 1, Recipe.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getRecipe_Cost(), ecorePackage.getEFloat(), "cost", null, 0, 1, Recipe.class, IS_TRANSIENT, - IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED); - - initEClass(ingredientEClass, Ingredient.class, "Ingredient", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEReference(getIngredient_Recipe(), this.getRecipe(), this.getRecipe_Ingredients(), "recipe", null, 1, 1, - Ingredient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getIngredient_Product(), this.getProduct(), null, "product", null, 1, 1, Ingredient.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEAttribute(getIngredient_Quantity(), ecorePackage.getEInt(), "quantity", null, 0, 1, Ingredient.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(menuCardEClass, MenuCard.class, "MenuCard", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getMenuCard_Title(), ecorePackage.getEString(), "title", null, 0, 1, MenuCard.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getMenuCard_Restaurant(), this.getRestaurant(), this.getRestaurant_MenuCards(), "restaurant", null, - 1, 1, MenuCard.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getMenuCard_Sections(), this.getSection(), this.getSection_MenuCard(), "sections", null, 1, -1, - MenuCard.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(restaurantEClass, Restaurant.class, "Restaurant", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getRestaurant_Name(), ecorePackage.getEString(), "name", null, 0, 1, Restaurant.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getRestaurant_Departments(), this.getDepartment(), this.getDepartment_Restaurant(), "departments", - null, 0, -1, Restaurant.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getRestaurant_MenuCards(), this.getMenuCard(), this.getMenuCard_Restaurant(), "menuCards", null, 0, - -1, Restaurant.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getRestaurant_Tables(), this.getTable(), this.getTable_Restaurant(), "tables", null, 0, -1, - Restaurant.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getRestaurant_Stations(), this.getStation(), null, "stations", null, 0, -1, Restaurant.class, - IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, - IS_DERIVED, IS_ORDERED); - - initEClass(departmentEClass, Department.class, "Department", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEReference(getDepartment_Recipes(), this.getRecipe(), this.getRecipe_Department(), "recipes", null, 0, -1, - Department.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getDepartment_Restaurant(), this.getRestaurant(), this.getRestaurant_Departments(), "restaurant", - null, 1, 1, Department.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getDepartment_Employees(), this.getEmployee(), this.getEmployee_Department(), "employees", null, 0, - -1, Department.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getDepartment_Stocks(), this.getStock(), this.getStock_Department(), "stocks", null, 1, -1, - Department.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(offeringEClass, Offering.class, "Offering", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getOffering_Product(), this.getProduct(), null, "product", null, 1, 1, Offering.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEAttribute(getOffering_Name(), ecorePackage.getEString(), "name", null, 0, 1, Offering.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getOffering_Description(), ecorePackage.getEString(), "description", null, 0, 1, Offering.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getOffering_Price(), ecorePackage.getEFloat(), "price", null, 0, 1, Offering.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getOffering_Section(), this.getSection(), this.getSection_Offerings(), "section", null, 1, 1, - Offering.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(tableEClass, Table.class, "Table", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getTable_Seats(), ecorePackage.getEInt(), "seats", null, 0, 1, Table.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getTable_Restaurant(), this.getRestaurant(), this.getRestaurant_Tables(), "restaurant", null, 1, 1, - Table.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(employeeEClass, Employee.class, "Employee", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getEmployee_Department(), this.getDepartment(), this.getDepartment_Employees(), "department", null, - 0, 1, Employee.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getEmployee_Name(), ecorePackage.getEString(), "name", null, 0, 1, Employee.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(stationEClass, Station.class, "Station", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getStation_StationID(), ecorePackage.getEString(), "stationID", null, 0, 1, Station.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(sectionEClass, Section.class, "Section", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getSection_MenuCard(), this.getMenuCard(), this.getMenuCard_Sections(), "menuCard", null, 1, 1, - Section.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getSection_Offerings(), this.getOffering(), this.getOffering_Section(), "offerings", null, 1, -1, - Section.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getSection_Title(), ecorePackage.getEString(), "title", null, 0, 1, Section.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getSection_Text(), ecorePackage.getEString(), "text", null, 0, 1, Section.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - // Create resource - createResource(eNS_URI); - } - -} // InventoryPackageImpl diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/MenuCardImpl.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/MenuCardImpl.java deleted file mode 100644 index feb4a5d9fc..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/MenuCardImpl.java +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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: - * Eike Stepper - initial API and implementation - * - * Initial Publication: - * Eclipse Magazin - http://www.eclipse-magazin.de - */ -package org.gastro.inventory.impl; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; - -import org.gastro.inventory.InventoryPackage; -import org.gastro.inventory.MenuCard; -import org.gastro.inventory.Restaurant; -import org.gastro.inventory.Section; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Menu Card</b></em>'. <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.gastro.inventory.impl.MenuCardImpl#getTitle <em>Title</em>}</li> - * <li>{@link org.gastro.inventory.impl.MenuCardImpl#getRestaurant <em>Restaurant</em>}</li> - * <li>{@link org.gastro.inventory.impl.MenuCardImpl#getSections <em>Sections</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class MenuCardImpl extends CDOObjectImpl implements MenuCard -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected MenuCardImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return InventoryPackage.Literals.MENU_CARD; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public String getTitle() - { - return (String)eGet(InventoryPackage.Literals.MENU_CARD__TITLE, true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setTitle(String newTitle) - { - eSet(InventoryPackage.Literals.MENU_CARD__TITLE, newTitle); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public Restaurant getRestaurant() - { - return (Restaurant)eGet(InventoryPackage.Literals.MENU_CARD__RESTAURANT, true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setRestaurant(Restaurant newRestaurant) - { - eSet(InventoryPackage.Literals.MENU_CARD__RESTAURANT, newRestaurant); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - public EList<Section> getSections() - { - return (EList<Section>)eGet(InventoryPackage.Literals.MENU_CARD__SECTIONS, true); - } - -} // MenuCardImpl diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/OfferingImpl.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/OfferingImpl.java deleted file mode 100644 index f9035a548b..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/OfferingImpl.java +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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: - * Eike Stepper - initial API and implementation - * - * Initial Publication: - * Eclipse Magazin - http://www.eclipse-magazin.de - */ -package org.gastro.inventory.impl; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.ecore.EClass; - -import org.gastro.inventory.InventoryPackage; -import org.gastro.inventory.Offering; -import org.gastro.inventory.Product; -import org.gastro.inventory.Section; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Offering</b></em>'. <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.gastro.inventory.impl.OfferingImpl#getProduct <em>Product</em>}</li> - * <li>{@link org.gastro.inventory.impl.OfferingImpl#getName <em>Name</em>}</li> - * <li>{@link org.gastro.inventory.impl.OfferingImpl#getDescription <em>Description</em>}</li> - * <li>{@link org.gastro.inventory.impl.OfferingImpl#getPrice <em>Price</em>}</li> - * <li>{@link org.gastro.inventory.impl.OfferingImpl#getSection <em>Section</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class OfferingImpl extends CDOObjectImpl implements Offering -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected OfferingImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return InventoryPackage.Literals.OFFERING; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public Product getProduct() - { - return (Product)eGet(InventoryPackage.Literals.OFFERING__PRODUCT, true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setProduct(Product newProduct) - { - eSet(InventoryPackage.Literals.OFFERING__PRODUCT, newProduct); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public String getName() - { - return (String)eGet(InventoryPackage.Literals.OFFERING__NAME, true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setName(String newName) - { - eSet(InventoryPackage.Literals.OFFERING__NAME, newName); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public String getDescription() - { - return (String)eGet(InventoryPackage.Literals.OFFERING__DESCRIPTION, true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setDescription(String newDescription) - { - eSet(InventoryPackage.Literals.OFFERING__DESCRIPTION, newDescription); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public float getPrice() - { - return (Float)eGet(InventoryPackage.Literals.OFFERING__PRICE, true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setPrice(float newPrice) - { - eSet(InventoryPackage.Literals.OFFERING__PRICE, newPrice); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public Section getSection() - { - return (Section)eGet(InventoryPackage.Literals.OFFERING__SECTION, true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setSection(Section newSection) - { - eSet(InventoryPackage.Literals.OFFERING__SECTION, newSection); - } - -} // OfferingImpl diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/ProductImpl.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/ProductImpl.java deleted file mode 100644 index 5eb9c4a64b..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/ProductImpl.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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: - * Eike Stepper - initial API and implementation - * - * Initial Publication: - * Eclipse Magazin - http://www.eclipse-magazin.de - */ -package org.gastro.inventory.impl; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.ecore.EClass; - -import org.gastro.inventory.InventoryPackage; -import org.gastro.inventory.Product; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Product</b></em>'. <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.gastro.inventory.impl.ProductImpl#getName <em>Name</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public abstract class ProductImpl extends CDOObjectImpl implements Product -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected ProductImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return InventoryPackage.Literals.PRODUCT; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public String getName() - { - return (String)eGet(InventoryPackage.Literals.PRODUCT__NAME, true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setName(String newName) - { - eSet(InventoryPackage.Literals.PRODUCT__NAME, newName); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated NOT - */ - public abstract float getCost(); - -} // ProductImpl diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/RecipeImpl.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/RecipeImpl.java deleted file mode 100644 index eaaa735ab3..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/RecipeImpl.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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: - * Eike Stepper - initial API and implementation - * - * Initial Publication: - * Eclipse Magazin - http://www.eclipse-magazin.de - */ -package org.gastro.inventory.impl; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; - -import org.gastro.inventory.Department; -import org.gastro.inventory.Ingredient; -import org.gastro.inventory.InventoryPackage; -import org.gastro.inventory.Recipe; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Recipe</b></em>'. <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.gastro.inventory.impl.RecipeImpl#getIngredients <em>Ingredients</em>}</li> - * <li>{@link org.gastro.inventory.impl.RecipeImpl#getDepartment <em>Department</em>}</li> - * <li>{@link org.gastro.inventory.impl.RecipeImpl#getCost <em>Cost</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class RecipeImpl extends ProductImpl implements Recipe -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected RecipeImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return InventoryPackage.Literals.RECIPE; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - public EList<Ingredient> getIngredients() - { - return (EList<Ingredient>)eGet(InventoryPackage.Literals.RECIPE__INGREDIENTS, true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public Department getDepartment() - { - return (Department)eGet(InventoryPackage.Literals.RECIPE__DEPARTMENT, true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setDepartment(Department newDepartment) - { - eSet(InventoryPackage.Literals.RECIPE__DEPARTMENT, newDepartment); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated NOT - */ - @Override - public float getCost() - { - float cost = 0f; - for (Ingredient ingredient : getIngredients()) - { - cost += ingredient.getQuantity() * ingredient.getProduct().getCost(); - } - - return cost; - } - - // /** - // * <!-- begin-user-doc --> - // * <!-- end-user-doc --> - // * @generated - // */ - // public float getCost() - // { - // return (Float)eGet(InventoryPackage.Literals.RECIPE__COST, true); - // } - - // /** - // * @ADDED - // */ - // @Override - // public float getCost() - // { - // float cost = 0f; - // for (Ingredient ingredient : getIngredients()) - // { - // cost += ingredient.getQuantity() * ingredient.getProduct().getCost(); - // } - // - // return cost; - // } - -} // RecipeImpl diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/RestaurantImpl.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/RestaurantImpl.java deleted file mode 100644 index 9f8b257fb4..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/RestaurantImpl.java +++ /dev/null @@ -1,152 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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: - * Eike Stepper - initial API and implementation - * - * Initial Publication: - * Eclipse Magazin - http://www.eclipse-magazin.de - */ -package org.gastro.inventory.impl; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.common.util.BasicEList; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; - -import org.gastro.inventory.Department; -import org.gastro.inventory.InventoryPackage; -import org.gastro.inventory.MenuCard; -import org.gastro.inventory.Restaurant; -import org.gastro.inventory.Station; -import org.gastro.inventory.Table; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Restaurant</b></em>'. <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.gastro.inventory.impl.RestaurantImpl#getName <em>Name</em>}</li> - * <li>{@link org.gastro.inventory.impl.RestaurantImpl#getDepartments <em>Departments</em>}</li> - * <li>{@link org.gastro.inventory.impl.RestaurantImpl#getMenuCards <em>Menu Cards</em>}</li> - * <li>{@link org.gastro.inventory.impl.RestaurantImpl#getTables <em>Tables</em>}</li> - * <li>{@link org.gastro.inventory.impl.RestaurantImpl#getStations <em>Stations</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class RestaurantImpl extends CDOObjectImpl implements Restaurant -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected RestaurantImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return InventoryPackage.Literals.RESTAURANT; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public String getName() - { - return (String)eGet(InventoryPackage.Literals.RESTAURANT__NAME, true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setName(String newName) - { - eSet(InventoryPackage.Literals.RESTAURANT__NAME, newName); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - public EList<Department> getDepartments() - { - return (EList<Department>)eGet(InventoryPackage.Literals.RESTAURANT__DEPARTMENTS, true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - public EList<MenuCard> getMenuCards() - { - return (EList<MenuCard>)eGet(InventoryPackage.Literals.RESTAURANT__MENU_CARDS, true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - public EList<Table> getTables() - { - return (EList<Table>)eGet(InventoryPackage.Literals.RESTAURANT__TABLES, true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated NOT - */ - public EList<Station> getStations() - { - EList<Station> stations = new BasicEList<Station>(); - for (Department department : getDepartments()) - { - stations.add(department); - } - - for (Table table : getTables()) - { - stations.add(table); - } - - return stations; - } - -} // RestaurantImpl diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/SectionImpl.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/SectionImpl.java deleted file mode 100644 index 02a659b480..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/SectionImpl.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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: - * Eike Stepper - initial API and implementation - * - * Initial Publication: - * Eclipse Magazin - http://www.eclipse-magazin.de - */ -package org.gastro.inventory.impl; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; - -import org.gastro.inventory.InventoryPackage; -import org.gastro.inventory.MenuCard; -import org.gastro.inventory.Offering; -import org.gastro.inventory.Section; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Section</b></em>'. <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.gastro.inventory.impl.SectionImpl#getMenuCard <em>Menu Card</em>}</li> - * <li>{@link org.gastro.inventory.impl.SectionImpl#getOfferings <em>Offerings</em>}</li> - * <li>{@link org.gastro.inventory.impl.SectionImpl#getTitle <em>Title</em>}</li> - * <li>{@link org.gastro.inventory.impl.SectionImpl#getText <em>Text</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class SectionImpl extends CDOObjectImpl implements Section -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected SectionImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return InventoryPackage.Literals.SECTION; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public MenuCard getMenuCard() - { - return (MenuCard)eGet(InventoryPackage.Literals.SECTION__MENU_CARD, true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setMenuCard(MenuCard newMenuCard) - { - eSet(InventoryPackage.Literals.SECTION__MENU_CARD, newMenuCard); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - public EList<Offering> getOfferings() - { - return (EList<Offering>)eGet(InventoryPackage.Literals.SECTION__OFFERINGS, true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public String getTitle() - { - return (String)eGet(InventoryPackage.Literals.SECTION__TITLE, true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setTitle(String newTitle) - { - eSet(InventoryPackage.Literals.SECTION__TITLE, newTitle); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public String getText() - { - return (String)eGet(InventoryPackage.Literals.SECTION__TEXT, true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setText(String newText) - { - eSet(InventoryPackage.Literals.SECTION__TEXT, newText); - } - -} // SectionImpl diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/StationImpl.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/StationImpl.java deleted file mode 100644 index 2f05b89e3f..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/StationImpl.java +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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: - * Eike Stepper - initial API and implementation - * - * Initial Publication: - * Eclipse Magazin - http://www.eclipse-magazin.de - */ -package org.gastro.inventory.impl; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.ecore.EClass; - -import org.gastro.inventory.InventoryPackage; -import org.gastro.inventory.Station; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Station</b></em>'. <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.gastro.inventory.impl.StationImpl#getStationID <em>Station ID</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public abstract class StationImpl extends CDOObjectImpl implements Station -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected StationImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return InventoryPackage.Literals.STATION; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public String getStationID() - { - return (String)eGet(InventoryPackage.Literals.STATION__STATION_ID, true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setStationID(String newStationID) - { - eSet(InventoryPackage.Literals.STATION__STATION_ID, newStationID); - } - -} // StationImpl diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/StockImpl.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/StockImpl.java deleted file mode 100644 index ec29072c3b..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/StockImpl.java +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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: - * Eike Stepper - initial API and implementation - * - * Initial Publication: - * Eclipse Magazin - http://www.eclipse-magazin.de - */ -package org.gastro.inventory.impl; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; - -import org.gastro.inventory.Department; -import org.gastro.inventory.InventoryPackage; -import org.gastro.inventory.Stock; -import org.gastro.inventory.StockProduct; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Stock</b></em>'. <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.gastro.inventory.impl.StockImpl#getProducts <em>Products</em>}</li> - * <li>{@link org.gastro.inventory.impl.StockImpl#getName <em>Name</em>}</li> - * <li>{@link org.gastro.inventory.impl.StockImpl#getDepartment <em>Department</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class StockImpl extends CDOObjectImpl implements Stock -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected StockImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return InventoryPackage.Literals.STOCK; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - public EList<StockProduct> getProducts() - { - return (EList<StockProduct>)eGet(InventoryPackage.Literals.STOCK__PRODUCTS, true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public String getName() - { - return (String)eGet(InventoryPackage.Literals.STOCK__NAME, true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setName(String newName) - { - eSet(InventoryPackage.Literals.STOCK__NAME, newName); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public Department getDepartment() - { - return (Department)eGet(InventoryPackage.Literals.STOCK__DEPARTMENT, true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setDepartment(Department newDepartment) - { - eSet(InventoryPackage.Literals.STOCK__DEPARTMENT, newDepartment); - } - -} // StockImpl diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/StockProductImpl.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/StockProductImpl.java deleted file mode 100644 index a9d3063afd..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/StockProductImpl.java +++ /dev/null @@ -1,157 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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: - * Eike Stepper - initial API and implementation - * - * Initial Publication: - * Eclipse Magazin - http://www.eclipse-magazin.de - */ -package org.gastro.inventory.impl; - -import org.eclipse.emf.ecore.EClass; - -import org.gastro.inventory.Department; -import org.gastro.inventory.InventoryPackage; -import org.gastro.inventory.Stock; -import org.gastro.inventory.StockProduct; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Stock Product</b></em>'. <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.gastro.inventory.impl.StockProductImpl#getStock <em>Stock</em>}</li> - * <li>{@link org.gastro.inventory.impl.StockProductImpl#getCost <em>Cost</em>}</li> - * <li>{@link org.gastro.inventory.impl.StockProductImpl#getAvailable <em>Available</em>}</li> - * <li>{@link org.gastro.inventory.impl.StockProductImpl#getOrderLimit <em>Order Limit</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class StockProductImpl extends ProductImpl implements StockProduct -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected StockProductImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return InventoryPackage.Literals.STOCK_PRODUCT; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public Stock getStock() - { - return (Stock)eGet(InventoryPackage.Literals.STOCK_PRODUCT__STOCK, true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setStock(Stock newStock) - { - eSet(InventoryPackage.Literals.STOCK_PRODUCT__STOCK, newStock); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public float getCost() - { - return (Float)eGet(InventoryPackage.Literals.STOCK_PRODUCT__COST, true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setCost(float newCost) - { - eSet(InventoryPackage.Literals.STOCK_PRODUCT__COST, newCost); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public int getAvailable() - { - return (Integer)eGet(InventoryPackage.Literals.STOCK_PRODUCT__AVAILABLE, true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setAvailable(int newAvailable) - { - eSet(InventoryPackage.Literals.STOCK_PRODUCT__AVAILABLE, newAvailable); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public int getOrderLimit() - { - return (Integer)eGet(InventoryPackage.Literals.STOCK_PRODUCT__ORDER_LIMIT, true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setOrderLimit(int newOrderLimit) - { - eSet(InventoryPackage.Literals.STOCK_PRODUCT__ORDER_LIMIT, newOrderLimit); - } - - /** - * TODO Should be modeled as derived EReference! - * - * @ADDED - */ - public Department getDepartment() - { - Stock stock = getStock(); - if (stock != null) - { - return stock.getDepartment(); - } - - return null; - } - -} // StockProductImpl diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/TableImpl.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/TableImpl.java deleted file mode 100644 index f1f285fbdf..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/impl/TableImpl.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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: - * Eike Stepper - initial API and implementation - * - * Initial Publication: - * Eclipse Magazin - http://www.eclipse-magazin.de - */ -package org.gastro.inventory.impl; - -import org.eclipse.emf.ecore.EClass; - -import org.gastro.inventory.InventoryPackage; -import org.gastro.inventory.Restaurant; -import org.gastro.inventory.Table; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Table</b></em>'. <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.gastro.inventory.impl.TableImpl#getSeats <em>Seats</em>}</li> - * <li>{@link org.gastro.inventory.impl.TableImpl#getRestaurant <em>Restaurant</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class TableImpl extends StationImpl implements Table -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected TableImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return InventoryPackage.Literals.TABLE; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public int getSeats() - { - return (Integer)eGet(InventoryPackage.Literals.TABLE__SEATS, true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setSeats(int newSeats) - { - eSet(InventoryPackage.Literals.TABLE__SEATS, newSeats); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public Restaurant getRestaurant() - { - return (Restaurant)eGet(InventoryPackage.Literals.TABLE__RESTAURANT, true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setRestaurant(Restaurant newRestaurant) - { - eSet(InventoryPackage.Literals.TABLE__RESTAURANT, newRestaurant); - } - -} // TableImpl diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/util/InventoryAdapterFactory.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/util/InventoryAdapterFactory.java deleted file mode 100644 index 7355e8e7d6..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/util/InventoryAdapterFactory.java +++ /dev/null @@ -1,387 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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: - * Eike Stepper - initial API and implementation - * - * Initial Publication: - * Eclipse Magazin - http://www.eclipse-magazin.de - */ -package org.gastro.inventory.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.gastro.inventory.Department; -import org.gastro.inventory.Employee; -import org.gastro.inventory.Ingredient; -import org.gastro.inventory.InventoryPackage; -import org.gastro.inventory.MenuCard; -import org.gastro.inventory.Offering; -import org.gastro.inventory.Product; -import org.gastro.inventory.Recipe; -import org.gastro.inventory.Restaurant; -import org.gastro.inventory.Section; -import org.gastro.inventory.Station; -import org.gastro.inventory.Stock; -import org.gastro.inventory.StockProduct; -import org.gastro.inventory.Table; - -/** - * <!-- 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.gastro.inventory.InventoryPackage - * @generated - */ -public class InventoryAdapterFactory extends AdapterFactoryImpl -{ - /** - * The cached model package. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected static InventoryPackage modelPackage; - - /** - * Creates an instance of the adapter factory. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public InventoryAdapterFactory() - { - if (modelPackage == null) - { - modelPackage = InventoryPackage.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 InventorySwitch<Adapter> modelSwitch = new InventorySwitch<Adapter>() - { - @Override - public Adapter caseStock(Stock object) - { - return createStockAdapter(); - } - - @Override - public Adapter caseProduct(Product object) - { - return createProductAdapter(); - } - - @Override - public Adapter caseStockProduct(StockProduct object) - { - return createStockProductAdapter(); - } - - @Override - public Adapter caseRecipe(Recipe object) - { - return createRecipeAdapter(); - } - - @Override - public Adapter caseIngredient(Ingredient object) - { - return createIngredientAdapter(); - } - - @Override - public Adapter caseMenuCard(MenuCard object) - { - return createMenuCardAdapter(); - } - - @Override - public Adapter caseRestaurant(Restaurant object) - { - return createRestaurantAdapter(); - } - - @Override - public Adapter caseDepartment(Department object) - { - return createDepartmentAdapter(); - } - - @Override - public Adapter caseOffering(Offering object) - { - return createOfferingAdapter(); - } - - @Override - public Adapter caseTable(Table object) - { - return createTableAdapter(); - } - - @Override - public Adapter caseEmployee(Employee object) - { - return createEmployeeAdapter(); - } - - @Override - public Adapter caseStation(Station object) - { - return createStationAdapter(); - } - - @Override - public Adapter caseSection(Section object) - { - return createSectionAdapter(); - } - - @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.gastro.inventory.Stock <em>Stock</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.gastro.inventory.Stock - * @generated - */ - public Adapter createStockAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.gastro.inventory.Product <em>Product</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.gastro.inventory.Product - * @generated - */ - public Adapter createProductAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.gastro.inventory.StockProduct <em>Stock Product</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.gastro.inventory.StockProduct - * @generated - */ - public Adapter createStockProductAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.gastro.inventory.Recipe <em>Recipe</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.gastro.inventory.Recipe - * @generated - */ - public Adapter createRecipeAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.gastro.inventory.Ingredient <em>Ingredient</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.gastro.inventory.Ingredient - * @generated - */ - public Adapter createIngredientAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.gastro.inventory.MenuCard <em>Menu Card</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.gastro.inventory.MenuCard - * @generated - */ - public Adapter createMenuCardAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.gastro.inventory.Restaurant <em>Restaurant</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.gastro.inventory.Restaurant - * @generated - */ - public Adapter createRestaurantAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.gastro.inventory.Department <em>Department</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.gastro.inventory.Department - * @generated - */ - public Adapter createDepartmentAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.gastro.inventory.Offering <em>Offering</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.gastro.inventory.Offering - * @generated - */ - public Adapter createOfferingAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.gastro.inventory.Table <em>Table</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.gastro.inventory.Table - * @generated - */ - public Adapter createTableAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.gastro.inventory.Employee <em>Employee</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.gastro.inventory.Employee - * @generated - */ - public Adapter createEmployeeAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.gastro.inventory.Station <em>Station</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.gastro.inventory.Station - * @generated - */ - public Adapter createStationAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.gastro.inventory.Section <em>Section</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.gastro.inventory.Section - * @generated - */ - public Adapter createSectionAdapter() - { - 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; - } - -} // InventoryAdapterFactory diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/util/InventorySwitch.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/util/InventorySwitch.java deleted file mode 100644 index 70cd59b0e2..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.inventory/src/org/gastro/inventory/util/InventorySwitch.java +++ /dev/null @@ -1,472 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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: - * Eike Stepper - initial API and implementation - * - * Initial Publication: - * Eclipse Magazin - http://www.eclipse-magazin.de - */ -package org.gastro.inventory.util; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; - -import org.gastro.inventory.Department; -import org.gastro.inventory.Employee; -import org.gastro.inventory.Ingredient; -import org.gastro.inventory.InventoryPackage; -import org.gastro.inventory.MenuCard; -import org.gastro.inventory.Offering; -import org.gastro.inventory.Product; -import org.gastro.inventory.Recipe; -import org.gastro.inventory.Restaurant; -import org.gastro.inventory.Section; -import org.gastro.inventory.Station; -import org.gastro.inventory.Stock; -import org.gastro.inventory.StockProduct; -import org.gastro.inventory.Table; - -import java.util.List; - -/** - * <!-- begin-user-doc --> The <b>Switch</b> for the model's inheritance hierarchy. It supports the call - * {@link #doSwitch(EObject) doSwitch(object)} to invoke the <code>caseXXX</code> method for each class of the model, - * starting with the actual class of the object and proceeding up the inheritance hierarchy until a non-null result is - * returned, which is the result of the switch. <!-- end-user-doc --> - * - * @see org.gastro.inventory.InventoryPackage - * @generated - */ -public class InventorySwitch<T> -{ - /** - * The cached model package <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected static InventoryPackage modelPackage; - - /** - * Creates an instance of the switch. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public InventorySwitch() - { - if (modelPackage == null) - { - modelPackage = InventoryPackage.eINSTANCE; - } - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - public T doSwitch(EObject theEObject) - { - return doSwitch(theEObject.eClass(), theEObject); - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - protected T doSwitch(EClass theEClass, EObject theEObject) - { - if (theEClass.eContainer() == modelPackage) - { - return doSwitch(theEClass.getClassifierID(), theEObject); - } - else - { - List<EClass> eSuperTypes = theEClass.getESuperTypes(); - return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(eSuperTypes.get(0), theEObject); - } - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - protected T doSwitch(int classifierID, EObject theEObject) - { - switch (classifierID) - { - case InventoryPackage.STOCK: - { - Stock stock = (Stock)theEObject; - T result = caseStock(stock); - if (result == null) - { - result = defaultCase(theEObject); - } - return result; - } - case InventoryPackage.PRODUCT: - { - Product product = (Product)theEObject; - T result = caseProduct(product); - if (result == null) - { - result = defaultCase(theEObject); - } - return result; - } - case InventoryPackage.STOCK_PRODUCT: - { - StockProduct stockProduct = (StockProduct)theEObject; - T result = caseStockProduct(stockProduct); - if (result == null) - { - result = caseProduct(stockProduct); - } - if (result == null) - { - result = defaultCase(theEObject); - } - return result; - } - case InventoryPackage.RECIPE: - { - Recipe recipe = (Recipe)theEObject; - T result = caseRecipe(recipe); - if (result == null) - { - result = caseProduct(recipe); - } - if (result == null) - { - result = defaultCase(theEObject); - } - return result; - } - case InventoryPackage.INGREDIENT: - { - Ingredient ingredient = (Ingredient)theEObject; - T result = caseIngredient(ingredient); - if (result == null) - { - result = defaultCase(theEObject); - } - return result; - } - case InventoryPackage.MENU_CARD: - { - MenuCard menuCard = (MenuCard)theEObject; - T result = caseMenuCard(menuCard); - if (result == null) - { - result = defaultCase(theEObject); - } - return result; - } - case InventoryPackage.RESTAURANT: - { - Restaurant restaurant = (Restaurant)theEObject; - T result = caseRestaurant(restaurant); - if (result == null) - { - result = defaultCase(theEObject); - } - return result; - } - case InventoryPackage.DEPARTMENT: - { - Department department = (Department)theEObject; - T result = caseDepartment(department); - if (result == null) - { - result = caseStation(department); - } - if (result == null) - { - result = defaultCase(theEObject); - } - return result; - } - case InventoryPackage.OFFERING: - { - Offering offering = (Offering)theEObject; - T result = caseOffering(offering); - if (result == null) - { - result = defaultCase(theEObject); - } - return result; - } - case InventoryPackage.TABLE: - { - Table table = (Table)theEObject; - T result = caseTable(table); - if (result == null) - { - result = caseStation(table); - } - if (result == null) - { - result = defaultCase(theEObject); - } - return result; - } - case InventoryPackage.EMPLOYEE: - { - Employee employee = (Employee)theEObject; - T result = caseEmployee(employee); - if (result == null) - { - result = defaultCase(theEObject); - } - return result; - } - case InventoryPackage.STATION: - { - Station station = (Station)theEObject; - T result = caseStation(station); - if (result == null) - { - result = defaultCase(theEObject); - } - return result; - } - case InventoryPackage.SECTION: - { - Section section = (Section)theEObject; - T result = caseSection(section); - if (result == null) - { - result = defaultCase(theEObject); - } - return result; - } - default: - return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Stock</em>'. <!-- begin-user-doc --> This - * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Stock</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseStock(Stock object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Product</em>'. <!-- begin-user-doc --> This - * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Product</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseProduct(Product object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Stock Product</em>'. <!-- begin-user-doc --> - * This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Stock Product</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseStockProduct(StockProduct object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Recipe</em>'. <!-- begin-user-doc --> This - * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Recipe</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseRecipe(Recipe object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Ingredient</em>'. <!-- begin-user-doc --> This - * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Ingredient</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseIngredient(Ingredient object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Menu Card</em>'. <!-- begin-user-doc --> This - * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Menu Card</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseMenuCard(MenuCard object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Restaurant</em>'. <!-- begin-user-doc --> This - * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Restaurant</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseRestaurant(Restaurant object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Department</em>'. <!-- begin-user-doc --> This - * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Department</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseDepartment(Department object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Offering</em>'. <!-- begin-user-doc --> This - * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Offering</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseOffering(Offering object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Table</em>'. <!-- begin-user-doc --> This - * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Table</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseTable(Table object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Employee</em>'. <!-- begin-user-doc --> This - * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Employee</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseEmployee(Employee object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Station</em>'. <!-- begin-user-doc --> This - * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Station</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseStation(Station object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Section</em>'. <!-- begin-user-doc --> This - * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Section</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseSection(Section object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. <!-- begin-user-doc --> This - * implementation returns null; returning a non-null result will terminate the switch, but this is the last case - * anyway. <!-- end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>EObject</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - public T defaultCase(EObject object) - { - return null; - } - -} // InventorySwitch |