Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
NeqModPlus
NeqModPlus Case Study HFT Campus
Commits
92c8b79f
Commit
92c8b79f
authored
4 years ago
by
Kai-Holger Brassel
Browse files
Options
Download
Email Patches
Plain Diff
Camel case names for model files genmodel prefix
parent
fa0d7069
Changes
39
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
EclipseDemoCatalog/demo.catalog/src-gen/demo/catalog/democatalog/EnergyComponent.java
+4
-4
...log/src-gen/demo/catalog/democatalog/EnergyComponent.java
EclipseDemoCatalog/demo.catalog/src-gen/demo/catalog/democatalog/EnergyComponentsCatalog.java
+7
-7
...gen/demo/catalog/democatalog/EnergyComponentsCatalog.java
EclipseDemoCatalog/demo.catalog/src-gen/demo/catalog/democatalog/Inverter.java
+2
-2
...mo.catalog/src-gen/demo/catalog/democatalog/Inverter.java
EclipseDemoCatalog/demo.catalog/src-gen/demo/catalog/democatalog/Manufacturer.java
+2
-2
...atalog/src-gen/demo/catalog/democatalog/Manufacturer.java
EclipseDemoCatalog/demo.catalog/src-gen/demo/catalog/democatalog/SolarPanel.java
+2
-2
....catalog/src-gen/demo/catalog/democatalog/SolarPanel.java
EclipseDemoCatalog/demo.catalog/src-gen/demo/catalog/democatalog/democatalogFactory.java
+5
-5
.../src-gen/demo/catalog/democatalog/democatalogFactory.java
EclipseDemoCatalog/demo.catalog/src-gen/demo/catalog/democatalog/democatalogPackage.java
+23
-23
.../src-gen/demo/catalog/democatalog/democatalogPackage.java
EclipseDemoCatalog/demo.catalog/src-gen/demo/catalog/democatalog/impl/BoilerImpl.java
+7
-7
...log/src-gen/demo/catalog/democatalog/impl/BoilerImpl.java
EclipseDemoCatalog/demo.catalog/src-gen/demo/catalog/democatalog/impl/ChemicalEnergyDeviceImpl.java
+7
-7
...mo/catalog/democatalog/impl/ChemicalEnergyDeviceImpl.java
EclipseDemoCatalog/demo.catalog/src-gen/demo/catalog/democatalog/impl/CombinedHeatPowerImpl.java
+7
-7
.../demo/catalog/democatalog/impl/CombinedHeatPowerImpl.java
EclipseDemoCatalog/demo.catalog/src-gen/demo/catalog/democatalog/impl/EnergyComponentImpl.java
+18
-18
...en/demo/catalog/democatalog/impl/EnergyComponentImpl.java
EclipseDemoCatalog/demo.catalog/src-gen/demo/catalog/democatalog/impl/EnergyComponentsCatalogImpl.java
+37
-37
...catalog/democatalog/impl/EnergyComponentsCatalogImpl.java
EclipseDemoCatalog/demo.catalog/src-gen/demo/catalog/democatalog/impl/InverterImpl.java
+7
-7
...g/src-gen/demo/catalog/democatalog/impl/InverterImpl.java
EclipseDemoCatalog/demo.catalog/src-gen/demo/catalog/democatalog/impl/ManufacturerImpl.java
+7
-7
...c-gen/demo/catalog/democatalog/impl/ManufacturerImpl.java
EclipseDemoCatalog/demo.catalog/src-gen/demo/catalog/democatalog/impl/SolarPanelImpl.java
+7
-7
...src-gen/demo/catalog/democatalog/impl/SolarPanelImpl.java
EclipseDemoCatalog/demo.catalog/src-gen/demo/catalog/democatalog/impl/democatalogFactoryImpl.java
+21
-21
...demo/catalog/democatalog/impl/democatalogFactoryImpl.java
EclipseDemoCatalog/demo.catalog/src-gen/demo/catalog/democatalog/impl/democatalogPackageImpl.java
+21
-21
...demo/catalog/democatalog/impl/democatalogPackageImpl.java
EclipseDemoCatalog/demo.catalog/src-gen/demo/catalog/democatalog/util/democatalogAdapterFactory.java
+7
-7
...o/catalog/democatalog/util/democatalogAdapterFactory.java
EclipseDemoCatalog/demo.catalog/src-gen/demo/catalog/democatalog/util/democatalogSwitch.java
+14
-14
...-gen/demo/catalog/democatalog/util/democatalogSwitch.java
with
205 additions
and
205 deletions
+205
-205
EclipseDemoCatalog/demo.catalog/src-gen/demo/catalog/democatalog/EnergyComponent.java
+
4
-
4
View file @
92c8b79f
...
@@ -18,7 +18,7 @@ import org.eclipse.emf.ecore.EObject;
...
@@ -18,7 +18,7 @@ import org.eclipse.emf.ecore.EObject;
* <li>{@link demo.catalog.democatalog.EnergyComponent#getProducedBy <em>Produced By</em>}</li>
* <li>{@link demo.catalog.democatalog.EnergyComponent#getProducedBy <em>Produced By</em>}</li>
* </ul>
* </ul>
*
*
* @see demo.catalog.democatalog.
d
emo
c
atalogPackage#getEnergyComponent()
* @see demo.catalog.democatalog.
D
emo
C
atalogPackage#getEnergyComponent()
* @model abstract="true"
* @model abstract="true"
* @generated
* @generated
*/
*/
...
@@ -29,7 +29,7 @@ public interface EnergyComponent extends EObject {
...
@@ -29,7 +29,7 @@ public interface EnergyComponent extends EObject {
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Model Name</em>' attribute.
* @return the value of the '<em>Model Name</em>' attribute.
* @see #setModelName(String)
* @see #setModelName(String)
* @see demo.catalog.democatalog.
d
emo
c
atalogPackage#getEnergyComponent_ModelName()
* @see demo.catalog.democatalog.
D
emo
C
atalogPackage#getEnergyComponent_ModelName()
* @model required="true"
* @model required="true"
* @generated
* @generated
*/
*/
...
@@ -51,7 +51,7 @@ public interface EnergyComponent extends EObject {
...
@@ -51,7 +51,7 @@ public interface EnergyComponent extends EObject {
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Revision Year</em>' attribute.
* @return the value of the '<em>Revision Year</em>' attribute.
* @see #setRevisionYear(int)
* @see #setRevisionYear(int)
* @see demo.catalog.democatalog.
d
emo
c
atalogPackage#getEnergyComponent_RevisionYear()
* @see demo.catalog.democatalog.
D
emo
C
atalogPackage#getEnergyComponent_RevisionYear()
* @model
* @model
* @generated
* @generated
*/
*/
...
@@ -73,7 +73,7 @@ public interface EnergyComponent extends EObject {
...
@@ -73,7 +73,7 @@ public interface EnergyComponent extends EObject {
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Produced By</em>' reference.
* @return the value of the '<em>Produced By</em>' reference.
* @see #setProducedBy(Manufacturer)
* @see #setProducedBy(Manufacturer)
* @see demo.catalog.democatalog.
d
emo
c
atalogPackage#getEnergyComponent_ProducedBy()
* @see demo.catalog.democatalog.
D
emo
C
atalogPackage#getEnergyComponent_ProducedBy()
* @model required="true"
* @model required="true"
* @generated
* @generated
*/
*/
...
...
This diff is collapsed.
Click to expand it.
EclipseDemoCatalog/demo.catalog/src-gen/demo/catalog/democatalog/EnergyComponentsCatalog.java
+
7
-
7
View file @
92c8b79f
...
@@ -23,7 +23,7 @@ import org.eclipse.emf.ecore.EObject;
...
@@ -23,7 +23,7 @@ import org.eclipse.emf.ecore.EObject;
* <li>{@link demo.catalog.democatalog.EnergyComponentsCatalog#getManufacturers <em>Manufacturers</em>}</li>
* <li>{@link demo.catalog.democatalog.EnergyComponentsCatalog#getManufacturers <em>Manufacturers</em>}</li>
* </ul>
* </ul>
*
*
* @see demo.catalog.democatalog.
d
emo
c
atalogPackage#getEnergyComponentsCatalog()
* @see demo.catalog.democatalog.
D
emo
C
atalogPackage#getEnergyComponentsCatalog()
* @model
* @model
* @generated
* @generated
*/
*/
...
@@ -34,7 +34,7 @@ public interface EnergyComponentsCatalog extends EObject {
...
@@ -34,7 +34,7 @@ public interface EnergyComponentsCatalog extends EObject {
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Author</em>' attribute.
* @return the value of the '<em>Author</em>' attribute.
* @see #setAuthor(String)
* @see #setAuthor(String)
* @see demo.catalog.democatalog.
d
emo
c
atalogPackage#getEnergyComponentsCatalog_Author()
* @see demo.catalog.democatalog.
D
emo
C
atalogPackage#getEnergyComponentsCatalog_Author()
* @model required="true"
* @model required="true"
* @generated
* @generated
*/
*/
...
@@ -56,7 +56,7 @@ public interface EnergyComponentsCatalog extends EObject {
...
@@ -56,7 +56,7 @@ public interface EnergyComponentsCatalog extends EObject {
* <!-- begin-user-doc -->
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Boilers</em>' containment reference list.
* @return the value of the '<em>Boilers</em>' containment reference list.
* @see demo.catalog.democatalog.
d
emo
c
atalogPackage#getEnergyComponentsCatalog_Boilers()
* @see demo.catalog.democatalog.
D
emo
C
atalogPackage#getEnergyComponentsCatalog_Boilers()
* @model containment="true"
* @model containment="true"
* @generated
* @generated
*/
*/
...
@@ -68,7 +68,7 @@ public interface EnergyComponentsCatalog extends EObject {
...
@@ -68,7 +68,7 @@ public interface EnergyComponentsCatalog extends EObject {
* <!-- begin-user-doc -->
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Chps</em>' containment reference list.
* @return the value of the '<em>Chps</em>' containment reference list.
* @see demo.catalog.democatalog.
d
emo
c
atalogPackage#getEnergyComponentsCatalog_Chps()
* @see demo.catalog.democatalog.
D
emo
C
atalogPackage#getEnergyComponentsCatalog_Chps()
* @model containment="true"
* @model containment="true"
* @generated
* @generated
*/
*/
...
@@ -80,7 +80,7 @@ public interface EnergyComponentsCatalog extends EObject {
...
@@ -80,7 +80,7 @@ public interface EnergyComponentsCatalog extends EObject {
* <!-- begin-user-doc -->
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Solarpanels</em>' containment reference list.
* @return the value of the '<em>Solarpanels</em>' containment reference list.
* @see demo.catalog.democatalog.
d
emo
c
atalogPackage#getEnergyComponentsCatalog_Solarpanels()
* @see demo.catalog.democatalog.
D
emo
C
atalogPackage#getEnergyComponentsCatalog_Solarpanels()
* @model containment="true"
* @model containment="true"
* @generated
* @generated
*/
*/
...
@@ -92,7 +92,7 @@ public interface EnergyComponentsCatalog extends EObject {
...
@@ -92,7 +92,7 @@ public interface EnergyComponentsCatalog extends EObject {
* <!-- begin-user-doc -->
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Inverters</em>' containment reference list.
* @return the value of the '<em>Inverters</em>' containment reference list.
* @see demo.catalog.democatalog.
d
emo
c
atalogPackage#getEnergyComponentsCatalog_Inverters()
* @see demo.catalog.democatalog.
D
emo
C
atalogPackage#getEnergyComponentsCatalog_Inverters()
* @model containment="true"
* @model containment="true"
* @generated
* @generated
*/
*/
...
@@ -104,7 +104,7 @@ public interface EnergyComponentsCatalog extends EObject {
...
@@ -104,7 +104,7 @@ public interface EnergyComponentsCatalog extends EObject {
* <!-- begin-user-doc -->
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Manufacturers</em>' containment reference list.
* @return the value of the '<em>Manufacturers</em>' containment reference list.
* @see demo.catalog.democatalog.
d
emo
c
atalogPackage#getEnergyComponentsCatalog_Manufacturers()
* @see demo.catalog.democatalog.
D
emo
C
atalogPackage#getEnergyComponentsCatalog_Manufacturers()
* @model containment="true"
* @model containment="true"
* @generated
* @generated
*/
*/
...
...
This diff is collapsed.
Click to expand it.
EclipseDemoCatalog/demo.catalog/src-gen/demo/catalog/democatalog/Inverter.java
+
2
-
2
View file @
92c8b79f
...
@@ -14,7 +14,7 @@ package demo.catalog.democatalog;
...
@@ -14,7 +14,7 @@ package demo.catalog.democatalog;
* <li>{@link demo.catalog.democatalog.Inverter#getNominalPower <em>Nominal Power</em>}</li>
* <li>{@link demo.catalog.democatalog.Inverter#getNominalPower <em>Nominal Power</em>}</li>
* </ul>
* </ul>
*
*
* @see demo.catalog.democatalog.
d
emo
c
atalogPackage#getInverter()
* @see demo.catalog.democatalog.
D
emo
C
atalogPackage#getInverter()
* @model
* @model
* @generated
* @generated
*/
*/
...
@@ -25,7 +25,7 @@ public interface Inverter extends EnergyComponent {
...
@@ -25,7 +25,7 @@ public interface Inverter extends EnergyComponent {
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Nominal Power</em>' attribute.
* @return the value of the '<em>Nominal Power</em>' attribute.
* @see #setNominalPower(double)
* @see #setNominalPower(double)
* @see demo.catalog.democatalog.
d
emo
c
atalogPackage#getInverter_NominalPower()
* @see demo.catalog.democatalog.
D
emo
C
atalogPackage#getInverter_NominalPower()
* @model required="true"
* @model required="true"
* @generated
* @generated
*/
*/
...
...
This diff is collapsed.
Click to expand it.
EclipseDemoCatalog/demo.catalog/src-gen/demo/catalog/democatalog/Manufacturer.java
+
2
-
2
View file @
92c8b79f
...
@@ -16,7 +16,7 @@ import org.eclipse.emf.ecore.EObject;
...
@@ -16,7 +16,7 @@ import org.eclipse.emf.ecore.EObject;
* <li>{@link demo.catalog.democatalog.Manufacturer#getName <em>Name</em>}</li>
* <li>{@link demo.catalog.democatalog.Manufacturer#getName <em>Name</em>}</li>
* </ul>
* </ul>
*
*
* @see demo.catalog.democatalog.
d
emo
c
atalogPackage#getManufacturer()
* @see demo.catalog.democatalog.
D
emo
C
atalogPackage#getManufacturer()
* @model
* @model
* @generated
* @generated
*/
*/
...
@@ -27,7 +27,7 @@ public interface Manufacturer extends EObject {
...
@@ -27,7 +27,7 @@ public interface Manufacturer extends EObject {
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Name</em>' attribute.
* @return the value of the '<em>Name</em>' attribute.
* @see #setName(String)
* @see #setName(String)
* @see demo.catalog.democatalog.
d
emo
c
atalogPackage#getManufacturer_Name()
* @see demo.catalog.democatalog.
D
emo
C
atalogPackage#getManufacturer_Name()
* @model required="true"
* @model required="true"
* @generated
* @generated
*/
*/
...
...
This diff is collapsed.
Click to expand it.
EclipseDemoCatalog/demo.catalog/src-gen/demo/catalog/democatalog/SolarPanel.java
+
2
-
2
View file @
92c8b79f
...
@@ -14,7 +14,7 @@ package demo.catalog.democatalog;
...
@@ -14,7 +14,7 @@ package demo.catalog.democatalog;
* <li>{@link demo.catalog.democatalog.SolarPanel#getNominalPower <em>Nominal Power</em>}</li>
* <li>{@link demo.catalog.democatalog.SolarPanel#getNominalPower <em>Nominal Power</em>}</li>
* </ul>
* </ul>
*
*
* @see demo.catalog.democatalog.
d
emo
c
atalogPackage#getSolarPanel()
* @see demo.catalog.democatalog.
D
emo
C
atalogPackage#getSolarPanel()
* @model
* @model
* @generated
* @generated
*/
*/
...
@@ -25,7 +25,7 @@ public interface SolarPanel extends EnergyComponent {
...
@@ -25,7 +25,7 @@ public interface SolarPanel extends EnergyComponent {
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Nominal Power</em>' attribute.
* @return the value of the '<em>Nominal Power</em>' attribute.
* @see #setNominalPower(double)
* @see #setNominalPower(double)
* @see demo.catalog.democatalog.
d
emo
c
atalogPackage#getSolarPanel_NominalPower()
* @see demo.catalog.democatalog.
D
emo
C
atalogPackage#getSolarPanel_NominalPower()
* @model required="true"
* @model required="true"
* @generated
* @generated
*/
*/
...
...
This diff is collapsed.
Click to expand it.
EclipseDemoCatalog/demo.catalog/src-gen/demo/catalog/democatalog/democatalogFactory.java
+
5
-
5
View file @
92c8b79f
...
@@ -9,17 +9,17 @@ import org.eclipse.emf.ecore.EFactory;
...
@@ -9,17 +9,17 @@ import org.eclipse.emf.ecore.EFactory;
* The <b>Factory</b> for the model.
* The <b>Factory</b> for the model.
* It provides a create method for each non-abstract class of the model.
* It provides a create method for each non-abstract class of the model.
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.
d
emo
c
atalogPackage
* @see demo.catalog.democatalog.
D
emo
C
atalogPackage
* @generated
* @generated
*/
*/
public
interface
d
emo
c
atalogFactory
extends
EFactory
{
public
interface
D
emo
C
atalogFactory
extends
EFactory
{
/**
/**
* The singleton instance of the factory.
* The singleton instance of the factory.
* <!-- begin-user-doc -->
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @generated
* @generated
*/
*/
d
emo
c
atalogFactory
eINSTANCE
=
demo
.
catalog
.
democatalog
.
impl
.
d
emo
c
atalogFactoryImpl
.
init
();
D
emo
C
atalogFactory
eINSTANCE
=
demo
.
catalog
.
democatalog
.
impl
.
D
emo
C
atalogFactoryImpl
.
init
();
/**
/**
* Returns a new object of class '<em>Energy Components Catalog</em>'.
* Returns a new object of class '<em>Energy Components Catalog</em>'.
...
@@ -82,6 +82,6 @@ public interface democatalogFactory extends EFactory {
...
@@ -82,6 +82,6 @@ public interface democatalogFactory extends EFactory {
* @return the package supported by this factory.
* @return the package supported by this factory.
* @generated
* @generated
*/
*/
d
emo
c
atalogPackage
get
d
emo
c
atalogPackage
();
D
emo
C
atalogPackage
get
D
emo
C
atalogPackage
();
}
//
d
emo
c
atalogFactory
}
//
D
emo
C
atalogFactory
This diff is collapsed.
Click to expand it.
EclipseDemoCatalog/demo.catalog/src-gen/demo/catalog/democatalog/democatalogPackage.java
+
23
-
23
View file @
92c8b79f
...
@@ -20,11 +20,11 @@ import org.eclipse.emf.ecore.EReference;
...
@@ -20,11 +20,11 @@ import org.eclipse.emf.ecore.EReference;
* <li>and each data type</li>
* <li>and each data type</li>
* </ul>
* </ul>
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.
d
emo
c
atalogFactory
* @see demo.catalog.democatalog.
D
emo
C
atalogFactory
* @model kind="package"
* @model kind="package"
* @generated
* @generated
*/
*/
public
interface
d
emo
c
atalogPackage
extends
EPackage
{
public
interface
D
emo
C
atalogPackage
extends
EPackage
{
/**
/**
* The package name.
* The package name.
* <!-- begin-user-doc -->
* <!-- begin-user-doc -->
...
@@ -55,14 +55,14 @@ public interface democatalogPackage extends EPackage {
...
@@ -55,14 +55,14 @@ public interface democatalogPackage extends EPackage {
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @generated
* @generated
*/
*/
d
emo
c
atalogPackage
eINSTANCE
=
demo
.
catalog
.
democatalog
.
impl
.
d
emo
c
atalogPackageImpl
.
init
();
D
emo
C
atalogPackage
eINSTANCE
=
demo
.
catalog
.
democatalog
.
impl
.
D
emo
C
atalogPackageImpl
.
init
();
/**
/**
* The meta object id for the '{@link demo.catalog.democatalog.impl.EnergyComponentsCatalogImpl <em>Energy Components Catalog</em>}' class.
* The meta object id for the '{@link demo.catalog.democatalog.impl.EnergyComponentsCatalogImpl <em>Energy Components Catalog</em>}' class.
* <!-- begin-user-doc -->
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.impl.EnergyComponentsCatalogImpl
* @see demo.catalog.democatalog.impl.EnergyComponentsCatalogImpl
* @see demo.catalog.democatalog.impl.
d
emo
c
atalogPackageImpl#getEnergyComponentsCatalog()
* @see demo.catalog.democatalog.impl.
D
emo
C
atalogPackageImpl#getEnergyComponentsCatalog()
* @generated
* @generated
*/
*/
int
ENERGY_COMPONENTS_CATALOG
=
0
;
int
ENERGY_COMPONENTS_CATALOG
=
0
;
...
@@ -144,7 +144,7 @@ public interface democatalogPackage extends EPackage {
...
@@ -144,7 +144,7 @@ public interface democatalogPackage extends EPackage {
* <!-- begin-user-doc -->
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.impl.EnergyComponentImpl
* @see demo.catalog.democatalog.impl.EnergyComponentImpl
* @see demo.catalog.democatalog.impl.
d
emo
c
atalogPackageImpl#getEnergyComponent()
* @see demo.catalog.democatalog.impl.
D
emo
C
atalogPackageImpl#getEnergyComponent()
* @generated
* @generated
*/
*/
int
ENERGY_COMPONENT
=
7
;
int
ENERGY_COMPONENT
=
7
;
...
@@ -199,7 +199,7 @@ public interface democatalogPackage extends EPackage {
...
@@ -199,7 +199,7 @@ public interface democatalogPackage extends EPackage {
* <!-- begin-user-doc -->
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.impl.ChemicalEnergyDeviceImpl
* @see demo.catalog.democatalog.impl.ChemicalEnergyDeviceImpl
* @see demo.catalog.democatalog.impl.
d
emo
c
atalogPackageImpl#getChemicalEnergyDevice()
* @see demo.catalog.democatalog.impl.
D
emo
C
atalogPackageImpl#getChemicalEnergyDevice()
* @generated
* @generated
*/
*/
int
CHEMICAL_ENERGY_DEVICE
=
6
;
int
CHEMICAL_ENERGY_DEVICE
=
6
;
...
@@ -263,7 +263,7 @@ public interface democatalogPackage extends EPackage {
...
@@ -263,7 +263,7 @@ public interface democatalogPackage extends EPackage {
* <!-- begin-user-doc -->
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.impl.BoilerImpl
* @see demo.catalog.democatalog.impl.BoilerImpl
* @see demo.catalog.democatalog.impl.
d
emo
c
atalogPackageImpl#getBoiler()
* @see demo.catalog.democatalog.impl.
D
emo
C
atalogPackageImpl#getBoiler()
* @generated
* @generated
*/
*/
int
BOILER
=
1
;
int
BOILER
=
1
;
...
@@ -336,7 +336,7 @@ public interface democatalogPackage extends EPackage {
...
@@ -336,7 +336,7 @@ public interface democatalogPackage extends EPackage {
* <!-- begin-user-doc -->
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.impl.CombinedHeatPowerImpl
* @see demo.catalog.democatalog.impl.CombinedHeatPowerImpl
* @see demo.catalog.democatalog.impl.
d
emo
c
atalogPackageImpl#getCombinedHeatPower()
* @see demo.catalog.democatalog.impl.
D
emo
C
atalogPackageImpl#getCombinedHeatPower()
* @generated
* @generated
*/
*/
int
COMBINED_HEAT_POWER
=
2
;
int
COMBINED_HEAT_POWER
=
2
;
...
@@ -409,7 +409,7 @@ public interface democatalogPackage extends EPackage {
...
@@ -409,7 +409,7 @@ public interface democatalogPackage extends EPackage {
* <!-- begin-user-doc -->
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.impl.SolarPanelImpl
* @see demo.catalog.democatalog.impl.SolarPanelImpl
* @see demo.catalog.democatalog.impl.
d
emo
c
atalogPackageImpl#getSolarPanel()
* @see demo.catalog.democatalog.impl.
D
emo
C
atalogPackageImpl#getSolarPanel()
* @generated
* @generated
*/
*/
int
SOLAR_PANEL
=
3
;
int
SOLAR_PANEL
=
3
;
...
@@ -473,7 +473,7 @@ public interface democatalogPackage extends EPackage {
...
@@ -473,7 +473,7 @@ public interface democatalogPackage extends EPackage {
* <!-- begin-user-doc -->
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.impl.InverterImpl
* @see demo.catalog.democatalog.impl.InverterImpl
* @see demo.catalog.democatalog.impl.
d
emo
c
atalogPackageImpl#getInverter()
* @see demo.catalog.democatalog.impl.
D
emo
C
atalogPackageImpl#getInverter()
* @generated
* @generated
*/
*/
int
INVERTER
=
4
;
int
INVERTER
=
4
;
...
@@ -537,7 +537,7 @@ public interface democatalogPackage extends EPackage {
...
@@ -537,7 +537,7 @@ public interface democatalogPackage extends EPackage {
* <!-- begin-user-doc -->
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.impl.ManufacturerImpl
* @see demo.catalog.democatalog.impl.ManufacturerImpl
* @see demo.catalog.democatalog.impl.
d
emo
c
atalogPackageImpl#getManufacturer()
* @see demo.catalog.democatalog.impl.
D
emo
C
atalogPackageImpl#getManufacturer()
* @generated
* @generated
*/
*/
int
MANUFACTURER
=
5
;
int
MANUFACTURER
=
5
;
...
@@ -574,7 +574,7 @@ public interface democatalogPackage extends EPackage {
...
@@ -574,7 +574,7 @@ public interface democatalogPackage extends EPackage {
* <!-- begin-user-doc -->
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.BoilerType
* @see demo.catalog.democatalog.BoilerType
* @see demo.catalog.democatalog.impl.
d
emo
c
atalogPackageImpl#getBoilerType()
* @see demo.catalog.democatalog.impl.
D
emo
C
atalogPackageImpl#getBoilerType()
* @generated
* @generated
*/
*/
int
BOILER_TYPE
=
8
;
int
BOILER_TYPE
=
8
;
...
@@ -841,7 +841,7 @@ public interface democatalogPackage extends EPackage {
...
@@ -841,7 +841,7 @@ public interface democatalogPackage extends EPackage {
* @return the factory that creates the instances of the model.
* @return the factory that creates the instances of the model.
* @generated
* @generated
*/
*/
d
emo
c
atalogFactory
get
d
emo
c
atalogFactory
();
D
emo
C
atalogFactory
get
D
emo
C
atalogFactory
();
/**
/**
* <!-- begin-user-doc -->
* <!-- begin-user-doc -->
...
@@ -862,7 +862,7 @@ public interface democatalogPackage extends EPackage {
...
@@ -862,7 +862,7 @@ public interface democatalogPackage extends EPackage {
* <!-- begin-user-doc -->
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.impl.EnergyComponentsCatalogImpl
* @see demo.catalog.democatalog.impl.EnergyComponentsCatalogImpl
* @see demo.catalog.democatalog.impl.
d
emo
c
atalogPackageImpl#getEnergyComponentsCatalog()
* @see demo.catalog.democatalog.impl.
D
emo
C
atalogPackageImpl#getEnergyComponentsCatalog()
* @generated
* @generated
*/
*/
EClass
ENERGY_COMPONENTS_CATALOG
=
eINSTANCE
.
getEnergyComponentsCatalog
();
EClass
ENERGY_COMPONENTS_CATALOG
=
eINSTANCE
.
getEnergyComponentsCatalog
();
...
@@ -920,7 +920,7 @@ public interface democatalogPackage extends EPackage {
...
@@ -920,7 +920,7 @@ public interface democatalogPackage extends EPackage {
* <!-- begin-user-doc -->
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.impl.BoilerImpl
* @see demo.catalog.democatalog.impl.BoilerImpl
* @see demo.catalog.democatalog.impl.
d
emo
c
atalogPackageImpl#getBoiler()
* @see demo.catalog.democatalog.impl.
D
emo
C
atalogPackageImpl#getBoiler()
* @generated
* @generated
*/
*/
EClass
BOILER
=
eINSTANCE
.
getBoiler
();
EClass
BOILER
=
eINSTANCE
.
getBoiler
();
...
@@ -938,7 +938,7 @@ public interface democatalogPackage extends EPackage {
...
@@ -938,7 +938,7 @@ public interface democatalogPackage extends EPackage {
* <!-- begin-user-doc -->
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.impl.CombinedHeatPowerImpl
* @see demo.catalog.democatalog.impl.CombinedHeatPowerImpl
* @see demo.catalog.democatalog.impl.
d
emo
c
atalogPackageImpl#getCombinedHeatPower()
* @see demo.catalog.democatalog.impl.
D
emo
C
atalogPackageImpl#getCombinedHeatPower()
* @generated
* @generated
*/
*/
EClass
COMBINED_HEAT_POWER
=
eINSTANCE
.
getCombinedHeatPower
();
EClass
COMBINED_HEAT_POWER
=
eINSTANCE
.
getCombinedHeatPower
();
...
@@ -956,7 +956,7 @@ public interface democatalogPackage extends EPackage {
...
@@ -956,7 +956,7 @@ public interface democatalogPackage extends EPackage {
* <!-- begin-user-doc -->
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.impl.SolarPanelImpl
* @see demo.catalog.democatalog.impl.SolarPanelImpl
* @see demo.catalog.democatalog.impl.
d
emo
c
atalogPackageImpl#getSolarPanel()
* @see demo.catalog.democatalog.impl.
D
emo
C
atalogPackageImpl#getSolarPanel()
* @generated
* @generated
*/
*/
EClass
SOLAR_PANEL
=
eINSTANCE
.
getSolarPanel
();
EClass
SOLAR_PANEL
=
eINSTANCE
.
getSolarPanel
();
...
@@ -974,7 +974,7 @@ public interface democatalogPackage extends EPackage {
...
@@ -974,7 +974,7 @@ public interface democatalogPackage extends EPackage {
* <!-- begin-user-doc -->
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.impl.InverterImpl
* @see demo.catalog.democatalog.impl.InverterImpl
* @see demo.catalog.democatalog.impl.
d
emo
c
atalogPackageImpl#getInverter()
* @see demo.catalog.democatalog.impl.
D
emo
C
atalogPackageImpl#getInverter()
* @generated
* @generated
*/
*/
EClass
INVERTER
=
eINSTANCE
.
getInverter
();
EClass
INVERTER
=
eINSTANCE
.
getInverter
();
...
@@ -992,7 +992,7 @@ public interface democatalogPackage extends EPackage {
...
@@ -992,7 +992,7 @@ public interface democatalogPackage extends EPackage {
* <!-- begin-user-doc -->
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.impl.ManufacturerImpl
* @see demo.catalog.democatalog.impl.ManufacturerImpl
* @see demo.catalog.democatalog.impl.
d
emo
c
atalogPackageImpl#getManufacturer()
* @see demo.catalog.democatalog.impl.
D
emo
C
atalogPackageImpl#getManufacturer()
* @generated
* @generated
*/
*/
EClass
MANUFACTURER
=
eINSTANCE
.
getManufacturer
();
EClass
MANUFACTURER
=
eINSTANCE
.
getManufacturer
();
...
@@ -1010,7 +1010,7 @@ public interface democatalogPackage extends EPackage {
...
@@ -1010,7 +1010,7 @@ public interface democatalogPackage extends EPackage {
* <!-- begin-user-doc -->
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.impl.ChemicalEnergyDeviceImpl
* @see demo.catalog.democatalog.impl.ChemicalEnergyDeviceImpl
* @see demo.catalog.democatalog.impl.
d
emo
c
atalogPackageImpl#getChemicalEnergyDevice()
* @see demo.catalog.democatalog.impl.
D
emo
C
atalogPackageImpl#getChemicalEnergyDevice()
* @generated
* @generated
*/
*/
EClass
CHEMICAL_ENERGY_DEVICE
=
eINSTANCE
.
getChemicalEnergyDevice
();
EClass
CHEMICAL_ENERGY_DEVICE
=
eINSTANCE
.
getChemicalEnergyDevice
();
...
@@ -1029,7 +1029,7 @@ public interface democatalogPackage extends EPackage {
...
@@ -1029,7 +1029,7 @@ public interface democatalogPackage extends EPackage {
* <!-- begin-user-doc -->
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.impl.EnergyComponentImpl
* @see demo.catalog.democatalog.impl.EnergyComponentImpl
* @see demo.catalog.democatalog.impl.
d
emo
c
atalogPackageImpl#getEnergyComponent()
* @see demo.catalog.democatalog.impl.
D
emo
C
atalogPackageImpl#getEnergyComponent()
* @generated
* @generated
*/
*/
EClass
ENERGY_COMPONENT
=
eINSTANCE
.
getEnergyComponent
();
EClass
ENERGY_COMPONENT
=
eINSTANCE
.
getEnergyComponent
();
...
@@ -1063,11 +1063,11 @@ public interface democatalogPackage extends EPackage {
...
@@ -1063,11 +1063,11 @@ public interface democatalogPackage extends EPackage {
* <!-- begin-user-doc -->
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.BoilerType
* @see demo.catalog.democatalog.BoilerType
* @see demo.catalog.democatalog.impl.
d
emo
c
atalogPackageImpl#getBoilerType()
* @see demo.catalog.democatalog.impl.
D
emo
C
atalogPackageImpl#getBoilerType()
* @generated
* @generated
*/
*/
EEnum
BOILER_TYPE
=
eINSTANCE
.
getBoilerType
();
EEnum
BOILER_TYPE
=
eINSTANCE
.
getBoilerType
();
}
}
}
//
d
emo
c
atalogPackage
}
//
D
emo
C
atalogPackage
This diff is collapsed.
Click to expand it.
EclipseDemoCatalog/demo.catalog/src-gen/demo/catalog/democatalog/impl/BoilerImpl.java
+
7
-
7
View file @
92c8b79f
...
@@ -4,7 +4,7 @@ package demo.catalog.democatalog.impl;
...
@@ -4,7 +4,7 @@ package demo.catalog.democatalog.impl;
import
demo.catalog.democatalog.Boiler
;
import
demo.catalog.democatalog.Boiler
;
import
demo.catalog.democatalog.BoilerType
;
import
demo.catalog.democatalog.BoilerType
;
import
demo.catalog.democatalog.
d
emo
c
atalogPackage
;
import
demo.catalog.democatalog.
D
emo
C
atalogPackage
;
import
org.eclipse.emf.common.notify.Notification
;
import
org.eclipse.emf.common.notify.Notification
;
...
@@ -62,7 +62,7 @@ public class BoilerImpl extends ChemicalEnergyDeviceImpl implements Boiler {
...
@@ -62,7 +62,7 @@ public class BoilerImpl extends ChemicalEnergyDeviceImpl implements Boiler {
*/
*/
@Override
@Override
protected
EClass
eStaticClass
()
{
protected
EClass
eStaticClass
()
{
return
d
emo
c
atalogPackage
.
Literals
.
BOILER
;
return
D
emo
C
atalogPackage
.
Literals
.
BOILER
;
}
}
/**
/**
...
@@ -83,7 +83,7 @@ public class BoilerImpl extends ChemicalEnergyDeviceImpl implements Boiler {
...
@@ -83,7 +83,7 @@ public class BoilerImpl extends ChemicalEnergyDeviceImpl implements Boiler {
BoilerType
oldBoilerType
=
boilerType
;
BoilerType
oldBoilerType
=
boilerType
;
boilerType
=
newBoilerType
==
null
?
BOILER_TYPE_EDEFAULT
:
newBoilerType
;
boilerType
=
newBoilerType
==
null
?
BOILER_TYPE_EDEFAULT
:
newBoilerType
;
if
(
eNotificationRequired
())
if
(
eNotificationRequired
())
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
d
emo
c
atalogPackage
.
BOILER__BOILER_TYPE
,
oldBoilerType
,
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
D
emo
C
atalogPackage
.
BOILER__BOILER_TYPE
,
oldBoilerType
,
boilerType
));
boilerType
));
}
}
...
@@ -95,7 +95,7 @@ public class BoilerImpl extends ChemicalEnergyDeviceImpl implements Boiler {
...
@@ -95,7 +95,7 @@ public class BoilerImpl extends ChemicalEnergyDeviceImpl implements Boiler {
@Override
@Override
public
Object
eGet
(
int
featureID
,
boolean
resolve
,
boolean
coreType
)
{
public
Object
eGet
(
int
featureID
,
boolean
resolve
,
boolean
coreType
)
{
switch
(
featureID
)
{
switch
(
featureID
)
{
case
d
emo
c
atalogPackage
.
BOILER__BOILER_TYPE
:
case
D
emo
C
atalogPackage
.
BOILER__BOILER_TYPE
:
return
getBoilerType
();
return
getBoilerType
();
}
}
return
super
.
eGet
(
featureID
,
resolve
,
coreType
);
return
super
.
eGet
(
featureID
,
resolve
,
coreType
);
...
@@ -109,7 +109,7 @@ public class BoilerImpl extends ChemicalEnergyDeviceImpl implements Boiler {
...
@@ -109,7 +109,7 @@ public class BoilerImpl extends ChemicalEnergyDeviceImpl implements Boiler {
@Override
@Override
public
void
eSet
(
int
featureID
,
Object
newValue
)
{
public
void
eSet
(
int
featureID
,
Object
newValue
)
{
switch
(
featureID
)
{
switch
(
featureID
)
{
case
d
emo
c
atalogPackage
.
BOILER__BOILER_TYPE
:
case
D
emo
C
atalogPackage
.
BOILER__BOILER_TYPE
:
setBoilerType
((
BoilerType
)
newValue
);
setBoilerType
((
BoilerType
)
newValue
);
return
;
return
;
}
}
...
@@ -124,7 +124,7 @@ public class BoilerImpl extends ChemicalEnergyDeviceImpl implements Boiler {
...
@@ -124,7 +124,7 @@ public class BoilerImpl extends ChemicalEnergyDeviceImpl implements Boiler {
@Override
@Override
public
void
eUnset
(
int
featureID
)
{
public
void
eUnset
(
int
featureID
)
{
switch
(
featureID
)
{
switch
(
featureID
)
{
case
d
emo
c
atalogPackage
.
BOILER__BOILER_TYPE
:
case
D
emo
C
atalogPackage
.
BOILER__BOILER_TYPE
:
setBoilerType
(
BOILER_TYPE_EDEFAULT
);
setBoilerType
(
BOILER_TYPE_EDEFAULT
);
return
;
return
;
}
}
...
@@ -139,7 +139,7 @@ public class BoilerImpl extends ChemicalEnergyDeviceImpl implements Boiler {
...
@@ -139,7 +139,7 @@ public class BoilerImpl extends ChemicalEnergyDeviceImpl implements Boiler {
@Override
@Override
public
boolean
eIsSet
(
int
featureID
)
{
public
boolean
eIsSet
(
int
featureID
)
{
switch
(
featureID
)
{
switch
(
featureID
)
{
case
d
emo
c
atalogPackage
.
BOILER__BOILER_TYPE
:
case
D
emo
C
atalogPackage
.
BOILER__BOILER_TYPE
:
return
boilerType
!=
BOILER_TYPE_EDEFAULT
;
return
boilerType
!=
BOILER_TYPE_EDEFAULT
;
}
}
return
super
.
eIsSet
(
featureID
);
return
super
.
eIsSet
(
featureID
);
...
...
This diff is collapsed.
Click to expand it.
EclipseDemoCatalog/demo.catalog/src-gen/demo/catalog/democatalog/impl/ChemicalEnergyDeviceImpl.java
+
7
-
7
View file @
92c8b79f
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
package
demo.catalog.democatalog.impl
;
package
demo.catalog.democatalog.impl
;
import
demo.catalog.democatalog.ChemicalEnergyDevice
;
import
demo.catalog.democatalog.ChemicalEnergyDevice
;
import
demo.catalog.democatalog.
d
emo
c
atalogPackage
;
import
demo.catalog.democatalog.
D
emo
C
atalogPackage
;
import
org.eclipse.emf.common.notify.Notification
;
import
org.eclipse.emf.common.notify.Notification
;
...
@@ -61,7 +61,7 @@ public abstract class ChemicalEnergyDeviceImpl extends EnergyComponentImpl imple
...
@@ -61,7 +61,7 @@ public abstract class ChemicalEnergyDeviceImpl extends EnergyComponentImpl imple
*/
*/
@Override
@Override
protected
EClass
eStaticClass
()
{
protected
EClass
eStaticClass
()
{
return
d
emo
c
atalogPackage
.
Literals
.
CHEMICAL_ENERGY_DEVICE
;
return
D
emo
C
atalogPackage
.
Literals
.
CHEMICAL_ENERGY_DEVICE
;
}
}
/**
/**
...
@@ -83,7 +83,7 @@ public abstract class ChemicalEnergyDeviceImpl extends EnergyComponentImpl imple
...
@@ -83,7 +83,7 @@ public abstract class ChemicalEnergyDeviceImpl extends EnergyComponentImpl imple
installedThermalPower
=
newInstalledThermalPower
;
installedThermalPower
=
newInstalledThermalPower
;
if
(
eNotificationRequired
())
if
(
eNotificationRequired
())
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
d
emo
c
atalogPackage
.
CHEMICAL_ENERGY_DEVICE__INSTALLED_THERMAL_POWER
,
oldInstalledThermalPower
,
D
emo
C
atalogPackage
.
CHEMICAL_ENERGY_DEVICE__INSTALLED_THERMAL_POWER
,
oldInstalledThermalPower
,
installedThermalPower
));
installedThermalPower
));
}
}
...
@@ -95,7 +95,7 @@ public abstract class ChemicalEnergyDeviceImpl extends EnergyComponentImpl imple
...
@@ -95,7 +95,7 @@ public abstract class ChemicalEnergyDeviceImpl extends EnergyComponentImpl imple
@Override
@Override
public
Object
eGet
(
int
featureID
,
boolean
resolve
,
boolean
coreType
)
{
public
Object
eGet
(
int
featureID
,
boolean
resolve
,
boolean
coreType
)
{
switch
(
featureID
)
{
switch
(
featureID
)
{
case
d
emo
c
atalogPackage
.
CHEMICAL_ENERGY_DEVICE__INSTALLED_THERMAL_POWER
:
case
D
emo
C
atalogPackage
.
CHEMICAL_ENERGY_DEVICE__INSTALLED_THERMAL_POWER
:
return
getInstalledThermalPower
();
return
getInstalledThermalPower
();
}
}
return
super
.
eGet
(
featureID
,
resolve
,
coreType
);
return
super
.
eGet
(
featureID
,
resolve
,
coreType
);
...
@@ -109,7 +109,7 @@ public abstract class ChemicalEnergyDeviceImpl extends EnergyComponentImpl imple
...
@@ -109,7 +109,7 @@ public abstract class ChemicalEnergyDeviceImpl extends EnergyComponentImpl imple
@Override
@Override
public
void
eSet
(
int
featureID
,
Object
newValue
)
{
public
void
eSet
(
int
featureID
,
Object
newValue
)
{
switch
(
featureID
)
{
switch
(
featureID
)
{
case
d
emo
c
atalogPackage
.
CHEMICAL_ENERGY_DEVICE__INSTALLED_THERMAL_POWER
:
case
D
emo
C
atalogPackage
.
CHEMICAL_ENERGY_DEVICE__INSTALLED_THERMAL_POWER
:
setInstalledThermalPower
((
Double
)
newValue
);
setInstalledThermalPower
((
Double
)
newValue
);
return
;
return
;
}
}
...
@@ -124,7 +124,7 @@ public abstract class ChemicalEnergyDeviceImpl extends EnergyComponentImpl imple
...
@@ -124,7 +124,7 @@ public abstract class ChemicalEnergyDeviceImpl extends EnergyComponentImpl imple
@Override
@Override
public
void
eUnset
(
int
featureID
)
{
public
void
eUnset
(
int
featureID
)
{
switch
(
featureID
)
{
switch
(
featureID
)
{
case
d
emo
c
atalogPackage
.
CHEMICAL_ENERGY_DEVICE__INSTALLED_THERMAL_POWER
:
case
D
emo
C
atalogPackage
.
CHEMICAL_ENERGY_DEVICE__INSTALLED_THERMAL_POWER
:
setInstalledThermalPower
(
INSTALLED_THERMAL_POWER_EDEFAULT
);
setInstalledThermalPower
(
INSTALLED_THERMAL_POWER_EDEFAULT
);
return
;
return
;
}
}
...
@@ -139,7 +139,7 @@ public abstract class ChemicalEnergyDeviceImpl extends EnergyComponentImpl imple
...
@@ -139,7 +139,7 @@ public abstract class ChemicalEnergyDeviceImpl extends EnergyComponentImpl imple
@Override
@Override
public
boolean
eIsSet
(
int
featureID
)
{
public
boolean
eIsSet
(
int
featureID
)
{
switch
(
featureID
)
{
switch
(
featureID
)
{
case
d
emo
c
atalogPackage
.
CHEMICAL_ENERGY_DEVICE__INSTALLED_THERMAL_POWER
:
case
D
emo
C
atalogPackage
.
CHEMICAL_ENERGY_DEVICE__INSTALLED_THERMAL_POWER
:
return
installedThermalPower
!=
INSTALLED_THERMAL_POWER_EDEFAULT
;
return
installedThermalPower
!=
INSTALLED_THERMAL_POWER_EDEFAULT
;
}
}
return
super
.
eIsSet
(
featureID
);
return
super
.
eIsSet
(
featureID
);
...
...
This diff is collapsed.
Click to expand it.
EclipseDemoCatalog/demo.catalog/src-gen/demo/catalog/democatalog/impl/CombinedHeatPowerImpl.java
+
7
-
7
View file @
92c8b79f
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
package
demo.catalog.democatalog.impl
;
package
demo.catalog.democatalog.impl
;
import
demo.catalog.democatalog.CombinedHeatPower
;
import
demo.catalog.democatalog.CombinedHeatPower
;
import
demo.catalog.democatalog.
d
emo
c
atalogPackage
;
import
demo.catalog.democatalog.
D
emo
C
atalogPackage
;
import
org.eclipse.emf.common.notify.Notification
;
import
org.eclipse.emf.common.notify.Notification
;
...
@@ -61,7 +61,7 @@ public class CombinedHeatPowerImpl extends ChemicalEnergyDeviceImpl implements C
...
@@ -61,7 +61,7 @@ public class CombinedHeatPowerImpl extends ChemicalEnergyDeviceImpl implements C
*/
*/
@Override
@Override
protected
EClass
eStaticClass
()
{
protected
EClass
eStaticClass
()
{
return
d
emo
c
atalogPackage
.
Literals
.
COMBINED_HEAT_POWER
;
return
D
emo
C
atalogPackage
.
Literals
.
COMBINED_HEAT_POWER
;
}
}
/**
/**
...
@@ -83,7 +83,7 @@ public class CombinedHeatPowerImpl extends ChemicalEnergyDeviceImpl implements C
...
@@ -83,7 +83,7 @@ public class CombinedHeatPowerImpl extends ChemicalEnergyDeviceImpl implements C
thermalEfficiency
=
newThermalEfficiency
;
thermalEfficiency
=
newThermalEfficiency
;
if
(
eNotificationRequired
())
if
(
eNotificationRequired
())
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
d
emo
c
atalogPackage
.
COMBINED_HEAT_POWER__THERMAL_EFFICIENCY
,
oldThermalEfficiency
,
D
emo
C
atalogPackage
.
COMBINED_HEAT_POWER__THERMAL_EFFICIENCY
,
oldThermalEfficiency
,
thermalEfficiency
));
thermalEfficiency
));
}
}
...
@@ -95,7 +95,7 @@ public class CombinedHeatPowerImpl extends ChemicalEnergyDeviceImpl implements C
...
@@ -95,7 +95,7 @@ public class CombinedHeatPowerImpl extends ChemicalEnergyDeviceImpl implements C
@Override
@Override
public
Object
eGet
(
int
featureID
,
boolean
resolve
,
boolean
coreType
)
{
public
Object
eGet
(
int
featureID
,
boolean
resolve
,
boolean
coreType
)
{
switch
(
featureID
)
{
switch
(
featureID
)
{
case
d
emo
c
atalogPackage
.
COMBINED_HEAT_POWER__THERMAL_EFFICIENCY
:
case
D
emo
C
atalogPackage
.
COMBINED_HEAT_POWER__THERMAL_EFFICIENCY
:
return
getThermalEfficiency
();
return
getThermalEfficiency
();
}
}
return
super
.
eGet
(
featureID
,
resolve
,
coreType
);
return
super
.
eGet
(
featureID
,
resolve
,
coreType
);
...
@@ -109,7 +109,7 @@ public class CombinedHeatPowerImpl extends ChemicalEnergyDeviceImpl implements C
...
@@ -109,7 +109,7 @@ public class CombinedHeatPowerImpl extends ChemicalEnergyDeviceImpl implements C
@Override
@Override
public
void
eSet
(
int
featureID
,
Object
newValue
)
{
public
void
eSet
(
int
featureID
,
Object
newValue
)
{
switch
(
featureID
)
{
switch
(
featureID
)
{
case
d
emo
c
atalogPackage
.
COMBINED_HEAT_POWER__THERMAL_EFFICIENCY
:
case
D
emo
C
atalogPackage
.
COMBINED_HEAT_POWER__THERMAL_EFFICIENCY
:
setThermalEfficiency
((
Double
)
newValue
);
setThermalEfficiency
((
Double
)
newValue
);
return
;
return
;
}
}
...
@@ -124,7 +124,7 @@ public class CombinedHeatPowerImpl extends ChemicalEnergyDeviceImpl implements C
...
@@ -124,7 +124,7 @@ public class CombinedHeatPowerImpl extends ChemicalEnergyDeviceImpl implements C
@Override
@Override
public
void
eUnset
(
int
featureID
)
{
public
void
eUnset
(
int
featureID
)
{
switch
(
featureID
)
{
switch
(
featureID
)
{
case
d
emo
c
atalogPackage
.
COMBINED_HEAT_POWER__THERMAL_EFFICIENCY
:
case
D
emo
C
atalogPackage
.
COMBINED_HEAT_POWER__THERMAL_EFFICIENCY
:
setThermalEfficiency
(
THERMAL_EFFICIENCY_EDEFAULT
);
setThermalEfficiency
(
THERMAL_EFFICIENCY_EDEFAULT
);
return
;
return
;
}
}
...
@@ -139,7 +139,7 @@ public class CombinedHeatPowerImpl extends ChemicalEnergyDeviceImpl implements C
...
@@ -139,7 +139,7 @@ public class CombinedHeatPowerImpl extends ChemicalEnergyDeviceImpl implements C
@Override
@Override
public
boolean
eIsSet
(
int
featureID
)
{
public
boolean
eIsSet
(
int
featureID
)
{
switch
(
featureID
)
{
switch
(
featureID
)
{
case
d
emo
c
atalogPackage
.
COMBINED_HEAT_POWER__THERMAL_EFFICIENCY
:
case
D
emo
C
atalogPackage
.
COMBINED_HEAT_POWER__THERMAL_EFFICIENCY
:
return
thermalEfficiency
!=
THERMAL_EFFICIENCY_EDEFAULT
;
return
thermalEfficiency
!=
THERMAL_EFFICIENCY_EDEFAULT
;
}
}
return
super
.
eIsSet
(
featureID
);
return
super
.
eIsSet
(
featureID
);
...
...
This diff is collapsed.
Click to expand it.
EclipseDemoCatalog/demo.catalog/src-gen/demo/catalog/democatalog/impl/EnergyComponentImpl.java
+
18
-
18
View file @
92c8b79f
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*/
*/
package
demo.catalog.democatalog.impl
;
package
demo.catalog.democatalog.impl
;
import
demo.catalog.democatalog.DemoCatalogPackage
;
import
demo.catalog.democatalog.EnergyComponent
;
import
demo.catalog.democatalog.EnergyComponent
;
import
demo.catalog.democatalog.Manufacturer
;
import
demo.catalog.democatalog.Manufacturer
;
import
demo.catalog.democatalog.democatalogPackage
;
import
org.eclipse.emf.common.notify.Notification
;
import
org.eclipse.emf.common.notify.Notification
;
...
@@ -96,7 +96,7 @@ public abstract class EnergyComponentImpl extends MinimalEObjectImpl.Container i
...
@@ -96,7 +96,7 @@ public abstract class EnergyComponentImpl extends MinimalEObjectImpl.Container i
*/
*/
@Override
@Override
protected
EClass
eStaticClass
()
{
protected
EClass
eStaticClass
()
{
return
d
emo
c
atalogPackage
.
Literals
.
ENERGY_COMPONENT
;
return
D
emo
C
atalogPackage
.
Literals
.
ENERGY_COMPONENT
;
}
}
/**
/**
...
@@ -117,7 +117,7 @@ public abstract class EnergyComponentImpl extends MinimalEObjectImpl.Container i
...
@@ -117,7 +117,7 @@ public abstract class EnergyComponentImpl extends MinimalEObjectImpl.Container i
String
oldModelName
=
modelName
;
String
oldModelName
=
modelName
;
modelName
=
newModelName
;
modelName
=
newModelName
;
if
(
eNotificationRequired
())
if
(
eNotificationRequired
())
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
d
emo
c
atalogPackage
.
ENERGY_COMPONENT__MODEL_NAME
,
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
D
emo
C
atalogPackage
.
ENERGY_COMPONENT__MODEL_NAME
,
oldModelName
,
modelName
));
oldModelName
,
modelName
));
}
}
...
@@ -139,7 +139,7 @@ public abstract class EnergyComponentImpl extends MinimalEObjectImpl.Container i
...
@@ -139,7 +139,7 @@ public abstract class EnergyComponentImpl extends MinimalEObjectImpl.Container i
int
oldRevisionYear
=
revisionYear
;
int
oldRevisionYear
=
revisionYear
;
revisionYear
=
newRevisionYear
;
revisionYear
=
newRevisionYear
;
if
(
eNotificationRequired
())
if
(
eNotificationRequired
())
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
d
emo
c
atalogPackage
.
ENERGY_COMPONENT__REVISION_YEAR
,
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
D
emo
C
atalogPackage
.
ENERGY_COMPONENT__REVISION_YEAR
,
oldRevisionYear
,
revisionYear
));
oldRevisionYear
,
revisionYear
));
}
}
...
@@ -155,7 +155,7 @@ public abstract class EnergyComponentImpl extends MinimalEObjectImpl.Container i
...
@@ -155,7 +155,7 @@ public abstract class EnergyComponentImpl extends MinimalEObjectImpl.Container i
if
(
producedBy
!=
oldProducedBy
)
{
if
(
producedBy
!=
oldProducedBy
)
{
if
(
eNotificationRequired
())
if
(
eNotificationRequired
())
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
RESOLVE
,
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
RESOLVE
,
d
emo
c
atalogPackage
.
ENERGY_COMPONENT__PRODUCED_BY
,
oldProducedBy
,
producedBy
));
D
emo
C
atalogPackage
.
ENERGY_COMPONENT__PRODUCED_BY
,
oldProducedBy
,
producedBy
));
}
}
}
}
return
producedBy
;
return
producedBy
;
...
@@ -179,7 +179,7 @@ public abstract class EnergyComponentImpl extends MinimalEObjectImpl.Container i
...
@@ -179,7 +179,7 @@ public abstract class EnergyComponentImpl extends MinimalEObjectImpl.Container i
Manufacturer
oldProducedBy
=
producedBy
;
Manufacturer
oldProducedBy
=
producedBy
;
producedBy
=
newProducedBy
;
producedBy
=
newProducedBy
;
if
(
eNotificationRequired
())
if
(
eNotificationRequired
())
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
d
emo
c
atalogPackage
.
ENERGY_COMPONENT__PRODUCED_BY
,
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
D
emo
C
atalogPackage
.
ENERGY_COMPONENT__PRODUCED_BY
,
oldProducedBy
,
producedBy
));
oldProducedBy
,
producedBy
));
}
}
...
@@ -191,11 +191,11 @@ public abstract class EnergyComponentImpl extends MinimalEObjectImpl.Container i
...
@@ -191,11 +191,11 @@ public abstract class EnergyComponentImpl extends MinimalEObjectImpl.Container i
@Override
@Override
public
Object
eGet
(
int
featureID
,
boolean
resolve
,
boolean
coreType
)
{
public
Object
eGet
(
int
featureID
,
boolean
resolve
,
boolean
coreType
)
{
switch
(
featureID
)
{
switch
(
featureID
)
{
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENT__MODEL_NAME
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENT__MODEL_NAME
:
return
getModelName
();
return
getModelName
();
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENT__REVISION_YEAR
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENT__REVISION_YEAR
:
return
getRevisionYear
();
return
getRevisionYear
();
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENT__PRODUCED_BY
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENT__PRODUCED_BY
:
if
(
resolve
)
if
(
resolve
)
return
getProducedBy
();
return
getProducedBy
();
return
basicGetProducedBy
();
return
basicGetProducedBy
();
...
@@ -211,13 +211,13 @@ public abstract class EnergyComponentImpl extends MinimalEObjectImpl.Container i
...
@@ -211,13 +211,13 @@ public abstract class EnergyComponentImpl extends MinimalEObjectImpl.Container i
@Override
@Override
public
void
eSet
(
int
featureID
,
Object
newValue
)
{
public
void
eSet
(
int
featureID
,
Object
newValue
)
{
switch
(
featureID
)
{
switch
(
featureID
)
{
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENT__MODEL_NAME
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENT__MODEL_NAME
:
setModelName
((
String
)
newValue
);
setModelName
((
String
)
newValue
);
return
;
return
;
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENT__REVISION_YEAR
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENT__REVISION_YEAR
:
setRevisionYear
((
Integer
)
newValue
);
setRevisionYear
((
Integer
)
newValue
);
return
;
return
;
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENT__PRODUCED_BY
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENT__PRODUCED_BY
:
setProducedBy
((
Manufacturer
)
newValue
);
setProducedBy
((
Manufacturer
)
newValue
);
return
;
return
;
}
}
...
@@ -232,13 +232,13 @@ public abstract class EnergyComponentImpl extends MinimalEObjectImpl.Container i
...
@@ -232,13 +232,13 @@ public abstract class EnergyComponentImpl extends MinimalEObjectImpl.Container i
@Override
@Override
public
void
eUnset
(
int
featureID
)
{
public
void
eUnset
(
int
featureID
)
{
switch
(
featureID
)
{
switch
(
featureID
)
{
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENT__MODEL_NAME
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENT__MODEL_NAME
:
setModelName
(
MODEL_NAME_EDEFAULT
);
setModelName
(
MODEL_NAME_EDEFAULT
);
return
;
return
;
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENT__REVISION_YEAR
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENT__REVISION_YEAR
:
setRevisionYear
(
REVISION_YEAR_EDEFAULT
);
setRevisionYear
(
REVISION_YEAR_EDEFAULT
);
return
;
return
;
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENT__PRODUCED_BY
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENT__PRODUCED_BY
:
setProducedBy
((
Manufacturer
)
null
);
setProducedBy
((
Manufacturer
)
null
);
return
;
return
;
}
}
...
@@ -253,11 +253,11 @@ public abstract class EnergyComponentImpl extends MinimalEObjectImpl.Container i
...
@@ -253,11 +253,11 @@ public abstract class EnergyComponentImpl extends MinimalEObjectImpl.Container i
@Override
@Override
public
boolean
eIsSet
(
int
featureID
)
{
public
boolean
eIsSet
(
int
featureID
)
{
switch
(
featureID
)
{
switch
(
featureID
)
{
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENT__MODEL_NAME
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENT__MODEL_NAME
:
return
MODEL_NAME_EDEFAULT
==
null
?
modelName
!=
null
:
!
MODEL_NAME_EDEFAULT
.
equals
(
modelName
);
return
MODEL_NAME_EDEFAULT
==
null
?
modelName
!=
null
:
!
MODEL_NAME_EDEFAULT
.
equals
(
modelName
);
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENT__REVISION_YEAR
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENT__REVISION_YEAR
:
return
revisionYear
!=
REVISION_YEAR_EDEFAULT
;
return
revisionYear
!=
REVISION_YEAR_EDEFAULT
;
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENT__PRODUCED_BY
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENT__PRODUCED_BY
:
return
producedBy
!=
null
;
return
producedBy
!=
null
;
}
}
return
super
.
eIsSet
(
featureID
);
return
super
.
eIsSet
(
featureID
);
...
...
This diff is collapsed.
Click to expand it.
EclipseDemoCatalog/demo.catalog/src-gen/demo/catalog/democatalog/impl/EnergyComponentsCatalogImpl.java
+
37
-
37
View file @
92c8b79f
...
@@ -4,11 +4,11 @@ package demo.catalog.democatalog.impl;
...
@@ -4,11 +4,11 @@ package demo.catalog.democatalog.impl;
import
demo.catalog.democatalog.Boiler
;
import
demo.catalog.democatalog.Boiler
;
import
demo.catalog.democatalog.CombinedHeatPower
;
import
demo.catalog.democatalog.CombinedHeatPower
;
import
demo.catalog.democatalog.DemoCatalogPackage
;
import
demo.catalog.democatalog.EnergyComponentsCatalog
;
import
demo.catalog.democatalog.EnergyComponentsCatalog
;
import
demo.catalog.democatalog.Inverter
;
import
demo.catalog.democatalog.Inverter
;
import
demo.catalog.democatalog.Manufacturer
;
import
demo.catalog.democatalog.Manufacturer
;
import
demo.catalog.democatalog.SolarPanel
;
import
demo.catalog.democatalog.SolarPanel
;
import
demo.catalog.democatalog.democatalogPackage
;
import
java.util.Collection
;
import
java.util.Collection
;
...
@@ -131,7 +131,7 @@ public class EnergyComponentsCatalogImpl extends MinimalEObjectImpl.Container im
...
@@ -131,7 +131,7 @@ public class EnergyComponentsCatalogImpl extends MinimalEObjectImpl.Container im
*/
*/
@Override
@Override
protected
EClass
eStaticClass
()
{
protected
EClass
eStaticClass
()
{
return
d
emo
c
atalogPackage
.
Literals
.
ENERGY_COMPONENTS_CATALOG
;
return
D
emo
C
atalogPackage
.
Literals
.
ENERGY_COMPONENTS_CATALOG
;
}
}
/**
/**
...
@@ -152,7 +152,7 @@ public class EnergyComponentsCatalogImpl extends MinimalEObjectImpl.Container im
...
@@ -152,7 +152,7 @@ public class EnergyComponentsCatalogImpl extends MinimalEObjectImpl.Container im
String
oldAuthor
=
author
;
String
oldAuthor
=
author
;
author
=
newAuthor
;
author
=
newAuthor
;
if
(
eNotificationRequired
())
if
(
eNotificationRequired
())
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
d
emo
c
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__AUTHOR
,
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
D
emo
C
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__AUTHOR
,
oldAuthor
,
author
));
oldAuthor
,
author
));
}
}
...
@@ -164,7 +164,7 @@ public class EnergyComponentsCatalogImpl extends MinimalEObjectImpl.Container im
...
@@ -164,7 +164,7 @@ public class EnergyComponentsCatalogImpl extends MinimalEObjectImpl.Container im
public
EList
<
Boiler
>
getBoilers
()
{
public
EList
<
Boiler
>
getBoilers
()
{
if
(
boilers
==
null
)
{
if
(
boilers
==
null
)
{
boilers
=
new
EObjectContainmentEList
<
Boiler
>(
Boiler
.
class
,
this
,
boilers
=
new
EObjectContainmentEList
<
Boiler
>(
Boiler
.
class
,
this
,
d
emo
c
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__BOILERS
);
D
emo
C
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__BOILERS
);
}
}
return
boilers
;
return
boilers
;
}
}
...
@@ -177,7 +177,7 @@ public class EnergyComponentsCatalogImpl extends MinimalEObjectImpl.Container im
...
@@ -177,7 +177,7 @@ public class EnergyComponentsCatalogImpl extends MinimalEObjectImpl.Container im
public
EList
<
CombinedHeatPower
>
getChps
()
{
public
EList
<
CombinedHeatPower
>
getChps
()
{
if
(
chps
==
null
)
{
if
(
chps
==
null
)
{
chps
=
new
EObjectContainmentEList
<
CombinedHeatPower
>(
CombinedHeatPower
.
class
,
this
,
chps
=
new
EObjectContainmentEList
<
CombinedHeatPower
>(
CombinedHeatPower
.
class
,
this
,
d
emo
c
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__CHPS
);
D
emo
C
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__CHPS
);
}
}
return
chps
;
return
chps
;
}
}
...
@@ -190,7 +190,7 @@ public class EnergyComponentsCatalogImpl extends MinimalEObjectImpl.Container im
...
@@ -190,7 +190,7 @@ public class EnergyComponentsCatalogImpl extends MinimalEObjectImpl.Container im
public
EList
<
SolarPanel
>
getSolarpanels
()
{
public
EList
<
SolarPanel
>
getSolarpanels
()
{
if
(
solarpanels
==
null
)
{
if
(
solarpanels
==
null
)
{
solarpanels
=
new
EObjectContainmentEList
<
SolarPanel
>(
SolarPanel
.
class
,
this
,
solarpanels
=
new
EObjectContainmentEList
<
SolarPanel
>(
SolarPanel
.
class
,
this
,
d
emo
c
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__SOLARPANELS
);
D
emo
C
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__SOLARPANELS
);
}
}
return
solarpanels
;
return
solarpanels
;
}
}
...
@@ -203,7 +203,7 @@ public class EnergyComponentsCatalogImpl extends MinimalEObjectImpl.Container im
...
@@ -203,7 +203,7 @@ public class EnergyComponentsCatalogImpl extends MinimalEObjectImpl.Container im
public
EList
<
Inverter
>
getInverters
()
{
public
EList
<
Inverter
>
getInverters
()
{
if
(
inverters
==
null
)
{
if
(
inverters
==
null
)
{
inverters
=
new
EObjectContainmentEList
<
Inverter
>(
Inverter
.
class
,
this
,
inverters
=
new
EObjectContainmentEList
<
Inverter
>(
Inverter
.
class
,
this
,
d
emo
c
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__INVERTERS
);
D
emo
C
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__INVERTERS
);
}
}
return
inverters
;
return
inverters
;
}
}
...
@@ -216,7 +216,7 @@ public class EnergyComponentsCatalogImpl extends MinimalEObjectImpl.Container im
...
@@ -216,7 +216,7 @@ public class EnergyComponentsCatalogImpl extends MinimalEObjectImpl.Container im
public
EList
<
Manufacturer
>
getManufacturers
()
{
public
EList
<
Manufacturer
>
getManufacturers
()
{
if
(
manufacturers
==
null
)
{
if
(
manufacturers
==
null
)
{
manufacturers
=
new
EObjectContainmentEList
<
Manufacturer
>(
Manufacturer
.
class
,
this
,
manufacturers
=
new
EObjectContainmentEList
<
Manufacturer
>(
Manufacturer
.
class
,
this
,
d
emo
c
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__MANUFACTURERS
);
D
emo
C
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__MANUFACTURERS
);
}
}
return
manufacturers
;
return
manufacturers
;
}
}
...
@@ -229,15 +229,15 @@ public class EnergyComponentsCatalogImpl extends MinimalEObjectImpl.Container im
...
@@ -229,15 +229,15 @@ public class EnergyComponentsCatalogImpl extends MinimalEObjectImpl.Container im
@Override
@Override
public
NotificationChain
eInverseRemove
(
InternalEObject
otherEnd
,
int
featureID
,
NotificationChain
msgs
)
{
public
NotificationChain
eInverseRemove
(
InternalEObject
otherEnd
,
int
featureID
,
NotificationChain
msgs
)
{
switch
(
featureID
)
{
switch
(
featureID
)
{
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__BOILERS
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__BOILERS
:
return
((
InternalEList
<?>)
getBoilers
()).
basicRemove
(
otherEnd
,
msgs
);
return
((
InternalEList
<?>)
getBoilers
()).
basicRemove
(
otherEnd
,
msgs
);
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__CHPS
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__CHPS
:
return
((
InternalEList
<?>)
getChps
()).
basicRemove
(
otherEnd
,
msgs
);
return
((
InternalEList
<?>)
getChps
()).
basicRemove
(
otherEnd
,
msgs
);
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__SOLARPANELS
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__SOLARPANELS
:
return
((
InternalEList
<?>)
getSolarpanels
()).
basicRemove
(
otherEnd
,
msgs
);
return
((
InternalEList
<?>)
getSolarpanels
()).
basicRemove
(
otherEnd
,
msgs
);
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__INVERTERS
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__INVERTERS
:
return
((
InternalEList
<?>)
getInverters
()).
basicRemove
(
otherEnd
,
msgs
);
return
((
InternalEList
<?>)
getInverters
()).
basicRemove
(
otherEnd
,
msgs
);
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__MANUFACTURERS
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__MANUFACTURERS
:
return
((
InternalEList
<?>)
getManufacturers
()).
basicRemove
(
otherEnd
,
msgs
);
return
((
InternalEList
<?>)
getManufacturers
()).
basicRemove
(
otherEnd
,
msgs
);
}
}
return
super
.
eInverseRemove
(
otherEnd
,
featureID
,
msgs
);
return
super
.
eInverseRemove
(
otherEnd
,
featureID
,
msgs
);
...
@@ -251,17 +251,17 @@ public class EnergyComponentsCatalogImpl extends MinimalEObjectImpl.Container im
...
@@ -251,17 +251,17 @@ public class EnergyComponentsCatalogImpl extends MinimalEObjectImpl.Container im
@Override
@Override
public
Object
eGet
(
int
featureID
,
boolean
resolve
,
boolean
coreType
)
{
public
Object
eGet
(
int
featureID
,
boolean
resolve
,
boolean
coreType
)
{
switch
(
featureID
)
{
switch
(
featureID
)
{
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__AUTHOR
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__AUTHOR
:
return
getAuthor
();
return
getAuthor
();
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__BOILERS
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__BOILERS
:
return
getBoilers
();
return
getBoilers
();
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__CHPS
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__CHPS
:
return
getChps
();
return
getChps
();
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__SOLARPANELS
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__SOLARPANELS
:
return
getSolarpanels
();
return
getSolarpanels
();
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__INVERTERS
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__INVERTERS
:
return
getInverters
();
return
getInverters
();
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__MANUFACTURERS
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__MANUFACTURERS
:
return
getManufacturers
();
return
getManufacturers
();
}
}
return
super
.
eGet
(
featureID
,
resolve
,
coreType
);
return
super
.
eGet
(
featureID
,
resolve
,
coreType
);
...
@@ -276,26 +276,26 @@ public class EnergyComponentsCatalogImpl extends MinimalEObjectImpl.Container im
...
@@ -276,26 +276,26 @@ public class EnergyComponentsCatalogImpl extends MinimalEObjectImpl.Container im
@Override
@Override
public
void
eSet
(
int
featureID
,
Object
newValue
)
{
public
void
eSet
(
int
featureID
,
Object
newValue
)
{
switch
(
featureID
)
{
switch
(
featureID
)
{
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__AUTHOR
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__AUTHOR
:
setAuthor
((
String
)
newValue
);
setAuthor
((
String
)
newValue
);
return
;
return
;
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__BOILERS
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__BOILERS
:
getBoilers
().
clear
();
getBoilers
().
clear
();
getBoilers
().
addAll
((
Collection
<?
extends
Boiler
>)
newValue
);
getBoilers
().
addAll
((
Collection
<?
extends
Boiler
>)
newValue
);
return
;
return
;
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__CHPS
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__CHPS
:
getChps
().
clear
();
getChps
().
clear
();
getChps
().
addAll
((
Collection
<?
extends
CombinedHeatPower
>)
newValue
);
getChps
().
addAll
((
Collection
<?
extends
CombinedHeatPower
>)
newValue
);
return
;
return
;
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__SOLARPANELS
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__SOLARPANELS
:
getSolarpanels
().
clear
();
getSolarpanels
().
clear
();
getSolarpanels
().
addAll
((
Collection
<?
extends
SolarPanel
>)
newValue
);
getSolarpanels
().
addAll
((
Collection
<?
extends
SolarPanel
>)
newValue
);
return
;
return
;
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__INVERTERS
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__INVERTERS
:
getInverters
().
clear
();
getInverters
().
clear
();
getInverters
().
addAll
((
Collection
<?
extends
Inverter
>)
newValue
);
getInverters
().
addAll
((
Collection
<?
extends
Inverter
>)
newValue
);
return
;
return
;
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__MANUFACTURERS
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__MANUFACTURERS
:
getManufacturers
().
clear
();
getManufacturers
().
clear
();
getManufacturers
().
addAll
((
Collection
<?
extends
Manufacturer
>)
newValue
);
getManufacturers
().
addAll
((
Collection
<?
extends
Manufacturer
>)
newValue
);
return
;
return
;
...
@@ -311,22 +311,22 @@ public class EnergyComponentsCatalogImpl extends MinimalEObjectImpl.Container im
...
@@ -311,22 +311,22 @@ public class EnergyComponentsCatalogImpl extends MinimalEObjectImpl.Container im
@Override
@Override
public
void
eUnset
(
int
featureID
)
{
public
void
eUnset
(
int
featureID
)
{
switch
(
featureID
)
{
switch
(
featureID
)
{
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__AUTHOR
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__AUTHOR
:
setAuthor
(
AUTHOR_EDEFAULT
);
setAuthor
(
AUTHOR_EDEFAULT
);
return
;
return
;
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__BOILERS
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__BOILERS
:
getBoilers
().
clear
();
getBoilers
().
clear
();
return
;
return
;
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__CHPS
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__CHPS
:
getChps
().
clear
();
getChps
().
clear
();
return
;
return
;
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__SOLARPANELS
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__SOLARPANELS
:
getSolarpanels
().
clear
();
getSolarpanels
().
clear
();
return
;
return
;
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__INVERTERS
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__INVERTERS
:
getInverters
().
clear
();
getInverters
().
clear
();
return
;
return
;
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__MANUFACTURERS
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__MANUFACTURERS
:
getManufacturers
().
clear
();
getManufacturers
().
clear
();
return
;
return
;
}
}
...
@@ -341,17 +341,17 @@ public class EnergyComponentsCatalogImpl extends MinimalEObjectImpl.Container im
...
@@ -341,17 +341,17 @@ public class EnergyComponentsCatalogImpl extends MinimalEObjectImpl.Container im
@Override
@Override
public
boolean
eIsSet
(
int
featureID
)
{
public
boolean
eIsSet
(
int
featureID
)
{
switch
(
featureID
)
{
switch
(
featureID
)
{
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__AUTHOR
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__AUTHOR
:
return
AUTHOR_EDEFAULT
==
null
?
author
!=
null
:
!
AUTHOR_EDEFAULT
.
equals
(
author
);
return
AUTHOR_EDEFAULT
==
null
?
author
!=
null
:
!
AUTHOR_EDEFAULT
.
equals
(
author
);
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__BOILERS
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__BOILERS
:
return
boilers
!=
null
&&
!
boilers
.
isEmpty
();
return
boilers
!=
null
&&
!
boilers
.
isEmpty
();
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__CHPS
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__CHPS
:
return
chps
!=
null
&&
!
chps
.
isEmpty
();
return
chps
!=
null
&&
!
chps
.
isEmpty
();
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__SOLARPANELS
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__SOLARPANELS
:
return
solarpanels
!=
null
&&
!
solarpanels
.
isEmpty
();
return
solarpanels
!=
null
&&
!
solarpanels
.
isEmpty
();
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__INVERTERS
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__INVERTERS
:
return
inverters
!=
null
&&
!
inverters
.
isEmpty
();
return
inverters
!=
null
&&
!
inverters
.
isEmpty
();
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__MANUFACTURERS
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENTS_CATALOG__MANUFACTURERS
:
return
manufacturers
!=
null
&&
!
manufacturers
.
isEmpty
();
return
manufacturers
!=
null
&&
!
manufacturers
.
isEmpty
();
}
}
return
super
.
eIsSet
(
featureID
);
return
super
.
eIsSet
(
featureID
);
...
...
This diff is collapsed.
Click to expand it.
EclipseDemoCatalog/demo.catalog/src-gen/demo/catalog/democatalog/impl/InverterImpl.java
+
7
-
7
View file @
92c8b79f
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
*/
*/
package
demo.catalog.democatalog.impl
;
package
demo.catalog.democatalog.impl
;
import
demo.catalog.democatalog.DemoCatalogPackage
;
import
demo.catalog.democatalog.Inverter
;
import
demo.catalog.democatalog.Inverter
;
import
demo.catalog.democatalog.democatalogPackage
;
import
org.eclipse.emf.common.notify.Notification
;
import
org.eclipse.emf.common.notify.Notification
;
...
@@ -61,7 +61,7 @@ public class InverterImpl extends EnergyComponentImpl implements Inverter {
...
@@ -61,7 +61,7 @@ public class InverterImpl extends EnergyComponentImpl implements Inverter {
*/
*/
@Override
@Override
protected
EClass
eStaticClass
()
{
protected
EClass
eStaticClass
()
{
return
d
emo
c
atalogPackage
.
Literals
.
INVERTER
;
return
D
emo
C
atalogPackage
.
Literals
.
INVERTER
;
}
}
/**
/**
...
@@ -82,7 +82,7 @@ public class InverterImpl extends EnergyComponentImpl implements Inverter {
...
@@ -82,7 +82,7 @@ public class InverterImpl extends EnergyComponentImpl implements Inverter {
double
oldNominalPower
=
nominalPower
;
double
oldNominalPower
=
nominalPower
;
nominalPower
=
newNominalPower
;
nominalPower
=
newNominalPower
;
if
(
eNotificationRequired
())
if
(
eNotificationRequired
())
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
d
emo
c
atalogPackage
.
INVERTER__NOMINAL_POWER
,
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
D
emo
C
atalogPackage
.
INVERTER__NOMINAL_POWER
,
oldNominalPower
,
nominalPower
));
oldNominalPower
,
nominalPower
));
}
}
...
@@ -94,7 +94,7 @@ public class InverterImpl extends EnergyComponentImpl implements Inverter {
...
@@ -94,7 +94,7 @@ public class InverterImpl extends EnergyComponentImpl implements Inverter {
@Override
@Override
public
Object
eGet
(
int
featureID
,
boolean
resolve
,
boolean
coreType
)
{
public
Object
eGet
(
int
featureID
,
boolean
resolve
,
boolean
coreType
)
{
switch
(
featureID
)
{
switch
(
featureID
)
{
case
d
emo
c
atalogPackage
.
INVERTER__NOMINAL_POWER
:
case
D
emo
C
atalogPackage
.
INVERTER__NOMINAL_POWER
:
return
getNominalPower
();
return
getNominalPower
();
}
}
return
super
.
eGet
(
featureID
,
resolve
,
coreType
);
return
super
.
eGet
(
featureID
,
resolve
,
coreType
);
...
@@ -108,7 +108,7 @@ public class InverterImpl extends EnergyComponentImpl implements Inverter {
...
@@ -108,7 +108,7 @@ public class InverterImpl extends EnergyComponentImpl implements Inverter {
@Override
@Override
public
void
eSet
(
int
featureID
,
Object
newValue
)
{
public
void
eSet
(
int
featureID
,
Object
newValue
)
{
switch
(
featureID
)
{
switch
(
featureID
)
{
case
d
emo
c
atalogPackage
.
INVERTER__NOMINAL_POWER
:
case
D
emo
C
atalogPackage
.
INVERTER__NOMINAL_POWER
:
setNominalPower
((
Double
)
newValue
);
setNominalPower
((
Double
)
newValue
);
return
;
return
;
}
}
...
@@ -123,7 +123,7 @@ public class InverterImpl extends EnergyComponentImpl implements Inverter {
...
@@ -123,7 +123,7 @@ public class InverterImpl extends EnergyComponentImpl implements Inverter {
@Override
@Override
public
void
eUnset
(
int
featureID
)
{
public
void
eUnset
(
int
featureID
)
{
switch
(
featureID
)
{
switch
(
featureID
)
{
case
d
emo
c
atalogPackage
.
INVERTER__NOMINAL_POWER
:
case
D
emo
C
atalogPackage
.
INVERTER__NOMINAL_POWER
:
setNominalPower
(
NOMINAL_POWER_EDEFAULT
);
setNominalPower
(
NOMINAL_POWER_EDEFAULT
);
return
;
return
;
}
}
...
@@ -138,7 +138,7 @@ public class InverterImpl extends EnergyComponentImpl implements Inverter {
...
@@ -138,7 +138,7 @@ public class InverterImpl extends EnergyComponentImpl implements Inverter {
@Override
@Override
public
boolean
eIsSet
(
int
featureID
)
{
public
boolean
eIsSet
(
int
featureID
)
{
switch
(
featureID
)
{
switch
(
featureID
)
{
case
d
emo
c
atalogPackage
.
INVERTER__NOMINAL_POWER
:
case
D
emo
C
atalogPackage
.
INVERTER__NOMINAL_POWER
:
return
nominalPower
!=
NOMINAL_POWER_EDEFAULT
;
return
nominalPower
!=
NOMINAL_POWER_EDEFAULT
;
}
}
return
super
.
eIsSet
(
featureID
);
return
super
.
eIsSet
(
featureID
);
...
...
This diff is collapsed.
Click to expand it.
EclipseDemoCatalog/demo.catalog/src-gen/demo/catalog/democatalog/impl/ManufacturerImpl.java
+
7
-
7
View file @
92c8b79f
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
*/
*/
package
demo.catalog.democatalog.impl
;
package
demo.catalog.democatalog.impl
;
import
demo.catalog.democatalog.DemoCatalogPackage
;
import
demo.catalog.democatalog.Manufacturer
;
import
demo.catalog.democatalog.Manufacturer
;
import
demo.catalog.democatalog.democatalogPackage
;
import
org.eclipse.emf.common.notify.Notification
;
import
org.eclipse.emf.common.notify.Notification
;
...
@@ -62,7 +62,7 @@ public class ManufacturerImpl extends MinimalEObjectImpl.Container implements Ma
...
@@ -62,7 +62,7 @@ public class ManufacturerImpl extends MinimalEObjectImpl.Container implements Ma
*/
*/
@Override
@Override
protected
EClass
eStaticClass
()
{
protected
EClass
eStaticClass
()
{
return
d
emo
c
atalogPackage
.
Literals
.
MANUFACTURER
;
return
D
emo
C
atalogPackage
.
Literals
.
MANUFACTURER
;
}
}
/**
/**
...
@@ -83,7 +83,7 @@ public class ManufacturerImpl extends MinimalEObjectImpl.Container implements Ma
...
@@ -83,7 +83,7 @@ public class ManufacturerImpl extends MinimalEObjectImpl.Container implements Ma
String
oldName
=
name
;
String
oldName
=
name
;
name
=
newName
;
name
=
newName
;
if
(
eNotificationRequired
())
if
(
eNotificationRequired
())
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
d
emo
c
atalogPackage
.
MANUFACTURER__NAME
,
oldName
,
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
D
emo
C
atalogPackage
.
MANUFACTURER__NAME
,
oldName
,
name
));
name
));
}
}
...
@@ -95,7 +95,7 @@ public class ManufacturerImpl extends MinimalEObjectImpl.Container implements Ma
...
@@ -95,7 +95,7 @@ public class ManufacturerImpl extends MinimalEObjectImpl.Container implements Ma
@Override
@Override
public
Object
eGet
(
int
featureID
,
boolean
resolve
,
boolean
coreType
)
{
public
Object
eGet
(
int
featureID
,
boolean
resolve
,
boolean
coreType
)
{
switch
(
featureID
)
{
switch
(
featureID
)
{
case
d
emo
c
atalogPackage
.
MANUFACTURER__NAME
:
case
D
emo
C
atalogPackage
.
MANUFACTURER__NAME
:
return
getName
();
return
getName
();
}
}
return
super
.
eGet
(
featureID
,
resolve
,
coreType
);
return
super
.
eGet
(
featureID
,
resolve
,
coreType
);
...
@@ -109,7 +109,7 @@ public class ManufacturerImpl extends MinimalEObjectImpl.Container implements Ma
...
@@ -109,7 +109,7 @@ public class ManufacturerImpl extends MinimalEObjectImpl.Container implements Ma
@Override
@Override
public
void
eSet
(
int
featureID
,
Object
newValue
)
{
public
void
eSet
(
int
featureID
,
Object
newValue
)
{
switch
(
featureID
)
{
switch
(
featureID
)
{
case
d
emo
c
atalogPackage
.
MANUFACTURER__NAME
:
case
D
emo
C
atalogPackage
.
MANUFACTURER__NAME
:
setName
((
String
)
newValue
);
setName
((
String
)
newValue
);
return
;
return
;
}
}
...
@@ -124,7 +124,7 @@ public class ManufacturerImpl extends MinimalEObjectImpl.Container implements Ma
...
@@ -124,7 +124,7 @@ public class ManufacturerImpl extends MinimalEObjectImpl.Container implements Ma
@Override
@Override
public
void
eUnset
(
int
featureID
)
{
public
void
eUnset
(
int
featureID
)
{
switch
(
featureID
)
{
switch
(
featureID
)
{
case
d
emo
c
atalogPackage
.
MANUFACTURER__NAME
:
case
D
emo
C
atalogPackage
.
MANUFACTURER__NAME
:
setName
(
NAME_EDEFAULT
);
setName
(
NAME_EDEFAULT
);
return
;
return
;
}
}
...
@@ -139,7 +139,7 @@ public class ManufacturerImpl extends MinimalEObjectImpl.Container implements Ma
...
@@ -139,7 +139,7 @@ public class ManufacturerImpl extends MinimalEObjectImpl.Container implements Ma
@Override
@Override
public
boolean
eIsSet
(
int
featureID
)
{
public
boolean
eIsSet
(
int
featureID
)
{
switch
(
featureID
)
{
switch
(
featureID
)
{
case
d
emo
c
atalogPackage
.
MANUFACTURER__NAME
:
case
D
emo
C
atalogPackage
.
MANUFACTURER__NAME
:
return
NAME_EDEFAULT
==
null
?
name
!=
null
:
!
NAME_EDEFAULT
.
equals
(
name
);
return
NAME_EDEFAULT
==
null
?
name
!=
null
:
!
NAME_EDEFAULT
.
equals
(
name
);
}
}
return
super
.
eIsSet
(
featureID
);
return
super
.
eIsSet
(
featureID
);
...
...
This diff is collapsed.
Click to expand it.
EclipseDemoCatalog/demo.catalog/src-gen/demo/catalog/democatalog/impl/SolarPanelImpl.java
+
7
-
7
View file @
92c8b79f
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
*/
*/
package
demo.catalog.democatalog.impl
;
package
demo.catalog.democatalog.impl
;
import
demo.catalog.democatalog.DemoCatalogPackage
;
import
demo.catalog.democatalog.SolarPanel
;
import
demo.catalog.democatalog.SolarPanel
;
import
demo.catalog.democatalog.democatalogPackage
;
import
org.eclipse.emf.common.notify.Notification
;
import
org.eclipse.emf.common.notify.Notification
;
...
@@ -61,7 +61,7 @@ public class SolarPanelImpl extends EnergyComponentImpl implements SolarPanel {
...
@@ -61,7 +61,7 @@ public class SolarPanelImpl extends EnergyComponentImpl implements SolarPanel {
*/
*/
@Override
@Override
protected
EClass
eStaticClass
()
{
protected
EClass
eStaticClass
()
{
return
d
emo
c
atalogPackage
.
Literals
.
SOLAR_PANEL
;
return
D
emo
C
atalogPackage
.
Literals
.
SOLAR_PANEL
;
}
}
/**
/**
...
@@ -82,7 +82,7 @@ public class SolarPanelImpl extends EnergyComponentImpl implements SolarPanel {
...
@@ -82,7 +82,7 @@ public class SolarPanelImpl extends EnergyComponentImpl implements SolarPanel {
double
oldNominalPower
=
nominalPower
;
double
oldNominalPower
=
nominalPower
;
nominalPower
=
newNominalPower
;
nominalPower
=
newNominalPower
;
if
(
eNotificationRequired
())
if
(
eNotificationRequired
())
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
d
emo
c
atalogPackage
.
SOLAR_PANEL__NOMINAL_POWER
,
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
D
emo
C
atalogPackage
.
SOLAR_PANEL__NOMINAL_POWER
,
oldNominalPower
,
nominalPower
));
oldNominalPower
,
nominalPower
));
}
}
...
@@ -94,7 +94,7 @@ public class SolarPanelImpl extends EnergyComponentImpl implements SolarPanel {
...
@@ -94,7 +94,7 @@ public class SolarPanelImpl extends EnergyComponentImpl implements SolarPanel {
@Override
@Override
public
Object
eGet
(
int
featureID
,
boolean
resolve
,
boolean
coreType
)
{
public
Object
eGet
(
int
featureID
,
boolean
resolve
,
boolean
coreType
)
{
switch
(
featureID
)
{
switch
(
featureID
)
{
case
d
emo
c
atalogPackage
.
SOLAR_PANEL__NOMINAL_POWER
:
case
D
emo
C
atalogPackage
.
SOLAR_PANEL__NOMINAL_POWER
:
return
getNominalPower
();
return
getNominalPower
();
}
}
return
super
.
eGet
(
featureID
,
resolve
,
coreType
);
return
super
.
eGet
(
featureID
,
resolve
,
coreType
);
...
@@ -108,7 +108,7 @@ public class SolarPanelImpl extends EnergyComponentImpl implements SolarPanel {
...
@@ -108,7 +108,7 @@ public class SolarPanelImpl extends EnergyComponentImpl implements SolarPanel {
@Override
@Override
public
void
eSet
(
int
featureID
,
Object
newValue
)
{
public
void
eSet
(
int
featureID
,
Object
newValue
)
{
switch
(
featureID
)
{
switch
(
featureID
)
{
case
d
emo
c
atalogPackage
.
SOLAR_PANEL__NOMINAL_POWER
:
case
D
emo
C
atalogPackage
.
SOLAR_PANEL__NOMINAL_POWER
:
setNominalPower
((
Double
)
newValue
);
setNominalPower
((
Double
)
newValue
);
return
;
return
;
}
}
...
@@ -123,7 +123,7 @@ public class SolarPanelImpl extends EnergyComponentImpl implements SolarPanel {
...
@@ -123,7 +123,7 @@ public class SolarPanelImpl extends EnergyComponentImpl implements SolarPanel {
@Override
@Override
public
void
eUnset
(
int
featureID
)
{
public
void
eUnset
(
int
featureID
)
{
switch
(
featureID
)
{
switch
(
featureID
)
{
case
d
emo
c
atalogPackage
.
SOLAR_PANEL__NOMINAL_POWER
:
case
D
emo
C
atalogPackage
.
SOLAR_PANEL__NOMINAL_POWER
:
setNominalPower
(
NOMINAL_POWER_EDEFAULT
);
setNominalPower
(
NOMINAL_POWER_EDEFAULT
);
return
;
return
;
}
}
...
@@ -138,7 +138,7 @@ public class SolarPanelImpl extends EnergyComponentImpl implements SolarPanel {
...
@@ -138,7 +138,7 @@ public class SolarPanelImpl extends EnergyComponentImpl implements SolarPanel {
@Override
@Override
public
boolean
eIsSet
(
int
featureID
)
{
public
boolean
eIsSet
(
int
featureID
)
{
switch
(
featureID
)
{
switch
(
featureID
)
{
case
d
emo
c
atalogPackage
.
SOLAR_PANEL__NOMINAL_POWER
:
case
D
emo
C
atalogPackage
.
SOLAR_PANEL__NOMINAL_POWER
:
return
nominalPower
!=
NOMINAL_POWER_EDEFAULT
;
return
nominalPower
!=
NOMINAL_POWER_EDEFAULT
;
}
}
return
super
.
eIsSet
(
featureID
);
return
super
.
eIsSet
(
featureID
);
...
...
This diff is collapsed.
Click to expand it.
EclipseDemoCatalog/demo.catalog/src-gen/demo/catalog/democatalog/impl/democatalogFactoryImpl.java
+
21
-
21
View file @
92c8b79f
...
@@ -19,24 +19,24 @@ import org.eclipse.emf.ecore.plugin.EcorePlugin;
...
@@ -19,24 +19,24 @@ import org.eclipse.emf.ecore.plugin.EcorePlugin;
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @generated
* @generated
*/
*/
public
class
d
emo
c
atalogFactoryImpl
extends
EFactoryImpl
implements
d
emo
c
atalogFactory
{
public
class
D
emo
C
atalogFactoryImpl
extends
EFactoryImpl
implements
D
emo
C
atalogFactory
{
/**
/**
* Creates the default factory implementation.
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @generated
* @generated
*/
*/
public
static
d
emo
c
atalogFactory
init
()
{
public
static
D
emo
C
atalogFactory
init
()
{
try
{
try
{
d
emo
c
atalogFactory
the
d
emo
c
atalogFactory
=
(
d
emo
c
atalogFactory
)
EPackage
.
Registry
.
INSTANCE
D
emo
C
atalogFactory
the
D
emo
C
atalogFactory
=
(
D
emo
C
atalogFactory
)
EPackage
.
Registry
.
INSTANCE
.
getEFactory
(
d
emo
c
atalogPackage
.
eNS_URI
);
.
getEFactory
(
D
emo
C
atalogPackage
.
eNS_URI
);
if
(
the
d
emo
c
atalogFactory
!=
null
)
{
if
(
the
D
emo
C
atalogFactory
!=
null
)
{
return
the
d
emo
c
atalogFactory
;
return
the
D
emo
C
atalogFactory
;
}
}
}
catch
(
Exception
exception
)
{
}
catch
(
Exception
exception
)
{
EcorePlugin
.
INSTANCE
.
log
(
exception
);
EcorePlugin
.
INSTANCE
.
log
(
exception
);
}
}
return
new
d
emo
c
atalogFactoryImpl
();
return
new
D
emo
C
atalogFactoryImpl
();
}
}
/**
/**
...
@@ -45,7 +45,7 @@ public class democatalogFactoryImpl extends EFactoryImpl implements democatalogF
...
@@ -45,7 +45,7 @@ public class democatalogFactoryImpl extends EFactoryImpl implements democatalogF
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @generated
* @generated
*/
*/
public
d
emo
c
atalogFactoryImpl
()
{
public
D
emo
C
atalogFactoryImpl
()
{
super
();
super
();
}
}
...
@@ -57,17 +57,17 @@ public class democatalogFactoryImpl extends EFactoryImpl implements democatalogF
...
@@ -57,17 +57,17 @@ public class democatalogFactoryImpl extends EFactoryImpl implements democatalogF
@Override
@Override
public
EObject
create
(
EClass
eClass
)
{
public
EObject
create
(
EClass
eClass
)
{
switch
(
eClass
.
getClassifierID
())
{
switch
(
eClass
.
getClassifierID
())
{
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENTS_CATALOG
:
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENTS_CATALOG
:
return
createEnergyComponentsCatalog
();
return
createEnergyComponentsCatalog
();
case
d
emo
c
atalogPackage
.
BOILER
:
case
D
emo
C
atalogPackage
.
BOILER
:
return
createBoiler
();
return
createBoiler
();
case
d
emo
c
atalogPackage
.
COMBINED_HEAT_POWER
:
case
D
emo
C
atalogPackage
.
COMBINED_HEAT_POWER
:
return
createCombinedHeatPower
();
return
createCombinedHeatPower
();
case
d
emo
c
atalogPackage
.
SOLAR_PANEL
:
case
D
emo
C
atalogPackage
.
SOLAR_PANEL
:
return
createSolarPanel
();
return
createSolarPanel
();
case
d
emo
c
atalogPackage
.
INVERTER
:
case
D
emo
C
atalogPackage
.
INVERTER
:
return
createInverter
();
return
createInverter
();
case
d
emo
c
atalogPackage
.
MANUFACTURER
:
case
D
emo
C
atalogPackage
.
MANUFACTURER
:
return
createManufacturer
();
return
createManufacturer
();
default
:
default
:
throw
new
IllegalArgumentException
(
"The class '"
+
eClass
.
getName
()
+
"' is not a valid classifier"
);
throw
new
IllegalArgumentException
(
"The class '"
+
eClass
.
getName
()
+
"' is not a valid classifier"
);
...
@@ -82,7 +82,7 @@ public class democatalogFactoryImpl extends EFactoryImpl implements democatalogF
...
@@ -82,7 +82,7 @@ public class democatalogFactoryImpl extends EFactoryImpl implements democatalogF
@Override
@Override
public
Object
createFromString
(
EDataType
eDataType
,
String
initialValue
)
{
public
Object
createFromString
(
EDataType
eDataType
,
String
initialValue
)
{
switch
(
eDataType
.
getClassifierID
())
{
switch
(
eDataType
.
getClassifierID
())
{
case
d
emo
c
atalogPackage
.
BOILER_TYPE
:
case
D
emo
C
atalogPackage
.
BOILER_TYPE
:
return
createBoilerTypeFromString
(
eDataType
,
initialValue
);
return
createBoilerTypeFromString
(
eDataType
,
initialValue
);
default
:
default
:
throw
new
IllegalArgumentException
(
"The datatype '"
+
eDataType
.
getName
()
+
"' is not a valid classifier"
);
throw
new
IllegalArgumentException
(
"The datatype '"
+
eDataType
.
getName
()
+
"' is not a valid classifier"
);
...
@@ -97,7 +97,7 @@ public class democatalogFactoryImpl extends EFactoryImpl implements democatalogF
...
@@ -97,7 +97,7 @@ public class democatalogFactoryImpl extends EFactoryImpl implements democatalogF
@Override
@Override
public
String
convertToString
(
EDataType
eDataType
,
Object
instanceValue
)
{
public
String
convertToString
(
EDataType
eDataType
,
Object
instanceValue
)
{
switch
(
eDataType
.
getClassifierID
())
{
switch
(
eDataType
.
getClassifierID
())
{
case
d
emo
c
atalogPackage
.
BOILER_TYPE
:
case
D
emo
C
atalogPackage
.
BOILER_TYPE
:
return
convertBoilerTypeToString
(
eDataType
,
instanceValue
);
return
convertBoilerTypeToString
(
eDataType
,
instanceValue
);
default
:
default
:
throw
new
IllegalArgumentException
(
"The datatype '"
+
eDataType
.
getName
()
+
"' is not a valid classifier"
);
throw
new
IllegalArgumentException
(
"The datatype '"
+
eDataType
.
getName
()
+
"' is not a valid classifier"
);
...
@@ -191,8 +191,8 @@ public class democatalogFactoryImpl extends EFactoryImpl implements democatalogF
...
@@ -191,8 +191,8 @@ public class democatalogFactoryImpl extends EFactoryImpl implements democatalogF
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @generated
* @generated
*/
*/
public
d
emo
c
atalogPackage
get
d
emo
c
atalogPackage
()
{
public
D
emo
C
atalogPackage
get
D
emo
C
atalogPackage
()
{
return
(
d
emo
c
atalogPackage
)
getEPackage
();
return
(
D
emo
C
atalogPackage
)
getEPackage
();
}
}
/**
/**
...
@@ -202,8 +202,8 @@ public class democatalogFactoryImpl extends EFactoryImpl implements democatalogF
...
@@ -202,8 +202,8 @@ public class democatalogFactoryImpl extends EFactoryImpl implements democatalogF
* @generated
* @generated
*/
*/
@Deprecated
@Deprecated
public
static
d
emo
c
atalogPackage
getPackage
()
{
public
static
D
emo
C
atalogPackage
getPackage
()
{
return
d
emo
c
atalogPackage
.
eINSTANCE
;
return
D
emo
C
atalogPackage
.
eINSTANCE
;
}
}
}
//
d
emo
c
atalogFactoryImpl
}
//
D
emo
C
atalogFactoryImpl
This diff is collapsed.
Click to expand it.
EclipseDemoCatalog/demo.catalog/src-gen/demo/catalog/democatalog/impl/democatalogPackageImpl.java
+
21
-
21
View file @
92c8b79f
...
@@ -6,13 +6,13 @@ import demo.catalog.democatalog.Boiler;
...
@@ -6,13 +6,13 @@ import demo.catalog.democatalog.Boiler;
import
demo.catalog.democatalog.BoilerType
;
import
demo.catalog.democatalog.BoilerType
;
import
demo.catalog.democatalog.ChemicalEnergyDevice
;
import
demo.catalog.democatalog.ChemicalEnergyDevice
;
import
demo.catalog.democatalog.CombinedHeatPower
;
import
demo.catalog.democatalog.CombinedHeatPower
;
import
demo.catalog.democatalog.DemoCatalogFactory
;
import
demo.catalog.democatalog.DemoCatalogPackage
;
import
demo.catalog.democatalog.EnergyComponent
;
import
demo.catalog.democatalog.EnergyComponent
;
import
demo.catalog.democatalog.EnergyComponentsCatalog
;
import
demo.catalog.democatalog.EnergyComponentsCatalog
;
import
demo.catalog.democatalog.Inverter
;
import
demo.catalog.democatalog.Inverter
;
import
demo.catalog.democatalog.Manufacturer
;
import
demo.catalog.democatalog.Manufacturer
;
import
demo.catalog.democatalog.SolarPanel
;
import
demo.catalog.democatalog.SolarPanel
;
import
demo.catalog.democatalog.democatalogFactory
;
import
demo.catalog.democatalog.democatalogPackage
;
import
org.eclipse.emf.ecore.EAttribute
;
import
org.eclipse.emf.ecore.EAttribute
;
import
org.eclipse.emf.ecore.EClass
;
import
org.eclipse.emf.ecore.EClass
;
...
@@ -28,7 +28,7 @@ import org.eclipse.emf.ecore.impl.EPackageImpl;
...
@@ -28,7 +28,7 @@ import org.eclipse.emf.ecore.impl.EPackageImpl;
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @generated
* @generated
*/
*/
public
class
d
emo
c
atalogPackageImpl
extends
EPackageImpl
implements
d
emo
c
atalogPackage
{
public
class
D
emo
C
atalogPackageImpl
extends
EPackageImpl
implements
D
emo
C
atalogPackage
{
/**
/**
* <!-- begin-user-doc -->
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
...
@@ -103,12 +103,12 @@ public class democatalogPackageImpl extends EPackageImpl implements democatalogP
...
@@ -103,12 +103,12 @@ public class democatalogPackageImpl extends EPackageImpl implements democatalogP
* <!-- begin-user-doc -->
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @see org.eclipse.emf.ecore.EPackage.Registry
* @see org.eclipse.emf.ecore.EPackage.Registry
* @see demo.catalog.democatalog.
d
emo
c
atalogPackage#eNS_URI
* @see demo.catalog.democatalog.
D
emo
C
atalogPackage#eNS_URI
* @see #init()
* @see #init()
* @generated
* @generated
*/
*/
private
d
emo
c
atalogPackageImpl
()
{
private
D
emo
C
atalogPackageImpl
()
{
super
(
eNS_URI
,
d
emo
c
atalogFactory
.
eINSTANCE
);
super
(
eNS_URI
,
D
emo
C
atalogFactory
.
eINSTANCE
);
}
}
/**
/**
...
@@ -121,7 +121,7 @@ public class democatalogPackageImpl extends EPackageImpl implements democatalogP
...
@@ -121,7 +121,7 @@ public class democatalogPackageImpl extends EPackageImpl implements democatalogP
/**
/**
* Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
* 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
d
emo
c
atalogPackage#eINSTANCE} when that field is accessed.
* <p>This method is used to initialize {@link
D
emo
C
atalogPackage#eINSTANCE} when that field is accessed.
* Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
* Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
* <!-- begin-user-doc -->
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
...
@@ -130,30 +130,30 @@ public class democatalogPackageImpl extends EPackageImpl implements democatalogP
...
@@ -130,30 +130,30 @@ public class democatalogPackageImpl extends EPackageImpl implements democatalogP
* @see #initializePackageContents()
* @see #initializePackageContents()
* @generated
* @generated
*/
*/
public
static
d
emo
c
atalogPackage
init
()
{
public
static
D
emo
C
atalogPackage
init
()
{
if
(
isInited
)
if
(
isInited
)
return
(
d
emo
c
atalogPackage
)
EPackage
.
Registry
.
INSTANCE
.
getEPackage
(
d
emo
c
atalogPackage
.
eNS_URI
);
return
(
D
emo
C
atalogPackage
)
EPackage
.
Registry
.
INSTANCE
.
getEPackage
(
D
emo
C
atalogPackage
.
eNS_URI
);
// Obtain or create and register package
// Obtain or create and register package
Object
registered
d
emo
c
atalogPackage
=
EPackage
.
Registry
.
INSTANCE
.
get
(
eNS_URI
);
Object
registered
D
emo
C
atalogPackage
=
EPackage
.
Registry
.
INSTANCE
.
get
(
eNS_URI
);
d
emo
c
atalogPackageImpl
the
d
emo
c
atalogPackage
=
registered
d
emo
c
atalogPackage
instanceof
d
emo
c
atalogPackageImpl
D
emo
C
atalogPackageImpl
the
D
emo
C
atalogPackage
=
registered
D
emo
C
atalogPackage
instanceof
D
emo
C
atalogPackageImpl
?
(
d
emo
c
atalogPackageImpl
)
registered
d
emo
c
atalogPackage
?
(
D
emo
C
atalogPackageImpl
)
registered
D
emo
C
atalogPackage
:
new
d
emo
c
atalogPackageImpl
();
:
new
D
emo
C
atalogPackageImpl
();
isInited
=
true
;
isInited
=
true
;
// Create package meta-data objects
// Create package meta-data objects
the
d
emo
c
atalogPackage
.
createPackageContents
();
the
D
emo
C
atalogPackage
.
createPackageContents
();
// Initialize created meta-data
// Initialize created meta-data
the
d
emo
c
atalogPackage
.
initializePackageContents
();
the
D
emo
C
atalogPackage
.
initializePackageContents
();
// Mark meta-data to indicate it can't be changed
// Mark meta-data to indicate it can't be changed
the
d
emo
c
atalogPackage
.
freeze
();
the
D
emo
C
atalogPackage
.
freeze
();
// Update the registry and return the package
// Update the registry and return the package
EPackage
.
Registry
.
INSTANCE
.
put
(
d
emo
c
atalogPackage
.
eNS_URI
,
the
d
emo
c
atalogPackage
);
EPackage
.
Registry
.
INSTANCE
.
put
(
D
emo
C
atalogPackage
.
eNS_URI
,
the
D
emo
C
atalogPackage
);
return
the
d
emo
c
atalogPackage
;
return
the
D
emo
C
atalogPackage
;
}
}
/**
/**
...
@@ -377,8 +377,8 @@ public class democatalogPackageImpl extends EPackageImpl implements democatalogP
...
@@ -377,8 +377,8 @@ public class democatalogPackageImpl extends EPackageImpl implements democatalogP
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @generated
* @generated
*/
*/
public
d
emo
c
atalogFactory
get
d
emo
c
atalogFactory
()
{
public
D
emo
C
atalogFactory
get
D
emo
C
atalogFactory
()
{
return
(
d
emo
c
atalogFactory
)
getEFactoryInstance
();
return
(
D
emo
C
atalogFactory
)
getEFactoryInstance
();
}
}
/**
/**
...
@@ -547,4 +547,4 @@ public class democatalogPackageImpl extends EPackageImpl implements democatalogP
...
@@ -547,4 +547,4 @@ public class democatalogPackageImpl extends EPackageImpl implements democatalogP
createResource
(
eNS_URI
);
createResource
(
eNS_URI
);
}
}
}
//
d
emo
c
atalogPackageImpl
}
//
D
emo
C
atalogPackageImpl
This diff is collapsed.
Click to expand it.
EclipseDemoCatalog/demo.catalog/src-gen/demo/catalog/democatalog/util/democatalogAdapterFactory.java
+
7
-
7
View file @
92c8b79f
...
@@ -16,17 +16,17 @@ import org.eclipse.emf.ecore.EObject;
...
@@ -16,17 +16,17 @@ import org.eclipse.emf.ecore.EObject;
* The <b>Adapter Factory</b> for the model.
* The <b>Adapter Factory</b> for the model.
* It provides an adapter <code>createXXX</code> method for each class of the model.
* It provides an adapter <code>createXXX</code> method for each class of the model.
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.
d
emo
c
atalogPackage
* @see demo.catalog.democatalog.
D
emo
C
atalogPackage
* @generated
* @generated
*/
*/
public
class
d
emo
c
atalogAdapterFactory
extends
AdapterFactoryImpl
{
public
class
D
emo
C
atalogAdapterFactory
extends
AdapterFactoryImpl
{
/**
/**
* The cached model package.
* The cached model package.
* <!-- begin-user-doc -->
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @generated
* @generated
*/
*/
protected
static
d
emo
c
atalogPackage
modelPackage
;
protected
static
D
emo
C
atalogPackage
modelPackage
;
/**
/**
* Creates an instance of the adapter factory.
* Creates an instance of the adapter factory.
...
@@ -34,9 +34,9 @@ public class democatalogAdapterFactory extends AdapterFactoryImpl {
...
@@ -34,9 +34,9 @@ public class democatalogAdapterFactory extends AdapterFactoryImpl {
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @generated
* @generated
*/
*/
public
d
emo
c
atalogAdapterFactory
()
{
public
D
emo
C
atalogAdapterFactory
()
{
if
(
modelPackage
==
null
)
{
if
(
modelPackage
==
null
)
{
modelPackage
=
d
emo
c
atalogPackage
.
eINSTANCE
;
modelPackage
=
D
emo
C
atalogPackage
.
eINSTANCE
;
}
}
}
}
...
@@ -65,7 +65,7 @@ public class democatalogAdapterFactory extends AdapterFactoryImpl {
...
@@ -65,7 +65,7 @@ public class democatalogAdapterFactory extends AdapterFactoryImpl {
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @generated
* @generated
*/
*/
protected
d
emo
c
atalogSwitch
<
Adapter
>
modelSwitch
=
new
d
emo
c
atalogSwitch
<
Adapter
>()
{
protected
D
emo
C
atalogSwitch
<
Adapter
>
modelSwitch
=
new
D
emo
C
atalogSwitch
<
Adapter
>()
{
@Override
@Override
public
Adapter
caseEnergyComponentsCatalog
(
EnergyComponentsCatalog
object
)
{
public
Adapter
caseEnergyComponentsCatalog
(
EnergyComponentsCatalog
object
)
{
return
createEnergyComponentsCatalogAdapter
();
return
createEnergyComponentsCatalogAdapter
();
...
@@ -249,4 +249,4 @@ public class democatalogAdapterFactory extends AdapterFactoryImpl {
...
@@ -249,4 +249,4 @@ public class democatalogAdapterFactory extends AdapterFactoryImpl {
return
null
;
return
null
;
}
}
}
//
d
emo
c
atalogAdapterFactory
}
//
D
emo
C
atalogAdapterFactory
This diff is collapsed.
Click to expand it.
EclipseDemoCatalog/demo.catalog/src-gen/demo/catalog/democatalog/util/democatalogSwitch.java
+
14
-
14
View file @
92c8b79f
...
@@ -19,17 +19,17 @@ import org.eclipse.emf.ecore.util.Switch;
...
@@ -19,17 +19,17 @@ import org.eclipse.emf.ecore.util.Switch;
* until a non-null result is returned,
* until a non-null result is returned,
* which is the result of the switch.
* which is the result of the switch.
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.
d
emo
c
atalogPackage
* @see demo.catalog.democatalog.
D
emo
C
atalogPackage
* @generated
* @generated
*/
*/
public
class
d
emo
c
atalogSwitch
<
T
>
extends
Switch
<
T
>
{
public
class
D
emo
C
atalogSwitch
<
T
>
extends
Switch
<
T
>
{
/**
/**
* The cached model package
* The cached model package
* <!-- begin-user-doc -->
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @generated
* @generated
*/
*/
protected
static
d
emo
c
atalogPackage
modelPackage
;
protected
static
D
emo
C
atalogPackage
modelPackage
;
/**
/**
* Creates an instance of the switch.
* Creates an instance of the switch.
...
@@ -37,9 +37,9 @@ public class democatalogSwitch<T> extends Switch<T> {
...
@@ -37,9 +37,9 @@ public class democatalogSwitch<T> extends Switch<T> {
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @generated
* @generated
*/
*/
public
d
emo
c
atalogSwitch
()
{
public
D
emo
C
atalogSwitch
()
{
if
(
modelPackage
==
null
)
{
if
(
modelPackage
==
null
)
{
modelPackage
=
d
emo
c
atalogPackage
.
eINSTANCE
;
modelPackage
=
D
emo
C
atalogPackage
.
eINSTANCE
;
}
}
}
}
...
@@ -66,14 +66,14 @@ public class democatalogSwitch<T> extends Switch<T> {
...
@@ -66,14 +66,14 @@ public class democatalogSwitch<T> extends Switch<T> {
@Override
@Override
protected
T
doSwitch
(
int
classifierID
,
EObject
theEObject
)
{
protected
T
doSwitch
(
int
classifierID
,
EObject
theEObject
)
{
switch
(
classifierID
)
{
switch
(
classifierID
)
{
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENTS_CATALOG
:
{
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENTS_CATALOG
:
{
EnergyComponentsCatalog
energyComponentsCatalog
=
(
EnergyComponentsCatalog
)
theEObject
;
EnergyComponentsCatalog
energyComponentsCatalog
=
(
EnergyComponentsCatalog
)
theEObject
;
T
result
=
caseEnergyComponentsCatalog
(
energyComponentsCatalog
);
T
result
=
caseEnergyComponentsCatalog
(
energyComponentsCatalog
);
if
(
result
==
null
)
if
(
result
==
null
)
result
=
defaultCase
(
theEObject
);
result
=
defaultCase
(
theEObject
);
return
result
;
return
result
;
}
}
case
d
emo
c
atalogPackage
.
BOILER
:
{
case
D
emo
C
atalogPackage
.
BOILER
:
{
Boiler
boiler
=
(
Boiler
)
theEObject
;
Boiler
boiler
=
(
Boiler
)
theEObject
;
T
result
=
caseBoiler
(
boiler
);
T
result
=
caseBoiler
(
boiler
);
if
(
result
==
null
)
if
(
result
==
null
)
...
@@ -84,7 +84,7 @@ public class democatalogSwitch<T> extends Switch<T> {
...
@@ -84,7 +84,7 @@ public class democatalogSwitch<T> extends Switch<T> {
result
=
defaultCase
(
theEObject
);
result
=
defaultCase
(
theEObject
);
return
result
;
return
result
;
}
}
case
d
emo
c
atalogPackage
.
COMBINED_HEAT_POWER
:
{
case
D
emo
C
atalogPackage
.
COMBINED_HEAT_POWER
:
{
CombinedHeatPower
combinedHeatPower
=
(
CombinedHeatPower
)
theEObject
;
CombinedHeatPower
combinedHeatPower
=
(
CombinedHeatPower
)
theEObject
;
T
result
=
caseCombinedHeatPower
(
combinedHeatPower
);
T
result
=
caseCombinedHeatPower
(
combinedHeatPower
);
if
(
result
==
null
)
if
(
result
==
null
)
...
@@ -95,7 +95,7 @@ public class democatalogSwitch<T> extends Switch<T> {
...
@@ -95,7 +95,7 @@ public class democatalogSwitch<T> extends Switch<T> {
result
=
defaultCase
(
theEObject
);
result
=
defaultCase
(
theEObject
);
return
result
;
return
result
;
}
}
case
d
emo
c
atalogPackage
.
SOLAR_PANEL
:
{
case
D
emo
C
atalogPackage
.
SOLAR_PANEL
:
{
SolarPanel
solarPanel
=
(
SolarPanel
)
theEObject
;
SolarPanel
solarPanel
=
(
SolarPanel
)
theEObject
;
T
result
=
caseSolarPanel
(
solarPanel
);
T
result
=
caseSolarPanel
(
solarPanel
);
if
(
result
==
null
)
if
(
result
==
null
)
...
@@ -104,7 +104,7 @@ public class democatalogSwitch<T> extends Switch<T> {
...
@@ -104,7 +104,7 @@ public class democatalogSwitch<T> extends Switch<T> {
result
=
defaultCase
(
theEObject
);
result
=
defaultCase
(
theEObject
);
return
result
;
return
result
;
}
}
case
d
emo
c
atalogPackage
.
INVERTER
:
{
case
D
emo
C
atalogPackage
.
INVERTER
:
{
Inverter
inverter
=
(
Inverter
)
theEObject
;
Inverter
inverter
=
(
Inverter
)
theEObject
;
T
result
=
caseInverter
(
inverter
);
T
result
=
caseInverter
(
inverter
);
if
(
result
==
null
)
if
(
result
==
null
)
...
@@ -113,14 +113,14 @@ public class democatalogSwitch<T> extends Switch<T> {
...
@@ -113,14 +113,14 @@ public class democatalogSwitch<T> extends Switch<T> {
result
=
defaultCase
(
theEObject
);
result
=
defaultCase
(
theEObject
);
return
result
;
return
result
;
}
}
case
d
emo
c
atalogPackage
.
MANUFACTURER
:
{
case
D
emo
C
atalogPackage
.
MANUFACTURER
:
{
Manufacturer
manufacturer
=
(
Manufacturer
)
theEObject
;
Manufacturer
manufacturer
=
(
Manufacturer
)
theEObject
;
T
result
=
caseManufacturer
(
manufacturer
);
T
result
=
caseManufacturer
(
manufacturer
);
if
(
result
==
null
)
if
(
result
==
null
)
result
=
defaultCase
(
theEObject
);
result
=
defaultCase
(
theEObject
);
return
result
;
return
result
;
}
}
case
d
emo
c
atalogPackage
.
CHEMICAL_ENERGY_DEVICE
:
{
case
D
emo
C
atalogPackage
.
CHEMICAL_ENERGY_DEVICE
:
{
ChemicalEnergyDevice
chemicalEnergyDevice
=
(
ChemicalEnergyDevice
)
theEObject
;
ChemicalEnergyDevice
chemicalEnergyDevice
=
(
ChemicalEnergyDevice
)
theEObject
;
T
result
=
caseChemicalEnergyDevice
(
chemicalEnergyDevice
);
T
result
=
caseChemicalEnergyDevice
(
chemicalEnergyDevice
);
if
(
result
==
null
)
if
(
result
==
null
)
...
@@ -129,7 +129,7 @@ public class democatalogSwitch<T> extends Switch<T> {
...
@@ -129,7 +129,7 @@ public class democatalogSwitch<T> extends Switch<T> {
result
=
defaultCase
(
theEObject
);
result
=
defaultCase
(
theEObject
);
return
result
;
return
result
;
}
}
case
d
emo
c
atalogPackage
.
ENERGY_COMPONENT
:
{
case
D
emo
C
atalogPackage
.
ENERGY_COMPONENT
:
{
EnergyComponent
energyComponent
=
(
EnergyComponent
)
theEObject
;
EnergyComponent
energyComponent
=
(
EnergyComponent
)
theEObject
;
T
result
=
caseEnergyComponent
(
energyComponent
);
T
result
=
caseEnergyComponent
(
energyComponent
);
if
(
result
==
null
)
if
(
result
==
null
)
...
@@ -277,4 +277,4 @@ public class democatalogSwitch<T> extends Switch<T> {
...
@@ -277,4 +277,4 @@ public class democatalogSwitch<T> extends Switch<T> {
return
null
;
return
null
;
}
}
}
//
d
emo
c
atalogSwitch
}
//
D
emo
C
atalogSwitch
This diff is collapsed.
Click to expand it.
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets