From d627c55a41968999210e305fc01e09c703a98bfd Mon Sep 17 00:00:00 2001 From: ptessier Date: Tue, 25 Sep 2018 13:47:39 +0200 Subject: Bug 536144 - [EMF Facet] validation of a custom file must be improved - Change the directory of the generated code, move it to src-gen Change-Id: I1cae153f3f45d5fa9c2fe7b7a4d80e6f0308a61c Signed-off-by: Patrick Tessier --- .../META-INF/MANIFEST.MF | 2 +- .../pom.xml | 2 +- .../.classpath | 2 +- .../META-INF/MANIFEST.MF | 1 + .../build.properties | 5 +- .../model/efacet-0.2.0.genmodel | 2 +- .../model/efacetcatalog-0.2.0.genmodel | 2 +- .../efacet/metamodel/v0_2_0/efacet/Category.java | 36 + .../v0_2_0/efacet/DerivedTypedElement.java | 99 + .../metamodel/v0_2_0/efacet/DocumentedElement.java | 66 + .../metamodel/v0_2_0/efacet/EFacetFactory.java | 132 ++ .../metamodel/v0_2_0/efacet/EFacetPackage.java | 2201 ++++++++++++++++++++ .../efacet/metamodel/v0_2_0/efacet/Facet.java | 217 ++ .../metamodel/v0_2_0/efacet/FacetAttribute.java | 36 + .../metamodel/v0_2_0/efacet/FacetElement.java | 59 + .../metamodel/v0_2_0/efacet/FacetOperation.java | 36 + .../metamodel/v0_2_0/efacet/FacetReference.java | 36 + .../efacet/metamodel/v0_2_0/efacet/FacetSet.java | 66 + .../metamodel/v0_2_0/efacet/ParameterValue.java | 100 + .../efacet/extensible/ExtensibleFactory.java | 51 + .../efacet/extensible/ExtensiblePackage.java | 209 ++ .../metamodel/v0_2_0/efacet/extensible/Query.java | 100 + .../extensible/impl/ExtensibleFactoryImpl.java | 101 + .../extensible/impl/ExtensiblePackageImpl.java | 252 +++ .../v0_2_0/efacet/extensible/impl/QueryImpl.java | 264 +++ .../extensible/util/ExtensibleAdapterFactory.java | 141 ++ .../efacet/extensible/util/ExtensibleSwitch.java | 152 ++ .../metamodel/v0_2_0/efacet/impl/CategoryImpl.java | 227 ++ .../efacet/impl/DerivedTypedElementImpl.java | 273 +++ .../v0_2_0/efacet/impl/DocumentedElementImpl.java | 188 ++ .../v0_2_0/efacet/impl/EFacetFactoryImpl.java | 268 +++ .../v0_2_0/efacet/impl/EFacetPackageImpl.java | 766 +++++++ .../v0_2_0/efacet/impl/FacetAttributeImpl.java | 469 +++++ .../v0_2_0/efacet/impl/FacetElementImpl.java | 269 +++ .../metamodel/v0_2_0/efacet/impl/FacetImpl.java | 647 ++++++ .../v0_2_0/efacet/impl/FacetOperationImpl.java | 469 +++++ .../v0_2_0/efacet/impl/FacetReferenceImpl.java | 469 +++++ .../metamodel/v0_2_0/efacet/impl/FacetSetImpl.java | 344 +++ .../v0_2_0/efacet/impl/ParameterValueImpl.java | 258 +++ .../v0_2_0/efacet/query/EObjectLiteralQuery.java | 75 + .../v0_2_0/efacet/query/FalseLiteralQuery.java | 40 + .../v0_2_0/efacet/query/FloatLiteralQuery.java | 74 + .../v0_2_0/efacet/query/IntegerLiteralQuery.java | 74 + .../v0_2_0/efacet/query/IsOneOfQuery.java | 63 + .../v0_2_0/efacet/query/NavigationQuery.java | 91 + .../v0_2_0/efacet/query/NullLiteralQuery.java | 41 + .../v0_2_0/efacet/query/OperationCallQuery.java | 93 + .../v0_2_0/efacet/query/QueryFactory.java | 153 ++ .../v0_2_0/efacet/query/QueryPackage.java | 1022 +++++++++ .../v0_2_0/efacet/query/StringLiteralQuery.java | 69 + .../v0_2_0/efacet/query/TrueLiteralQuery.java | 40 + .../efacet/query/impl/EObjectLiteralQueryImpl.java | 190 ++ .../efacet/query/impl/FalseLiteralQueryImpl.java | 57 + .../efacet/query/impl/FloatLiteralQueryImpl.java | 196 ++ .../efacet/query/impl/IntegerLiteralQueryImpl.java | 196 ++ .../v0_2_0/efacet/query/impl/IsOneOfQueryImpl.java | 154 ++ .../efacet/query/impl/NavigationQueryImpl.java | 230 ++ .../efacet/query/impl/NullLiteralQueryImpl.java | 57 + .../efacet/query/impl/OperationCallQueryImpl.java | 249 +++ .../v0_2_0/efacet/query/impl/QueryFactoryImpl.java | 243 +++ .../v0_2_0/efacet/query/impl/QueryPackageImpl.java | 560 +++++ .../efacet/query/impl/StringLiteralQueryImpl.java | 191 ++ .../efacet/query/impl/TrueLiteralQueryImpl.java | 58 + .../efacet/query/util/QueryAdapterFactory.java | 353 ++++ .../v0_2_0/efacet/query/util/QuerySwitch.java | 434 ++++ .../runtime/ETypedElementEObjectListResult.java | 63 + .../efacet/runtime/ETypedElementEObjectResult.java | 75 + .../ETypedElementPrimitiveTypeListResult.java | 62 + .../runtime/ETypedElementPrimitiveTypeResult.java | 74 + .../v0_2_0/efacet/runtime/ETypedElementResult.java | 153 ++ .../v0_2_0/efacet/runtime/RuntimeFactory.java | 97 + .../v0_2_0/efacet/runtime/RuntimePackage.java | 768 +++++++ .../impl/ETypedElementEObjectListResultImpl.java | 156 ++ .../impl/ETypedElementEObjectResultImpl.java | 188 ++ .../ETypedElementPrimitiveTypeListResultImpl.java | 174 ++ .../impl/ETypedElementPrimitiveTypeResultImpl.java | 182 ++ .../runtime/impl/ETypedElementResultImpl.java | 391 ++++ .../efacet/runtime/impl/RuntimeFactoryImpl.java | 215 ++ .../efacet/runtime/impl/RuntimePackageImpl.java | 467 +++++ .../efacet/runtime/util/RuntimeAdapterFactory.java | 230 ++ .../v0_2_0/efacet/runtime/util/RuntimeSwitch.java | 269 +++ .../serialization/AbstractAttributeInstance.java | 67 + .../serialization/AbstractReferenceInstance.java | 67 + .../serialization/ExtendedEObjectReference.java | 101 + .../MultiValuedAttributeInstance.java | 54 + .../MultiValuedContainmentReferenceInstance.java | 55 + .../MultiValuedReferenceInstance.java | 55 + .../efacet/serialization/SerializationFactory.java | 141 ++ .../efacet/serialization/SerializationPackage.java | 893 ++++++++ .../SingleValuedAttributeInstance.java | 65 + .../SingleValuedContainmentReferenceInstance.java | 66 + .../SingleValuedReferenceInstance.java | 66 + .../impl/AbstractAttributeInstanceImpl.java | 182 ++ .../impl/AbstractReferenceInstanceImpl.java | 182 ++ .../impl/ExtendedEObjectReferenceImpl.java | 280 +++ .../impl/MultiValuedAttributeInstanceImpl.java | 169 ++ ...ultiValuedContainmentReferenceInstanceImpl.java | 169 ++ .../impl/MultiValuedReferenceInstanceImpl.java | 151 ++ .../impl/SerializationFactoryImpl.java | 227 ++ .../impl/SerializationPackageImpl.java | 560 +++++ .../impl/SingleValuedAttributeInstanceImpl.java | 187 ++ ...ngleValuedContainmentReferenceInstanceImpl.java | 205 ++ .../impl/SingleValuedReferenceInstanceImpl.java | 181 ++ .../util/SerializationAdapterFactory.java | 309 +++ .../serialization/util/SerializationSwitch.java | 378 ++++ .../v0_2_0/efacet/util/EFacetAdapterFactory.java | 520 +++++ .../metamodel/v0_2_0/efacet/util/EFacetSwitch.java | 678 ++++++ .../v0_2_0/efacetcatalog/EfacetcatalogFactory.java | 62 + .../v0_2_0/efacetcatalog/EfacetcatalogPackage.java | 168 ++ .../v0_2_0/efacetcatalog/FacetSetCatalog.java | 39 + .../impl/EfacetcatalogFactoryImpl.java | 117 ++ .../impl/EfacetcatalogPackageImpl.java | 203 ++ .../efacetcatalog/impl/FacetSetCatalogImpl.java | 232 +++ .../util/EfacetcatalogAdapterFactory.java | 164 ++ .../efacetcatalog/util/EfacetcatalogSwitch.java | 171 ++ .../efacet/metamodel/v0_2_0/efacet/Category.java | 36 - .../v0_2_0/efacet/DerivedTypedElement.java | 99 - .../metamodel/v0_2_0/efacet/DocumentedElement.java | 66 - .../metamodel/v0_2_0/efacet/EFacetFactory.java | 132 -- .../metamodel/v0_2_0/efacet/EFacetPackage.java | 2201 -------------------- .../efacet/metamodel/v0_2_0/efacet/Facet.java | 217 -- .../metamodel/v0_2_0/efacet/FacetAttribute.java | 36 - .../metamodel/v0_2_0/efacet/FacetElement.java | 59 - .../metamodel/v0_2_0/efacet/FacetOperation.java | 36 - .../metamodel/v0_2_0/efacet/FacetReference.java | 36 - .../efacet/metamodel/v0_2_0/efacet/FacetSet.java | 66 - .../metamodel/v0_2_0/efacet/ParameterValue.java | 100 - .../efacet/extensible/ExtensibleFactory.java | 51 - .../efacet/extensible/ExtensiblePackage.java | 209 -- .../metamodel/v0_2_0/efacet/extensible/Query.java | 100 - .../extensible/impl/ExtensibleFactoryImpl.java | 101 - .../extensible/impl/ExtensiblePackageImpl.java | 252 --- .../v0_2_0/efacet/extensible/impl/QueryImpl.java | 264 --- .../extensible/util/ExtensibleAdapterFactory.java | 141 -- .../efacet/extensible/util/ExtensibleSwitch.java | 152 -- .../metamodel/v0_2_0/efacet/impl/CategoryImpl.java | 227 -- .../efacet/impl/DerivedTypedElementImpl.java | 273 --- .../v0_2_0/efacet/impl/DocumentedElementImpl.java | 188 -- .../v0_2_0/efacet/impl/EFacetFactoryImpl.java | 268 --- .../v0_2_0/efacet/impl/EFacetPackageImpl.java | 766 ------- .../v0_2_0/efacet/impl/FacetAttributeImpl.java | 469 ----- .../v0_2_0/efacet/impl/FacetElementImpl.java | 269 --- .../metamodel/v0_2_0/efacet/impl/FacetImpl.java | 647 ------ .../v0_2_0/efacet/impl/FacetOperationImpl.java | 469 ----- .../v0_2_0/efacet/impl/FacetReferenceImpl.java | 469 ----- .../metamodel/v0_2_0/efacet/impl/FacetSetImpl.java | 344 --- .../v0_2_0/efacet/impl/ParameterValueImpl.java | 258 --- .../v0_2_0/efacet/query/EObjectLiteralQuery.java | 75 - .../v0_2_0/efacet/query/FalseLiteralQuery.java | 40 - .../v0_2_0/efacet/query/FloatLiteralQuery.java | 74 - .../v0_2_0/efacet/query/IntegerLiteralQuery.java | 74 - .../v0_2_0/efacet/query/IsOneOfQuery.java | 63 - .../v0_2_0/efacet/query/NavigationQuery.java | 91 - .../v0_2_0/efacet/query/NullLiteralQuery.java | 41 - .../v0_2_0/efacet/query/OperationCallQuery.java | 93 - .../v0_2_0/efacet/query/QueryFactory.java | 153 -- .../v0_2_0/efacet/query/QueryPackage.java | 1022 --------- .../v0_2_0/efacet/query/StringLiteralQuery.java | 69 - .../v0_2_0/efacet/query/TrueLiteralQuery.java | 40 - .../efacet/query/impl/EObjectLiteralQueryImpl.java | 190 -- .../efacet/query/impl/FalseLiteralQueryImpl.java | 57 - .../efacet/query/impl/FloatLiteralQueryImpl.java | 196 -- .../efacet/query/impl/IntegerLiteralQueryImpl.java | 196 -- .../v0_2_0/efacet/query/impl/IsOneOfQueryImpl.java | 154 -- .../efacet/query/impl/NavigationQueryImpl.java | 230 -- .../efacet/query/impl/NullLiteralQueryImpl.java | 57 - .../efacet/query/impl/OperationCallQueryImpl.java | 249 --- .../v0_2_0/efacet/query/impl/QueryFactoryImpl.java | 243 --- .../v0_2_0/efacet/query/impl/QueryPackageImpl.java | 560 ----- .../efacet/query/impl/StringLiteralQueryImpl.java | 191 -- .../efacet/query/impl/TrueLiteralQueryImpl.java | 58 - .../efacet/query/util/QueryAdapterFactory.java | 353 ---- .../v0_2_0/efacet/query/util/QuerySwitch.java | 434 ---- .../runtime/ETypedElementEObjectListResult.java | 63 - .../efacet/runtime/ETypedElementEObjectResult.java | 75 - .../ETypedElementPrimitiveTypeListResult.java | 62 - .../runtime/ETypedElementPrimitiveTypeResult.java | 74 - .../v0_2_0/efacet/runtime/ETypedElementResult.java | 153 -- .../v0_2_0/efacet/runtime/RuntimeFactory.java | 97 - .../v0_2_0/efacet/runtime/RuntimePackage.java | 768 ------- .../impl/ETypedElementEObjectListResultImpl.java | 156 -- .../impl/ETypedElementEObjectResultImpl.java | 188 -- .../ETypedElementPrimitiveTypeListResultImpl.java | 174 -- .../impl/ETypedElementPrimitiveTypeResultImpl.java | 182 -- .../runtime/impl/ETypedElementResultImpl.java | 391 ---- .../efacet/runtime/impl/RuntimeFactoryImpl.java | 215 -- .../efacet/runtime/impl/RuntimePackageImpl.java | 467 ----- .../efacet/runtime/util/RuntimeAdapterFactory.java | 230 -- .../v0_2_0/efacet/runtime/util/RuntimeSwitch.java | 269 --- .../serialization/AbstractAttributeInstance.java | 67 - .../serialization/AbstractReferenceInstance.java | 67 - .../serialization/ExtendedEObjectReference.java | 101 - .../MultiValuedAttributeInstance.java | 54 - .../MultiValuedContainmentReferenceInstance.java | 55 - .../MultiValuedReferenceInstance.java | 55 - .../efacet/serialization/SerializationFactory.java | 141 -- .../efacet/serialization/SerializationPackage.java | 893 -------- .../SingleValuedAttributeInstance.java | 65 - .../SingleValuedContainmentReferenceInstance.java | 66 - .../SingleValuedReferenceInstance.java | 66 - .../impl/AbstractAttributeInstanceImpl.java | 182 -- .../impl/AbstractReferenceInstanceImpl.java | 182 -- .../impl/ExtendedEObjectReferenceImpl.java | 280 --- .../impl/MultiValuedAttributeInstanceImpl.java | 169 -- ...ultiValuedContainmentReferenceInstanceImpl.java | 169 -- .../impl/MultiValuedReferenceInstanceImpl.java | 151 -- .../impl/SerializationFactoryImpl.java | 227 -- .../impl/SerializationPackageImpl.java | 560 ----- .../impl/SingleValuedAttributeInstanceImpl.java | 187 -- ...ngleValuedContainmentReferenceInstanceImpl.java | 205 -- .../impl/SingleValuedReferenceInstanceImpl.java | 181 -- .../util/SerializationAdapterFactory.java | 309 --- .../serialization/util/SerializationSwitch.java | 378 ---- .../v0_2_0/efacet/util/EFacetAdapterFactory.java | 520 ----- .../metamodel/v0_2_0/efacet/util/EFacetSwitch.java | 678 ------ .../v0_2_0/efacetcatalog/EfacetcatalogFactory.java | 62 - .../v0_2_0/efacetcatalog/EfacetcatalogPackage.java | 168 -- .../v0_2_0/efacetcatalog/FacetSetCatalog.java | 39 - .../impl/EfacetcatalogFactoryImpl.java | 117 -- .../impl/EfacetcatalogPackageImpl.java | 203 -- .../efacetcatalog/impl/FacetSetCatalogImpl.java | 232 --- .../util/EfacetcatalogAdapterFactory.java | 164 -- .../efacetcatalog/util/EfacetcatalogSwitch.java | 171 -- 223 files changed, 24741 insertions(+), 24739 deletions(-) create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/Category.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/DerivedTypedElement.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/DocumentedElement.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/EFacetFactory.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/EFacetPackage.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/Facet.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetAttribute.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetElement.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetOperation.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetReference.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetSet.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/ParameterValue.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/ExtensibleFactory.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/ExtensiblePackage.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/Query.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/impl/ExtensibleFactoryImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/impl/ExtensiblePackageImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/impl/QueryImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/util/ExtensibleAdapterFactory.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/util/ExtensibleSwitch.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/CategoryImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/DerivedTypedElementImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/DocumentedElementImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/EFacetFactoryImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/EFacetPackageImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetAttributeImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetElementImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetOperationImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetReferenceImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetSetImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/ParameterValueImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/EObjectLiteralQuery.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/FalseLiteralQuery.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/FloatLiteralQuery.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/IntegerLiteralQuery.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/IsOneOfQuery.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/NavigationQuery.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/NullLiteralQuery.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/OperationCallQuery.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/QueryFactory.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/QueryPackage.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/StringLiteralQuery.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/TrueLiteralQuery.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/EObjectLiteralQueryImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/FalseLiteralQueryImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/FloatLiteralQueryImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/IntegerLiteralQueryImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/IsOneOfQueryImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/NavigationQueryImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/NullLiteralQueryImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/OperationCallQueryImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/QueryFactoryImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/QueryPackageImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/StringLiteralQueryImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/TrueLiteralQueryImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/util/QueryAdapterFactory.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/util/QuerySwitch.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementEObjectListResult.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementEObjectResult.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementPrimitiveTypeListResult.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementPrimitiveTypeResult.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementResult.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/RuntimeFactory.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/RuntimePackage.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementEObjectListResultImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementEObjectResultImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementPrimitiveTypeListResultImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementPrimitiveTypeResultImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementResultImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/RuntimeFactoryImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/RuntimePackageImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/util/RuntimeAdapterFactory.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/util/RuntimeSwitch.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/AbstractAttributeInstance.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/AbstractReferenceInstance.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/ExtendedEObjectReference.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/MultiValuedAttributeInstance.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/MultiValuedContainmentReferenceInstance.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/MultiValuedReferenceInstance.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SerializationFactory.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SerializationPackage.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SingleValuedAttributeInstance.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SingleValuedContainmentReferenceInstance.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SingleValuedReferenceInstance.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/AbstractAttributeInstanceImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/AbstractReferenceInstanceImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/ExtendedEObjectReferenceImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/MultiValuedAttributeInstanceImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/MultiValuedContainmentReferenceInstanceImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/MultiValuedReferenceInstanceImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SerializationFactoryImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SerializationPackageImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SingleValuedAttributeInstanceImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SingleValuedContainmentReferenceInstanceImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SingleValuedReferenceInstanceImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/util/SerializationAdapterFactory.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/util/SerializationSwitch.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/util/EFacetAdapterFactory.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/util/EFacetSwitch.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/EfacetcatalogFactory.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/EfacetcatalogPackage.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/FacetSetCatalog.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/impl/EfacetcatalogFactoryImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/impl/EfacetcatalogPackageImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/impl/FacetSetCatalogImpl.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/util/EfacetcatalogAdapterFactory.java create mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/util/EfacetcatalogSwitch.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/Category.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/DerivedTypedElement.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/DocumentedElement.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/EFacetFactory.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/EFacetPackage.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/Facet.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetAttribute.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetElement.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetOperation.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetReference.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetSet.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/ParameterValue.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/ExtensibleFactory.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/ExtensiblePackage.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/Query.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/impl/ExtensibleFactoryImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/impl/ExtensiblePackageImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/impl/QueryImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/util/ExtensibleAdapterFactory.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/util/ExtensibleSwitch.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/CategoryImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/DerivedTypedElementImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/DocumentedElementImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/EFacetFactoryImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/EFacetPackageImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetAttributeImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetElementImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetOperationImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetReferenceImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetSetImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/ParameterValueImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/EObjectLiteralQuery.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/FalseLiteralQuery.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/FloatLiteralQuery.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/IntegerLiteralQuery.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/IsOneOfQuery.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/NavigationQuery.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/NullLiteralQuery.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/OperationCallQuery.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/QueryFactory.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/QueryPackage.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/StringLiteralQuery.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/TrueLiteralQuery.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/EObjectLiteralQueryImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/FalseLiteralQueryImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/FloatLiteralQueryImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/IntegerLiteralQueryImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/IsOneOfQueryImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/NavigationQueryImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/NullLiteralQueryImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/OperationCallQueryImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/QueryFactoryImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/QueryPackageImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/StringLiteralQueryImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/TrueLiteralQueryImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/util/QueryAdapterFactory.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/util/QuerySwitch.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementEObjectListResult.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementEObjectResult.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementPrimitiveTypeListResult.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementPrimitiveTypeResult.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementResult.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/RuntimeFactory.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/RuntimePackage.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementEObjectListResultImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementEObjectResultImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementPrimitiveTypeListResultImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementPrimitiveTypeResultImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementResultImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/RuntimeFactoryImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/RuntimePackageImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/util/RuntimeAdapterFactory.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/util/RuntimeSwitch.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/AbstractAttributeInstance.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/AbstractReferenceInstance.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/ExtendedEObjectReference.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/MultiValuedAttributeInstance.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/MultiValuedContainmentReferenceInstance.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/MultiValuedReferenceInstance.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SerializationFactory.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SerializationPackage.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SingleValuedAttributeInstance.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SingleValuedContainmentReferenceInstance.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SingleValuedReferenceInstance.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/AbstractAttributeInstanceImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/AbstractReferenceInstanceImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/ExtendedEObjectReferenceImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/MultiValuedAttributeInstanceImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/MultiValuedContainmentReferenceInstanceImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/MultiValuedReferenceInstanceImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SerializationFactoryImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SerializationPackageImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SingleValuedAttributeInstanceImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SingleValuedContainmentReferenceInstanceImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SingleValuedReferenceInstanceImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/util/SerializationAdapterFactory.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/util/SerializationSwitch.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/util/EFacetAdapterFactory.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/util/EFacetSwitch.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/EfacetcatalogFactory.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/EfacetcatalogPackage.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/FacetSetCatalog.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/impl/EfacetcatalogFactoryImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/impl/EfacetcatalogPackageImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/impl/FacetSetCatalogImpl.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/util/EfacetcatalogAdapterFactory.java delete mode 100644 plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/util/EfacetcatalogSwitch.java diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel/META-INF/MANIFEST.MF b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel/META-INF/MANIFEST.MF index a9ea7f2801e..f277f88cbf2 100644 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel/META-INF/MANIFEST.MF +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel/META-INF/MANIFEST.MF @@ -17,7 +17,7 @@ Export-Package: org.eclipse.papyrus.emf.facet.custom.metamodel.custompt, Bundle-Vendor: %providerName Bundle-ActivationPolicy: lazy Bundle-ClassPath: . -Bundle-Version: 1.3.0.qualifier +Bundle-Version: 1.4.0.qualifier Bundle-Localization: plugin Bundle-Name: %pluginName Bundle-ManifestVersion: 2 diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel/pom.xml b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel/pom.xml index b83af8bceed..0807706fcfd 100644 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel/pom.xml +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel/pom.xml @@ -8,6 +8,6 @@ 0.0.1-SNAPSHOT org.eclipse.papyrus.emf.facet.custom.metamodel - 1.3.0-SNAPSHOT + 1.4.0-SNAPSHOT eclipse-plugin diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/.classpath b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/.classpath index 64c5e31b7a2..1bdc2a0ba05 100644 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/.classpath +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/.classpath @@ -2,6 +2,6 @@ - + diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/META-INF/MANIFEST.MF b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/META-INF/MANIFEST.MF index a2f13e6ef08..b86968ff295 100644 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/META-INF/MANIFEST.MF +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/META-INF/MANIFEST.MF @@ -22,6 +22,7 @@ Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.12.0,4.0.0)", org.eclipse.papyrus.emf.facet.util.emf.catalog;bundle-version="[1.2.0,2.0.0)";visibility:=reexport, org.eclipse.papyrus.emf.facet.util.emf.core;bundle-version="[1.2.0,2.0.0)" Bundle-Vendor: %Bundle-Vendor +Bundle-Localization: plugin Bundle-ActivationPolicy: lazy Bundle-ClassPath: . Bundle-Version: 1.2.0.qualifier diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/build.properties b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/build.properties index 77dc4893d7b..7f2359bc3fe 100644 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/build.properties +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/build.properties @@ -21,6 +21,7 @@ bin.includes = .,\ OSGI-INF/,\ about.html jars.compile.order = . -source.. = src/ +source.. = src-gen/ output.. = bin/ -src.includes = about.html +src.includes = about.html,\ + src-gen/ diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/model/efacet-0.2.0.genmodel b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/model/efacet-0.2.0.genmodel index 91db0043ded..bd31b58cd51 100644 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/model/efacet-0.2.0.genmodel +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/model/efacet-0.2.0.genmodel @@ -1,7 +1,7 @@ diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/model/efacetcatalog-0.2.0.genmodel b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/model/efacetcatalog-0.2.0.genmodel index a2a19c68de8..80f061bf98f 100644 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/model/efacetcatalog-0.2.0.genmodel +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/model/efacetcatalog-0.2.0.genmodel @@ -1,7 +1,7 @@ diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/Category.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/Category.java new file mode 100644 index 00000000000..49378ef5ce5 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/Category.java @@ -0,0 +1,36 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet; + +import org.eclipse.emf.ecore.ENamedElement; + +/** + * + * A representation of the model object 'Category'. + * + * + * + * A Category is used to group related elements. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getCategory() + * @model + * @generated + */ +public interface Category extends ENamedElement, DocumentedElement { +} // Category diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/DerivedTypedElement.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/DerivedTypedElement.java new file mode 100644 index 00000000000..69352f0b293 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/DerivedTypedElement.java @@ -0,0 +1,99 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet; + +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; + +/** + * + * A representation of the model object 'Derived Typed Element'. + * + * + * + * A derived typed element is a virtual structural feature the value of which is computed using a query. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement#getQuery Query}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement#getOverride Override}
  • + *
+ * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getDerivedTypedElement() + * @model abstract="true" + * @generated + */ +public interface DerivedTypedElement extends FacetElement { + /** + * Returns the value of the 'Query' containment reference. + * + *

+ * If the meaning of the 'Query' containment reference isn't clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'Query' containment reference. + * @see #setQuery(Query) + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getDerivedTypedElement_Query() + * @model containment="true" required="true" + * @generated + */ + Query getQuery(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement#getQuery Query}' containment reference. + * + * + * + * @param value + * the new value of the 'Query' containment reference. + * @see #getQuery() + * @generated + */ + void setQuery(Query value); + + /** + * Returns the value of the 'Override' reference. + * + * + * + * If it exists a facet A which extends a facet B then a derived typed element of A can override a typed element of B; if the both typed elements have the same name, same multiplicity, and same type. + * + * + * @return the value of the 'Override' reference. + * @see #setOverride(DerivedTypedElement) + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getDerivedTypedElement_Override() + * @model + * @generated + */ + DerivedTypedElement getOverride(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement#getOverride Override}' reference. + * + * + * + * @param value + * the new value of the 'Override' reference. + * @see #getOverride() + * @generated + */ + void setOverride(DerivedTypedElement value); + +} // DerivedTypedElement diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/DocumentedElement.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/DocumentedElement.java new file mode 100644 index 00000000000..70914c410d8 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/DocumentedElement.java @@ -0,0 +1,66 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Documented Element'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement#getDocumentation Documentation}
  • + *
+ * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getDocumentedElement() + * @model + * @generated + */ +public interface DocumentedElement extends EObject { + /** + * Returns the value of the 'Documentation' attribute. + * + *

+ * If the meaning of the 'Documentation' attribute isn't clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'Documentation' attribute. + * @see #setDocumentation(String) + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getDocumentedElement_Documentation() + * @model + * @generated + */ + String getDocumentation(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement#getDocumentation Documentation}' attribute. + * + * + * + * @param value + * the new value of the 'Documentation' attribute. + * @see #getDocumentation() + * @generated + */ + void setDocumentation(String value); + +} // DocumentedElement diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/EFacetFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/EFacetFactory.java new file mode 100644 index 00000000000..57b293a6841 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/EFacetFactory.java @@ -0,0 +1,132 @@ +/** + * Copyright (c) 2011, 2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. + * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet; + +import org.eclipse.emf.ecore.EFactory; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage + * @generated + */ +public interface EFacetFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * + * @generated + */ + EFacetFactory eINSTANCE = org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetFactoryImpl.init(); + + /** + * Returns a new object of class 'Facet Attribute'. + * + * + * + * @return a new object of class 'Facet Attribute'. + * @generated + */ + FacetAttribute createFacetAttribute(); + + /** + * Returns a new object of class 'Facet Reference'. + * + * + * + * @return a new object of class 'Facet Reference'. + * @generated + */ + FacetReference createFacetReference(); + + /** + * Returns a new object of class 'Facet Operation'. + * + * + * + * @return a new object of class 'Facet Operation'. + * @generated + */ + FacetOperation createFacetOperation(); + + /** + * Returns a new object of class 'Facet Set'. + * + * + * + * @return a new object of class 'Facet Set'. + * @generated + */ + FacetSet createFacetSet(); + + /** + * Returns a new object of class 'Facet'. + * + * + * + * @return a new object of class 'Facet'. + * @generated + */ + Facet createFacet(); + + /** + * Returns a new object of class 'Category'. + * + * + * + * @return a new object of class 'Category'. + * @generated + */ + Category createCategory(); + + /** + * Returns a new object of class 'Parameter Value'. + * + * + * + * @return a new object of class 'Parameter Value'. + * @generated + */ + ParameterValue createParameterValue(); + + /** + * Returns a new object of class 'Documented Element'. + * + * + * + * @return a new object of class 'Documented Element'. + * @generated + */ + DocumentedElement createDocumentedElement(); + + /** + * Returns the package supported by this factory. + * + * + * + * @return the package supported by this factory. + * @generated + */ + EFacetPackage getEFacetPackage(); + +} // EFacetFactory diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/EFacetPackage.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/EFacetPackage.java new file mode 100644 index 00000000000..94c56dc1416 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/EFacetPackage.java @@ -0,0 +1,2201 @@ +/** + * Copyright (c) 2011, 2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. + * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning + * Gregoire Dupe (Mia-Software) - Bug 376576 - [EFacet] Change the multiplicity of Facet::extendedFacet + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.emf.ecore.EcorePackage; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetFactory + * @model kind="package" + * annotation="http://www.eclipse.org/emf/2002/Ecore validationDelegates='org.eclipse.ocl.ecore.OCL'" + * @generated + * @noimplement This interface is not intended to be implemented by clients. + * @noextend This interface is not intended to be extended by clients. + */ +public interface EFacetPackage extends EPackage { + /** + * The package name. + * + * + * + * @generated + */ + String eNAME = "efacet"; //$NON-NLS-1$ + + /** + * The package namespace URI. + * + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/emf/facet/efacet/0.2.incubation/efacet"; //$NON-NLS-1$ + + /** + * The package namespace name. + * + * + * + * @generated + */ + String eNS_PREFIX = "efacet"; //$NON-NLS-1$ + + /** + * The singleton instance of the package. + * + * + * + * @generated + */ + EFacetPackage eINSTANCE = org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetAttributeImpl Facet Attribute}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetAttributeImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getFacetAttribute() + * @generated + */ + int FACET_ATTRIBUTE = 0; + + /** + * The feature id for the 'EAnnotations' containment reference list. + * + * + * + * @generated + * @ordered + */ + int FACET_ATTRIBUTE__EANNOTATIONS = EcorePackage.EATTRIBUTE__EANNOTATIONS; + + /** + * The feature id for the 'Name' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_ATTRIBUTE__NAME = EcorePackage.EATTRIBUTE__NAME; + + /** + * The feature id for the 'Ordered' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_ATTRIBUTE__ORDERED = EcorePackage.EATTRIBUTE__ORDERED; + + /** + * The feature id for the 'Unique' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_ATTRIBUTE__UNIQUE = EcorePackage.EATTRIBUTE__UNIQUE; + + /** + * The feature id for the 'Lower Bound' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_ATTRIBUTE__LOWER_BOUND = EcorePackage.EATTRIBUTE__LOWER_BOUND; + + /** + * The feature id for the 'Upper Bound' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_ATTRIBUTE__UPPER_BOUND = EcorePackage.EATTRIBUTE__UPPER_BOUND; + + /** + * The feature id for the 'Many' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_ATTRIBUTE__MANY = EcorePackage.EATTRIBUTE__MANY; + + /** + * The feature id for the 'Required' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_ATTRIBUTE__REQUIRED = EcorePackage.EATTRIBUTE__REQUIRED; + + /** + * The feature id for the 'EType' reference. + * + * + * + * @generated + * @ordered + */ + int FACET_ATTRIBUTE__ETYPE = EcorePackage.EATTRIBUTE__ETYPE; + + /** + * The feature id for the 'EGeneric Type' containment reference. + * + * + * + * @generated + * @ordered + */ + int FACET_ATTRIBUTE__EGENERIC_TYPE = EcorePackage.EATTRIBUTE__EGENERIC_TYPE; + + /** + * The feature id for the 'Changeable' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_ATTRIBUTE__CHANGEABLE = EcorePackage.EATTRIBUTE__CHANGEABLE; + + /** + * The feature id for the 'Volatile' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_ATTRIBUTE__VOLATILE = EcorePackage.EATTRIBUTE__VOLATILE; + + /** + * The feature id for the 'Transient' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_ATTRIBUTE__TRANSIENT = EcorePackage.EATTRIBUTE__TRANSIENT; + + /** + * The feature id for the 'Default Value Literal' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_ATTRIBUTE__DEFAULT_VALUE_LITERAL = EcorePackage.EATTRIBUTE__DEFAULT_VALUE_LITERAL; + + /** + * The feature id for the 'Default Value' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_ATTRIBUTE__DEFAULT_VALUE = EcorePackage.EATTRIBUTE__DEFAULT_VALUE; + + /** + * The feature id for the 'Unsettable' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_ATTRIBUTE__UNSETTABLE = EcorePackage.EATTRIBUTE__UNSETTABLE; + + /** + * The feature id for the 'Derived' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_ATTRIBUTE__DERIVED = EcorePackage.EATTRIBUTE__DERIVED; + + /** + * The feature id for the 'EContaining Class' container reference. + * + * + * + * @generated + * @ordered + */ + int FACET_ATTRIBUTE__ECONTAINING_CLASS = EcorePackage.EATTRIBUTE__ECONTAINING_CLASS; + + /** + * The feature id for the 'ID' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_ATTRIBUTE__ID = EcorePackage.EATTRIBUTE__ID; + + /** + * The feature id for the 'EAttribute Type' reference. + * + * + * + * @generated + * @ordered + */ + int FACET_ATTRIBUTE__EATTRIBUTE_TYPE = EcorePackage.EATTRIBUTE__EATTRIBUTE_TYPE; + + /** + * The feature id for the 'Documentation' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_ATTRIBUTE__DOCUMENTATION = EcorePackage.EATTRIBUTE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Categories' reference list. + * + * + * + * @generated + * @ordered + */ + int FACET_ATTRIBUTE__CATEGORIES = EcorePackage.EATTRIBUTE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Query' containment reference. + * + * + * + * @generated + * @ordered + */ + int FACET_ATTRIBUTE__QUERY = EcorePackage.EATTRIBUTE_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Override' reference. + * + * + * + * @generated + * @ordered + */ + int FACET_ATTRIBUTE__OVERRIDE = EcorePackage.EATTRIBUTE_FEATURE_COUNT + 3; + + /** + * The number of structural features of the 'Facet Attribute' class. + * + * + * + * @generated + * @ordered + */ + int FACET_ATTRIBUTE_FEATURE_COUNT = EcorePackage.EATTRIBUTE_FEATURE_COUNT + 4; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetReferenceImpl Facet Reference}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetReferenceImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getFacetReference() + * @generated + */ + int FACET_REFERENCE = 1; + + /** + * The feature id for the 'EAnnotations' containment reference list. + * + * + * + * @generated + * @ordered + */ + int FACET_REFERENCE__EANNOTATIONS = EcorePackage.EREFERENCE__EANNOTATIONS; + + /** + * The feature id for the 'Name' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_REFERENCE__NAME = EcorePackage.EREFERENCE__NAME; + + /** + * The feature id for the 'Ordered' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_REFERENCE__ORDERED = EcorePackage.EREFERENCE__ORDERED; + + /** + * The feature id for the 'Unique' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_REFERENCE__UNIQUE = EcorePackage.EREFERENCE__UNIQUE; + + /** + * The feature id for the 'Lower Bound' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_REFERENCE__LOWER_BOUND = EcorePackage.EREFERENCE__LOWER_BOUND; + + /** + * The feature id for the 'Upper Bound' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_REFERENCE__UPPER_BOUND = EcorePackage.EREFERENCE__UPPER_BOUND; + + /** + * The feature id for the 'Many' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_REFERENCE__MANY = EcorePackage.EREFERENCE__MANY; + + /** + * The feature id for the 'Required' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_REFERENCE__REQUIRED = EcorePackage.EREFERENCE__REQUIRED; + + /** + * The feature id for the 'EType' reference. + * + * + * + * @generated + * @ordered + */ + int FACET_REFERENCE__ETYPE = EcorePackage.EREFERENCE__ETYPE; + + /** + * The feature id for the 'EGeneric Type' containment reference. + * + * + * + * @generated + * @ordered + */ + int FACET_REFERENCE__EGENERIC_TYPE = EcorePackage.EREFERENCE__EGENERIC_TYPE; + + /** + * The feature id for the 'Changeable' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_REFERENCE__CHANGEABLE = EcorePackage.EREFERENCE__CHANGEABLE; + + /** + * The feature id for the 'Volatile' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_REFERENCE__VOLATILE = EcorePackage.EREFERENCE__VOLATILE; + + /** + * The feature id for the 'Transient' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_REFERENCE__TRANSIENT = EcorePackage.EREFERENCE__TRANSIENT; + + /** + * The feature id for the 'Default Value Literal' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_REFERENCE__DEFAULT_VALUE_LITERAL = EcorePackage.EREFERENCE__DEFAULT_VALUE_LITERAL; + + /** + * The feature id for the 'Default Value' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_REFERENCE__DEFAULT_VALUE = EcorePackage.EREFERENCE__DEFAULT_VALUE; + + /** + * The feature id for the 'Unsettable' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_REFERENCE__UNSETTABLE = EcorePackage.EREFERENCE__UNSETTABLE; + + /** + * The feature id for the 'Derived' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_REFERENCE__DERIVED = EcorePackage.EREFERENCE__DERIVED; + + /** + * The feature id for the 'EContaining Class' container reference. + * + * + * + * @generated + * @ordered + */ + int FACET_REFERENCE__ECONTAINING_CLASS = EcorePackage.EREFERENCE__ECONTAINING_CLASS; + + /** + * The feature id for the 'Containment' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_REFERENCE__CONTAINMENT = EcorePackage.EREFERENCE__CONTAINMENT; + + /** + * The feature id for the 'Container' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_REFERENCE__CONTAINER = EcorePackage.EREFERENCE__CONTAINER; + + /** + * The feature id for the 'Resolve Proxies' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_REFERENCE__RESOLVE_PROXIES = EcorePackage.EREFERENCE__RESOLVE_PROXIES; + + /** + * The feature id for the 'EOpposite' reference. + * + * + * + * @generated + * @ordered + */ + int FACET_REFERENCE__EOPPOSITE = EcorePackage.EREFERENCE__EOPPOSITE; + + /** + * The feature id for the 'EReference Type' reference. + * + * + * + * @generated + * @ordered + */ + int FACET_REFERENCE__EREFERENCE_TYPE = EcorePackage.EREFERENCE__EREFERENCE_TYPE; + + /** + * The feature id for the 'EKeys' reference list. + * + * + * + * @generated + * @ordered + */ + int FACET_REFERENCE__EKEYS = EcorePackage.EREFERENCE__EKEYS; + + /** + * The feature id for the 'Documentation' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_REFERENCE__DOCUMENTATION = EcorePackage.EREFERENCE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Categories' reference list. + * + * + * + * @generated + * @ordered + */ + int FACET_REFERENCE__CATEGORIES = EcorePackage.EREFERENCE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Query' containment reference. + * + * + * + * @generated + * @ordered + */ + int FACET_REFERENCE__QUERY = EcorePackage.EREFERENCE_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Override' reference. + * + * + * + * @generated + * @ordered + */ + int FACET_REFERENCE__OVERRIDE = EcorePackage.EREFERENCE_FEATURE_COUNT + 3; + + /** + * The number of structural features of the 'Facet Reference' class. + * + * + * + * @generated + * @ordered + */ + int FACET_REFERENCE_FEATURE_COUNT = EcorePackage.EREFERENCE_FEATURE_COUNT + 4; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetOperationImpl Facet Operation}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetOperationImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getFacetOperation() + * @generated + */ + int FACET_OPERATION = 2; + + /** + * The feature id for the 'EAnnotations' containment reference list. + * + * + * + * @generated + * @ordered + */ + int FACET_OPERATION__EANNOTATIONS = EcorePackage.EOPERATION__EANNOTATIONS; + + /** + * The feature id for the 'Name' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_OPERATION__NAME = EcorePackage.EOPERATION__NAME; + + /** + * The feature id for the 'Ordered' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_OPERATION__ORDERED = EcorePackage.EOPERATION__ORDERED; + + /** + * The feature id for the 'Unique' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_OPERATION__UNIQUE = EcorePackage.EOPERATION__UNIQUE; + + /** + * The feature id for the 'Lower Bound' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_OPERATION__LOWER_BOUND = EcorePackage.EOPERATION__LOWER_BOUND; + + /** + * The feature id for the 'Upper Bound' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_OPERATION__UPPER_BOUND = EcorePackage.EOPERATION__UPPER_BOUND; + + /** + * The feature id for the 'Many' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_OPERATION__MANY = EcorePackage.EOPERATION__MANY; + + /** + * The feature id for the 'Required' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_OPERATION__REQUIRED = EcorePackage.EOPERATION__REQUIRED; + + /** + * The feature id for the 'EType' reference. + * + * + * + * @generated + * @ordered + */ + int FACET_OPERATION__ETYPE = EcorePackage.EOPERATION__ETYPE; + + /** + * The feature id for the 'EGeneric Type' containment reference. + * + * + * + * @generated + * @ordered + */ + int FACET_OPERATION__EGENERIC_TYPE = EcorePackage.EOPERATION__EGENERIC_TYPE; + + /** + * The feature id for the 'EContaining Class' container reference. + * + * + * + * @generated + * @ordered + */ + int FACET_OPERATION__ECONTAINING_CLASS = EcorePackage.EOPERATION__ECONTAINING_CLASS; + + /** + * The feature id for the 'EType Parameters' containment reference list. + * + * + * + * @generated + * @ordered + */ + int FACET_OPERATION__ETYPE_PARAMETERS = EcorePackage.EOPERATION__ETYPE_PARAMETERS; + + /** + * The feature id for the 'EParameters' containment reference list. + * + * + * + * @generated + * @ordered + */ + int FACET_OPERATION__EPARAMETERS = EcorePackage.EOPERATION__EPARAMETERS; + + /** + * The feature id for the 'EExceptions' reference list. + * + * + * + * @generated + * @ordered + */ + int FACET_OPERATION__EEXCEPTIONS = EcorePackage.EOPERATION__EEXCEPTIONS; + + /** + * The feature id for the 'EGeneric Exceptions' containment reference list. + * + * + * + * @generated + * @ordered + */ + int FACET_OPERATION__EGENERIC_EXCEPTIONS = EcorePackage.EOPERATION__EGENERIC_EXCEPTIONS; + + /** + * The feature id for the 'Documentation' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_OPERATION__DOCUMENTATION = EcorePackage.EOPERATION_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Categories' reference list. + * + * + * + * @generated + * @ordered + */ + int FACET_OPERATION__CATEGORIES = EcorePackage.EOPERATION_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Query' containment reference. + * + * + * + * @generated + * @ordered + */ + int FACET_OPERATION__QUERY = EcorePackage.EOPERATION_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Override' reference. + * + * + * + * @generated + * @ordered + */ + int FACET_OPERATION__OVERRIDE = EcorePackage.EOPERATION_FEATURE_COUNT + 3; + + /** + * The number of structural features of the 'Facet Operation' class. + * + * + * + * @generated + * @ordered + */ + int FACET_OPERATION_FEATURE_COUNT = EcorePackage.EOPERATION_FEATURE_COUNT + 4; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetSetImpl Facet Set}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetSetImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getFacetSet() + * @generated + */ + int FACET_SET = 3; + + /** + * The feature id for the 'EAnnotations' containment reference list. + * + * + * + * @generated + * @ordered + */ + int FACET_SET__EANNOTATIONS = EcorePackage.EPACKAGE__EANNOTATIONS; + + /** + * The feature id for the 'Name' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_SET__NAME = EcorePackage.EPACKAGE__NAME; + + /** + * The feature id for the 'Ns URI' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_SET__NS_URI = EcorePackage.EPACKAGE__NS_URI; + + /** + * The feature id for the 'Ns Prefix' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_SET__NS_PREFIX = EcorePackage.EPACKAGE__NS_PREFIX; + + /** + * The feature id for the 'EFactory Instance' reference. + * + * + * + * @generated + * @ordered + */ + int FACET_SET__EFACTORY_INSTANCE = EcorePackage.EPACKAGE__EFACTORY_INSTANCE; + + /** + * The feature id for the 'EClassifiers' containment reference list. + * + * + * + * @generated + * @ordered + */ + int FACET_SET__ECLASSIFIERS = EcorePackage.EPACKAGE__ECLASSIFIERS; + + /** + * The feature id for the 'ESubpackages' containment reference list. + * + * + * + * @generated + * @ordered + */ + int FACET_SET__ESUBPACKAGES = EcorePackage.EPACKAGE__ESUBPACKAGES; + + /** + * The feature id for the 'ESuper Package' container reference. + * + * + * + * @generated + * @ordered + */ + int FACET_SET__ESUPER_PACKAGE = EcorePackage.EPACKAGE__ESUPER_PACKAGE; + + /** + * The feature id for the 'Documentation' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_SET__DOCUMENTATION = EcorePackage.EPACKAGE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Categories' containment reference list. + * + * + * + * @generated + * @ordered + */ + int FACET_SET__CATEGORIES = EcorePackage.EPACKAGE_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Facet Set' class. + * + * + * + * @generated + * @ordered + */ + int FACET_SET_FEATURE_COUNT = EcorePackage.EPACKAGE_FEATURE_COUNT + 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetImpl Facet}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getFacet() + * @generated + */ + int FACET = 4; + + /** + * The feature id for the 'EAnnotations' containment reference list. + * + * + * + * @generated + * @ordered + */ + int FACET__EANNOTATIONS = EcorePackage.ECLASSIFIER__EANNOTATIONS; + + /** + * The feature id for the 'Name' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET__NAME = EcorePackage.ECLASSIFIER__NAME; + + /** + * The feature id for the 'Instance Class Name' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET__INSTANCE_CLASS_NAME = EcorePackage.ECLASSIFIER__INSTANCE_CLASS_NAME; + + /** + * The feature id for the 'Instance Class' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET__INSTANCE_CLASS = EcorePackage.ECLASSIFIER__INSTANCE_CLASS; + + /** + * The feature id for the 'Default Value' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET__DEFAULT_VALUE = EcorePackage.ECLASSIFIER__DEFAULT_VALUE; + + /** + * The feature id for the 'Instance Type Name' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET__INSTANCE_TYPE_NAME = EcorePackage.ECLASSIFIER__INSTANCE_TYPE_NAME; + + /** + * The feature id for the 'EPackage' container reference. + * + * + * + * @generated + * @ordered + */ + int FACET__EPACKAGE = EcorePackage.ECLASSIFIER__EPACKAGE; + + /** + * The feature id for the 'EType Parameters' containment reference list. + * + * + * + * @generated + * @ordered + */ + int FACET__ETYPE_PARAMETERS = EcorePackage.ECLASSIFIER__ETYPE_PARAMETERS; + + /** + * The feature id for the 'Documentation' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET__DOCUMENTATION = EcorePackage.ECLASSIFIER_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Extended Metaclass' reference. + * + * + * + * @generated + * @ordered + */ + int FACET__EXTENDED_METACLASS = EcorePackage.ECLASSIFIER_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Facet Elements' containment reference list. + * + * + * + * @generated + * @ordered + */ + int FACET__FACET_ELEMENTS = EcorePackage.ECLASSIFIER_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Facet Operations' containment reference list. + * + * + * + * @generated + * @ordered + */ + int FACET__FACET_OPERATIONS = EcorePackage.ECLASSIFIER_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Conformance Typed Element' reference. + * + * + * + * @generated + * @ordered + */ + int FACET__CONFORMANCE_TYPED_ELEMENT = EcorePackage.ECLASSIFIER_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Extended Facets' reference list. + * + * + * + * @generated + * @ordered + */ + int FACET__EXTENDED_FACETS = EcorePackage.ECLASSIFIER_FEATURE_COUNT + 5; + + /** + * The feature id for the 'All Typed Elements' reference list. + * + * + * + * @generated + * @ordered + * @since 1.2 + */ + int FACET__ALL_TYPED_ELEMENTS = EcorePackage.ECLASSIFIER_FEATURE_COUNT + 6; + + /** + * The feature id for the 'All Facet Operations' reference list. + * + * + * + * @generated + * @ordered + * @since 1.2 + */ + int FACET__ALL_FACET_OPERATIONS = EcorePackage.ECLASSIFIER_FEATURE_COUNT + 7; + + /** + * The feature id for the 'All Facet Elements' reference list. + * + * + * + * @generated + * @ordered + * @since 1.2 + */ + int FACET__ALL_FACET_ELEMENTS = EcorePackage.ECLASSIFIER_FEATURE_COUNT + 8; + + /** + * The number of structural features of the 'Facet' class. + * + * + * + * @generated + * @ordered + * @noreference This field is not intended to be referenced by clients. + */ + int FACET_FEATURE_COUNT = EcorePackage.ECLASSIFIER_FEATURE_COUNT + 9; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.CategoryImpl Category}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.CategoryImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getCategory() + * @generated + */ + int CATEGORY = 5; + + /** + * The feature id for the 'EAnnotations' containment reference list. + * + * + * + * @generated + * @ordered + */ + int CATEGORY__EANNOTATIONS = EcorePackage.ENAMED_ELEMENT__EANNOTATIONS; + + /** + * The feature id for the 'Name' attribute. + * + * + * + * @generated + * @ordered + */ + int CATEGORY__NAME = EcorePackage.ENAMED_ELEMENT__NAME; + + /** + * The feature id for the 'Documentation' attribute. + * + * + * + * @generated + * @ordered + */ + int CATEGORY__DOCUMENTATION = EcorePackage.ENAMED_ELEMENT_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Category' class. + * + * + * + * @generated + * @ordered + */ + int CATEGORY_FEATURE_COUNT = EcorePackage.ENAMED_ELEMENT_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetElementImpl Facet Element}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetElementImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getFacetElement() + * @generated + */ + int FACET_ELEMENT = 6; + + /** + * The feature id for the 'EAnnotations' containment reference list. + * + * + * + * @generated + * @ordered + */ + int FACET_ELEMENT__EANNOTATIONS = EcorePackage.ETYPED_ELEMENT__EANNOTATIONS; + + /** + * The feature id for the 'Name' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_ELEMENT__NAME = EcorePackage.ETYPED_ELEMENT__NAME; + + /** + * The feature id for the 'Ordered' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_ELEMENT__ORDERED = EcorePackage.ETYPED_ELEMENT__ORDERED; + + /** + * The feature id for the 'Unique' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_ELEMENT__UNIQUE = EcorePackage.ETYPED_ELEMENT__UNIQUE; + + /** + * The feature id for the 'Lower Bound' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_ELEMENT__LOWER_BOUND = EcorePackage.ETYPED_ELEMENT__LOWER_BOUND; + + /** + * The feature id for the 'Upper Bound' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_ELEMENT__UPPER_BOUND = EcorePackage.ETYPED_ELEMENT__UPPER_BOUND; + + /** + * The feature id for the 'Many' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_ELEMENT__MANY = EcorePackage.ETYPED_ELEMENT__MANY; + + /** + * The feature id for the 'Required' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_ELEMENT__REQUIRED = EcorePackage.ETYPED_ELEMENT__REQUIRED; + + /** + * The feature id for the 'EType' reference. + * + * + * + * @generated + * @ordered + */ + int FACET_ELEMENT__ETYPE = EcorePackage.ETYPED_ELEMENT__ETYPE; + + /** + * The feature id for the 'EGeneric Type' containment reference. + * + * + * + * @generated + * @ordered + */ + int FACET_ELEMENT__EGENERIC_TYPE = EcorePackage.ETYPED_ELEMENT__EGENERIC_TYPE; + + /** + * The feature id for the 'Documentation' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_ELEMENT__DOCUMENTATION = EcorePackage.ETYPED_ELEMENT_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Categories' reference list. + * + * + * + * @generated + * @ordered + */ + int FACET_ELEMENT__CATEGORIES = EcorePackage.ETYPED_ELEMENT_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Facet Element' class. + * + * + * + * @generated + * @ordered + */ + int FACET_ELEMENT_FEATURE_COUNT = EcorePackage.ETYPED_ELEMENT_FEATURE_COUNT + 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.DerivedTypedElementImpl Derived Typed Element}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.DerivedTypedElementImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getDerivedTypedElement() + * @generated + */ + int DERIVED_TYPED_ELEMENT = 7; + + /** + * The feature id for the 'EAnnotations' containment reference list. + * + * + * + * @generated + * @ordered + */ + int DERIVED_TYPED_ELEMENT__EANNOTATIONS = FACET_ELEMENT__EANNOTATIONS; + + /** + * The feature id for the 'Name' attribute. + * + * + * + * @generated + * @ordered + */ + int DERIVED_TYPED_ELEMENT__NAME = FACET_ELEMENT__NAME; + + /** + * The feature id for the 'Ordered' attribute. + * + * + * + * @generated + * @ordered + */ + int DERIVED_TYPED_ELEMENT__ORDERED = FACET_ELEMENT__ORDERED; + + /** + * The feature id for the 'Unique' attribute. + * + * + * + * @generated + * @ordered + */ + int DERIVED_TYPED_ELEMENT__UNIQUE = FACET_ELEMENT__UNIQUE; + + /** + * The feature id for the 'Lower Bound' attribute. + * + * + * + * @generated + * @ordered + */ + int DERIVED_TYPED_ELEMENT__LOWER_BOUND = FACET_ELEMENT__LOWER_BOUND; + + /** + * The feature id for the 'Upper Bound' attribute. + * + * + * + * @generated + * @ordered + */ + int DERIVED_TYPED_ELEMENT__UPPER_BOUND = FACET_ELEMENT__UPPER_BOUND; + + /** + * The feature id for the 'Many' attribute. + * + * + * + * @generated + * @ordered + */ + int DERIVED_TYPED_ELEMENT__MANY = FACET_ELEMENT__MANY; + + /** + * The feature id for the 'Required' attribute. + * + * + * + * @generated + * @ordered + */ + int DERIVED_TYPED_ELEMENT__REQUIRED = FACET_ELEMENT__REQUIRED; + + /** + * The feature id for the 'EType' reference. + * + * + * + * @generated + * @ordered + */ + int DERIVED_TYPED_ELEMENT__ETYPE = FACET_ELEMENT__ETYPE; + + /** + * The feature id for the 'EGeneric Type' containment reference. + * + * + * + * @generated + * @ordered + */ + int DERIVED_TYPED_ELEMENT__EGENERIC_TYPE = FACET_ELEMENT__EGENERIC_TYPE; + + /** + * The feature id for the 'Documentation' attribute. + * + * + * + * @generated + * @ordered + */ + int DERIVED_TYPED_ELEMENT__DOCUMENTATION = FACET_ELEMENT__DOCUMENTATION; + + /** + * The feature id for the 'Categories' reference list. + * + * + * + * @generated + * @ordered + */ + int DERIVED_TYPED_ELEMENT__CATEGORIES = FACET_ELEMENT__CATEGORIES; + + /** + * The feature id for the 'Query' containment reference. + * + * + * + * @generated + * @ordered + */ + int DERIVED_TYPED_ELEMENT__QUERY = FACET_ELEMENT_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Override' reference. + * + * + * + * @generated + * @ordered + */ + int DERIVED_TYPED_ELEMENT__OVERRIDE = FACET_ELEMENT_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Derived Typed Element' class. + * + * + * + * @generated + * @ordered + */ + int DERIVED_TYPED_ELEMENT_FEATURE_COUNT = FACET_ELEMENT_FEATURE_COUNT + 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.ParameterValueImpl Parameter Value}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.ParameterValueImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getParameterValue() + * @generated + */ + int PARAMETER_VALUE = 8; + + /** + * The feature id for the 'Parameter' reference. + * + * + * + * @generated + * @ordered + */ + int PARAMETER_VALUE__PARAMETER = 0; + + /** + * The feature id for the 'Value' attribute. + * + * + * + * @generated + * @ordered + */ + int PARAMETER_VALUE__VALUE = 1; + + /** + * The number of structural features of the 'Parameter Value' class. + * + * + * + * @generated + * @ordered + */ + int PARAMETER_VALUE_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.DocumentedElementImpl Documented Element}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.DocumentedElementImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getDocumentedElement() + * @generated + */ + int DOCUMENTED_ELEMENT = 9; + + /** + * The feature id for the 'Documentation' attribute. + * + * + * + * @generated + * @ordered + */ + int DOCUMENTED_ELEMENT__DOCUMENTATION = 0; + + /** + * The number of structural features of the 'Documented Element' class. + * + * + * + * @generated + * @ordered + */ + int DOCUMENTED_ELEMENT_FEATURE_COUNT = 1; + + /** + * The meta object id for the 'Resource' data type. + * + * + * + * @see org.eclipse.emf.ecore.resource.Resource + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getResource() + * @generated + */ + int RESOURCE = 10; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetAttribute Facet Attribute}'. + * + * + * + * @return the meta object for class 'Facet Attribute'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetAttribute + * @generated + */ + EClass getFacetAttribute(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetReference Facet Reference}'. + * + * + * + * @return the meta object for class 'Facet Reference'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetReference + * @generated + */ + EClass getFacetReference(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetOperation Facet Operation}'. + * + * + * + * @return the meta object for class 'Facet Operation'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetOperation + * @generated + */ + EClass getFacetOperation(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetSet Facet Set}'. + * + * + * + * @return the meta object for class 'Facet Set'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetSet + * @generated + */ + EClass getFacetSet(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetSet#getCategories Categories}'. + * + * + * + * @return the meta object for the containment reference list 'Categories'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetSet#getCategories() + * @see #getFacetSet() + * @generated + */ + EReference getFacetSet_Categories(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet Facet}'. + * + * + * + * @return the meta object for class 'Facet'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet + * @generated + */ + EClass getFacet(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getExtendedMetaclass Extended Metaclass}'. + * + * + * + * @return the meta object for the reference 'Extended Metaclass'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getExtendedMetaclass() + * @see #getFacet() + * @generated + */ + EReference getFacet_ExtendedMetaclass(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getFacetElements Facet Elements}'. + * + * + * + * @return the meta object for the containment reference list 'Facet Elements'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getFacetElements() + * @see #getFacet() + * @generated + */ + EReference getFacet_FacetElements(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getFacetOperations Facet Operations}'. + * + * + * + * @return the meta object for the containment reference list 'Facet Operations'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getFacetOperations() + * @see #getFacet() + * @generated + */ + EReference getFacet_FacetOperations(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getConformanceTypedElement Conformance Typed Element}'. + * + * + * + * @return the meta object for the reference 'Conformance Typed Element'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getConformanceTypedElement() + * @see #getFacet() + * @generated + */ + EReference getFacet_ConformanceTypedElement(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getExtendedFacets Extended Facets}'. + * + * + * + * @return the meta object for the reference list 'Extended Facets'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getExtendedFacets() + * @see #getFacet() + * @generated + */ + EReference getFacet_ExtendedFacets(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getAllTypedElements All Typed Elements}'. + * + * + * + * @return the meta object for the reference list 'All Typed Elements'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getAllTypedElements() + * @see #getFacet() + * @generated + * @since 1.2 + */ + EReference getFacet_AllTypedElements(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getAllFacetOperations All Facet Operations}'. + * + * + * + * @return the meta object for the reference list 'All Facet Operations'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getAllFacetOperations() + * @see #getFacet() + * @generated + * @since 1.2 + */ + EReference getFacet_AllFacetOperations(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getAllFacetElements All Facet Elements}'. + * + * + * + * @return the meta object for the reference list 'All Facet Elements'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getAllFacetElements() + * @see #getFacet() + * @generated + * @since 1.2 + */ + EReference getFacet_AllFacetElements(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Category Category}'. + * + * + * + * @return the meta object for class 'Category'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Category + * @generated + */ + EClass getCategory(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetElement Facet Element}'. + * + * + * + * @return the meta object for class 'Facet Element'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetElement + * @generated + */ + EClass getFacetElement(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetElement#getCategories Categories}'. + * + * + * + * @return the meta object for the reference list 'Categories'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetElement#getCategories() + * @see #getFacetElement() + * @generated + */ + EReference getFacetElement_Categories(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement Derived Typed Element}'. + * + * + * + * @return the meta object for class 'Derived Typed Element'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement + * @generated + */ + EClass getDerivedTypedElement(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement#getQuery Query}'. + * + * + * + * @return the meta object for the containment reference 'Query'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement#getQuery() + * @see #getDerivedTypedElement() + * @generated + */ + EReference getDerivedTypedElement_Query(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement#getOverride Override}'. + * + * + * + * @return the meta object for the reference 'Override'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement#getOverride() + * @see #getDerivedTypedElement() + * @generated + */ + EReference getDerivedTypedElement_Override(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue Parameter Value}'. + * + * + * + * @return the meta object for class 'Parameter Value'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue + * @generated + */ + EClass getParameterValue(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue#getParameter Parameter}'. + * + * + * + * @return the meta object for the reference 'Parameter'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue#getParameter() + * @see #getParameterValue() + * @generated + */ + EReference getParameterValue_Parameter(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue#getValue Value}'. + * + * + * + * @return the meta object for the attribute 'Value'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue#getValue() + * @see #getParameterValue() + * @generated + */ + EAttribute getParameterValue_Value(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement Documented Element}'. + * + * + * + * @return the meta object for class 'Documented Element'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement + * @generated + */ + EClass getDocumentedElement(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement#getDocumentation Documentation}'. + * + * + * + * @return the meta object for the attribute 'Documentation'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement#getDocumentation() + * @see #getDocumentedElement() + * @generated + */ + EAttribute getDocumentedElement_Documentation(); + + /** + * Returns the meta object for data type '{@link org.eclipse.emf.ecore.resource.Resource Resource}'. + * + * + * + * @return the meta object for data type 'Resource'. + * @see org.eclipse.emf.ecore.resource.Resource + * @model instanceClass="org.eclipse.emf.ecore.resource.Resource" + * @generated + */ + EDataType getResource(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + EFacetFactory getEFacetFactory(); + + /** + * + * Defines literals for the meta objects that represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetAttributeImpl Facet Attribute}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetAttributeImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getFacetAttribute() + * @generated + */ + EClass FACET_ATTRIBUTE = eINSTANCE.getFacetAttribute(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetReferenceImpl Facet Reference}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetReferenceImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getFacetReference() + * @generated + */ + EClass FACET_REFERENCE = eINSTANCE.getFacetReference(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetOperationImpl Facet Operation}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetOperationImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getFacetOperation() + * @generated + */ + EClass FACET_OPERATION = eINSTANCE.getFacetOperation(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetSetImpl Facet Set}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetSetImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getFacetSet() + * @generated + */ + EClass FACET_SET = eINSTANCE.getFacetSet(); + + /** + * The meta object literal for the 'Categories' containment reference list feature. + * + * + * + * @generated + */ + EReference FACET_SET__CATEGORIES = eINSTANCE.getFacetSet_Categories(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetImpl Facet}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getFacet() + * @generated + */ + EClass FACET = eINSTANCE.getFacet(); + + /** + * The meta object literal for the 'Extended Metaclass' reference feature. + * + * + * + * @generated + */ + EReference FACET__EXTENDED_METACLASS = eINSTANCE.getFacet_ExtendedMetaclass(); + + /** + * The meta object literal for the 'Facet Elements' containment reference list feature. + * + * + * + * @generated + */ + EReference FACET__FACET_ELEMENTS = eINSTANCE.getFacet_FacetElements(); + + /** + * The meta object literal for the 'Facet Operations' containment reference list feature. + * + * + * + * @generated + */ + EReference FACET__FACET_OPERATIONS = eINSTANCE.getFacet_FacetOperations(); + + /** + * The meta object literal for the 'Conformance Typed Element' reference feature. + * + * + * + * @generated + */ + EReference FACET__CONFORMANCE_TYPED_ELEMENT = eINSTANCE.getFacet_ConformanceTypedElement(); + + /** + * The meta object literal for the 'Extended Facets' reference list feature. + * + * + * + * @generated + */ + EReference FACET__EXTENDED_FACETS = eINSTANCE.getFacet_ExtendedFacets(); + + /** + * The meta object literal for the 'All Typed Elements' reference list feature. + * + * + * + * @generated + * @since 1.2 + */ + EReference FACET__ALL_TYPED_ELEMENTS = eINSTANCE.getFacet_AllTypedElements(); + + /** + * The meta object literal for the 'All Facet Operations' reference list feature. + * + * + * + * @generated + * @since 1.2 + */ + EReference FACET__ALL_FACET_OPERATIONS = eINSTANCE.getFacet_AllFacetOperations(); + + /** + * The meta object literal for the 'All Facet Elements' reference list feature. + * + * + * + * @generated + * @since 1.2 + */ + EReference FACET__ALL_FACET_ELEMENTS = eINSTANCE.getFacet_AllFacetElements(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.CategoryImpl Category}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.CategoryImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getCategory() + * @generated + */ + EClass CATEGORY = eINSTANCE.getCategory(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetElementImpl Facet Element}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetElementImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getFacetElement() + * @generated + */ + EClass FACET_ELEMENT = eINSTANCE.getFacetElement(); + + /** + * The meta object literal for the 'Categories' reference list feature. + * + * + * + * @generated + */ + EReference FACET_ELEMENT__CATEGORIES = eINSTANCE.getFacetElement_Categories(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.DerivedTypedElementImpl Derived Typed Element}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.DerivedTypedElementImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getDerivedTypedElement() + * @generated + */ + EClass DERIVED_TYPED_ELEMENT = eINSTANCE.getDerivedTypedElement(); + + /** + * The meta object literal for the 'Query' containment reference feature. + * + * + * + * @generated + */ + EReference DERIVED_TYPED_ELEMENT__QUERY = eINSTANCE.getDerivedTypedElement_Query(); + + /** + * The meta object literal for the 'Override' reference feature. + * + * + * + * @generated + */ + EReference DERIVED_TYPED_ELEMENT__OVERRIDE = eINSTANCE.getDerivedTypedElement_Override(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.ParameterValueImpl Parameter Value}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.ParameterValueImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getParameterValue() + * @generated + */ + EClass PARAMETER_VALUE = eINSTANCE.getParameterValue(); + + /** + * The meta object literal for the 'Parameter' reference feature. + * + * + * + * @generated + */ + EReference PARAMETER_VALUE__PARAMETER = eINSTANCE.getParameterValue_Parameter(); + + /** + * The meta object literal for the 'Value' attribute feature. + * + * + * + * @generated + */ + EAttribute PARAMETER_VALUE__VALUE = eINSTANCE.getParameterValue_Value(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.DocumentedElementImpl Documented Element}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.DocumentedElementImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getDocumentedElement() + * @generated + */ + EClass DOCUMENTED_ELEMENT = eINSTANCE.getDocumentedElement(); + + /** + * The meta object literal for the 'Documentation' attribute feature. + * + * + * + * @generated + */ + EAttribute DOCUMENTED_ELEMENT__DOCUMENTATION = eINSTANCE.getDocumentedElement_Documentation(); + + /** + * The meta object literal for the 'Resource' data type. + * + * + * + * @see org.eclipse.emf.ecore.resource.Resource + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getResource() + * @generated + */ + EDataType RESOURCE = eINSTANCE.getResource(); + + } + +} // EFacetPackage diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/Facet.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/Facet.java new file mode 100644 index 00000000000..6e6769629fb --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/Facet.java @@ -0,0 +1,217 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning + * Gregoire Dupe (Mia-Software) - Bug 376576 - [EFacet] Change the multiplicity of Facet::extendedFacet + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EClassifier; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.emf.ecore.ETypedElement; + +/** + * + * A representation of the model object 'Facet'. + * + * + * + * A Facet is a virtual sub-type of an existing EClass. A Facet cannot be instantiated. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getExtendedMetaclass Extended Metaclass}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getFacetElements Facet Elements}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getFacetOperations Facet Operations}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getConformanceTypedElement Conformance Typed Element}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getExtendedFacets Extended Facets}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getAllTypedElements All Typed Elements}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getAllFacetOperations All Facet Operations}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getAllFacetElements All Facet Elements}
  • + *
+ * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getFacet() + * @model annotation="http://www.eclipse.org/emf/2002/Ecore validationDelegates='( self.query.scope = self.facet.extendedMetaClass ) and ( self.query.name = self.name )'" + * annotation="http://www.eclipse.org/emf/2002/Ecore validationDelegates='self.conformanceQuery.scope = self.extendedMetaClass'" + * annotation="org.eclipse.ocl.ecore.OCL body='not(self.container().oclCastAs(FacetSet).facets->exists(f|f.extendedMetaClass.container() <> self.extendedMetaClass.container() ))'" + * @generated + * @noimplement This interface is not intended to be implemented by clients. + */ +public interface Facet extends EClassifier, DocumentedElement { + /** + * Returns the value of the 'Extended Metaclass' reference. + * + *

+ * If the meaning of the 'Extended Metaclass' reference isn't clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'Extended Metaclass' reference. + * @see #setExtendedMetaclass(EClass) + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getFacet_ExtendedMetaclass() + * @model annotation="GenModel documentation='The \"extendedMetaclass\" reference references the virtually subtyped EClass.'" + * @generated + */ + EClass getExtendedMetaclass(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getExtendedMetaclass Extended Metaclass}' reference. + * + * + * + * @param value + * the new value of the 'Extended Metaclass' reference. + * @see #getExtendedMetaclass() + * @generated + */ + void setExtendedMetaclass(EClass value); + + /** + * Returns the value of the 'Facet Elements' containment reference list. + * The list contents are of type {@link org.eclipse.emf.ecore.EStructuralFeature}. + * + * + * + * This composite reference contains virtual attributes, references and operations. + * + * + * @return the value of the 'Facet Elements' containment reference list. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getFacet_FacetElements() + * @model containment="true" + * @generated + */ + EList getFacetElements(); + + /** + * Returns the value of the 'Facet Operations' containment reference list. + * The list contents are of type {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetOperation}. + * + *

+ * If the meaning of the 'Facet Operations' containment reference list isn't clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'Facet Operations' containment reference list. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getFacet_FacetOperations() + * @model containment="true" + * @generated + */ + EList getFacetOperations(); + + /** + * Returns the value of the 'Conformance Typed Element' reference. + * + *

+ * If the meaning of the 'Conformance Typed Element' reference isn't clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'Conformance Typed Element' reference. + * @see #setConformanceTypedElement(ETypedElement) + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getFacet_ConformanceTypedElement() + * @model + * @generated + */ + ETypedElement getConformanceTypedElement(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getConformanceTypedElement Conformance Typed Element}' reference. + * + * + * + * @param value + * the new value of the 'Conformance Typed Element' reference. + * @see #getConformanceTypedElement() + * @generated + */ + void setConformanceTypedElement(ETypedElement value); + + /** + * Returns the value of the 'Extended Facets' reference list. + * The list contents are of type {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet}. + * + *

+ * If the meaning of the 'Extended Facets' reference list isn't clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'Extended Facets' reference list. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getFacet_ExtendedFacets() + * @model annotation="GenModel documentation='A facet can extend other facets. If A facet A can extend a facet B. In this case an eObject conforms to the facet A if it matches conformance evaluation of A and B. '" + * @generated + */ + EList getExtendedFacets(); + + /** + * Returns the value of the 'All Typed Elements' reference list. + * The list contents are of type {@link org.eclipse.emf.ecore.ETypedElement}. + * + *

+ * If the meaning of the 'All Typed Elements' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * + * @return the value of the 'All Typed Elements' reference list. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getFacet_AllTypedElements() + * @model transient="true" changeable="false" derived="true" + * @generated + * @since 1.2 + */ + EList getAllTypedElements(); + + /** + * Returns the value of the 'All Facet Operations' reference list. + * The list contents are of type {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetOperation}. + * + *

+ * If the meaning of the 'All Facet Operations' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * + * @return the value of the 'All Facet Operations' reference list. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getFacet_AllFacetOperations() + * @model transient="true" changeable="false" derived="true" + * @generated + * @since 1.2 + */ + EList getAllFacetOperations(); + + /** + * Returns the value of the 'All Facet Elements' reference list. + * The list contents are of type {@link org.eclipse.emf.ecore.EStructuralFeature}. + * + *

+ * If the meaning of the 'All Facet Elements' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * + * @return the value of the 'All Facet Elements' reference list. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getFacet_AllFacetElements() + * @model transient="true" changeable="false" derived="true" + * @generated + * @since 1.2 + */ + EList getAllFacetElements(); + +} // Facet diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetAttribute.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetAttribute.java new file mode 100644 index 00000000000..0e927807ac1 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetAttribute.java @@ -0,0 +1,36 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet; + +import org.eclipse.emf.ecore.EAttribute; + +/** + * + * A representation of the model object 'Facet Attribute'. + * + * + * + * A FacetAttribute is a virtual attribute added to all the eObjects which conform to the Facet owning the FacetAttribute. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getFacetAttribute() + * @model + * @generated + */ +public interface FacetAttribute extends EAttribute, DerivedTypedElement { +} // FacetAttribute diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetElement.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetElement.java new file mode 100644 index 00000000000..0b903318a60 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetElement.java @@ -0,0 +1,59 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.ETypedElement; + +/** + * + * A representation of the model object 'Facet Element'. + * + * + * + * A facet element is owned by a facet. It can be a facet reference, a facet attribute or a facet operation. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetElement#getCategories Categories}
  • + *
+ * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getFacetElement() + * @model abstract="true" + * @generated + */ +public interface FacetElement extends ETypedElement, DocumentedElement { + /** + * Returns the value of the 'Categories' reference list. + * The list contents are of type {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Category}. + * + *

+ * If the meaning of the 'Categories' reference list isn't clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'Categories' reference list. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getFacetElement_Categories() + * @model + * @generated + */ + EList getCategories(); + +} // FacetElement diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetOperation.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetOperation.java new file mode 100644 index 00000000000..7fcbe4b868e --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetOperation.java @@ -0,0 +1,36 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet; + +import org.eclipse.emf.ecore.EOperation; + +/** + * + * A representation of the model object 'Facet Operation'. + * + * + * + * A FacetOperation is a virtual operation added to all the eObjects which conform to the Facet owning the FacetOperation. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getFacetOperation() + * @model + * @generated + */ +public interface FacetOperation extends EOperation, DerivedTypedElement { +} // FacetOperation diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetReference.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetReference.java new file mode 100644 index 00000000000..88df7a67994 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetReference.java @@ -0,0 +1,36 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet; + +import org.eclipse.emf.ecore.EReference; + +/** + * + * A representation of the model object 'Facet Reference'. + * + * + * + * A FacetReference is a virtual reference added to all the eObjects which conform to the Facet owning the FacetReference. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getFacetReference() + * @model + * @generated + */ +public interface FacetReference extends EReference, DerivedTypedElement { +} // FacetReference diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetSet.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetSet.java new file mode 100644 index 00000000000..2b8b328c8ab --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetSet.java @@ -0,0 +1,66 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EPackage; + +/** + * + * A representation of the model object 'Facet Set'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetSet#getCategories Categories}
  • + *
+ * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getFacetSet() + * @model annotation="GenModel documentation='A \"FacetSet\" is the root element of a facet model. It contains a list of \"Facet\".'" + * @generated + */ +public interface FacetSet extends EPackage, DocumentedElement { + /** + * Returns the value of the 'Categories' containment reference list. + * The list contents are of type {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Category}. + * + *

+ * If the meaning of the 'Categories' containment reference list isn't clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'Categories' containment reference list. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getFacetSet_Categories() + * @model containment="true" + * @generated + */ + EList getCategories(); + + /** + * + * + * + * @model kind="operation" + * annotation="GenModel documentation='The FacetSets aggregated by this FacetSet (this operation is overridden in Aggregate in the aggregate metamodel).'" + * @generated + */ + EList getFacetSets(); + +} // FacetSet diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/ParameterValue.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/ParameterValue.java new file mode 100644 index 00000000000..3c9d2b9782e --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/ParameterValue.java @@ -0,0 +1,100 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EParameter; + +/** + * + * A representation of the model object 'Parameter Value'. + * + * + * + * This is the value given as a parameter to execute a query for an operation. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue#getParameter Parameter}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue#getValue Value}
  • + *
+ * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getParameterValue() + * @model + * @generated + */ +public interface ParameterValue extends EObject { + /** + * Returns the value of the 'Parameter' reference. + * + *

+ * If the meaning of the 'Parameter' reference isn't clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'Parameter' reference. + * @see #setParameter(EParameter) + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getParameterValue_Parameter() + * @model required="true" + * @generated + */ + EParameter getParameter(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue#getParameter Parameter}' reference. + * + * + * + * @param value + * the new value of the 'Parameter' reference. + * @see #getParameter() + * @generated + */ + void setParameter(EParameter value); + + /** + * Returns the value of the 'Value' attribute. + * + *

+ * If the meaning of the 'Value' attribute isn't clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'Value' attribute. + * @see #setValue(Object) + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getParameterValue_Value() + * @model + * @generated + */ + Object getValue(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue#getValue Value}' attribute. + * + * + * + * @param value + * the new value of the 'Value' attribute. + * @see #getValue() + * @generated + */ + void setValue(Object value); + +} // ParameterValue diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/ExtensibleFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/ExtensibleFactory.java new file mode 100644 index 00000000000..4719752ca8e --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/ExtensibleFactory.java @@ -0,0 +1,51 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible; + +import org.eclipse.emf.ecore.EFactory; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensiblePackage + * @generated + */ +public interface ExtensibleFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * + * @generated + */ + ExtensibleFactory eINSTANCE = org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.ExtensibleFactoryImpl.init(); + + /** + * Returns the package supported by this factory. + * + * + * + * @return the package supported by this factory. + * @generated + */ + ExtensiblePackage getExtensiblePackage(); + +} // ExtensibleFactory diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/ExtensiblePackage.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/ExtensiblePackage.java new file mode 100644 index 00000000000..b887bf8bcb8 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/ExtensiblePackage.java @@ -0,0 +1,209 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensibleFactory + * @model kind="package" + * @generated + */ +public interface ExtensiblePackage extends EPackage { + /** + * The package name. + * + * + * + * @generated + */ + String eNAME = "extensible"; //$NON-NLS-1$ + + /** + * The package namespace URI. + * + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/emf/facet/efacet/0.2.incubation/efacet/extensible"; //$NON-NLS-1$ + + /** + * The package namespace name. + * + * + * + * @generated + */ + String eNS_PREFIX = "extensible"; //$NON-NLS-1$ + + /** + * The singleton instance of the package. + * + * + * + * @generated + */ + ExtensiblePackage eINSTANCE = org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.ExtensiblePackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.QueryImpl Query}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.QueryImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.ExtensiblePackageImpl#getQuery() + * @generated + */ + int QUERY = 0; + + /** + * The feature id for the 'Can Have Side Effects' attribute. + * + * + * + * @generated + * @ordered + */ + int QUERY__CAN_HAVE_SIDE_EFFECTS = 0; + + /** + * The feature id for the 'Can Be Cached' attribute. + * + * + * + * @generated + * @ordered + */ + int QUERY__CAN_BE_CACHED = 1; + + /** + * The number of structural features of the 'Query' class. + * + * + * + * @generated + * @ordered + */ + int QUERY_FEATURE_COUNT = 2; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query Query}'. + * + * + * + * @return the meta object for class 'Query'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query + * @generated + */ + EClass getQuery(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query#isCanHaveSideEffects Can Have Side Effects}'. + * + * + * + * @return the meta object for the attribute 'Can Have Side Effects'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query#isCanHaveSideEffects() + * @see #getQuery() + * @generated + */ + EAttribute getQuery_CanHaveSideEffects(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query#isCanBeCached Can Be Cached}'. + * + * + * + * @return the meta object for the attribute 'Can Be Cached'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query#isCanBeCached() + * @see #getQuery() + * @generated + */ + EAttribute getQuery_CanBeCached(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + ExtensibleFactory getExtensibleFactory(); + + /** + * + * Defines literals for the meta objects that represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.QueryImpl Query}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.QueryImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.ExtensiblePackageImpl#getQuery() + * @generated + */ + EClass QUERY = eINSTANCE.getQuery(); + + /** + * The meta object literal for the 'Can Have Side Effects' attribute feature. + * + * + * + * @generated + */ + EAttribute QUERY__CAN_HAVE_SIDE_EFFECTS = eINSTANCE.getQuery_CanHaveSideEffects(); + + /** + * The meta object literal for the 'Can Be Cached' attribute feature. + * + * + * + * @generated + */ + EAttribute QUERY__CAN_BE_CACHED = eINSTANCE.getQuery_CanBeCached(); + + } + +} // ExtensiblePackage diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/Query.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/Query.java new file mode 100644 index 00000000000..1d90ae9ae37 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/Query.java @@ -0,0 +1,100 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Query'. + * + * + * + * Query is the abstract representation of the concept of query. This class has to be sub-classed for each existing query language (Java, OCL, etc.) + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query#isCanHaveSideEffects Can Have Side Effects}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query#isCanBeCached Can Be Cached}
  • + *
+ * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensiblePackage#getQuery() + * @model abstract="true" + * @generated + */ +public interface Query extends EObject { + /** + * Returns the value of the 'Can Have Side Effects' attribute. + * + *

+ * If the meaning of the 'Can Have Side Effects' attribute isn't clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'Can Have Side Effects' attribute. + * @see #setCanHaveSideEffects(boolean) + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensiblePackage#getQuery_CanHaveSideEffects() + * @model + * @generated + */ + boolean isCanHaveSideEffects(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query#isCanHaveSideEffects Can Have Side Effects}' attribute. + * + * + * + * @param value + * the new value of the 'Can Have Side Effects' attribute. + * @see #isCanHaveSideEffects() + * @generated + */ + void setCanHaveSideEffects(boolean value); + + /** + * Returns the value of the 'Can Be Cached' attribute. + * + *

+ * If the meaning of the 'Can Be Cached' attribute isn't clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'Can Be Cached' attribute. + * @see #setCanBeCached(boolean) + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensiblePackage#getQuery_CanBeCached() + * @model + * @generated + */ + boolean isCanBeCached(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query#isCanBeCached Can Be Cached}' attribute. + * + * + * + * @param value + * the new value of the 'Can Be Cached' attribute. + * @see #isCanBeCached() + * @generated + */ + void setCanBeCached(boolean value); + +} // Query diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/impl/ExtensibleFactoryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/impl/ExtensibleFactoryImpl.java new file mode 100644 index 00000000000..0c372d96338 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/impl/ExtensibleFactoryImpl.java @@ -0,0 +1,101 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.impl.EFactoryImpl; +import org.eclipse.emf.ecore.plugin.EcorePlugin; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensibleFactory; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensiblePackage; + +/** + * + * An implementation of the model Factory. + * + * + * @generated + */ +public class ExtensibleFactoryImpl extends EFactoryImpl implements ExtensibleFactory { + /** + * Creates the default factory implementation. + * + * + * + * @generated + */ + public static ExtensibleFactory init() { + try { + ExtensibleFactory theExtensibleFactory = (ExtensibleFactory) EPackage.Registry.INSTANCE.getEFactory(ExtensiblePackage.eNS_URI); + if (theExtensibleFactory != null) { + return theExtensibleFactory; + } + } catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new ExtensibleFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * + * @generated + */ + public ExtensibleFactoryImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ + } + } + + /** + * + * + * + * @generated + */ + public ExtensiblePackage getExtensiblePackage() { + return (ExtensiblePackage) getEPackage(); + } + + /** + * + * + * + * @deprecated + * @generated + */ + @Deprecated + public static ExtensiblePackage getPackage() { + return ExtensiblePackage.eINSTANCE; + } + +} // ExtensibleFactoryImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/impl/ExtensiblePackageImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/impl/ExtensiblePackageImpl.java new file mode 100644 index 00000000000..e4bae29fc80 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/impl/ExtensiblePackageImpl.java @@ -0,0 +1,252 @@ +/** + * Copyright (c) 2011, 2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + * Gregoire Dupe (Mia-Software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. + * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EcorePackage; +import org.eclipse.emf.ecore.impl.EPackageImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensibleFactory; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensiblePackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.RuntimePackageImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl; + +/** + * + * An implementation of the model Package. + * + * + * @generated + */ +public class ExtensiblePackageImpl extends EPackageImpl implements ExtensiblePackage { + /** + * + * + * + * @generated + */ + private EClass queryEClass = null; + + /** + * Creates an instance of the model Package, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + *

+ * Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensiblePackage#eNS_URI + * @see #init() + * @generated + */ + private ExtensiblePackageImpl() { + super(eNS_URI, ExtensibleFactory.eINSTANCE); + } + + /** + * + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *

+ * This method is used to initialize {@link ExtensiblePackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static ExtensiblePackage init() { + if (isInited) { + return (ExtensiblePackage) EPackage.Registry.INSTANCE.getEPackage(ExtensiblePackage.eNS_URI); + } + + // Obtain or create and register package + Object registeredExtensiblePackage = EPackage.Registry.INSTANCE.get(eNS_URI); + ExtensiblePackageImpl theExtensiblePackage = registeredExtensiblePackage instanceof ExtensiblePackageImpl ? (ExtensiblePackageImpl) registeredExtensiblePackage : new ExtensiblePackageImpl(); + + isInited = true; + + // Initialize simple dependencies + EcorePackage.eINSTANCE.eClass(); + + // Obtain or create and register interdependencies + Object registeredPackage = EPackage.Registry.INSTANCE.getEPackage(EFacetPackage.eNS_URI); + EFacetPackageImpl theEFacetPackage = (EFacetPackageImpl) (registeredPackage instanceof EFacetPackageImpl ? registeredPackage : EFacetPackage.eINSTANCE); + registeredPackage = EPackage.Registry.INSTANCE.getEPackage(SerializationPackage.eNS_URI); + SerializationPackageImpl theSerializationPackage = (SerializationPackageImpl) (registeredPackage instanceof SerializationPackageImpl ? registeredPackage : SerializationPackage.eINSTANCE); + registeredPackage = EPackage.Registry.INSTANCE.getEPackage(QueryPackage.eNS_URI); + QueryPackageImpl theQueryPackage = (QueryPackageImpl) (registeredPackage instanceof QueryPackageImpl ? registeredPackage : QueryPackage.eINSTANCE); + registeredPackage = EPackage.Registry.INSTANCE.getEPackage(RuntimePackage.eNS_URI); + RuntimePackageImpl theRuntimePackage = (RuntimePackageImpl) (registeredPackage instanceof RuntimePackageImpl ? registeredPackage : RuntimePackage.eINSTANCE); + + // Create package meta-data objects + theExtensiblePackage.createPackageContents(); + theEFacetPackage.createPackageContents(); + theSerializationPackage.createPackageContents(); + theQueryPackage.createPackageContents(); + theRuntimePackage.createPackageContents(); + + // Initialize created meta-data + theExtensiblePackage.initializePackageContents(); + theEFacetPackage.initializePackageContents(); + theSerializationPackage.initializePackageContents(); + theQueryPackage.initializePackageContents(); + theRuntimePackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theExtensiblePackage.freeze(); + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(ExtensiblePackage.eNS_URI, theExtensiblePackage); + return theExtensiblePackage; + } + + /** + * + * + * + * @generated + */ + public EClass getQuery() { + return queryEClass; + } + + /** + * + * + * + * @generated + */ + public EAttribute getQuery_CanHaveSideEffects() { + return (EAttribute) queryEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * + * @generated + */ + public EAttribute getQuery_CanBeCached() { + return (EAttribute) queryEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * + * @generated + */ + public ExtensibleFactory getExtensibleFactory() { + return (ExtensibleFactory) getEFactoryInstance(); + } + + /** + * + * + * + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * + * + * + * @generated + */ + public void createPackageContents() { + if (isCreated) { + return; + } + isCreated = true; + + // Create classes and their features + queryEClass = createEClass(QUERY); + createEAttribute(queryEClass, QUERY__CAN_HAVE_SIDE_EFFECTS); + createEAttribute(queryEClass, QUERY__CAN_BE_CACHED); + } + + /** + * + * + * + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * + * + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) { + return; + } + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + EcorePackage theEcorePackage = (EcorePackage) EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + + // Initialize classes and features; add operations and parameters + initEClass(queryEClass, Query.class, "Query", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEAttribute(getQuery_CanHaveSideEffects(), theEcorePackage.getEBoolean(), "canHaveSideEffects", null, 0, 1, Query.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + initEAttribute(getQuery_CanBeCached(), theEcorePackage.getEBoolean(), "canBeCached", null, 0, 1, Query.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + } + +} // ExtensiblePackageImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/impl/QueryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/impl/QueryImpl.java new file mode 100644 index 00000000000..809c6d8e9d3 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/impl/QueryImpl.java @@ -0,0 +1,264 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensiblePackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; + +/** + * + * An implementation of the model object 'Query'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.QueryImpl#isCanHaveSideEffects Can Have Side Effects}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.QueryImpl#isCanBeCached Can Be Cached}
  • + *
+ * + * @generated + */ +public abstract class QueryImpl extends EObjectImpl implements Query { + /** + * The default value of the '{@link #isCanHaveSideEffects() Can Have Side Effects}' attribute. + * + * + * + * @see #isCanHaveSideEffects() + * @generated + * @ordered + */ + protected static final boolean CAN_HAVE_SIDE_EFFECTS_EDEFAULT = false; + + /** + * The cached value of the '{@link #isCanHaveSideEffects() Can Have Side Effects}' attribute. + * + * + * + * @see #isCanHaveSideEffects() + * @generated + * @ordered + */ + protected boolean canHaveSideEffects = CAN_HAVE_SIDE_EFFECTS_EDEFAULT; + + /** + * The default value of the '{@link #isCanBeCached() Can Be Cached}' attribute. + * + * + * + * @see #isCanBeCached() + * @generated + * @ordered + */ + protected static final boolean CAN_BE_CACHED_EDEFAULT = false; + + /** + * The cached value of the '{@link #isCanBeCached() Can Be Cached}' attribute. + * + * + * + * @see #isCanBeCached() + * @generated + * @ordered + */ + protected boolean canBeCached = CAN_BE_CACHED_EDEFAULT; + + /** + * + * + * + * @generated + */ + protected QueryImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ExtensiblePackage.Literals.QUERY; + } + + /** + * + * + * + * @generated NOT + */ + public DerivedTypedElement basicGetOwningDerivedTypedElement() { + EObject container = eContainer(); + if (container instanceof DerivedTypedElement) { + return (DerivedTypedElement) container; + } + throw new IllegalStateException("Query must always be contained by a DerivedTypedElement"); + } + + /** + * + * + * + * @generated + */ + public boolean isCanHaveSideEffects() { + return canHaveSideEffects; + } + + /** + * + * + * + * @generated + */ + public void setCanHaveSideEffects(boolean newCanHaveSideEffects) { + boolean oldCanHaveSideEffects = canHaveSideEffects; + canHaveSideEffects = newCanHaveSideEffects; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, ExtensiblePackage.QUERY__CAN_HAVE_SIDE_EFFECTS, oldCanHaveSideEffects, canHaveSideEffects)); + } + } + + /** + * + * + * + * @generated + */ + public boolean isCanBeCached() { + return canBeCached; + } + + /** + * + * + * + * @generated + */ + public void setCanBeCached(boolean newCanBeCached) { + boolean oldCanBeCached = canBeCached; + canBeCached = newCanBeCached; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, ExtensiblePackage.QUERY__CAN_BE_CACHED, oldCanBeCached, canBeCached)); + } + } + + /** + * + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ExtensiblePackage.QUERY__CAN_HAVE_SIDE_EFFECTS: + return isCanHaveSideEffects(); + case ExtensiblePackage.QUERY__CAN_BE_CACHED: + return isCanBeCached(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ExtensiblePackage.QUERY__CAN_HAVE_SIDE_EFFECTS: + setCanHaveSideEffects((Boolean) newValue); + return; + case ExtensiblePackage.QUERY__CAN_BE_CACHED: + setCanBeCached((Boolean) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ExtensiblePackage.QUERY__CAN_HAVE_SIDE_EFFECTS: + setCanHaveSideEffects(CAN_HAVE_SIDE_EFFECTS_EDEFAULT); + return; + case ExtensiblePackage.QUERY__CAN_BE_CACHED: + setCanBeCached(CAN_BE_CACHED_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ExtensiblePackage.QUERY__CAN_HAVE_SIDE_EFFECTS: + return canHaveSideEffects != CAN_HAVE_SIDE_EFFECTS_EDEFAULT; + case ExtensiblePackage.QUERY__CAN_BE_CACHED: + return canBeCached != CAN_BE_CACHED_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (canHaveSideEffects: "); //$NON-NLS-1$ + result.append(canHaveSideEffects); + result.append(", canBeCached: "); //$NON-NLS-1$ + result.append(canBeCached); + result.append(')'); + return result.toString(); + } + +} // QueryImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/util/ExtensibleAdapterFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/util/ExtensibleAdapterFactory.java new file mode 100644 index 00000000000..739c559a761 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/util/ExtensibleAdapterFactory.java @@ -0,0 +1,141 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.util; + +import org.eclipse.emf.common.notify.Adapter; +import org.eclipse.emf.common.notify.Notifier; +import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensiblePackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensiblePackage + * @generated + */ +public class ExtensibleAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * + * @generated + */ + protected static ExtensiblePackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * + * @generated + */ + public ExtensibleAdapterFactory() { + if (modelPackage == null) { + modelPackage = ExtensiblePackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * + * This implementation returns true if the object is either the model's package or is an instance object of the model. + * + * + * @return whether this factory is applicable for the type of the object. + * @generated + */ + @Override + public boolean isFactoryForType(Object object) { + if (object == modelPackage) { + return true; + } + if (object instanceof EObject) { + return ((EObject) object).eClass().getEPackage() == modelPackage; + } + return false; + } + + /** + * The switch that delegates to the createXXX methods. + * + * + * + * @generated + */ + protected ExtensibleSwitch modelSwitch = new ExtensibleSwitch() { + @Override + public Adapter caseQuery(Query object) { + return createQueryAdapter(); + } + + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the target. + * + * + * + * @param target + * the object to adapt. + * @return the adapter for the target. + * @generated + */ + @Override + public Adapter createAdapter(Notifier target) { + return modelSwitch.doSwitch((EObject) target); + } + + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query Query}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query + * @generated + */ + public Adapter createQueryAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * + * This default implementation returns null. + * + * + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} // ExtensibleAdapterFactory diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/util/ExtensibleSwitch.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/util/ExtensibleSwitch.java new file mode 100644 index 00000000000..dc3879f5dcb --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/util/ExtensibleSwitch.java @@ -0,0 +1,152 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery + * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query + * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.util; + +import java.util.List; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensiblePackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; + +/** + * + * The Switch for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} to invoke the caseXXX method for each class of the model, + * starting with the actual class of the object + * and proceeding up the inheritance hierarchy + * until a non-null result is returned, + * which is the result of the switch. + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensiblePackage + * @generated + */ +public class ExtensibleSwitch { + /** + * The cached model package + * + * + * + * @generated + */ + protected static ExtensiblePackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * + * @generated + */ + public ExtensibleSwitch() { + if (modelPackage == null) { + modelPackage = ExtensiblePackage.eINSTANCE; + } + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + public T doSwitch(EObject theEObject) { + return doSwitch(theEObject.eClass(), theEObject); + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + protected T doSwitch(EClass theEClass, EObject theEObject) { + if (theEClass.eContainer() == modelPackage) { + return doSwitch(theEClass.getClassifierID(), theEObject); + } else { + List eSuperTypes = theEClass.getESuperTypes(); + return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(eSuperTypes.get(0), theEObject); + } + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { + case ExtensiblePackage.QUERY: { + Query query = (Query) theEObject; + T result = caseQuery(query); + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + default: + return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Query'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Query'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseQuery(Query object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EObject'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'EObject'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + public T defaultCase(EObject object) { + return null; + } + +} // ExtensibleSwitch diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/CategoryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/CategoryImpl.java new file mode 100644 index 00000000000..391a7ca265c --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/CategoryImpl.java @@ -0,0 +1,227 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENamedElementImpl; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Category; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage; + +/** + * + * An implementation of the model object 'Category'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.CategoryImpl#getDocumentation Documentation}
  • + *
+ * + * @generated + */ +public class CategoryImpl extends ENamedElementImpl implements Category { + /** + * The default value of the '{@link #getDocumentation() Documentation}' attribute. + * + * + * + * @see #getDocumentation() + * @generated + * @ordered + */ + protected static final String DOCUMENTATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDocumentation() Documentation}' attribute. + * + * + * + * @see #getDocumentation() + * @generated + * @ordered + */ + protected String documentation = DOCUMENTATION_EDEFAULT; + + /** + * + * + * + * @generated + */ + protected CategoryImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return EFacetPackage.Literals.CATEGORY; + } + + /** + * + * + * + * @generated + */ + public String getDocumentation() { + return documentation; + } + + /** + * + * + * + * @generated + */ + public void setDocumentation(String newDocumentation) { + String oldDocumentation = documentation; + documentation = newDocumentation; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.CATEGORY__DOCUMENTATION, oldDocumentation, documentation)); + } + } + + /** + * + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case EFacetPackage.CATEGORY__DOCUMENTATION: + return getDocumentation(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case EFacetPackage.CATEGORY__DOCUMENTATION: + setDocumentation((String) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case EFacetPackage.CATEGORY__DOCUMENTATION: + setDocumentation(DOCUMENTATION_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case EFacetPackage.CATEGORY__DOCUMENTATION: + return DOCUMENTATION_EDEFAULT == null ? documentation != null : !DOCUMENTATION_EDEFAULT.equals(documentation); + } + return super.eIsSet(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { + if (baseClass == DocumentedElement.class) { + switch (derivedFeatureID) { + case EFacetPackage.CATEGORY__DOCUMENTATION: + return EFacetPackage.DOCUMENTED_ELEMENT__DOCUMENTATION; + default: + return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { + if (baseClass == DocumentedElement.class) { + switch (baseFeatureID) { + case EFacetPackage.DOCUMENTED_ELEMENT__DOCUMENTATION: + return EFacetPackage.CATEGORY__DOCUMENTATION; + default: + return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (documentation: "); //$NON-NLS-1$ + result.append(documentation); + result.append(')'); + return result.toString(); + } + +} // CategoryImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/DerivedTypedElementImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/DerivedTypedElementImpl.java new file mode 100644 index 00000000000..ce1340e1979 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/DerivedTypedElementImpl.java @@ -0,0 +1,273 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; + +/** + * + * An implementation of the model object 'Derived Typed Element'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.DerivedTypedElementImpl#getQuery Query}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.DerivedTypedElementImpl#getOverride Override}
  • + *
+ * + * @generated + */ +public abstract class DerivedTypedElementImpl extends FacetElementImpl implements DerivedTypedElement { + /** + * The cached value of the '{@link #getQuery() Query}' containment reference. + * + * + * + * @see #getQuery() + * @generated + * @ordered + */ + protected Query query; + + /** + * The cached value of the '{@link #getOverride() Override}' reference. + * + * + * + * @see #getOverride() + * @generated + * @ordered + */ + protected DerivedTypedElement override; + + /** + * + * + * + * @generated + */ + protected DerivedTypedElementImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return EFacetPackage.Literals.DERIVED_TYPED_ELEMENT; + } + + /** + * + * + * + * @generated + */ + public Query getQuery() { + return query; + } + + /** + * + * + * + * @generated + */ + public NotificationChain basicSetQuery(Query newQuery, NotificationChain msgs) { + Query oldQuery = query; + query = newQuery; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EFacetPackage.DERIVED_TYPED_ELEMENT__QUERY, oldQuery, newQuery); + if (msgs == null) { + msgs = notification; + } else { + msgs.add(notification); + } + } + return msgs; + } + + /** + * + * + * + * @generated + */ + public void setQuery(Query newQuery) { + if (newQuery != query) { + NotificationChain msgs = null; + if (query != null) { + msgs = ((InternalEObject) query).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EFacetPackage.DERIVED_TYPED_ELEMENT__QUERY, null, msgs); + } + if (newQuery != null) { + msgs = ((InternalEObject) newQuery).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EFacetPackage.DERIVED_TYPED_ELEMENT__QUERY, null, msgs); + } + msgs = basicSetQuery(newQuery, msgs); + if (msgs != null) { + msgs.dispatch(); + } + } else if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.DERIVED_TYPED_ELEMENT__QUERY, newQuery, newQuery)); + } + } + + /** + * + * + * + * @generated + */ + public DerivedTypedElement getOverride() { + if (override != null && override.eIsProxy()) { + InternalEObject oldOverride = (InternalEObject) override; + override = (DerivedTypedElement) eResolveProxy(oldOverride); + if (override != oldOverride) { + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.RESOLVE, EFacetPackage.DERIVED_TYPED_ELEMENT__OVERRIDE, oldOverride, override)); + } + } + } + return override; + } + + /** + * + * + * + * @generated + */ + public DerivedTypedElement basicGetOverride() { + return override; + } + + /** + * + * + * + * @generated + */ + public void setOverride(DerivedTypedElement newOverride) { + DerivedTypedElement oldOverride = override; + override = newOverride; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.DERIVED_TYPED_ELEMENT__OVERRIDE, oldOverride, override)); + } + } + + /** + * + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case EFacetPackage.DERIVED_TYPED_ELEMENT__QUERY: + return basicSetQuery(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case EFacetPackage.DERIVED_TYPED_ELEMENT__QUERY: + return getQuery(); + case EFacetPackage.DERIVED_TYPED_ELEMENT__OVERRIDE: + if (resolve) { + return getOverride(); + } + return basicGetOverride(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case EFacetPackage.DERIVED_TYPED_ELEMENT__QUERY: + setQuery((Query) newValue); + return; + case EFacetPackage.DERIVED_TYPED_ELEMENT__OVERRIDE: + setOverride((DerivedTypedElement) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case EFacetPackage.DERIVED_TYPED_ELEMENT__QUERY: + setQuery((Query) null); + return; + case EFacetPackage.DERIVED_TYPED_ELEMENT__OVERRIDE: + setOverride((DerivedTypedElement) null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case EFacetPackage.DERIVED_TYPED_ELEMENT__QUERY: + return query != null; + case EFacetPackage.DERIVED_TYPED_ELEMENT__OVERRIDE: + return override != null; + } + return super.eIsSet(featureID); + } + +} // DerivedTypedElementImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/DocumentedElementImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/DocumentedElementImpl.java new file mode 100644 index 00000000000..2b2f4f5f011 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/DocumentedElementImpl.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage; + +/** + * + * An implementation of the model object 'Documented Element'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.DocumentedElementImpl#getDocumentation Documentation}
  • + *
+ * + * @generated + */ +public class DocumentedElementImpl extends EObjectImpl implements DocumentedElement { + /** + * The default value of the '{@link #getDocumentation() Documentation}' attribute. + * + * + * + * @see #getDocumentation() + * @generated + * @ordered + */ + protected static final String DOCUMENTATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDocumentation() Documentation}' attribute. + * + * + * + * @see #getDocumentation() + * @generated + * @ordered + */ + protected String documentation = DOCUMENTATION_EDEFAULT; + + /** + * + * + * + * @generated + */ + protected DocumentedElementImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return EFacetPackage.Literals.DOCUMENTED_ELEMENT; + } + + /** + * + * + * + * @generated + */ + public String getDocumentation() { + return documentation; + } + + /** + * + * + * + * @generated + */ + public void setDocumentation(String newDocumentation) { + String oldDocumentation = documentation; + documentation = newDocumentation; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.DOCUMENTED_ELEMENT__DOCUMENTATION, oldDocumentation, documentation)); + } + } + + /** + * + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case EFacetPackage.DOCUMENTED_ELEMENT__DOCUMENTATION: + return getDocumentation(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case EFacetPackage.DOCUMENTED_ELEMENT__DOCUMENTATION: + setDocumentation((String) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case EFacetPackage.DOCUMENTED_ELEMENT__DOCUMENTATION: + setDocumentation(DOCUMENTATION_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case EFacetPackage.DOCUMENTED_ELEMENT__DOCUMENTATION: + return DOCUMENTATION_EDEFAULT == null ? documentation != null : !DOCUMENTATION_EDEFAULT.equals(documentation); + } + return super.eIsSet(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (documentation: "); //$NON-NLS-1$ + result.append(documentation); + result.append(')'); + return result.toString(); + } + +} // DocumentedElementImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/EFacetFactoryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/EFacetFactoryImpl.java new file mode 100644 index 00000000000..41e6a607b71 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/EFacetFactoryImpl.java @@ -0,0 +1,268 @@ +/** + * Copyright (c) 2011, 2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.impl.EFactoryImpl; +import org.eclipse.emf.ecore.plugin.EcorePlugin; +import org.eclipse.emf.ecore.resource.Resource; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Category; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetFactory; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetAttribute; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetOperation; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetReference; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetSet; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue; + +/** + * + * An implementation of the model Factory. + * + * + * @generated + */ +public class EFacetFactoryImpl extends EFactoryImpl implements EFacetFactory { + /** + * Creates the default factory implementation. + * + * + * + * @generated + */ + public static EFacetFactory init() { + try { + EFacetFactory theEFacetFactory = (EFacetFactory) EPackage.Registry.INSTANCE.getEFactory(EFacetPackage.eNS_URI); + if (theEFacetFactory != null) { + return theEFacetFactory; + } + } catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new EFacetFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * + * @generated + */ + public EFacetFactoryImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case EFacetPackage.FACET_ATTRIBUTE: + return createFacetAttribute(); + case EFacetPackage.FACET_REFERENCE: + return createFacetReference(); + case EFacetPackage.FACET_OPERATION: + return createFacetOperation(); + case EFacetPackage.FACET_SET: + return createFacetSet(); + case EFacetPackage.FACET: + return createFacet(); + case EFacetPackage.CATEGORY: + return createCategory(); + case EFacetPackage.PARAMETER_VALUE: + return createParameterValue(); + case EFacetPackage.DOCUMENTED_ELEMENT: + return createDocumentedElement(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ + } + } + + /** + * + * + * + * @generated + */ + @Override + public Object createFromString(EDataType eDataType, String initialValue) { + switch (eDataType.getClassifierID()) { + case EFacetPackage.RESOURCE: + return createResourceFromString(eDataType, initialValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ + } + } + + /** + * + * + * + * @generated + */ + @Override + public String convertToString(EDataType eDataType, Object instanceValue) { + switch (eDataType.getClassifierID()) { + case EFacetPackage.RESOURCE: + return convertResourceToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ + } + } + + /** + * + * + * + * @generated + */ + public FacetAttribute createFacetAttribute() { + FacetAttributeImpl facetAttribute = new FacetAttributeImpl(); + return facetAttribute; + } + + /** + * + * + * + * @generated + */ + public FacetReference createFacetReference() { + FacetReferenceImpl facetReference = new FacetReferenceImpl(); + return facetReference; + } + + /** + * + * + * + * @generated + */ + public FacetOperation createFacetOperation() { + FacetOperationImpl facetOperation = new FacetOperationImpl(); + return facetOperation; + } + + /** + * + * + * + * @generated + */ + public FacetSet createFacetSet() { + FacetSetImpl facetSet = new FacetSetImpl(); + return facetSet; + } + + /** + * + * + * + * @generated + */ + public Facet createFacet() { + FacetImpl facet = new FacetImpl(); + return facet; + } + + /** + * + * + * + * @generated + */ + public Category createCategory() { + CategoryImpl category = new CategoryImpl(); + return category; + } + + /** + * + * + * + * @generated + */ + public ParameterValue createParameterValue() { + ParameterValueImpl parameterValue = new ParameterValueImpl(); + return parameterValue; + } + + /** + * + * + * + * @generated + */ + public DocumentedElement createDocumentedElement() { + DocumentedElementImpl documentedElement = new DocumentedElementImpl(); + return documentedElement; + } + + /** + * + * + * + * @generated + */ + public Resource createResourceFromString(EDataType eDataType, String initialValue) { + return (Resource) super.createFromString(eDataType, initialValue); + } + + /** + * + * + * + * @generated + */ + public String convertResourceToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * + * @generated + */ + public EFacetPackage getEFacetPackage() { + return (EFacetPackage) getEPackage(); + } + + /** + * + * + * + * @deprecated + * @generated + */ + @Deprecated + public static EFacetPackage getPackage() { + return EFacetPackage.eINSTANCE; + } + +} // EFacetFactoryImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/EFacetPackageImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/EFacetPackageImpl.java new file mode 100644 index 00000000000..e258220b696 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/EFacetPackageImpl.java @@ -0,0 +1,766 @@ +/** + * Copyright (c) 2011, 2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + * Gregoire Dupe (Mia-Software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. + * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning + * Gregoire Dupe (Mia-Software) - Bug 376576 - [EFacet] Change the multiplicity of Facet::extendedFacet + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.emf.ecore.EcorePackage; +import org.eclipse.emf.ecore.impl.EPackageImpl; +import org.eclipse.emf.ecore.resource.Resource; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Category; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetFactory; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetAttribute; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetElement; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetOperation; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetReference; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetSet; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensiblePackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.ExtensiblePackageImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.RuntimePackageImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl; + +/** + * + * An implementation of the model Package. + * + * + * @generated + */ +public class EFacetPackageImpl extends EPackageImpl implements EFacetPackage { + /** + * + * + * + * @generated + */ + private EClass facetAttributeEClass = null; + + /** + * + * + * + * @generated + */ + private EClass facetReferenceEClass = null; + + /** + * + * + * + * @generated + */ + private EClass facetOperationEClass = null; + + /** + * + * + * + * @generated + */ + private EClass facetSetEClass = null; + + /** + * + * + * + * @generated + */ + private EClass facetEClass = null; + + /** + * + * + * + * @generated + */ + private EClass categoryEClass = null; + + /** + * + * + * + * @generated + */ + private EClass facetElementEClass = null; + + /** + * + * + * + * @generated + */ + private EClass derivedTypedElementEClass = null; + + /** + * + * + * + * @generated + */ + private EClass parameterValueEClass = null; + + /** + * + * + * + * @generated + */ + private EClass documentedElementEClass = null; + + /** + * + * + * + * @generated + */ + private EDataType resourceEDataType = null; + + /** + * Creates an instance of the model Package, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + *

+ * Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#eNS_URI + * @see #init() + * @generated + */ + private EFacetPackageImpl() { + super(eNS_URI, EFacetFactory.eINSTANCE); + } + + /** + * + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *

+ * This method is used to initialize {@link EFacetPackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static EFacetPackage init() { + if (isInited) { + return (EFacetPackage) EPackage.Registry.INSTANCE.getEPackage(EFacetPackage.eNS_URI); + } + + // Obtain or create and register package + Object registeredEFacetPackage = EPackage.Registry.INSTANCE.get(eNS_URI); + EFacetPackageImpl theEFacetPackage = registeredEFacetPackage instanceof EFacetPackageImpl ? (EFacetPackageImpl) registeredEFacetPackage : new EFacetPackageImpl(); + + isInited = true; + + // Initialize simple dependencies + EcorePackage.eINSTANCE.eClass(); + + // Obtain or create and register interdependencies + Object registeredPackage = EPackage.Registry.INSTANCE.getEPackage(SerializationPackage.eNS_URI); + SerializationPackageImpl theSerializationPackage = (SerializationPackageImpl) (registeredPackage instanceof SerializationPackageImpl ? registeredPackage : SerializationPackage.eINSTANCE); + registeredPackage = EPackage.Registry.INSTANCE.getEPackage(ExtensiblePackage.eNS_URI); + ExtensiblePackageImpl theExtensiblePackage = (ExtensiblePackageImpl) (registeredPackage instanceof ExtensiblePackageImpl ? registeredPackage : ExtensiblePackage.eINSTANCE); + registeredPackage = EPackage.Registry.INSTANCE.getEPackage(QueryPackage.eNS_URI); + QueryPackageImpl theQueryPackage = (QueryPackageImpl) (registeredPackage instanceof QueryPackageImpl ? registeredPackage : QueryPackage.eINSTANCE); + registeredPackage = EPackage.Registry.INSTANCE.getEPackage(RuntimePackage.eNS_URI); + RuntimePackageImpl theRuntimePackage = (RuntimePackageImpl) (registeredPackage instanceof RuntimePackageImpl ? registeredPackage : RuntimePackage.eINSTANCE); + + // Create package meta-data objects + theEFacetPackage.createPackageContents(); + theSerializationPackage.createPackageContents(); + theExtensiblePackage.createPackageContents(); + theQueryPackage.createPackageContents(); + theRuntimePackage.createPackageContents(); + + // Initialize created meta-data + theEFacetPackage.initializePackageContents(); + theSerializationPackage.initializePackageContents(); + theExtensiblePackage.initializePackageContents(); + theQueryPackage.initializePackageContents(); + theRuntimePackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theEFacetPackage.freeze(); + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(EFacetPackage.eNS_URI, theEFacetPackage); + return theEFacetPackage; + } + + /** + * + * + * + * @generated + */ + public EClass getFacetAttribute() { + return facetAttributeEClass; + } + + /** + * + * + * + * @generated + */ + public EClass getFacetReference() { + return facetReferenceEClass; + } + + /** + * + * + * + * @generated + */ + public EClass getFacetOperation() { + return facetOperationEClass; + } + + /** + * + * + * + * @generated + */ + public EClass getFacetSet() { + return facetSetEClass; + } + + /** + * + * + * + * @generated + */ + public EReference getFacetSet_Categories() { + return (EReference) facetSetEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * + * @generated + */ + public EClass getFacet() { + return facetEClass; + } + + /** + * + * + * + * @generated + */ + public EReference getFacet_ExtendedMetaclass() { + return (EReference) facetEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * + * @generated + */ + public EReference getFacet_FacetElements() { + return (EReference) facetEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * + * @generated + */ + public EReference getFacet_FacetOperations() { + return (EReference) facetEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * + * @generated + */ + public EReference getFacet_ConformanceTypedElement() { + return (EReference) facetEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * + * @generated + */ + public EReference getFacet_ExtendedFacets() { + return (EReference) facetEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * + * @generated + * @since 1.2 + */ + public EReference getFacet_AllTypedElements() { + return (EReference) facetEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * + * @generated + * @since 1.2 + */ + public EReference getFacet_AllFacetOperations() { + return (EReference) facetEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * + * @generated + * @since 1.2 + */ + public EReference getFacet_AllFacetElements() { + return (EReference) facetEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * + * @generated + */ + public EClass getCategory() { + return categoryEClass; + } + + /** + * + * + * + * @generated + */ + public EClass getFacetElement() { + return facetElementEClass; + } + + /** + * + * + * + * @generated + */ + public EReference getFacetElement_Categories() { + return (EReference) facetElementEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * + * @generated + */ + public EClass getDerivedTypedElement() { + return derivedTypedElementEClass; + } + + /** + * + * + * + * @generated + */ + public EReference getDerivedTypedElement_Query() { + return (EReference) derivedTypedElementEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * + * @generated + */ + public EReference getDerivedTypedElement_Override() { + return (EReference) derivedTypedElementEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * + * @generated + */ + public EClass getParameterValue() { + return parameterValueEClass; + } + + /** + * + * + * + * @generated + */ + public EReference getParameterValue_Parameter() { + return (EReference) parameterValueEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * + * @generated + */ + public EAttribute getParameterValue_Value() { + return (EAttribute) parameterValueEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * + * @generated + */ + public EClass getDocumentedElement() { + return documentedElementEClass; + } + + /** + * + * + * + * @generated + */ + public EAttribute getDocumentedElement_Documentation() { + return (EAttribute) documentedElementEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * + * @generated + */ + public EDataType getResource() { + return resourceEDataType; + } + + /** + * + * + * + * @generated + */ + public EFacetFactory getEFacetFactory() { + return (EFacetFactory) getEFactoryInstance(); + } + + /** + * + * + * + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * + * + * + * @generated + */ + public void createPackageContents() { + if (isCreated) { + return; + } + isCreated = true; + + // Create classes and their features + facetAttributeEClass = createEClass(FACET_ATTRIBUTE); + + facetReferenceEClass = createEClass(FACET_REFERENCE); + + facetOperationEClass = createEClass(FACET_OPERATION); + + facetSetEClass = createEClass(FACET_SET); + createEReference(facetSetEClass, FACET_SET__CATEGORIES); + + facetEClass = createEClass(FACET); + createEReference(facetEClass, FACET__EXTENDED_METACLASS); + createEReference(facetEClass, FACET__FACET_ELEMENTS); + createEReference(facetEClass, FACET__FACET_OPERATIONS); + createEReference(facetEClass, FACET__CONFORMANCE_TYPED_ELEMENT); + createEReference(facetEClass, FACET__EXTENDED_FACETS); + createEReference(facetEClass, FACET__ALL_TYPED_ELEMENTS); + createEReference(facetEClass, FACET__ALL_FACET_OPERATIONS); + createEReference(facetEClass, FACET__ALL_FACET_ELEMENTS); + + categoryEClass = createEClass(CATEGORY); + + facetElementEClass = createEClass(FACET_ELEMENT); + createEReference(facetElementEClass, FACET_ELEMENT__CATEGORIES); + + derivedTypedElementEClass = createEClass(DERIVED_TYPED_ELEMENT); + createEReference(derivedTypedElementEClass, DERIVED_TYPED_ELEMENT__QUERY); + createEReference(derivedTypedElementEClass, DERIVED_TYPED_ELEMENT__OVERRIDE); + + parameterValueEClass = createEClass(PARAMETER_VALUE); + createEReference(parameterValueEClass, PARAMETER_VALUE__PARAMETER); + createEAttribute(parameterValueEClass, PARAMETER_VALUE__VALUE); + + documentedElementEClass = createEClass(DOCUMENTED_ELEMENT); + createEAttribute(documentedElementEClass, DOCUMENTED_ELEMENT__DOCUMENTATION); + + // Create data types + resourceEDataType = createEDataType(RESOURCE); + } + + /** + * + * + * + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * + * + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) { + return; + } + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + SerializationPackage theSerializationPackage = (SerializationPackage) EPackage.Registry.INSTANCE.getEPackage(SerializationPackage.eNS_URI); + ExtensiblePackage theExtensiblePackage = (ExtensiblePackage) EPackage.Registry.INSTANCE.getEPackage(ExtensiblePackage.eNS_URI); + QueryPackage theQueryPackage = (QueryPackage) EPackage.Registry.INSTANCE.getEPackage(QueryPackage.eNS_URI); + RuntimePackage theRuntimePackage = (RuntimePackage) EPackage.Registry.INSTANCE.getEPackage(RuntimePackage.eNS_URI); + EcorePackage theEcorePackage = (EcorePackage) EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); + + // Add subpackages + getESubpackages().add(theSerializationPackage); + getESubpackages().add(theExtensiblePackage); + getESubpackages().add(theQueryPackage); + getESubpackages().add(theRuntimePackage); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + facetAttributeEClass.getESuperTypes().add(theEcorePackage.getEAttribute()); + facetAttributeEClass.getESuperTypes().add(this.getDerivedTypedElement()); + facetReferenceEClass.getESuperTypes().add(theEcorePackage.getEReference()); + facetReferenceEClass.getESuperTypes().add(this.getDerivedTypedElement()); + facetOperationEClass.getESuperTypes().add(theEcorePackage.getEOperation()); + facetOperationEClass.getESuperTypes().add(this.getDerivedTypedElement()); + facetSetEClass.getESuperTypes().add(theEcorePackage.getEPackage()); + facetSetEClass.getESuperTypes().add(this.getDocumentedElement()); + facetEClass.getESuperTypes().add(theEcorePackage.getEClassifier()); + facetEClass.getESuperTypes().add(this.getDocumentedElement()); + categoryEClass.getESuperTypes().add(theEcorePackage.getENamedElement()); + categoryEClass.getESuperTypes().add(this.getDocumentedElement()); + facetElementEClass.getESuperTypes().add(theEcorePackage.getETypedElement()); + facetElementEClass.getESuperTypes().add(this.getDocumentedElement()); + derivedTypedElementEClass.getESuperTypes().add(this.getFacetElement()); + + // Initialize classes and features; add operations and parameters + initEClass(facetAttributeEClass, FacetAttribute.class, "FacetAttribute", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + + initEClass(facetReferenceEClass, FacetReference.class, "FacetReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + + initEClass(facetOperationEClass, FacetOperation.class, "FacetOperation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + + initEClass(facetSetEClass, FacetSet.class, "FacetSet", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEReference(getFacetSet_Categories(), this.getCategory(), null, "categories", null, 0, -1, FacetSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + + addEOperation(facetSetEClass, this.getFacetSet(), "getFacetSets", 0, -1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$ + + initEClass(facetEClass, Facet.class, "Facet", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEReference(getFacet_ExtendedMetaclass(), theEcorePackage.getEClass(), null, "extendedMetaclass", null, 0, 1, Facet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, //$NON-NLS-1$ + IS_ORDERED); + initEReference(getFacet_FacetElements(), theEcorePackage.getEStructuralFeature(), null, "facetElements", null, 0, -1, Facet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, //$NON-NLS-1$ + IS_ORDERED); + initEReference(getFacet_FacetOperations(), this.getFacetOperation(), null, "facetOperations", null, 0, -1, Facet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + initEReference(getFacet_ConformanceTypedElement(), theEcorePackage.getETypedElement(), null, "conformanceTypedElement", null, 0, 1, Facet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, //$NON-NLS-1$ + !IS_DERIVED, IS_ORDERED); + initEReference(getFacet_ExtendedFacets(), this.getFacet(), null, "extendedFacets", null, 0, -1, Facet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + initEReference(getFacet_AllTypedElements(), theEcorePackage.getETypedElement(), null, "allTypedElements", null, 0, -1, Facet.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, //$NON-NLS-1$ + IS_ORDERED); + initEReference(getFacet_AllFacetOperations(), this.getFacetOperation(), null, "allFacetOperations", null, 0, -1, Facet.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, //$NON-NLS-1$ + IS_ORDERED); + initEReference(getFacet_AllFacetElements(), theEcorePackage.getEStructuralFeature(), null, "allFacetElements", null, 0, -1, Facet.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, //$NON-NLS-1$ + IS_DERIVED, IS_ORDERED); + + initEClass(categoryEClass, Category.class, "Category", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + + initEClass(facetElementEClass, FacetElement.class, "FacetElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEReference(getFacetElement_Categories(), this.getCategory(), null, "categories", null, 0, -1, FacetElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + + initEClass(derivedTypedElementEClass, DerivedTypedElement.class, "DerivedTypedElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEReference(getDerivedTypedElement_Query(), theExtensiblePackage.getQuery(), null, "query", null, 1, 1, DerivedTypedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, //$NON-NLS-1$ + IS_ORDERED); + initEReference(getDerivedTypedElement_Override(), this.getDerivedTypedElement(), null, "override", null, 0, 1, DerivedTypedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, //$NON-NLS-1$ + !IS_DERIVED, IS_ORDERED); + + initEClass(parameterValueEClass, ParameterValue.class, "ParameterValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEReference(getParameterValue_Parameter(), theEcorePackage.getEParameter(), null, "parameter", null, 1, 1, ParameterValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, //$NON-NLS-1$ + IS_ORDERED); + initEAttribute(getParameterValue_Value(), theEcorePackage.getEJavaObject(), "value", null, 0, 1, ParameterValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + + initEClass(documentedElementEClass, DocumentedElement.class, "DocumentedElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEAttribute(getDocumentedElement_Documentation(), theEcorePackage.getEString(), "documentation", null, 0, 1, DocumentedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + + // Initialize data types + initEDataType(resourceEDataType, Resource.class, "Resource", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + + // Create resource + createResource(eNS_URI); + + // Create annotations + // http://www.eclipse.org/emf/2002/Ecore + createEcoreAnnotations(); + // GenModel + createGenModel_1Annotations(); + // org.eclipse.ocl.ecore.OCL + createOrgAnnotations(); + } + + /** + * Initializes the annotations for http://www.eclipse.org/emf/2002/Ecore. + * + * + * + * @generated + */ + protected void createEcoreAnnotations() { + String source = "http://www.eclipse.org/emf/2002/Ecore"; //$NON-NLS-1$ + addAnnotation(this, + source, + new String[] { + "validationDelegates", "org.eclipse.ocl.ecore.OCL" //$NON-NLS-1$ //$NON-NLS-2$ + }); + addAnnotation(facetEClass, + source, + new String[] { + "validationDelegates", "( self.query.scope = self.facet.extendedMetaClass ) and ( self.query.name = self.name )" //$NON-NLS-1$ //$NON-NLS-2$ + }); + addAnnotation(facetEClass, + source, + new String[] { + "validationDelegates", "self.conformanceQuery.scope = self.extendedMetaClass" //$NON-NLS-1$ //$NON-NLS-2$ + }); + } + + /** + * Initializes the annotations for GenModel. + * + * + * + * @generated + */ + protected void createGenModel_1Annotations() { + String source = "GenModel"; //$NON-NLS-1$ + addAnnotation(facetSetEClass, + source, + new String[] { + "documentation", "A \"FacetSet\" is the root element of a facet model. It contains a list of \"Facet\"." //$NON-NLS-1$ //$NON-NLS-2$ + }); + addAnnotation(facetSetEClass.getEOperations().get(0), + source, + new String[] { + "documentation", "The FacetSets aggregated by this FacetSet (this operation is overridden in Aggregate in the aggregate metamodel)." //$NON-NLS-1$ //$NON-NLS-2$ + }); + addAnnotation(getFacet_ExtendedMetaclass(), + source, + new String[] { + "documentation", "The \"extendedMetaclass\" reference references the virtually subtyped EClass." //$NON-NLS-1$ //$NON-NLS-2$ + }); + addAnnotation(getFacet_ExtendedFacets(), + source, + new String[] { + "documentation", "A facet can extend other facets. If A facet A can extend a facet B. In this case an eObject conforms to the facet A if it matches conformance evaluation of A and B. " //$NON-NLS-1$ //$NON-NLS-2$ + }); + } + + /** + * Initializes the annotations for org.eclipse.ocl.ecore.OCL. + * + * + * + * @generated + */ + protected void createOrgAnnotations() { + String source = "org.eclipse.ocl.ecore.OCL"; //$NON-NLS-1$ + addAnnotation(facetEClass, + source, + new String[] { + "body", "not(self.container().oclCastAs(FacetSet).facets->exists(f|f.extendedMetaClass.container() <> self.extendedMetaClass.container() ))" //$NON-NLS-1$ //$NON-NLS-2$ + }); + } + +} // EFacetPackageImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetAttributeImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetAttributeImpl.java new file mode 100644 index 00000000000..7eb738e85ce --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetAttributeImpl.java @@ -0,0 +1,469 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.EAttributeImpl; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Category; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetAttribute; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetElement; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; + +/** + * + * An implementation of the model object 'Facet Attribute'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetAttributeImpl#getDocumentation Documentation}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetAttributeImpl#getCategories Categories}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetAttributeImpl#getQuery Query}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetAttributeImpl#getOverride Override}
  • + *
+ * + * @generated + */ +public class FacetAttributeImpl extends EAttributeImpl implements FacetAttribute { + /** + * The default value of the '{@link #getDocumentation() Documentation}' attribute. + * + * + * + * @see #getDocumentation() + * @generated + * @ordered + */ + protected static final String DOCUMENTATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDocumentation() Documentation}' attribute. + * + * + * + * @see #getDocumentation() + * @generated + * @ordered + */ + protected String documentation = DOCUMENTATION_EDEFAULT; + + /** + * The cached value of the '{@link #getCategories() Categories}' reference list. + * + * + * + * @see #getCategories() + * @generated + * @ordered + */ + protected EList categories; + + /** + * The cached value of the '{@link #getQuery() Query}' containment reference. + * + * + * + * @see #getQuery() + * @generated + * @ordered + */ + protected Query query; + + /** + * The cached value of the '{@link #getOverride() Override}' reference. + * + * + * + * @see #getOverride() + * @generated + * @ordered + */ + protected DerivedTypedElement override; + + /** + * + * + * + * @generated + */ + protected FacetAttributeImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return EFacetPackage.Literals.FACET_ATTRIBUTE; + } + + /** + * + * + * + * @generated + */ + public String getDocumentation() { + return documentation; + } + + /** + * + * + * + * @generated + */ + public void setDocumentation(String newDocumentation) { + String oldDocumentation = documentation; + documentation = newDocumentation; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.FACET_ATTRIBUTE__DOCUMENTATION, oldDocumentation, documentation)); + } + } + + /** + * + * + * + * @generated + */ + public EList getCategories() { + if (categories == null) { + categories = new EObjectResolvingEList(Category.class, this, EFacetPackage.FACET_ATTRIBUTE__CATEGORIES); + } + return categories; + } + + /** + * + * + * + * @generated + */ + public Query getQuery() { + return query; + } + + /** + * + * + * + * @generated + */ + public NotificationChain basicSetQuery(Query newQuery, NotificationChain msgs) { + Query oldQuery = query; + query = newQuery; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EFacetPackage.FACET_ATTRIBUTE__QUERY, oldQuery, newQuery); + if (msgs == null) { + msgs = notification; + } else { + msgs.add(notification); + } + } + return msgs; + } + + /** + * + * + * + * @generated + */ + public void setQuery(Query newQuery) { + if (newQuery != query) { + NotificationChain msgs = null; + if (query != null) { + msgs = ((InternalEObject) query).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EFacetPackage.FACET_ATTRIBUTE__QUERY, null, msgs); + } + if (newQuery != null) { + msgs = ((InternalEObject) newQuery).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EFacetPackage.FACET_ATTRIBUTE__QUERY, null, msgs); + } + msgs = basicSetQuery(newQuery, msgs); + if (msgs != null) { + msgs.dispatch(); + } + } else if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.FACET_ATTRIBUTE__QUERY, newQuery, newQuery)); + } + } + + /** + * + * + * + * @generated + */ + public DerivedTypedElement getOverride() { + if (override != null && override.eIsProxy()) { + InternalEObject oldOverride = (InternalEObject) override; + override = (DerivedTypedElement) eResolveProxy(oldOverride); + if (override != oldOverride) { + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.RESOLVE, EFacetPackage.FACET_ATTRIBUTE__OVERRIDE, oldOverride, override)); + } + } + } + return override; + } + + /** + * + * + * + * @generated + */ + public DerivedTypedElement basicGetOverride() { + return override; + } + + /** + * + * + * + * @generated + */ + public void setOverride(DerivedTypedElement newOverride) { + DerivedTypedElement oldOverride = override; + override = newOverride; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.FACET_ATTRIBUTE__OVERRIDE, oldOverride, override)); + } + } + + /** + * + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case EFacetPackage.FACET_ATTRIBUTE__QUERY: + return basicSetQuery(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case EFacetPackage.FACET_ATTRIBUTE__DOCUMENTATION: + return getDocumentation(); + case EFacetPackage.FACET_ATTRIBUTE__CATEGORIES: + return getCategories(); + case EFacetPackage.FACET_ATTRIBUTE__QUERY: + return getQuery(); + case EFacetPackage.FACET_ATTRIBUTE__OVERRIDE: + if (resolve) { + return getOverride(); + } + return basicGetOverride(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case EFacetPackage.FACET_ATTRIBUTE__DOCUMENTATION: + setDocumentation((String) newValue); + return; + case EFacetPackage.FACET_ATTRIBUTE__CATEGORIES: + getCategories().clear(); + getCategories().addAll((Collection) newValue); + return; + case EFacetPackage.FACET_ATTRIBUTE__QUERY: + setQuery((Query) newValue); + return; + case EFacetPackage.FACET_ATTRIBUTE__OVERRIDE: + setOverride((DerivedTypedElement) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case EFacetPackage.FACET_ATTRIBUTE__DOCUMENTATION: + setDocumentation(DOCUMENTATION_EDEFAULT); + return; + case EFacetPackage.FACET_ATTRIBUTE__CATEGORIES: + getCategories().clear(); + return; + case EFacetPackage.FACET_ATTRIBUTE__QUERY: + setQuery((Query) null); + return; + case EFacetPackage.FACET_ATTRIBUTE__OVERRIDE: + setOverride((DerivedTypedElement) null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case EFacetPackage.FACET_ATTRIBUTE__DOCUMENTATION: + return DOCUMENTATION_EDEFAULT == null ? documentation != null : !DOCUMENTATION_EDEFAULT.equals(documentation); + case EFacetPackage.FACET_ATTRIBUTE__CATEGORIES: + return categories != null && !categories.isEmpty(); + case EFacetPackage.FACET_ATTRIBUTE__QUERY: + return query != null; + case EFacetPackage.FACET_ATTRIBUTE__OVERRIDE: + return override != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { + if (baseClass == DocumentedElement.class) { + switch (derivedFeatureID) { + case EFacetPackage.FACET_ATTRIBUTE__DOCUMENTATION: + return EFacetPackage.DOCUMENTED_ELEMENT__DOCUMENTATION; + default: + return -1; + } + } + if (baseClass == FacetElement.class) { + switch (derivedFeatureID) { + case EFacetPackage.FACET_ATTRIBUTE__CATEGORIES: + return EFacetPackage.FACET_ELEMENT__CATEGORIES; + default: + return -1; + } + } + if (baseClass == DerivedTypedElement.class) { + switch (derivedFeatureID) { + case EFacetPackage.FACET_ATTRIBUTE__QUERY: + return EFacetPackage.DERIVED_TYPED_ELEMENT__QUERY; + case EFacetPackage.FACET_ATTRIBUTE__OVERRIDE: + return EFacetPackage.DERIVED_TYPED_ELEMENT__OVERRIDE; + default: + return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { + if (baseClass == DocumentedElement.class) { + switch (baseFeatureID) { + case EFacetPackage.DOCUMENTED_ELEMENT__DOCUMENTATION: + return EFacetPackage.FACET_ATTRIBUTE__DOCUMENTATION; + default: + return -1; + } + } + if (baseClass == FacetElement.class) { + switch (baseFeatureID) { + case EFacetPackage.FACET_ELEMENT__CATEGORIES: + return EFacetPackage.FACET_ATTRIBUTE__CATEGORIES; + default: + return -1; + } + } + if (baseClass == DerivedTypedElement.class) { + switch (baseFeatureID) { + case EFacetPackage.DERIVED_TYPED_ELEMENT__QUERY: + return EFacetPackage.FACET_ATTRIBUTE__QUERY; + case EFacetPackage.DERIVED_TYPED_ELEMENT__OVERRIDE: + return EFacetPackage.FACET_ATTRIBUTE__OVERRIDE; + default: + return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (documentation: "); //$NON-NLS-1$ + result.append(documentation); + result.append(')'); + return result.toString(); + } + +} // FacetAttributeImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetElementImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetElementImpl.java new file mode 100644 index 00000000000..693b843ac26 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetElementImpl.java @@ -0,0 +1,269 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.ETypedElementImpl; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Category; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetElement; + +/** + * + * An implementation of the model object 'Facet Element'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetElementImpl#getDocumentation Documentation}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetElementImpl#getCategories Categories}
  • + *
+ * + * @generated + */ +public abstract class FacetElementImpl extends ETypedElementImpl implements FacetElement { + /** + * The default value of the '{@link #getDocumentation() Documentation}' attribute. + * + * + * + * @see #getDocumentation() + * @generated + * @ordered + */ + protected static final String DOCUMENTATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDocumentation() Documentation}' attribute. + * + * + * + * @see #getDocumentation() + * @generated + * @ordered + */ + protected String documentation = DOCUMENTATION_EDEFAULT; + + /** + * The cached value of the '{@link #getCategories() Categories}' reference list. + * + * + * + * @see #getCategories() + * @generated + * @ordered + */ + protected EList categories; + + /** + * + * + * + * @generated + */ + protected FacetElementImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return EFacetPackage.Literals.FACET_ELEMENT; + } + + /** + * + * + * + * @generated + */ + public String getDocumentation() { + return documentation; + } + + /** + * + * + * + * @generated + */ + public void setDocumentation(String newDocumentation) { + String oldDocumentation = documentation; + documentation = newDocumentation; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.FACET_ELEMENT__DOCUMENTATION, oldDocumentation, documentation)); + } + } + + /** + * + * + * + * @generated + */ + public EList getCategories() { + if (categories == null) { + categories = new EObjectResolvingEList(Category.class, this, EFacetPackage.FACET_ELEMENT__CATEGORIES); + } + return categories; + } + + /** + * + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case EFacetPackage.FACET_ELEMENT__DOCUMENTATION: + return getDocumentation(); + case EFacetPackage.FACET_ELEMENT__CATEGORIES: + return getCategories(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case EFacetPackage.FACET_ELEMENT__DOCUMENTATION: + setDocumentation((String) newValue); + return; + case EFacetPackage.FACET_ELEMENT__CATEGORIES: + getCategories().clear(); + getCategories().addAll((Collection) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case EFacetPackage.FACET_ELEMENT__DOCUMENTATION: + setDocumentation(DOCUMENTATION_EDEFAULT); + return; + case EFacetPackage.FACET_ELEMENT__CATEGORIES: + getCategories().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case EFacetPackage.FACET_ELEMENT__DOCUMENTATION: + return DOCUMENTATION_EDEFAULT == null ? documentation != null : !DOCUMENTATION_EDEFAULT.equals(documentation); + case EFacetPackage.FACET_ELEMENT__CATEGORIES: + return categories != null && !categories.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { + if (baseClass == DocumentedElement.class) { + switch (derivedFeatureID) { + case EFacetPackage.FACET_ELEMENT__DOCUMENTATION: + return EFacetPackage.DOCUMENTED_ELEMENT__DOCUMENTATION; + default: + return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { + if (baseClass == DocumentedElement.class) { + switch (baseFeatureID) { + case EFacetPackage.DOCUMENTED_ELEMENT__DOCUMENTATION: + return EFacetPackage.FACET_ELEMENT__DOCUMENTATION; + default: + return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (documentation: "); //$NON-NLS-1$ + result.append(documentation); + result.append(')'); + return result.toString(); + } + +} // FacetElementImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetImpl.java new file mode 100644 index 00000000000..ca9a6433929 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetImpl.java @@ -0,0 +1,647 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning + * Gregoire Dupe (Mia-Software) - Bug 376576 - [EFacet] Change the multiplicity of Facet::extendedFacet + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.BasicEList; +import org.eclipse.emf.common.util.ECollections; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.common.util.UniqueEList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.emf.ecore.ETypedElement; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.EClassifierImpl; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.emf.ecore.util.EcoreEList; +import org.eclipse.emf.ecore.util.InternalEList; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetOperation; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetSet; + +/** + * + * An implementation of the model object 'Facet'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetImpl#getDocumentation Documentation}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetImpl#getExtendedMetaclass Extended Metaclass}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetImpl#getFacetElements Facet Elements}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetImpl#getFacetOperations Facet Operations}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetImpl#getConformanceTypedElement Conformance Typed Element}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetImpl#getExtendedFacets Extended Facets}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetImpl#getAllTypedElements All Typed Elements}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetImpl#getAllFacetOperations All Facet Operations}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetImpl#getAllFacetElements All Facet Elements}
  • + *
+ * + * @generated + */ +public class FacetImpl extends EClassifierImpl implements Facet { + /** + * The default value of the '{@link #getDocumentation() Documentation}' attribute. + * + * + * + * @see #getDocumentation() + * @generated + * @ordered + */ + protected static final String DOCUMENTATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDocumentation() Documentation}' attribute. + * + * + * + * @see #getDocumentation() + * @generated + * @ordered + */ + protected String documentation = DOCUMENTATION_EDEFAULT; + + /** + * The cached value of the '{@link #getExtendedMetaclass() Extended Metaclass}' reference. + * + * + * + * @see #getExtendedMetaclass() + * @generated + * @ordered + */ + protected EClass extendedMetaclass; + + /** + * The cached value of the '{@link #getFacetElements() Facet Elements}' containment reference list. + * + * + * + * @see #getFacetElements() + * @generated + * @ordered + */ + protected EList facetElements; + + /** + * The cached value of the '{@link #getFacetOperations() Facet Operations}' containment reference list. + * + * + * + * @see #getFacetOperations() + * @generated + * @ordered + */ + protected EList facetOperations; + + /** + * The cached value of the '{@link #getConformanceTypedElement() Conformance Typed Element}' reference. + * + * + * + * @see #getConformanceTypedElement() + * @generated + * @ordered + */ + protected ETypedElement conformanceTypedElement; + + /** + * The cached value of the '{@link #getExtendedFacets() Extended Facets}' reference list. + * + * + * + * @see #getExtendedFacets() + * @generated + * @ordered + */ + protected EList extendedFacets; + + /** + * The cached value of the '{@link #getAllTypedElements() All Typed Elements}' reference list. + * + * + * + * @see #getAllTypedElements() + * @generated + * @ordered + * @since 1.2 + */ + protected EList allTypedElements; + + /** + * The cached value of the '{@link #getAllFacetOperations() All Facet Operations}' reference list. + * + * + * + * @see #getAllFacetOperations() + * @generated + * @ordered + * @since 1.2 + */ + protected EList allFacetOperations; + + /** + * The cached value of the '{@link #getAllFacetElements() All Facet Elements}' reference list. + * + * + * + * @see #getAllFacetElements() + * @generated + * @ordered + * @since 1.2 + */ + protected EList allFacetElements; + + /** + * + * + * + * @generated + */ + protected FacetImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return EFacetPackage.Literals.FACET; + } + + /** + * + * + * + * @generated + */ + public String getDocumentation() { + return documentation; + } + + /** + * + * + * + * @generated + */ + public void setDocumentation(String newDocumentation) { + String oldDocumentation = documentation; + documentation = newDocumentation; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.FACET__DOCUMENTATION, oldDocumentation, documentation)); + } + } + + /** + * + * + * + * @generated NOT + */ + public FacetSet basicGetFacetSet() { + if (getEPackage() instanceof FacetSet) { + FacetSet facetSet = (FacetSet) getEPackage(); + return facetSet; + } + return null; + } + + /** + * + * + * + * @generated NOT + */ + public void setFacetSet(final FacetSet newFacetSet) { + newFacetSet.getEClassifiers().add(this); + } + + /** + * + * + * + * @generated + */ + public EClass getExtendedMetaclass() { + if (extendedMetaclass != null && extendedMetaclass.eIsProxy()) { + InternalEObject oldExtendedMetaclass = (InternalEObject) extendedMetaclass; + extendedMetaclass = (EClass) eResolveProxy(oldExtendedMetaclass); + if (extendedMetaclass != oldExtendedMetaclass) { + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.RESOLVE, EFacetPackage.FACET__EXTENDED_METACLASS, oldExtendedMetaclass, extendedMetaclass)); + } + } + } + return extendedMetaclass; + } + + /** + * + * + * + * @generated NOT + */ + public EClass basicGetExtendedMetaclass() { + if (this.extendedMetaclass != null && this.extendedMetaclass.eIsProxy()) { + InternalEObject oldExtendedMetaclass = (InternalEObject) this.extendedMetaclass; + this.extendedMetaclass = (EClass) eResolveProxy(oldExtendedMetaclass); + if (this.extendedMetaclass != oldExtendedMetaclass) { + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.RESOLVE, EFacetPackage.FACET__EXTENDED_METACLASS, oldExtendedMetaclass, this.extendedMetaclass)); + } + } + } + return this.extendedMetaclass; + } + + /** + * + * + * + * @generated + */ + public void setExtendedMetaclass(EClass newExtendedMetaclass) { + EClass oldExtendedMetaclass = extendedMetaclass; + extendedMetaclass = newExtendedMetaclass; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.FACET__EXTENDED_METACLASS, oldExtendedMetaclass, extendedMetaclass)); + } + } + + /** + * + * + * + * @generated + */ + public EList getFacetElements() { + if (facetElements == null) { + facetElements = new EObjectContainmentEList(EStructuralFeature.class, this, EFacetPackage.FACET__FACET_ELEMENTS); + } + return facetElements; + } + + /** + * + * + * + * @generated + */ + public EList getFacetOperations() { + if (facetOperations == null) { + facetOperations = new EObjectContainmentEList(FacetOperation.class, this, EFacetPackage.FACET__FACET_OPERATIONS); + } + return facetOperations; + } + + /** + * + * + * + * @generated + */ + public ETypedElement getConformanceTypedElement() { + if (conformanceTypedElement != null && conformanceTypedElement.eIsProxy()) { + InternalEObject oldConformanceTypedElement = (InternalEObject) conformanceTypedElement; + conformanceTypedElement = (ETypedElement) eResolveProxy(oldConformanceTypedElement); + if (conformanceTypedElement != oldConformanceTypedElement) { + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.RESOLVE, EFacetPackage.FACET__CONFORMANCE_TYPED_ELEMENT, oldConformanceTypedElement, conformanceTypedElement)); + } + } + } + return conformanceTypedElement; + } + + /** + * + * + * + * @generated + */ + public ETypedElement basicGetConformanceTypedElement() { + return conformanceTypedElement; + } + + /** + * + * + * + * @generated + */ + public void setConformanceTypedElement(ETypedElement newConformanceTypedElement) { + ETypedElement oldConformanceTypedElement = conformanceTypedElement; + conformanceTypedElement = newConformanceTypedElement; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.FACET__CONFORMANCE_TYPED_ELEMENT, oldConformanceTypedElement, conformanceTypedElement)); + } + } + + /** + * + * + * + * @generated + */ + public EList getExtendedFacets() { + if (extendedFacets == null) { + extendedFacets = new EObjectResolvingEList(Facet.class, this, EFacetPackage.FACET__EXTENDED_FACETS); + } + return extendedFacets; + } + + /** + * + * + * + * @generated NOT + * @since 1.2 + */ + public EList getAllTypedElements() { + if (allTypedElements == null) { + allTypedElements = new BasicEList(); + allTypedElements.addAll(getAllFacetElements()); + allTypedElements.addAll(getAllFacetOperations()); + allTypedElements = new EcoreEList.UnmodifiableEList(this,EFacetPackage.eINSTANCE.getFacet_AllTypedElements(),allTypedElements.size(), allTypedElements.toArray()); + } + return allTypedElements; + } + + /** + * + * + * + * @generated NOT + * @since 1.2 + */ + public EList getAllFacetOperations() { + if (allFacetOperations == null) { + allFacetOperations = new UniqueEList.FastCompare(); + for (Facet facet : getExtendedFacets()) { + allFacetOperations.addAll(facet.getAllFacetOperations()); + } + allFacetOperations.addAll(getFacetOperations()); + allFacetOperations = new EcoreEList.UnmodifiableEList(this,EFacetPackage.eINSTANCE.getFacet_AllFacetOperations(),allFacetOperations.size(), allFacetOperations.toArray()); + } + return allFacetOperations; + } + + /** + * + * + * + * @generated NOT + * @since 1.2 + */ + public EList getAllFacetElements() { + if (allFacetElements == null) { + allFacetElements = new UniqueEList.FastCompare(); + for (Facet facet : getExtendedFacets()) { + allFacetElements.addAll(facet.getAllFacetElements()); + } + allFacetElements.addAll(getFacetElements()); + allFacetElements = new EcoreEList.UnmodifiableEList(this,EFacetPackage.eINSTANCE.getFacet_AllFacetElements(),allFacetElements.size(), allFacetElements.toArray()); + } + return allFacetElements; + } + + /** + * + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case EFacetPackage.FACET__FACET_ELEMENTS: + return ((InternalEList) getFacetElements()).basicRemove(otherEnd, msgs); + case EFacetPackage.FACET__FACET_OPERATIONS: + return ((InternalEList) getFacetOperations()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case EFacetPackage.FACET__DOCUMENTATION: + return getDocumentation(); + case EFacetPackage.FACET__EXTENDED_METACLASS: + if (resolve) { + return getExtendedMetaclass(); + } + return basicGetExtendedMetaclass(); + case EFacetPackage.FACET__FACET_ELEMENTS: + return getFacetElements(); + case EFacetPackage.FACET__FACET_OPERATIONS: + return getFacetOperations(); + case EFacetPackage.FACET__CONFORMANCE_TYPED_ELEMENT: + if (resolve) { + return getConformanceTypedElement(); + } + return basicGetConformanceTypedElement(); + case EFacetPackage.FACET__EXTENDED_FACETS: + return getExtendedFacets(); + case EFacetPackage.FACET__ALL_TYPED_ELEMENTS: + return getAllTypedElements(); + case EFacetPackage.FACET__ALL_FACET_OPERATIONS: + return getAllFacetOperations(); + case EFacetPackage.FACET__ALL_FACET_ELEMENTS: + return getAllFacetElements(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case EFacetPackage.FACET__DOCUMENTATION: + setDocumentation((String) newValue); + return; + case EFacetPackage.FACET__EXTENDED_METACLASS: + setExtendedMetaclass((EClass) newValue); + return; + case EFacetPackage.FACET__FACET_ELEMENTS: + getFacetElements().clear(); + getFacetElements().addAll((Collection) newValue); + return; + case EFacetPackage.FACET__FACET_OPERATIONS: + getFacetOperations().clear(); + getFacetOperations().addAll((Collection) newValue); + return; + case EFacetPackage.FACET__CONFORMANCE_TYPED_ELEMENT: + setConformanceTypedElement((ETypedElement) newValue); + return; + case EFacetPackage.FACET__EXTENDED_FACETS: + getExtendedFacets().clear(); + getExtendedFacets().addAll((Collection) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case EFacetPackage.FACET__DOCUMENTATION: + setDocumentation(DOCUMENTATION_EDEFAULT); + return; + case EFacetPackage.FACET__EXTENDED_METACLASS: + setExtendedMetaclass((EClass) null); + return; + case EFacetPackage.FACET__FACET_ELEMENTS: + getFacetElements().clear(); + return; + case EFacetPackage.FACET__FACET_OPERATIONS: + getFacetOperations().clear(); + return; + case EFacetPackage.FACET__CONFORMANCE_TYPED_ELEMENT: + setConformanceTypedElement((ETypedElement) null); + return; + case EFacetPackage.FACET__EXTENDED_FACETS: + getExtendedFacets().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case EFacetPackage.FACET__DOCUMENTATION: + return DOCUMENTATION_EDEFAULT == null ? documentation != null : !DOCUMENTATION_EDEFAULT.equals(documentation); + case EFacetPackage.FACET__EXTENDED_METACLASS: + return extendedMetaclass != null; + case EFacetPackage.FACET__FACET_ELEMENTS: + return facetElements != null && !facetElements.isEmpty(); + case EFacetPackage.FACET__FACET_OPERATIONS: + return facetOperations != null && !facetOperations.isEmpty(); + case EFacetPackage.FACET__CONFORMANCE_TYPED_ELEMENT: + return conformanceTypedElement != null; + case EFacetPackage.FACET__EXTENDED_FACETS: + return extendedFacets != null && !extendedFacets.isEmpty(); + case EFacetPackage.FACET__ALL_TYPED_ELEMENTS: + return allTypedElements != null && !allTypedElements.isEmpty(); + case EFacetPackage.FACET__ALL_FACET_OPERATIONS: + return allFacetOperations != null && !allFacetOperations.isEmpty(); + case EFacetPackage.FACET__ALL_FACET_ELEMENTS: + return allFacetElements != null && !allFacetElements.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { + if (baseClass == DocumentedElement.class) { + switch (derivedFeatureID) { + case EFacetPackage.FACET__DOCUMENTATION: + return EFacetPackage.DOCUMENTED_ELEMENT__DOCUMENTATION; + default: + return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { + if (baseClass == DocumentedElement.class) { + switch (baseFeatureID) { + case EFacetPackage.DOCUMENTED_ELEMENT__DOCUMENTATION: + return EFacetPackage.FACET__DOCUMENTATION; + default: + return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (documentation: "); //$NON-NLS-1$ + result.append(documentation); + result.append(')'); + return result.toString(); + } + +} // FacetImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetOperationImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetOperationImpl.java new file mode 100644 index 00000000000..fc23d0e9adb --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetOperationImpl.java @@ -0,0 +1,469 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EOperationImpl; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Category; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetElement; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetOperation; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; + +/** + * + * An implementation of the model object 'Facet Operation'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetOperationImpl#getDocumentation Documentation}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetOperationImpl#getCategories Categories}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetOperationImpl#getQuery Query}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetOperationImpl#getOverride Override}
  • + *
+ * + * @generated + */ +public class FacetOperationImpl extends EOperationImpl implements FacetOperation { + /** + * The default value of the '{@link #getDocumentation() Documentation}' attribute. + * + * + * + * @see #getDocumentation() + * @generated + * @ordered + */ + protected static final String DOCUMENTATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDocumentation() Documentation}' attribute. + * + * + * + * @see #getDocumentation() + * @generated + * @ordered + */ + protected String documentation = DOCUMENTATION_EDEFAULT; + + /** + * The cached value of the '{@link #getCategories() Categories}' reference list. + * + * + * + * @see #getCategories() + * @generated + * @ordered + */ + protected EList categories; + + /** + * The cached value of the '{@link #getQuery() Query}' containment reference. + * + * + * + * @see #getQuery() + * @generated + * @ordered + */ + protected Query query; + + /** + * The cached value of the '{@link #getOverride() Override}' reference. + * + * + * + * @see #getOverride() + * @generated + * @ordered + */ + protected DerivedTypedElement override; + + /** + * + * + * + * @generated + */ + protected FacetOperationImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return EFacetPackage.Literals.FACET_OPERATION; + } + + /** + * + * + * + * @generated + */ + public String getDocumentation() { + return documentation; + } + + /** + * + * + * + * @generated + */ + public void setDocumentation(String newDocumentation) { + String oldDocumentation = documentation; + documentation = newDocumentation; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.FACET_OPERATION__DOCUMENTATION, oldDocumentation, documentation)); + } + } + + /** + * + * + * + * @generated + */ + public EList getCategories() { + if (categories == null) { + categories = new EObjectResolvingEList(Category.class, this, EFacetPackage.FACET_OPERATION__CATEGORIES); + } + return categories; + } + + /** + * + * + * + * @generated + */ + public Query getQuery() { + return query; + } + + /** + * + * + * + * @generated + */ + public NotificationChain basicSetQuery(Query newQuery, NotificationChain msgs) { + Query oldQuery = query; + query = newQuery; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EFacetPackage.FACET_OPERATION__QUERY, oldQuery, newQuery); + if (msgs == null) { + msgs = notification; + } else { + msgs.add(notification); + } + } + return msgs; + } + + /** + * + * + * + * @generated + */ + public void setQuery(Query newQuery) { + if (newQuery != query) { + NotificationChain msgs = null; + if (query != null) { + msgs = ((InternalEObject) query).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EFacetPackage.FACET_OPERATION__QUERY, null, msgs); + } + if (newQuery != null) { + msgs = ((InternalEObject) newQuery).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EFacetPackage.FACET_OPERATION__QUERY, null, msgs); + } + msgs = basicSetQuery(newQuery, msgs); + if (msgs != null) { + msgs.dispatch(); + } + } else if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.FACET_OPERATION__QUERY, newQuery, newQuery)); + } + } + + /** + * + * + * + * @generated + */ + public DerivedTypedElement getOverride() { + if (override != null && override.eIsProxy()) { + InternalEObject oldOverride = (InternalEObject) override; + override = (DerivedTypedElement) eResolveProxy(oldOverride); + if (override != oldOverride) { + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.RESOLVE, EFacetPackage.FACET_OPERATION__OVERRIDE, oldOverride, override)); + } + } + } + return override; + } + + /** + * + * + * + * @generated + */ + public DerivedTypedElement basicGetOverride() { + return override; + } + + /** + * + * + * + * @generated + */ + public void setOverride(DerivedTypedElement newOverride) { + DerivedTypedElement oldOverride = override; + override = newOverride; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.FACET_OPERATION__OVERRIDE, oldOverride, override)); + } + } + + /** + * + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case EFacetPackage.FACET_OPERATION__QUERY: + return basicSetQuery(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case EFacetPackage.FACET_OPERATION__DOCUMENTATION: + return getDocumentation(); + case EFacetPackage.FACET_OPERATION__CATEGORIES: + return getCategories(); + case EFacetPackage.FACET_OPERATION__QUERY: + return getQuery(); + case EFacetPackage.FACET_OPERATION__OVERRIDE: + if (resolve) { + return getOverride(); + } + return basicGetOverride(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case EFacetPackage.FACET_OPERATION__DOCUMENTATION: + setDocumentation((String) newValue); + return; + case EFacetPackage.FACET_OPERATION__CATEGORIES: + getCategories().clear(); + getCategories().addAll((Collection) newValue); + return; + case EFacetPackage.FACET_OPERATION__QUERY: + setQuery((Query) newValue); + return; + case EFacetPackage.FACET_OPERATION__OVERRIDE: + setOverride((DerivedTypedElement) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case EFacetPackage.FACET_OPERATION__DOCUMENTATION: + setDocumentation(DOCUMENTATION_EDEFAULT); + return; + case EFacetPackage.FACET_OPERATION__CATEGORIES: + getCategories().clear(); + return; + case EFacetPackage.FACET_OPERATION__QUERY: + setQuery((Query) null); + return; + case EFacetPackage.FACET_OPERATION__OVERRIDE: + setOverride((DerivedTypedElement) null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case EFacetPackage.FACET_OPERATION__DOCUMENTATION: + return DOCUMENTATION_EDEFAULT == null ? documentation != null : !DOCUMENTATION_EDEFAULT.equals(documentation); + case EFacetPackage.FACET_OPERATION__CATEGORIES: + return categories != null && !categories.isEmpty(); + case EFacetPackage.FACET_OPERATION__QUERY: + return query != null; + case EFacetPackage.FACET_OPERATION__OVERRIDE: + return override != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { + if (baseClass == DocumentedElement.class) { + switch (derivedFeatureID) { + case EFacetPackage.FACET_OPERATION__DOCUMENTATION: + return EFacetPackage.DOCUMENTED_ELEMENT__DOCUMENTATION; + default: + return -1; + } + } + if (baseClass == FacetElement.class) { + switch (derivedFeatureID) { + case EFacetPackage.FACET_OPERATION__CATEGORIES: + return EFacetPackage.FACET_ELEMENT__CATEGORIES; + default: + return -1; + } + } + if (baseClass == DerivedTypedElement.class) { + switch (derivedFeatureID) { + case EFacetPackage.FACET_OPERATION__QUERY: + return EFacetPackage.DERIVED_TYPED_ELEMENT__QUERY; + case EFacetPackage.FACET_OPERATION__OVERRIDE: + return EFacetPackage.DERIVED_TYPED_ELEMENT__OVERRIDE; + default: + return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { + if (baseClass == DocumentedElement.class) { + switch (baseFeatureID) { + case EFacetPackage.DOCUMENTED_ELEMENT__DOCUMENTATION: + return EFacetPackage.FACET_OPERATION__DOCUMENTATION; + default: + return -1; + } + } + if (baseClass == FacetElement.class) { + switch (baseFeatureID) { + case EFacetPackage.FACET_ELEMENT__CATEGORIES: + return EFacetPackage.FACET_OPERATION__CATEGORIES; + default: + return -1; + } + } + if (baseClass == DerivedTypedElement.class) { + switch (baseFeatureID) { + case EFacetPackage.DERIVED_TYPED_ELEMENT__QUERY: + return EFacetPackage.FACET_OPERATION__QUERY; + case EFacetPackage.DERIVED_TYPED_ELEMENT__OVERRIDE: + return EFacetPackage.FACET_OPERATION__OVERRIDE; + default: + return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (documentation: "); //$NON-NLS-1$ + result.append(documentation); + result.append(')'); + return result.toString(); + } + +} // FacetOperationImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetReferenceImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetReferenceImpl.java new file mode 100644 index 00000000000..f64a6f00fe4 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetReferenceImpl.java @@ -0,0 +1,469 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EReferenceImpl; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Category; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetElement; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetReference; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; + +/** + * + * An implementation of the model object 'Facet Reference'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetReferenceImpl#getDocumentation Documentation}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetReferenceImpl#getCategories Categories}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetReferenceImpl#getQuery Query}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetReferenceImpl#getOverride Override}
  • + *
+ * + * @generated + */ +public class FacetReferenceImpl extends EReferenceImpl implements FacetReference { + /** + * The default value of the '{@link #getDocumentation() Documentation}' attribute. + * + * + * + * @see #getDocumentation() + * @generated + * @ordered + */ + protected static final String DOCUMENTATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDocumentation() Documentation}' attribute. + * + * + * + * @see #getDocumentation() + * @generated + * @ordered + */ + protected String documentation = DOCUMENTATION_EDEFAULT; + + /** + * The cached value of the '{@link #getCategories() Categories}' reference list. + * + * + * + * @see #getCategories() + * @generated + * @ordered + */ + protected EList categories; + + /** + * The cached value of the '{@link #getQuery() Query}' containment reference. + * + * + * + * @see #getQuery() + * @generated + * @ordered + */ + protected Query query; + + /** + * The cached value of the '{@link #getOverride() Override}' reference. + * + * + * + * @see #getOverride() + * @generated + * @ordered + */ + protected DerivedTypedElement override; + + /** + * + * + * + * @generated + */ + protected FacetReferenceImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return EFacetPackage.Literals.FACET_REFERENCE; + } + + /** + * + * + * + * @generated + */ + public String getDocumentation() { + return documentation; + } + + /** + * + * + * + * @generated + */ + public void setDocumentation(String newDocumentation) { + String oldDocumentation = documentation; + documentation = newDocumentation; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.FACET_REFERENCE__DOCUMENTATION, oldDocumentation, documentation)); + } + } + + /** + * + * + * + * @generated + */ + public EList getCategories() { + if (categories == null) { + categories = new EObjectResolvingEList(Category.class, this, EFacetPackage.FACET_REFERENCE__CATEGORIES); + } + return categories; + } + + /** + * + * + * + * @generated + */ + public Query getQuery() { + return query; + } + + /** + * + * + * + * @generated + */ + public NotificationChain basicSetQuery(Query newQuery, NotificationChain msgs) { + Query oldQuery = query; + query = newQuery; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EFacetPackage.FACET_REFERENCE__QUERY, oldQuery, newQuery); + if (msgs == null) { + msgs = notification; + } else { + msgs.add(notification); + } + } + return msgs; + } + + /** + * + * + * + * @generated + */ + public void setQuery(Query newQuery) { + if (newQuery != query) { + NotificationChain msgs = null; + if (query != null) { + msgs = ((InternalEObject) query).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EFacetPackage.FACET_REFERENCE__QUERY, null, msgs); + } + if (newQuery != null) { + msgs = ((InternalEObject) newQuery).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EFacetPackage.FACET_REFERENCE__QUERY, null, msgs); + } + msgs = basicSetQuery(newQuery, msgs); + if (msgs != null) { + msgs.dispatch(); + } + } else if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.FACET_REFERENCE__QUERY, newQuery, newQuery)); + } + } + + /** + * + * + * + * @generated + */ + public DerivedTypedElement getOverride() { + if (override != null && override.eIsProxy()) { + InternalEObject oldOverride = (InternalEObject) override; + override = (DerivedTypedElement) eResolveProxy(oldOverride); + if (override != oldOverride) { + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.RESOLVE, EFacetPackage.FACET_REFERENCE__OVERRIDE, oldOverride, override)); + } + } + } + return override; + } + + /** + * + * + * + * @generated + */ + public DerivedTypedElement basicGetOverride() { + return override; + } + + /** + * + * + * + * @generated + */ + public void setOverride(DerivedTypedElement newOverride) { + DerivedTypedElement oldOverride = override; + override = newOverride; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.FACET_REFERENCE__OVERRIDE, oldOverride, override)); + } + } + + /** + * + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case EFacetPackage.FACET_REFERENCE__QUERY: + return basicSetQuery(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case EFacetPackage.FACET_REFERENCE__DOCUMENTATION: + return getDocumentation(); + case EFacetPackage.FACET_REFERENCE__CATEGORIES: + return getCategories(); + case EFacetPackage.FACET_REFERENCE__QUERY: + return getQuery(); + case EFacetPackage.FACET_REFERENCE__OVERRIDE: + if (resolve) { + return getOverride(); + } + return basicGetOverride(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case EFacetPackage.FACET_REFERENCE__DOCUMENTATION: + setDocumentation((String) newValue); + return; + case EFacetPackage.FACET_REFERENCE__CATEGORIES: + getCategories().clear(); + getCategories().addAll((Collection) newValue); + return; + case EFacetPackage.FACET_REFERENCE__QUERY: + setQuery((Query) newValue); + return; + case EFacetPackage.FACET_REFERENCE__OVERRIDE: + setOverride((DerivedTypedElement) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case EFacetPackage.FACET_REFERENCE__DOCUMENTATION: + setDocumentation(DOCUMENTATION_EDEFAULT); + return; + case EFacetPackage.FACET_REFERENCE__CATEGORIES: + getCategories().clear(); + return; + case EFacetPackage.FACET_REFERENCE__QUERY: + setQuery((Query) null); + return; + case EFacetPackage.FACET_REFERENCE__OVERRIDE: + setOverride((DerivedTypedElement) null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case EFacetPackage.FACET_REFERENCE__DOCUMENTATION: + return DOCUMENTATION_EDEFAULT == null ? documentation != null : !DOCUMENTATION_EDEFAULT.equals(documentation); + case EFacetPackage.FACET_REFERENCE__CATEGORIES: + return categories != null && !categories.isEmpty(); + case EFacetPackage.FACET_REFERENCE__QUERY: + return query != null; + case EFacetPackage.FACET_REFERENCE__OVERRIDE: + return override != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { + if (baseClass == DocumentedElement.class) { + switch (derivedFeatureID) { + case EFacetPackage.FACET_REFERENCE__DOCUMENTATION: + return EFacetPackage.DOCUMENTED_ELEMENT__DOCUMENTATION; + default: + return -1; + } + } + if (baseClass == FacetElement.class) { + switch (derivedFeatureID) { + case EFacetPackage.FACET_REFERENCE__CATEGORIES: + return EFacetPackage.FACET_ELEMENT__CATEGORIES; + default: + return -1; + } + } + if (baseClass == DerivedTypedElement.class) { + switch (derivedFeatureID) { + case EFacetPackage.FACET_REFERENCE__QUERY: + return EFacetPackage.DERIVED_TYPED_ELEMENT__QUERY; + case EFacetPackage.FACET_REFERENCE__OVERRIDE: + return EFacetPackage.DERIVED_TYPED_ELEMENT__OVERRIDE; + default: + return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { + if (baseClass == DocumentedElement.class) { + switch (baseFeatureID) { + case EFacetPackage.DOCUMENTED_ELEMENT__DOCUMENTATION: + return EFacetPackage.FACET_REFERENCE__DOCUMENTATION; + default: + return -1; + } + } + if (baseClass == FacetElement.class) { + switch (baseFeatureID) { + case EFacetPackage.FACET_ELEMENT__CATEGORIES: + return EFacetPackage.FACET_REFERENCE__CATEGORIES; + default: + return -1; + } + } + if (baseClass == DerivedTypedElement.class) { + switch (baseFeatureID) { + case EFacetPackage.DERIVED_TYPED_ELEMENT__QUERY: + return EFacetPackage.FACET_REFERENCE__QUERY; + case EFacetPackage.DERIVED_TYPED_ELEMENT__OVERRIDE: + return EFacetPackage.FACET_REFERENCE__OVERRIDE; + default: + return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (documentation: "); //$NON-NLS-1$ + result.append(documentation); + result.append(')'); + return result.toString(); + } + +} // FacetReferenceImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetSetImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetSetImpl.java new file mode 100644 index 00000000000..6b9bc0f05c5 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetSetImpl.java @@ -0,0 +1,344 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.BasicEList; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EClassifier; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EPackageImpl; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Category; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetSet; + +/** + * + * An implementation of the model object 'Facet Set'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetSetImpl#getDocumentation Documentation}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetSetImpl#getCategories Categories}
  • + *
+ * + * @generated + */ +public class FacetSetImpl extends EPackageImpl implements FacetSet { + /** + * The default value of the '{@link #getDocumentation() Documentation}' attribute. + * + * + * + * @see #getDocumentation() + * @generated + * @ordered + */ + protected static final String DOCUMENTATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDocumentation() Documentation}' attribute. + * + * + * + * @see #getDocumentation() + * @generated + * @ordered + */ + protected String documentation = DOCUMENTATION_EDEFAULT; + + /** + * The cached value of the '{@link #getCategories() Categories}' containment reference list. + * + * + * + * @see #getCategories() + * @generated + * @ordered + */ + protected EList categories; + + /** + * + * + * + * @generated + */ + protected FacetSetImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return EFacetPackage.Literals.FACET_SET; + } + + /** + * + * + * + * @generated + */ + public String getDocumentation() { + return documentation; + } + + /** + * + * + * + * @generated + */ + public void setDocumentation(String newDocumentation) { + String oldDocumentation = documentation; + documentation = newDocumentation; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.FACET_SET__DOCUMENTATION, oldDocumentation, documentation)); + } + } + + /** + * + * + * + * @generated NOT + */ + public EList getFacets() { + EList facets = new BasicEList(); + for (EClassifier eClassifier : this.getEClassifiers()) { + if (eClassifier instanceof Facet) { + Facet facet = (Facet) eClassifier; + facets.add(facet); + } + } + return facets; + } + + /** + * + * + * + * @generated + */ + public EList getCategories() { + if (categories == null) { + categories = new EObjectContainmentEList(Category.class, this, EFacetPackage.FACET_SET__CATEGORIES); + } + return categories; + } + + /** + * + * + * + * @generated NOT + */ + public EPackage basicGetExtendedEPackage() { + EList facets = getFacets(); + EPackage result = null; + for (Facet facet : facets) { + EClass extendedMetaclass = facet.getExtendedMetaclass(); + if (extendedMetaclass != null) { + EPackage ePackage = extendedMetaclass.getEPackage(); + if (ePackage != null) { + if (result != null && ePackage != result) { + throw new IllegalStateException("The Facets in a FacetSet must all extend EClasses from the same EPackage"); + } + result = ePackage; + } + } + } + return result; + } + + /** + * + * + * + * @generated NOT + */ + public EList getFacetSets() { + return new BasicEList(); + } + + /** + * + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case EFacetPackage.FACET_SET__CATEGORIES: + return ((InternalEList) getCategories()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case EFacetPackage.FACET_SET__DOCUMENTATION: + return getDocumentation(); + case EFacetPackage.FACET_SET__CATEGORIES: + return getCategories(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case EFacetPackage.FACET_SET__DOCUMENTATION: + setDocumentation((String) newValue); + return; + case EFacetPackage.FACET_SET__CATEGORIES: + getCategories().clear(); + getCategories().addAll((Collection) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case EFacetPackage.FACET_SET__DOCUMENTATION: + setDocumentation(DOCUMENTATION_EDEFAULT); + return; + case EFacetPackage.FACET_SET__CATEGORIES: + getCategories().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case EFacetPackage.FACET_SET__DOCUMENTATION: + return DOCUMENTATION_EDEFAULT == null ? documentation != null : !DOCUMENTATION_EDEFAULT.equals(documentation); + case EFacetPackage.FACET_SET__CATEGORIES: + return categories != null && !categories.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { + if (baseClass == DocumentedElement.class) { + switch (derivedFeatureID) { + case EFacetPackage.FACET_SET__DOCUMENTATION: + return EFacetPackage.DOCUMENTED_ELEMENT__DOCUMENTATION; + default: + return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { + if (baseClass == DocumentedElement.class) { + switch (baseFeatureID) { + case EFacetPackage.DOCUMENTED_ELEMENT__DOCUMENTATION: + return EFacetPackage.FACET_SET__DOCUMENTATION; + default: + return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (documentation: "); //$NON-NLS-1$ + result.append(documentation); + result.append(')'); + return result.toString(); + } + +} // FacetSetImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/ParameterValueImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/ParameterValueImpl.java new file mode 100644 index 00000000000..6e931e14dcb --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/ParameterValueImpl.java @@ -0,0 +1,258 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EParameter; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue; + +/** + * + * An implementation of the model object 'Parameter Value'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.ParameterValueImpl#getParameter Parameter}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.ParameterValueImpl#getValue Value}
  • + *
+ * + * @generated + */ +public class ParameterValueImpl extends EObjectImpl implements ParameterValue { + /** + * The cached value of the '{@link #getParameter() Parameter}' reference. + * + * + * + * @see #getParameter() + * @generated + * @ordered + */ + protected EParameter parameter; + + /** + * The default value of the '{@link #getValue() Value}' attribute. + * + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected static final Object VALUE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getValue() Value}' attribute. + * + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected Object value = VALUE_EDEFAULT; + + /** + * + * + * + * @generated + */ + protected ParameterValueImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return EFacetPackage.Literals.PARAMETER_VALUE; + } + + /** + * + * + * + * @generated + */ + public EParameter getParameter() { + if (parameter != null && parameter.eIsProxy()) { + InternalEObject oldParameter = (InternalEObject) parameter; + parameter = (EParameter) eResolveProxy(oldParameter); + if (parameter != oldParameter) { + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.RESOLVE, EFacetPackage.PARAMETER_VALUE__PARAMETER, oldParameter, parameter)); + } + } + } + return parameter; + } + + /** + * + * + * + * @generated + */ + public EParameter basicGetParameter() { + return parameter; + } + + /** + * + * + * + * @generated + */ + public void setParameter(EParameter newParameter) { + EParameter oldParameter = parameter; + parameter = newParameter; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.PARAMETER_VALUE__PARAMETER, oldParameter, parameter)); + } + } + + /** + * + * + * + * @generated + */ + public Object getValue() { + return value; + } + + /** + * + * + * + * @generated + */ + public void setValue(Object newValue) { + Object oldValue = value; + value = newValue; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.PARAMETER_VALUE__VALUE, oldValue, value)); + } + } + + /** + * + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case EFacetPackage.PARAMETER_VALUE__PARAMETER: + if (resolve) { + return getParameter(); + } + return basicGetParameter(); + case EFacetPackage.PARAMETER_VALUE__VALUE: + return getValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case EFacetPackage.PARAMETER_VALUE__PARAMETER: + setParameter((EParameter) newValue); + return; + case EFacetPackage.PARAMETER_VALUE__VALUE: + setValue(newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case EFacetPackage.PARAMETER_VALUE__PARAMETER: + setParameter((EParameter) null); + return; + case EFacetPackage.PARAMETER_VALUE__VALUE: + setValue(VALUE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case EFacetPackage.PARAMETER_VALUE__PARAMETER: + return parameter != null; + case EFacetPackage.PARAMETER_VALUE__VALUE: + return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); + } + return super.eIsSet(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (value: "); //$NON-NLS-1$ + result.append(value); + result.append(')'); + return result.toString(); + } + +} // ParameterValueImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/EObjectLiteralQuery.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/EObjectLiteralQuery.java new file mode 100644 index 00000000000..6eb58087307 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/EObjectLiteralQuery.java @@ -0,0 +1,75 @@ +/** + * Copyright (c) 2011-2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery + * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query + * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. + * Nicolas Bros (Mia-Software) - Bug 372626 - [Facet] Aggregates + * Nicolas Bros (Mia-Software) - Bug 376941 - [EFacet] Facet operation arguments in Facet model + * + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; + +/** + * + * A representation of the model object 'EObject Literal Query'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.EObjectLiteralQuery#getElement Element}
  • + *
+ * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#getEObjectLiteralQuery() + * @model + * @generated + */ +public interface EObjectLiteralQuery extends Query { + /** + * Returns the value of the 'Element' reference. + * + *

+ * If the meaning of the 'Element' reference isn't clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'Element' reference. + * @see #setElement(EObject) + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#getEObjectLiteralQuery_Element() + * @model + * @generated + */ + EObject getElement(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.EObjectLiteralQuery#getElement Element}' reference. + * + * + * + * @param value + * the new value of the 'Element' reference. + * @see #getElement() + * @generated + */ + void setElement(EObject value); + +} // EObjectLiteralQuery diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/FalseLiteralQuery.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/FalseLiteralQuery.java new file mode 100644 index 00000000000..9f9a9f1e5a0 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/FalseLiteralQuery.java @@ -0,0 +1,40 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery + * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query + * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query; + +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; + +/** + * + * A representation of the model object 'False Literal Query'. + * + * + * + * This query retrun false. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#getFalseLiteralQuery() + * @model + * @generated + */ +public interface FalseLiteralQuery extends Query { +} // FalseLiteralQuery diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/FloatLiteralQuery.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/FloatLiteralQuery.java new file mode 100644 index 00000000000..399dba0e702 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/FloatLiteralQuery.java @@ -0,0 +1,74 @@ +/** + * Copyright (c) 2011-2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery + * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query + * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. + * Nicolas Bros (Mia-Software) - Bug 372626 - [Facet] Aggregates + * Nicolas Bros (Mia-Software) - Bug 376941 - [EFacet] Facet operation arguments in Facet model + * + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query; + +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; + +/** + * + * A representation of the model object 'Float Literal Query'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FloatLiteralQuery#getValue Value}
  • + *
+ * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#getFloatLiteralQuery() + * @model + * @generated + */ +public interface FloatLiteralQuery extends Query { + /** + * Returns the value of the 'Value' attribute. + * + *

+ * If the meaning of the 'Value' attribute isn't clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'Value' attribute. + * @see #setValue(float) + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#getFloatLiteralQuery_Value() + * @model + * @generated + */ + float getValue(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FloatLiteralQuery#getValue Value}' attribute. + * + * + * + * @param value + * the new value of the 'Value' attribute. + * @see #getValue() + * @generated + */ + void setValue(float value); + +} // FloatLiteralQuery diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/IntegerLiteralQuery.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/IntegerLiteralQuery.java new file mode 100644 index 00000000000..0dccf2f6852 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/IntegerLiteralQuery.java @@ -0,0 +1,74 @@ +/** + * Copyright (c) 2011-2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery + * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query + * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. + * Nicolas Bros (Mia-Software) - Bug 372626 - [Facet] Aggregates + * Nicolas Bros (Mia-Software) - Bug 376941 - [EFacet] Facet operation arguments in Facet model + * + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query; + +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; + +/** + * + * A representation of the model object 'Integer Literal Query'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IntegerLiteralQuery#getValue Value}
  • + *
+ * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#getIntegerLiteralQuery() + * @model + * @generated + */ +public interface IntegerLiteralQuery extends Query { + /** + * Returns the value of the 'Value' attribute. + * + *

+ * If the meaning of the 'Value' attribute isn't clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'Value' attribute. + * @see #setValue(int) + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#getIntegerLiteralQuery_Value() + * @model + * @generated + */ + int getValue(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IntegerLiteralQuery#getValue Value}' attribute. + * + * + * + * @param value + * the new value of the 'Value' attribute. + * @see #getValue() + * @generated + */ + void setValue(int value); + +} // IntegerLiteralQuery diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/IsOneOfQuery.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/IsOneOfQuery.java new file mode 100644 index 00000000000..cc156fae86d --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/IsOneOfQuery.java @@ -0,0 +1,63 @@ +/** + * Copyright (c) 2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery + * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; + +/** + * + * A representation of the model object 'Is One Of Query'. + * + * + * + * This query returns true if the source of the query is contained in a list of eObject handled by the referennce 'expectedEObjects'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IsOneOfQuery#getExpectedEObjects Expected EObjects}
  • + *
+ * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#getIsOneOfQuery() + * @model + * @generated + */ +public interface IsOneOfQuery extends Query { + /** + * Returns the value of the 'Expected EObjects' reference list. + * The list contents are of type {@link org.eclipse.emf.ecore.EObject}. + * + *

+ * If the meaning of the 'Expected EObjects' reference list isn't clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'Expected EObjects' reference list. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#getIsOneOfQuery_ExpectedEObjects() + * @model + * @generated + */ + EList getExpectedEObjects(); + +} // IsOneOfQuery diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/NavigationQuery.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/NavigationQuery.java new file mode 100644 index 00000000000..8534e3a7be2 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/NavigationQuery.java @@ -0,0 +1,91 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.ETypedElement; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; + +/** + * + * A representation of the model object 'Navigation Query'. + * + * + * + * This query points to a typed element (another attribute, reference or operation for example) that lends it value to the query. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NavigationQuery#getPath Path}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NavigationQuery#isFailOnError Fail On Error}
  • + *
+ * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#getNavigationQuery() + * @model + * @generated + */ +public interface NavigationQuery extends Query { + /** + * Returns the value of the 'Path' reference list. + * The list contents are of type {@link org.eclipse.emf.ecore.ETypedElement}. + * + *

+ * If the meaning of the 'Path' reference list isn't clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'Path' reference list. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#getNavigationQuery_Path() + * @model required="true" + * @generated + */ + EList getPath(); + + /** + * Returns the value of the 'Fail On Error' attribute. + * The default value is "true". + * + *

+ * If the meaning of the 'Fail On Error' attribute isn't clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'Fail On Error' attribute. + * @see #setFailOnError(boolean) + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#getNavigationQuery_FailOnError() + * @model default="true" + * @generated + */ + boolean isFailOnError(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NavigationQuery#isFailOnError Fail On Error}' attribute. + * + * + * + * @param value + * the new value of the 'Fail On Error' attribute. + * @see #isFailOnError() + * @generated + */ + void setFailOnError(boolean value); + +} // NavigationQuery diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/NullLiteralQuery.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/NullLiteralQuery.java new file mode 100644 index 00000000000..0ea4a7d48d1 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/NullLiteralQuery.java @@ -0,0 +1,41 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery + * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query + * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query; + +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; + +/** + * + * A representation of the model object 'Null Literal Query'. + * + * + * + * This query retrun null. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#getNullLiteralQuery() + * @model + * @generated + */ +public interface NullLiteralQuery extends Query { +} // NullLiteralQuery diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/OperationCallQuery.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/OperationCallQuery.java new file mode 100644 index 00000000000..d115ec1f2f7 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/OperationCallQuery.java @@ -0,0 +1,93 @@ +/** + * Copyright (c) 2011-2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery + * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query + * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. + * Nicolas Bros (Mia-Software) - Bug 372626 - [Facet] Aggregates + * Nicolas Bros (Mia-Software) - Bug 376941 - [EFacet] Facet operation arguments in Facet model + * + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EOperation; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; + +/** + * + * A representation of the model object 'Operation Call Query'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.OperationCallQuery#getOperation Operation}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.OperationCallQuery#getArguments Arguments}
  • + *
+ * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#getOperationCallQuery() + * @model + * @generated + */ +public interface OperationCallQuery extends Query { + /** + * Returns the value of the 'Operation' reference. + * + *

+ * If the meaning of the 'Operation' reference isn't clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'Operation' reference. + * @see #setOperation(EOperation) + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#getOperationCallQuery_Operation() + * @model + * @generated + */ + EOperation getOperation(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.OperationCallQuery#getOperation Operation}' reference. + * + * + * + * @param value + * the new value of the 'Operation' reference. + * @see #getOperation() + * @generated + */ + void setOperation(EOperation value); + + /** + * Returns the value of the 'Arguments' containment reference list. + * The list contents are of type {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query}. + * + *

+ * If the meaning of the 'Arguments' containment reference list isn't clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'Arguments' containment reference list. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#getOperationCallQuery_Arguments() + * @model containment="true" + * @generated + */ + EList getArguments(); + +} // OperationCallQuery diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/QueryFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/QueryFactory.java new file mode 100644 index 00000000000..fc7bb8906f3 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/QueryFactory.java @@ -0,0 +1,153 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query; + +import org.eclipse.emf.ecore.EFactory; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage + * @generated + */ +public interface QueryFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * + * @generated + */ + QueryFactory eINSTANCE = org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryFactoryImpl.init(); + + /** + * Returns a new object of class 'Navigation Query'. + * + * + * + * @return a new object of class 'Navigation Query'. + * @generated + */ + NavigationQuery createNavigationQuery(); + + /** + * Returns a new object of class 'Is One Of Query'. + * + * + * + * @return a new object of class 'Is One Of Query'. + * @generated + */ + IsOneOfQuery createIsOneOfQuery(); + + /** + * Returns a new object of class 'String Literal Query'. + * + * + * + * @return a new object of class 'String Literal Query'. + * @generated + */ + StringLiteralQuery createStringLiteralQuery(); + + /** + * Returns a new object of class 'True Literal Query'. + * + * + * + * @return a new object of class 'True Literal Query'. + * @generated + */ + TrueLiteralQuery createTrueLiteralQuery(); + + /** + * Returns a new object of class 'False Literal Query'. + * + * + * + * @return a new object of class 'False Literal Query'. + * @generated + */ + FalseLiteralQuery createFalseLiteralQuery(); + + /** + * Returns a new object of class 'Null Literal Query'. + * + * + * + * @return a new object of class 'Null Literal Query'. + * @generated + */ + NullLiteralQuery createNullLiteralQuery(); + + /** + * Returns a new object of class 'Integer Literal Query'. + * + * + * + * @return a new object of class 'Integer Literal Query'. + * @generated + */ + IntegerLiteralQuery createIntegerLiteralQuery(); + + /** + * Returns a new object of class 'Float Literal Query'. + * + * + * + * @return a new object of class 'Float Literal Query'. + * @generated + */ + FloatLiteralQuery createFloatLiteralQuery(); + + /** + * Returns a new object of class 'EObject Literal Query'. + * + * + * + * @return a new object of class 'EObject Literal Query'. + * @generated + */ + EObjectLiteralQuery createEObjectLiteralQuery(); + + /** + * Returns a new object of class 'Operation Call Query'. + * + * + * + * @return a new object of class 'Operation Call Query'. + * @generated + */ + OperationCallQuery createOperationCallQuery(); + + /** + * Returns the package supported by this factory. + * + * + * + * @return the package supported by this factory. + * @generated + */ + QueryPackage getQueryPackage(); + +} // QueryFactory diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/QueryPackage.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/QueryPackage.java new file mode 100644 index 00000000000..176fc5f3639 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/QueryPackage.java @@ -0,0 +1,1022 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensiblePackage; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryFactory + * @model kind="package" + * @generated + */ +public interface QueryPackage extends EPackage { + /** + * The package name. + * + * + * + * @generated + */ + String eNAME = "query"; //$NON-NLS-1$ + + /** + * The package namespace URI. + * + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/emf/facet/efacet/0.2.incubation/efacet/query"; //$NON-NLS-1$ + + /** + * The package namespace name. + * + * + * + * @generated + */ + String eNS_PREFIX = "query"; //$NON-NLS-1$ + + /** + * The singleton instance of the package. + * + * + * + * @generated + */ + QueryPackage eINSTANCE = org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.NavigationQueryImpl Navigation Query}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.NavigationQueryImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getNavigationQuery() + * @generated + */ + int NAVIGATION_QUERY = 0; + + /** + * The feature id for the 'Can Have Side Effects' attribute. + * + * + * + * @generated + * @ordered + */ + int NAVIGATION_QUERY__CAN_HAVE_SIDE_EFFECTS = ExtensiblePackage.QUERY__CAN_HAVE_SIDE_EFFECTS; + + /** + * The feature id for the 'Can Be Cached' attribute. + * + * + * + * @generated + * @ordered + */ + int NAVIGATION_QUERY__CAN_BE_CACHED = ExtensiblePackage.QUERY__CAN_BE_CACHED; + + /** + * The feature id for the 'Path' reference list. + * + * + * + * @generated + * @ordered + */ + int NAVIGATION_QUERY__PATH = ExtensiblePackage.QUERY_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Fail On Error' attribute. + * + * + * + * @generated + * @ordered + */ + int NAVIGATION_QUERY__FAIL_ON_ERROR = ExtensiblePackage.QUERY_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Navigation Query' class. + * + * + * + * @generated + * @ordered + */ + int NAVIGATION_QUERY_FEATURE_COUNT = ExtensiblePackage.QUERY_FEATURE_COUNT + 2; + + + /** + * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.IsOneOfQueryImpl Is One Of Query}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.IsOneOfQueryImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getIsOneOfQuery() + * @generated + */ + int IS_ONE_OF_QUERY = 1; + + /** + * The feature id for the 'Can Have Side Effects' attribute. + * + * + * + * @generated + * @ordered + */ + int IS_ONE_OF_QUERY__CAN_HAVE_SIDE_EFFECTS = ExtensiblePackage.QUERY__CAN_HAVE_SIDE_EFFECTS; + + /** + * The feature id for the 'Can Be Cached' attribute. + * + * + * + * @generated + * @ordered + */ + int IS_ONE_OF_QUERY__CAN_BE_CACHED = ExtensiblePackage.QUERY__CAN_BE_CACHED; + + /** + * The feature id for the 'Expected EObjects' reference list. + * + * + * + * @generated + * @ordered + */ + int IS_ONE_OF_QUERY__EXPECTED_EOBJECTS = ExtensiblePackage.QUERY_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Is One Of Query' class. + * + * + * + * @generated + * @ordered + */ + int IS_ONE_OF_QUERY_FEATURE_COUNT = ExtensiblePackage.QUERY_FEATURE_COUNT + 1; + + + /** + * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.StringLiteralQueryImpl String Literal Query}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.StringLiteralQueryImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getStringLiteralQuery() + * @generated + */ + int STRING_LITERAL_QUERY = 2; + + /** + * The feature id for the 'Can Have Side Effects' attribute. + * + * + * + * @generated + * @ordered + */ + int STRING_LITERAL_QUERY__CAN_HAVE_SIDE_EFFECTS = ExtensiblePackage.QUERY__CAN_HAVE_SIDE_EFFECTS; + + /** + * The feature id for the 'Can Be Cached' attribute. + * + * + * + * @generated + * @ordered + */ + int STRING_LITERAL_QUERY__CAN_BE_CACHED = ExtensiblePackage.QUERY__CAN_BE_CACHED; + + /** + * The feature id for the 'Value' attribute. + * + * + * + * @generated + * @ordered + */ + int STRING_LITERAL_QUERY__VALUE = ExtensiblePackage.QUERY_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'String Literal Query' class. + * + * + * + * @generated + * @ordered + */ + int STRING_LITERAL_QUERY_FEATURE_COUNT = ExtensiblePackage.QUERY_FEATURE_COUNT + 1; + + + /** + * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.TrueLiteralQueryImpl True Literal Query}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.TrueLiteralQueryImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getTrueLiteralQuery() + * @generated + */ + int TRUE_LITERAL_QUERY = 3; + + /** + * The feature id for the 'Can Have Side Effects' attribute. + * + * + * + * @generated + * @ordered + */ + int TRUE_LITERAL_QUERY__CAN_HAVE_SIDE_EFFECTS = ExtensiblePackage.QUERY__CAN_HAVE_SIDE_EFFECTS; + + /** + * The feature id for the 'Can Be Cached' attribute. + * + * + * + * @generated + * @ordered + */ + int TRUE_LITERAL_QUERY__CAN_BE_CACHED = ExtensiblePackage.QUERY__CAN_BE_CACHED; + + /** + * The number of structural features of the 'True Literal Query' class. + * + * + * + * @generated + * @ordered + */ + int TRUE_LITERAL_QUERY_FEATURE_COUNT = ExtensiblePackage.QUERY_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.FalseLiteralQueryImpl False Literal Query}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.FalseLiteralQueryImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getFalseLiteralQuery() + * @generated + */ + int FALSE_LITERAL_QUERY = 4; + + /** + * The feature id for the 'Can Have Side Effects' attribute. + * + * + * + * @generated + * @ordered + */ + int FALSE_LITERAL_QUERY__CAN_HAVE_SIDE_EFFECTS = ExtensiblePackage.QUERY__CAN_HAVE_SIDE_EFFECTS; + + /** + * The feature id for the 'Can Be Cached' attribute. + * + * + * + * @generated + * @ordered + */ + int FALSE_LITERAL_QUERY__CAN_BE_CACHED = ExtensiblePackage.QUERY__CAN_BE_CACHED; + + /** + * The number of structural features of the 'False Literal Query' class. + * + * + * + * @generated + * @ordered + */ + int FALSE_LITERAL_QUERY_FEATURE_COUNT = ExtensiblePackage.QUERY_FEATURE_COUNT + 0; + + + /** + * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.NullLiteralQueryImpl Null Literal Query}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.NullLiteralQueryImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getNullLiteralQuery() + * @generated + */ + int NULL_LITERAL_QUERY = 5; + + /** + * The feature id for the 'Can Have Side Effects' attribute. + * + * + * + * @generated + * @ordered + */ + int NULL_LITERAL_QUERY__CAN_HAVE_SIDE_EFFECTS = ExtensiblePackage.QUERY__CAN_HAVE_SIDE_EFFECTS; + + /** + * The feature id for the 'Can Be Cached' attribute. + * + * + * + * @generated + * @ordered + */ + int NULL_LITERAL_QUERY__CAN_BE_CACHED = ExtensiblePackage.QUERY__CAN_BE_CACHED; + + /** + * The number of structural features of the 'Null Literal Query' class. + * + * + * + * @generated + * @ordered + */ + int NULL_LITERAL_QUERY_FEATURE_COUNT = ExtensiblePackage.QUERY_FEATURE_COUNT + 0; + + + /** + * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.IntegerLiteralQueryImpl Integer Literal Query}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.IntegerLiteralQueryImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getIntegerLiteralQuery() + * @generated + */ + int INTEGER_LITERAL_QUERY = 6; + + /** + * The feature id for the 'Can Have Side Effects' attribute. + * + * + * + * @generated + * @ordered + */ + int INTEGER_LITERAL_QUERY__CAN_HAVE_SIDE_EFFECTS = ExtensiblePackage.QUERY__CAN_HAVE_SIDE_EFFECTS; + + /** + * The feature id for the 'Can Be Cached' attribute. + * + * + * + * @generated + * @ordered + */ + int INTEGER_LITERAL_QUERY__CAN_BE_CACHED = ExtensiblePackage.QUERY__CAN_BE_CACHED; + + /** + * The feature id for the 'Value' attribute. + * + * + * + * @generated + * @ordered + */ + int INTEGER_LITERAL_QUERY__VALUE = ExtensiblePackage.QUERY_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Integer Literal Query' class. + * + * + * + * @generated + * @ordered + */ + int INTEGER_LITERAL_QUERY_FEATURE_COUNT = ExtensiblePackage.QUERY_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.FloatLiteralQueryImpl Float Literal Query}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.FloatLiteralQueryImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getFloatLiteralQuery() + * @generated + */ + int FLOAT_LITERAL_QUERY = 7; + + /** + * The feature id for the 'Can Have Side Effects' attribute. + * + * + * + * @generated + * @ordered + */ + int FLOAT_LITERAL_QUERY__CAN_HAVE_SIDE_EFFECTS = ExtensiblePackage.QUERY__CAN_HAVE_SIDE_EFFECTS; + + /** + * The feature id for the 'Can Be Cached' attribute. + * + * + * + * @generated + * @ordered + */ + int FLOAT_LITERAL_QUERY__CAN_BE_CACHED = ExtensiblePackage.QUERY__CAN_BE_CACHED; + + /** + * The feature id for the 'Value' attribute. + * + * + * + * @generated + * @ordered + */ + int FLOAT_LITERAL_QUERY__VALUE = ExtensiblePackage.QUERY_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Float Literal Query' class. + * + * + * + * @generated + * @ordered + */ + int FLOAT_LITERAL_QUERY_FEATURE_COUNT = ExtensiblePackage.QUERY_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.EObjectLiteralQueryImpl EObject Literal Query}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.EObjectLiteralQueryImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getEObjectLiteralQuery() + * @generated + */ + int EOBJECT_LITERAL_QUERY = 8; + + /** + * The feature id for the 'Can Have Side Effects' attribute. + * + * + * + * @generated + * @ordered + */ + int EOBJECT_LITERAL_QUERY__CAN_HAVE_SIDE_EFFECTS = ExtensiblePackage.QUERY__CAN_HAVE_SIDE_EFFECTS; + + /** + * The feature id for the 'Can Be Cached' attribute. + * + * + * + * @generated + * @ordered + */ + int EOBJECT_LITERAL_QUERY__CAN_BE_CACHED = ExtensiblePackage.QUERY__CAN_BE_CACHED; + + /** + * The feature id for the 'Element' reference. + * + * + * + * @generated + * @ordered + */ + int EOBJECT_LITERAL_QUERY__ELEMENT = ExtensiblePackage.QUERY_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'EObject Literal Query' class. + * + * + * + * @generated + * @ordered + */ + int EOBJECT_LITERAL_QUERY_FEATURE_COUNT = ExtensiblePackage.QUERY_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.OperationCallQueryImpl Operation Call Query}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.OperationCallQueryImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getOperationCallQuery() + * @generated + */ + int OPERATION_CALL_QUERY = 9; + + /** + * The feature id for the 'Can Have Side Effects' attribute. + * + * + * + * @generated + * @ordered + */ + int OPERATION_CALL_QUERY__CAN_HAVE_SIDE_EFFECTS = ExtensiblePackage.QUERY__CAN_HAVE_SIDE_EFFECTS; + + /** + * The feature id for the 'Can Be Cached' attribute. + * + * + * + * @generated + * @ordered + */ + int OPERATION_CALL_QUERY__CAN_BE_CACHED = ExtensiblePackage.QUERY__CAN_BE_CACHED; + + /** + * The feature id for the 'Operation' reference. + * + * + * + * @generated + * @ordered + */ + int OPERATION_CALL_QUERY__OPERATION = ExtensiblePackage.QUERY_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Arguments' containment reference list. + * + * + * + * @generated + * @ordered + */ + int OPERATION_CALL_QUERY__ARGUMENTS = ExtensiblePackage.QUERY_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Operation Call Query' class. + * + * + * + * @generated + * @ordered + */ + int OPERATION_CALL_QUERY_FEATURE_COUNT = ExtensiblePackage.QUERY_FEATURE_COUNT + 2; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NavigationQuery Navigation Query}'. + * + * + * + * @return the meta object for class 'Navigation Query'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NavigationQuery + * @generated + */ + EClass getNavigationQuery(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NavigationQuery#getPath Path}'. + * + * + * + * @return the meta object for the reference list 'Path'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NavigationQuery#getPath() + * @see #getNavigationQuery() + * @generated + */ + EReference getNavigationQuery_Path(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NavigationQuery#isFailOnError Fail On Error}'. + * + * + * + * @return the meta object for the attribute 'Fail On Error'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NavigationQuery#isFailOnError() + * @see #getNavigationQuery() + * @generated + */ + EAttribute getNavigationQuery_FailOnError(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IsOneOfQuery Is One Of Query}'. + * + * + * + * @return the meta object for class 'Is One Of Query'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IsOneOfQuery + * @generated + */ + EClass getIsOneOfQuery(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IsOneOfQuery#getExpectedEObjects Expected EObjects}'. + * + * + * + * @return the meta object for the reference list 'Expected EObjects'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IsOneOfQuery#getExpectedEObjects() + * @see #getIsOneOfQuery() + * @generated + */ + EReference getIsOneOfQuery_ExpectedEObjects(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.StringLiteralQuery String Literal Query}'. + * + * + * + * @return the meta object for class 'String Literal Query'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.StringLiteralQuery + * @generated + */ + EClass getStringLiteralQuery(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.StringLiteralQuery#getValue Value}'. + * + * + * + * @return the meta object for the attribute 'Value'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.StringLiteralQuery#getValue() + * @see #getStringLiteralQuery() + * @generated + */ + EAttribute getStringLiteralQuery_Value(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.TrueLiteralQuery True Literal Query}'. + * + * + * + * @return the meta object for class 'True Literal Query'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.TrueLiteralQuery + * @generated + */ + EClass getTrueLiteralQuery(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FalseLiteralQuery False Literal Query}'. + * + * + * + * @return the meta object for class 'False Literal Query'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FalseLiteralQuery + * @generated + */ + EClass getFalseLiteralQuery(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NullLiteralQuery Null Literal Query}'. + * + * + * + * @return the meta object for class 'Null Literal Query'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NullLiteralQuery + * @generated + */ + EClass getNullLiteralQuery(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IntegerLiteralQuery Integer Literal Query}'. + * + * + * + * @return the meta object for class 'Integer Literal Query'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IntegerLiteralQuery + * @generated + */ + EClass getIntegerLiteralQuery(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IntegerLiteralQuery#getValue Value}'. + * + * + * + * @return the meta object for the attribute 'Value'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IntegerLiteralQuery#getValue() + * @see #getIntegerLiteralQuery() + * @generated + */ + EAttribute getIntegerLiteralQuery_Value(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FloatLiteralQuery Float Literal Query}'. + * + * + * + * @return the meta object for class 'Float Literal Query'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FloatLiteralQuery + * @generated + */ + EClass getFloatLiteralQuery(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FloatLiteralQuery#getValue Value}'. + * + * + * + * @return the meta object for the attribute 'Value'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FloatLiteralQuery#getValue() + * @see #getFloatLiteralQuery() + * @generated + */ + EAttribute getFloatLiteralQuery_Value(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.EObjectLiteralQuery EObject Literal Query}'. + * + * + * + * @return the meta object for class 'EObject Literal Query'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.EObjectLiteralQuery + * @generated + */ + EClass getEObjectLiteralQuery(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.EObjectLiteralQuery#getElement Element}'. + * + * + * + * @return the meta object for the reference 'Element'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.EObjectLiteralQuery#getElement() + * @see #getEObjectLiteralQuery() + * @generated + */ + EReference getEObjectLiteralQuery_Element(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.OperationCallQuery Operation Call Query}'. + * + * + * + * @return the meta object for class 'Operation Call Query'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.OperationCallQuery + * @generated + */ + EClass getOperationCallQuery(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.OperationCallQuery#getOperation Operation}'. + * + * + * + * @return the meta object for the reference 'Operation'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.OperationCallQuery#getOperation() + * @see #getOperationCallQuery() + * @generated + */ + EReference getOperationCallQuery_Operation(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.OperationCallQuery#getArguments Arguments}'. + * + * + * + * @return the meta object for the containment reference list 'Arguments'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.OperationCallQuery#getArguments() + * @see #getOperationCallQuery() + * @generated + */ + EReference getOperationCallQuery_Arguments(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + QueryFactory getQueryFactory(); + + /** + * + * Defines literals for the meta objects that represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.NavigationQueryImpl Navigation Query}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.NavigationQueryImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getNavigationQuery() + * @generated + */ + EClass NAVIGATION_QUERY = eINSTANCE.getNavigationQuery(); + + /** + * The meta object literal for the 'Path' reference list feature. + * + * + * + * @generated + */ + EReference NAVIGATION_QUERY__PATH = eINSTANCE.getNavigationQuery_Path(); + + /** + * The meta object literal for the 'Fail On Error' attribute feature. + * + * + * + * @generated + */ + EAttribute NAVIGATION_QUERY__FAIL_ON_ERROR = eINSTANCE.getNavigationQuery_FailOnError(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.IsOneOfQueryImpl Is One Of Query}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.IsOneOfQueryImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getIsOneOfQuery() + * @generated + */ + EClass IS_ONE_OF_QUERY = eINSTANCE.getIsOneOfQuery(); + + /** + * The meta object literal for the 'Expected EObjects' reference list feature. + * + * + * + * @generated + */ + EReference IS_ONE_OF_QUERY__EXPECTED_EOBJECTS = eINSTANCE.getIsOneOfQuery_ExpectedEObjects(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.StringLiteralQueryImpl String Literal Query}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.StringLiteralQueryImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getStringLiteralQuery() + * @generated + */ + EClass STRING_LITERAL_QUERY = eINSTANCE.getStringLiteralQuery(); + + /** + * The meta object literal for the 'Value' attribute feature. + * + * + * + * @generated + */ + EAttribute STRING_LITERAL_QUERY__VALUE = eINSTANCE.getStringLiteralQuery_Value(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.TrueLiteralQueryImpl True Literal Query}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.TrueLiteralQueryImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getTrueLiteralQuery() + * @generated + */ + EClass TRUE_LITERAL_QUERY = eINSTANCE.getTrueLiteralQuery(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.FalseLiteralQueryImpl False Literal Query}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.FalseLiteralQueryImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getFalseLiteralQuery() + * @generated + */ + EClass FALSE_LITERAL_QUERY = eINSTANCE.getFalseLiteralQuery(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.NullLiteralQueryImpl Null Literal Query}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.NullLiteralQueryImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getNullLiteralQuery() + * @generated + */ + EClass NULL_LITERAL_QUERY = eINSTANCE.getNullLiteralQuery(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.IntegerLiteralQueryImpl Integer Literal Query}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.IntegerLiteralQueryImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getIntegerLiteralQuery() + * @generated + */ + EClass INTEGER_LITERAL_QUERY = eINSTANCE.getIntegerLiteralQuery(); + + /** + * The meta object literal for the 'Value' attribute feature. + * + * + * + * @generated + */ + EAttribute INTEGER_LITERAL_QUERY__VALUE = eINSTANCE.getIntegerLiteralQuery_Value(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.FloatLiteralQueryImpl Float Literal Query}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.FloatLiteralQueryImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getFloatLiteralQuery() + * @generated + */ + EClass FLOAT_LITERAL_QUERY = eINSTANCE.getFloatLiteralQuery(); + + /** + * The meta object literal for the 'Value' attribute feature. + * + * + * + * @generated + */ + EAttribute FLOAT_LITERAL_QUERY__VALUE = eINSTANCE.getFloatLiteralQuery_Value(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.EObjectLiteralQueryImpl EObject Literal Query}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.EObjectLiteralQueryImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getEObjectLiteralQuery() + * @generated + */ + EClass EOBJECT_LITERAL_QUERY = eINSTANCE.getEObjectLiteralQuery(); + + /** + * The meta object literal for the 'Element' reference feature. + * + * + * + * @generated + */ + EReference EOBJECT_LITERAL_QUERY__ELEMENT = eINSTANCE.getEObjectLiteralQuery_Element(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.OperationCallQueryImpl Operation Call Query}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.OperationCallQueryImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getOperationCallQuery() + * @generated + */ + EClass OPERATION_CALL_QUERY = eINSTANCE.getOperationCallQuery(); + + /** + * The meta object literal for the 'Operation' reference feature. + * + * + * + * @generated + */ + EReference OPERATION_CALL_QUERY__OPERATION = eINSTANCE.getOperationCallQuery_Operation(); + + /** + * The meta object literal for the 'Arguments' containment reference list feature. + * + * + * + * @generated + */ + EReference OPERATION_CALL_QUERY__ARGUMENTS = eINSTANCE.getOperationCallQuery_Arguments(); + + } + +} // QueryPackage diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/StringLiteralQuery.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/StringLiteralQuery.java new file mode 100644 index 00000000000..15a97824b4c --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/StringLiteralQuery.java @@ -0,0 +1,69 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery + * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query; + +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; + +/** + * + * A representation of the model object 'String Literal Query'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.StringLiteralQuery#getValue Value}
  • + *
+ * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#getStringLiteralQuery() + * @model + * @generated + */ +public interface StringLiteralQuery extends Query { + /** + * Returns the value of the 'Value' attribute. + * + *

+ * If the meaning of the 'Value' attribute isn't clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'Value' attribute. + * @see #setValue(String) + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#getStringLiteralQuery_Value() + * @model + * @generated + */ + String getValue(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.StringLiteralQuery#getValue Value}' attribute. + * + * + * + * @param value + * the new value of the 'Value' attribute. + * @see #getValue() + * @generated + */ + void setValue(String value); + +} // StringLiteralQuery diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/TrueLiteralQuery.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/TrueLiteralQuery.java new file mode 100644 index 00000000000..0f7703f61b0 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/TrueLiteralQuery.java @@ -0,0 +1,40 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery + * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query + * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query; + +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; + +/** + * + * A representation of the model object 'True Literal Query'. + * + * + * + * This query retrun true. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#getTrueLiteralQuery() + * @model + * @generated + */ +public interface TrueLiteralQuery extends Query { +} // TrueLiteralQuery diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/EObjectLiteralQueryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/EObjectLiteralQueryImpl.java new file mode 100644 index 00000000000..5a9e4bcbc2e --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/EObjectLiteralQueryImpl.java @@ -0,0 +1,190 @@ +/** + * Copyright (c) 2011-2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery + * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query + * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. + * Nicolas Bros (Mia-Software) - Bug 372626 - [Facet] Aggregates + * Nicolas Bros (Mia-Software) - Bug 376941 - [EFacet] Facet operation arguments in Facet model + * + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.QueryImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.EObjectLiteralQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage; + +/** + * + * An implementation of the model object 'EObject Literal Query'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.EObjectLiteralQueryImpl#getElement Element}
  • + *
+ * + * @generated + */ +public class EObjectLiteralQueryImpl extends QueryImpl implements EObjectLiteralQuery { + /** + * The cached value of the '{@link #getElement() Element}' reference. + * + * + * + * @see #getElement() + * @generated + * @ordered + */ + protected EObject element; + + /** + * + * + * + * @generated + */ + protected EObjectLiteralQueryImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return QueryPackage.Literals.EOBJECT_LITERAL_QUERY; + } + + /** + * + * + * + * @generated + */ + public EObject getElement() { + if (element != null && element.eIsProxy()) { + InternalEObject oldElement = (InternalEObject) element; + element = eResolveProxy(oldElement); + if (element != oldElement) { + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.RESOLVE, QueryPackage.EOBJECT_LITERAL_QUERY__ELEMENT, oldElement, element)); + } + } + } + return element; + } + + /** + * + * + * + * @generated + */ + public EObject basicGetElement() { + return element; + } + + /** + * + * + * + * @generated + */ + public void setElement(EObject newElement) { + EObject oldElement = element; + element = newElement; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, QueryPackage.EOBJECT_LITERAL_QUERY__ELEMENT, oldElement, element)); + } + } + + /** + * + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case QueryPackage.EOBJECT_LITERAL_QUERY__ELEMENT: + if (resolve) { + return getElement(); + } + return basicGetElement(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case QueryPackage.EOBJECT_LITERAL_QUERY__ELEMENT: + setElement((EObject) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case QueryPackage.EOBJECT_LITERAL_QUERY__ELEMENT: + setElement((EObject) null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case QueryPackage.EOBJECT_LITERAL_QUERY__ELEMENT: + return element != null; + } + return super.eIsSet(featureID); + } + +} // EObjectLiteralQueryImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/FalseLiteralQueryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/FalseLiteralQueryImpl.java new file mode 100644 index 00000000000..442ec4bb464 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/FalseLiteralQueryImpl.java @@ -0,0 +1,57 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery + * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query + * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.QueryImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FalseLiteralQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage; + +/** + * + * An implementation of the model object 'False Literal Query'. + * + * + * @generated + */ +public class FalseLiteralQueryImpl extends QueryImpl implements FalseLiteralQuery { + /** + * + * + * + * @generated + */ + protected FalseLiteralQueryImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return QueryPackage.Literals.FALSE_LITERAL_QUERY; + } + +} // FalseLiteralQueryImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/FloatLiteralQueryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/FloatLiteralQueryImpl.java new file mode 100644 index 00000000000..83a6b7930aa --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/FloatLiteralQueryImpl.java @@ -0,0 +1,196 @@ +/** + * Copyright (c) 2011-2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery + * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query + * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. + * Nicolas Bros (Mia-Software) - Bug 372626 - [Facet] Aggregates + * Nicolas Bros (Mia-Software) - Bug 376941 - [EFacet] Facet operation arguments in Facet model + * + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.QueryImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FloatLiteralQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage; + +/** + * + * An implementation of the model object 'Float Literal Query'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.FloatLiteralQueryImpl#getValue Value}
  • + *
+ * + * @generated + */ +public class FloatLiteralQueryImpl extends QueryImpl implements FloatLiteralQuery { + /** + * The default value of the '{@link #getValue() Value}' attribute. + * + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected static final float VALUE_EDEFAULT = 0.0F; + + /** + * The cached value of the '{@link #getValue() Value}' attribute. + * + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected float value = VALUE_EDEFAULT; + + /** + * + * + * + * @generated + */ + protected FloatLiteralQueryImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return QueryPackage.Literals.FLOAT_LITERAL_QUERY; + } + + /** + * + * + * + * @generated + */ + public float getValue() { + return value; + } + + /** + * + * + * + * @generated + */ + public void setValue(float newValue) { + float oldValue = value; + value = newValue; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, QueryPackage.FLOAT_LITERAL_QUERY__VALUE, oldValue, value)); + } + } + + /** + * + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case QueryPackage.FLOAT_LITERAL_QUERY__VALUE: + return getValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case QueryPackage.FLOAT_LITERAL_QUERY__VALUE: + setValue((Float) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case QueryPackage.FLOAT_LITERAL_QUERY__VALUE: + setValue(VALUE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case QueryPackage.FLOAT_LITERAL_QUERY__VALUE: + return value != VALUE_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (value: "); //$NON-NLS-1$ + result.append(value); + result.append(')'); + return result.toString(); + } + +} // FloatLiteralQueryImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/IntegerLiteralQueryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/IntegerLiteralQueryImpl.java new file mode 100644 index 00000000000..faa21d37fde --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/IntegerLiteralQueryImpl.java @@ -0,0 +1,196 @@ +/** + * Copyright (c) 2011-2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery + * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query + * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. + * Nicolas Bros (Mia-Software) - Bug 372626 - [Facet] Aggregates + * Nicolas Bros (Mia-Software) - Bug 376941 - [EFacet] Facet operation arguments in Facet model + * + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.QueryImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IntegerLiteralQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage; + +/** + * + * An implementation of the model object 'Integer Literal Query'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.IntegerLiteralQueryImpl#getValue Value}
  • + *
+ * + * @generated + */ +public class IntegerLiteralQueryImpl extends QueryImpl implements IntegerLiteralQuery { + /** + * The default value of the '{@link #getValue() Value}' attribute. + * + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected static final int VALUE_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getValue() Value}' attribute. + * + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected int value = VALUE_EDEFAULT; + + /** + * + * + * + * @generated + */ + protected IntegerLiteralQueryImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return QueryPackage.Literals.INTEGER_LITERAL_QUERY; + } + + /** + * + * + * + * @generated + */ + public int getValue() { + return value; + } + + /** + * + * + * + * @generated + */ + public void setValue(int newValue) { + int oldValue = value; + value = newValue; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, QueryPackage.INTEGER_LITERAL_QUERY__VALUE, oldValue, value)); + } + } + + /** + * + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case QueryPackage.INTEGER_LITERAL_QUERY__VALUE: + return getValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case QueryPackage.INTEGER_LITERAL_QUERY__VALUE: + setValue((Integer) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case QueryPackage.INTEGER_LITERAL_QUERY__VALUE: + setValue(VALUE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case QueryPackage.INTEGER_LITERAL_QUERY__VALUE: + return value != VALUE_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (value: "); //$NON-NLS-1$ + result.append(value); + result.append(')'); + return result.toString(); + } + +} // IntegerLiteralQueryImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/IsOneOfQueryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/IsOneOfQueryImpl.java new file mode 100644 index 00000000000..e9e1bede21c --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/IsOneOfQueryImpl.java @@ -0,0 +1,154 @@ +/** + * Copyright (c) 2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.QueryImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IsOneOfQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage; + +/** + * + * An implementation of the model object 'Is One Of Query'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.IsOneOfQueryImpl#getExpectedEObjects Expected EObjects}
  • + *
+ * + * @generated + */ +public class IsOneOfQueryImpl extends QueryImpl implements IsOneOfQuery { + /** + * The cached value of the '{@link #getExpectedEObjects() Expected EObjects}' reference list. + * + * + * + * @see #getExpectedEObjects() + * @generated + * @ordered + */ + protected EList expectedEObjects; + + /** + * + * + * + * @generated + */ + protected IsOneOfQueryImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return QueryPackage.Literals.IS_ONE_OF_QUERY; + } + + /** + * + * + * + * @generated + */ + public EList getExpectedEObjects() { + if (expectedEObjects == null) { + expectedEObjects = new EObjectResolvingEList(EObject.class, this, QueryPackage.IS_ONE_OF_QUERY__EXPECTED_EOBJECTS); + } + return expectedEObjects; + } + + /** + * + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case QueryPackage.IS_ONE_OF_QUERY__EXPECTED_EOBJECTS: + return getExpectedEObjects(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case QueryPackage.IS_ONE_OF_QUERY__EXPECTED_EOBJECTS: + getExpectedEObjects().clear(); + getExpectedEObjects().addAll((Collection) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case QueryPackage.IS_ONE_OF_QUERY__EXPECTED_EOBJECTS: + getExpectedEObjects().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case QueryPackage.IS_ONE_OF_QUERY__EXPECTED_EOBJECTS: + return expectedEObjects != null && !expectedEObjects.isEmpty(); + } + return super.eIsSet(featureID); + } + +} // IsOneOfQueryImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/NavigationQueryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/NavigationQueryImpl.java new file mode 100644 index 00000000000..0edf41c0aac --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/NavigationQueryImpl.java @@ -0,0 +1,230 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.ETypedElement; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.QueryImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NavigationQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage; + +/** + * + * An implementation of the model object 'Navigation Query'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.NavigationQueryImpl#getPath Path}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.NavigationQueryImpl#isFailOnError Fail On Error}
  • + *
+ * + * @generated + */ +public class NavigationQueryImpl extends QueryImpl implements NavigationQuery { + /** + * The cached value of the '{@link #getPath() Path}' reference list. + * + * + * + * @see #getPath() + * @generated + * @ordered + */ + protected EList path; + + /** + * The default value of the '{@link #isFailOnError() Fail On Error}' attribute. + * + * + * + * @see #isFailOnError() + * @generated + * @ordered + */ + protected static final boolean FAIL_ON_ERROR_EDEFAULT = true; + /** + * The cached value of the '{@link #isFailOnError() Fail On Error}' attribute. + * + * + * + * @see #isFailOnError() + * @generated + * @ordered + */ + protected boolean failOnError = FAIL_ON_ERROR_EDEFAULT; + + /** + * + * + * + * @generated + */ + protected NavigationQueryImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return QueryPackage.Literals.NAVIGATION_QUERY; + } + + /** + * + * + * + * @generated + */ + public EList getPath() { + if (path == null) { + path = new EObjectResolvingEList(ETypedElement.class, this, QueryPackage.NAVIGATION_QUERY__PATH); + } + return path; + } + + /** + * + * + * + * @generated + */ + public boolean isFailOnError() { + return failOnError; + } + + /** + * + * + * + * @generated + */ + public void setFailOnError(boolean newFailOnError) { + boolean oldFailOnError = failOnError; + failOnError = newFailOnError; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, QueryPackage.NAVIGATION_QUERY__FAIL_ON_ERROR, oldFailOnError, failOnError)); + } + } + + /** + * + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case QueryPackage.NAVIGATION_QUERY__PATH: + return getPath(); + case QueryPackage.NAVIGATION_QUERY__FAIL_ON_ERROR: + return isFailOnError(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case QueryPackage.NAVIGATION_QUERY__PATH: + getPath().clear(); + getPath().addAll((Collection) newValue); + return; + case QueryPackage.NAVIGATION_QUERY__FAIL_ON_ERROR: + setFailOnError((Boolean) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case QueryPackage.NAVIGATION_QUERY__PATH: + getPath().clear(); + return; + case QueryPackage.NAVIGATION_QUERY__FAIL_ON_ERROR: + setFailOnError(FAIL_ON_ERROR_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case QueryPackage.NAVIGATION_QUERY__PATH: + return path != null && !path.isEmpty(); + case QueryPackage.NAVIGATION_QUERY__FAIL_ON_ERROR: + return failOnError != FAIL_ON_ERROR_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (failOnError: "); //$NON-NLS-1$ + result.append(failOnError); + result.append(')'); + return result.toString(); + } + +} // NavigationQueryImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/NullLiteralQueryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/NullLiteralQueryImpl.java new file mode 100644 index 00000000000..e1ff1581ee3 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/NullLiteralQueryImpl.java @@ -0,0 +1,57 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery + * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query + * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.QueryImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NullLiteralQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage; + +/** + * + * An implementation of the model object 'Null Literal Query'. + * + * + * @generated + */ +public class NullLiteralQueryImpl extends QueryImpl implements NullLiteralQuery { + /** + * + * + * + * @generated + */ + protected NullLiteralQueryImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return QueryPackage.Literals.NULL_LITERAL_QUERY; + } + +} // NullLiteralQueryImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/OperationCallQueryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/OperationCallQueryImpl.java new file mode 100644 index 00000000000..97a7fffcbb8 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/OperationCallQueryImpl.java @@ -0,0 +1,249 @@ +/** + * Copyright (c) 2011-2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery + * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query + * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. + * Nicolas Bros (Mia-Software) - Bug 372626 - [Facet] Aggregates + * Nicolas Bros (Mia-Software) - Bug 376941 - [EFacet] Facet operation arguments in Facet model + * + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EOperation; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.QueryImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.OperationCallQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage; + +/** + * + * An implementation of the model object 'Operation Call Query'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.OperationCallQueryImpl#getOperation Operation}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.OperationCallQueryImpl#getArguments Arguments}
  • + *
+ * + * @generated + */ +public class OperationCallQueryImpl extends QueryImpl implements OperationCallQuery { + /** + * The cached value of the '{@link #getOperation() Operation}' reference. + * + * + * + * @see #getOperation() + * @generated + * @ordered + */ + protected EOperation operation; + + /** + * The cached value of the '{@link #getArguments() Arguments}' containment reference list. + * + * + * + * @see #getArguments() + * @generated + * @ordered + */ + protected EList arguments; + + /** + * + * + * + * @generated + */ + protected OperationCallQueryImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return QueryPackage.Literals.OPERATION_CALL_QUERY; + } + + /** + * + * + * + * @generated + */ + public EOperation getOperation() { + if (operation != null && operation.eIsProxy()) { + InternalEObject oldOperation = (InternalEObject) operation; + operation = (EOperation) eResolveProxy(oldOperation); + if (operation != oldOperation) { + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.RESOLVE, QueryPackage.OPERATION_CALL_QUERY__OPERATION, oldOperation, operation)); + } + } + } + return operation; + } + + /** + * + * + * + * @generated + */ + public EOperation basicGetOperation() { + return operation; + } + + /** + * + * + * + * @generated + */ + public void setOperation(EOperation newOperation) { + EOperation oldOperation = operation; + operation = newOperation; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, QueryPackage.OPERATION_CALL_QUERY__OPERATION, oldOperation, operation)); + } + } + + /** + * + * + * + * @generated + */ + public EList getArguments() { + if (arguments == null) { + arguments = new EObjectContainmentEList(Query.class, this, QueryPackage.OPERATION_CALL_QUERY__ARGUMENTS); + } + return arguments; + } + + /** + * + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case QueryPackage.OPERATION_CALL_QUERY__ARGUMENTS: + return ((InternalEList) getArguments()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case QueryPackage.OPERATION_CALL_QUERY__OPERATION: + if (resolve) { + return getOperation(); + } + return basicGetOperation(); + case QueryPackage.OPERATION_CALL_QUERY__ARGUMENTS: + return getArguments(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case QueryPackage.OPERATION_CALL_QUERY__OPERATION: + setOperation((EOperation) newValue); + return; + case QueryPackage.OPERATION_CALL_QUERY__ARGUMENTS: + getArguments().clear(); + getArguments().addAll((Collection) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case QueryPackage.OPERATION_CALL_QUERY__OPERATION: + setOperation((EOperation) null); + return; + case QueryPackage.OPERATION_CALL_QUERY__ARGUMENTS: + getArguments().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case QueryPackage.OPERATION_CALL_QUERY__OPERATION: + return operation != null; + case QueryPackage.OPERATION_CALL_QUERY__ARGUMENTS: + return arguments != null && !arguments.isEmpty(); + } + return super.eIsSet(featureID); + } + +} // OperationCallQueryImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/QueryFactoryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/QueryFactoryImpl.java new file mode 100644 index 00000000000..7150fbfc7de --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/QueryFactoryImpl.java @@ -0,0 +1,243 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.impl.EFactoryImpl; +import org.eclipse.emf.ecore.plugin.EcorePlugin; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.EObjectLiteralQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FalseLiteralQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FloatLiteralQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IntegerLiteralQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IsOneOfQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NavigationQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NullLiteralQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.OperationCallQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryFactory; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.StringLiteralQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.TrueLiteralQuery; + +/** + * + * An implementation of the model Factory. + * + * + * @generated + */ +public class QueryFactoryImpl extends EFactoryImpl implements QueryFactory { + /** + * Creates the default factory implementation. + * + * + * + * @generated + */ + public static QueryFactory init() { + try { + QueryFactory theQueryFactory = (QueryFactory) EPackage.Registry.INSTANCE.getEFactory(QueryPackage.eNS_URI); + if (theQueryFactory != null) { + return theQueryFactory; + } + } catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new QueryFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * + * @generated + */ + public QueryFactoryImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case QueryPackage.NAVIGATION_QUERY: + return createNavigationQuery(); + case QueryPackage.IS_ONE_OF_QUERY: + return createIsOneOfQuery(); + case QueryPackage.STRING_LITERAL_QUERY: + return createStringLiteralQuery(); + case QueryPackage.TRUE_LITERAL_QUERY: + return createTrueLiteralQuery(); + case QueryPackage.FALSE_LITERAL_QUERY: + return createFalseLiteralQuery(); + case QueryPackage.NULL_LITERAL_QUERY: + return createNullLiteralQuery(); + case QueryPackage.INTEGER_LITERAL_QUERY: + return createIntegerLiteralQuery(); + case QueryPackage.FLOAT_LITERAL_QUERY: + return createFloatLiteralQuery(); + case QueryPackage.EOBJECT_LITERAL_QUERY: + return createEObjectLiteralQuery(); + case QueryPackage.OPERATION_CALL_QUERY: + return createOperationCallQuery(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ + } + } + + /** + * + * + * + * @generated + */ + public NavigationQuery createNavigationQuery() { + NavigationQueryImpl navigationQuery = new NavigationQueryImpl(); + return navigationQuery; + } + + /** + * + * + * + * @generated + */ + public IsOneOfQuery createIsOneOfQuery() { + IsOneOfQueryImpl isOneOfQuery = new IsOneOfQueryImpl(); + return isOneOfQuery; + } + + /** + * + * + * + * @generated + */ + public StringLiteralQuery createStringLiteralQuery() { + StringLiteralQueryImpl stringLiteralQuery = new StringLiteralQueryImpl(); + return stringLiteralQuery; + } + + /** + * + * + * + * @generated + */ + public TrueLiteralQuery createTrueLiteralQuery() { + TrueLiteralQueryImpl trueLiteralQuery = new TrueLiteralQueryImpl(); + return trueLiteralQuery; + } + + /** + * + * + * + * @generated + */ + public FalseLiteralQuery createFalseLiteralQuery() { + FalseLiteralQueryImpl falseLiteralQuery = new FalseLiteralQueryImpl(); + return falseLiteralQuery; + } + + /** + * + * + * + * @generated + */ + public NullLiteralQuery createNullLiteralQuery() { + NullLiteralQueryImpl nullLiteralQuery = new NullLiteralQueryImpl(); + return nullLiteralQuery; + } + + /** + * + * + * + * @generated + */ + public IntegerLiteralQuery createIntegerLiteralQuery() { + IntegerLiteralQueryImpl integerLiteralQuery = new IntegerLiteralQueryImpl(); + return integerLiteralQuery; + } + + /** + * + * + * + * @generated + */ + public FloatLiteralQuery createFloatLiteralQuery() { + FloatLiteralQueryImpl floatLiteralQuery = new FloatLiteralQueryImpl(); + return floatLiteralQuery; + } + + /** + * + * + * + * @generated + */ + public EObjectLiteralQuery createEObjectLiteralQuery() { + EObjectLiteralQueryImpl eObjectLiteralQuery = new EObjectLiteralQueryImpl(); + return eObjectLiteralQuery; + } + + /** + * + * + * + * @generated + */ + public OperationCallQuery createOperationCallQuery() { + OperationCallQueryImpl operationCallQuery = new OperationCallQueryImpl(); + return operationCallQuery; + } + + /** + * + * + * + * @generated + */ + public QueryPackage getQueryPackage() { + return (QueryPackage) getEPackage(); + } + + /** + * + * + * + * @deprecated + * @generated + */ + @Deprecated + public static QueryPackage getPackage() { + return QueryPackage.eINSTANCE; + } + +} // QueryFactoryImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/QueryPackageImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/QueryPackageImpl.java new file mode 100644 index 00000000000..5438d29d74e --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/QueryPackageImpl.java @@ -0,0 +1,560 @@ +/** + * Copyright (c) 2011, 2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + * Gregoire Dupe (Mia-Software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.emf.ecore.EcorePackage; +import org.eclipse.emf.ecore.impl.EPackageImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensiblePackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.ExtensiblePackageImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.EObjectLiteralQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FalseLiteralQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FloatLiteralQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IntegerLiteralQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IsOneOfQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NavigationQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NullLiteralQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.OperationCallQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryFactory; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.StringLiteralQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.TrueLiteralQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.RuntimePackageImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl; + +/** + * + * An implementation of the model Package. + * + * + * @generated + */ +public class QueryPackageImpl extends EPackageImpl implements QueryPackage { + /** + * + * + * + * @generated + */ + private EClass navigationQueryEClass = null; + + /** + * + * + * + * @generated + */ + private EClass isOneOfQueryEClass = null; + + /** + * + * + * + * @generated + */ + private EClass stringLiteralQueryEClass = null; + + /** + * + * + * + * @generated + */ + private EClass trueLiteralQueryEClass = null; + + /** + * + * + * + * @generated + */ + private EClass falseLiteralQueryEClass = null; + + /** + * + * + * + * @generated + */ + private EClass nullLiteralQueryEClass = null; + + /** + * + * + * + * @generated + */ + private EClass integerLiteralQueryEClass = null; + + /** + * + * + * + * @generated + */ + private EClass floatLiteralQueryEClass = null; + + /** + * + * + * + * @generated + */ + private EClass eObjectLiteralQueryEClass = null; + + /** + * + * + * + * @generated + */ + private EClass operationCallQueryEClass = null; + + /** + * Creates an instance of the model Package, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + *

+ * Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#eNS_URI + * @see #init() + * @generated + */ + private QueryPackageImpl() { + super(eNS_URI, QueryFactory.eINSTANCE); + } + + /** + * + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *

+ * This method is used to initialize {@link QueryPackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static QueryPackage init() { + if (isInited) { + return (QueryPackage) EPackage.Registry.INSTANCE.getEPackage(QueryPackage.eNS_URI); + } + + // Obtain or create and register package + Object registeredQueryPackage = EPackage.Registry.INSTANCE.get(eNS_URI); + QueryPackageImpl theQueryPackage = registeredQueryPackage instanceof QueryPackageImpl ? (QueryPackageImpl) registeredQueryPackage : new QueryPackageImpl(); + + isInited = true; + + // Initialize simple dependencies + EcorePackage.eINSTANCE.eClass(); + + // Obtain or create and register interdependencies + Object registeredPackage = EPackage.Registry.INSTANCE.getEPackage(EFacetPackage.eNS_URI); + EFacetPackageImpl theEFacetPackage = (EFacetPackageImpl) (registeredPackage instanceof EFacetPackageImpl ? registeredPackage : EFacetPackage.eINSTANCE); + registeredPackage = EPackage.Registry.INSTANCE.getEPackage(SerializationPackage.eNS_URI); + SerializationPackageImpl theSerializationPackage = (SerializationPackageImpl) (registeredPackage instanceof SerializationPackageImpl ? registeredPackage : SerializationPackage.eINSTANCE); + registeredPackage = EPackage.Registry.INSTANCE.getEPackage(ExtensiblePackage.eNS_URI); + ExtensiblePackageImpl theExtensiblePackage = (ExtensiblePackageImpl) (registeredPackage instanceof ExtensiblePackageImpl ? registeredPackage : ExtensiblePackage.eINSTANCE); + registeredPackage = EPackage.Registry.INSTANCE.getEPackage(RuntimePackage.eNS_URI); + RuntimePackageImpl theRuntimePackage = (RuntimePackageImpl) (registeredPackage instanceof RuntimePackageImpl ? registeredPackage : RuntimePackage.eINSTANCE); + + // Create package meta-data objects + theQueryPackage.createPackageContents(); + theEFacetPackage.createPackageContents(); + theSerializationPackage.createPackageContents(); + theExtensiblePackage.createPackageContents(); + theRuntimePackage.createPackageContents(); + + // Initialize created meta-data + theQueryPackage.initializePackageContents(); + theEFacetPackage.initializePackageContents(); + theSerializationPackage.initializePackageContents(); + theExtensiblePackage.initializePackageContents(); + theRuntimePackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theQueryPackage.freeze(); + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(QueryPackage.eNS_URI, theQueryPackage); + return theQueryPackage; + } + + /** + * + * + * + * @generated + */ + public EClass getNavigationQuery() { + return navigationQueryEClass; + } + + /** + * + * + * + * @generated + */ + public EReference getNavigationQuery_Path() { + return (EReference) navigationQueryEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * + * @generated + */ + public EAttribute getNavigationQuery_FailOnError() { + return (EAttribute) navigationQueryEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * + * @generated + */ + public EClass getIsOneOfQuery() { + return isOneOfQueryEClass; + } + + /** + * + * + * + * @generated + */ + public EReference getIsOneOfQuery_ExpectedEObjects() { + return (EReference) isOneOfQueryEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * + * @generated + */ + public EClass getStringLiteralQuery() { + return stringLiteralQueryEClass; + } + + /** + * + * + * + * @generated + */ + public EAttribute getStringLiteralQuery_Value() { + return (EAttribute) stringLiteralQueryEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * + * @generated + */ + public EClass getTrueLiteralQuery() { + return trueLiteralQueryEClass; + } + + /** + * + * + * + * @generated + */ + public EClass getFalseLiteralQuery() { + return falseLiteralQueryEClass; + } + + /** + * + * + * + * @generated + */ + public EClass getNullLiteralQuery() { + return nullLiteralQueryEClass; + } + + /** + * + * + * + * @generated + */ + public EClass getIntegerLiteralQuery() { + return integerLiteralQueryEClass; + } + + /** + * + * + * + * @generated + */ + public EAttribute getIntegerLiteralQuery_Value() { + return (EAttribute) integerLiteralQueryEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * + * @generated + */ + public EClass getFloatLiteralQuery() { + return floatLiteralQueryEClass; + } + + /** + * + * + * + * @generated + */ + public EAttribute getFloatLiteralQuery_Value() { + return (EAttribute) floatLiteralQueryEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * + * @generated + */ + public EClass getEObjectLiteralQuery() { + return eObjectLiteralQueryEClass; + } + + /** + * + * + * + * @generated + */ + public EReference getEObjectLiteralQuery_Element() { + return (EReference) eObjectLiteralQueryEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * + * @generated + */ + public EClass getOperationCallQuery() { + return operationCallQueryEClass; + } + + /** + * + * + * + * @generated + */ + public EReference getOperationCallQuery_Operation() { + return (EReference) operationCallQueryEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * + * @generated + */ + public EReference getOperationCallQuery_Arguments() { + return (EReference) operationCallQueryEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * + * @generated + */ + public QueryFactory getQueryFactory() { + return (QueryFactory) getEFactoryInstance(); + } + + /** + * + * + * + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * + * + * + * @generated + */ + public void createPackageContents() { + if (isCreated) { + return; + } + isCreated = true; + + // Create classes and their features + navigationQueryEClass = createEClass(NAVIGATION_QUERY); + createEReference(navigationQueryEClass, NAVIGATION_QUERY__PATH); + createEAttribute(navigationQueryEClass, NAVIGATION_QUERY__FAIL_ON_ERROR); + + isOneOfQueryEClass = createEClass(IS_ONE_OF_QUERY); + createEReference(isOneOfQueryEClass, IS_ONE_OF_QUERY__EXPECTED_EOBJECTS); + + stringLiteralQueryEClass = createEClass(STRING_LITERAL_QUERY); + createEAttribute(stringLiteralQueryEClass, STRING_LITERAL_QUERY__VALUE); + + trueLiteralQueryEClass = createEClass(TRUE_LITERAL_QUERY); + + falseLiteralQueryEClass = createEClass(FALSE_LITERAL_QUERY); + + nullLiteralQueryEClass = createEClass(NULL_LITERAL_QUERY); + + integerLiteralQueryEClass = createEClass(INTEGER_LITERAL_QUERY); + createEAttribute(integerLiteralQueryEClass, INTEGER_LITERAL_QUERY__VALUE); + + floatLiteralQueryEClass = createEClass(FLOAT_LITERAL_QUERY); + createEAttribute(floatLiteralQueryEClass, FLOAT_LITERAL_QUERY__VALUE); + + eObjectLiteralQueryEClass = createEClass(EOBJECT_LITERAL_QUERY); + createEReference(eObjectLiteralQueryEClass, EOBJECT_LITERAL_QUERY__ELEMENT); + + operationCallQueryEClass = createEClass(OPERATION_CALL_QUERY); + createEReference(operationCallQueryEClass, OPERATION_CALL_QUERY__OPERATION); + createEReference(operationCallQueryEClass, OPERATION_CALL_QUERY__ARGUMENTS); + } + + /** + * + * + * + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * + * + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) { + return; + } + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + ExtensiblePackage theExtensiblePackage = (ExtensiblePackage) EPackage.Registry.INSTANCE.getEPackage(ExtensiblePackage.eNS_URI); + EcorePackage theEcorePackage = (EcorePackage) EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + navigationQueryEClass.getESuperTypes().add(theExtensiblePackage.getQuery()); + isOneOfQueryEClass.getESuperTypes().add(theExtensiblePackage.getQuery()); + stringLiteralQueryEClass.getESuperTypes().add(theExtensiblePackage.getQuery()); + trueLiteralQueryEClass.getESuperTypes().add(theExtensiblePackage.getQuery()); + falseLiteralQueryEClass.getESuperTypes().add(theExtensiblePackage.getQuery()); + nullLiteralQueryEClass.getESuperTypes().add(theExtensiblePackage.getQuery()); + integerLiteralQueryEClass.getESuperTypes().add(theExtensiblePackage.getQuery()); + floatLiteralQueryEClass.getESuperTypes().add(theExtensiblePackage.getQuery()); + eObjectLiteralQueryEClass.getESuperTypes().add(theExtensiblePackage.getQuery()); + operationCallQueryEClass.getESuperTypes().add(theExtensiblePackage.getQuery()); + + // Initialize classes and features; add operations and parameters + initEClass(navigationQueryEClass, NavigationQuery.class, "NavigationQuery", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEReference(getNavigationQuery_Path(), theEcorePackage.getETypedElement(), null, "path", null, 1, -1, NavigationQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, //$NON-NLS-1$ + IS_ORDERED); + initEAttribute(getNavigationQuery_FailOnError(), theEcorePackage.getEBoolean(), "failOnError", "true", 0, 1, NavigationQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ + + initEClass(isOneOfQueryEClass, IsOneOfQuery.class, "IsOneOfQuery", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEReference(getIsOneOfQuery_ExpectedEObjects(), theEcorePackage.getEObject(), null, "expectedEObjects", null, 0, -1, IsOneOfQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, //$NON-NLS-1$ + !IS_DERIVED, IS_ORDERED); + + initEClass(stringLiteralQueryEClass, StringLiteralQuery.class, "StringLiteralQuery", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEAttribute(getStringLiteralQuery_Value(), theEcorePackage.getEString(), "value", null, 0, 1, StringLiteralQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + + initEClass(trueLiteralQueryEClass, TrueLiteralQuery.class, "TrueLiteralQuery", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + + initEClass(falseLiteralQueryEClass, FalseLiteralQuery.class, "FalseLiteralQuery", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + + initEClass(nullLiteralQueryEClass, NullLiteralQuery.class, "NullLiteralQuery", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + + initEClass(integerLiteralQueryEClass, IntegerLiteralQuery.class, "IntegerLiteralQuery", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEAttribute(getIntegerLiteralQuery_Value(), theEcorePackage.getEInt(), "value", null, 0, 1, IntegerLiteralQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + + initEClass(floatLiteralQueryEClass, FloatLiteralQuery.class, "FloatLiteralQuery", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEAttribute(getFloatLiteralQuery_Value(), theEcorePackage.getEFloat(), "value", null, 0, 1, FloatLiteralQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + + initEClass(eObjectLiteralQueryEClass, EObjectLiteralQuery.class, "EObjectLiteralQuery", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEReference(getEObjectLiteralQuery_Element(), theEcorePackage.getEObject(), null, "element", null, 0, 1, EObjectLiteralQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, //$NON-NLS-1$ + !IS_DERIVED, IS_ORDERED); + + initEClass(operationCallQueryEClass, OperationCallQuery.class, "OperationCallQuery", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEReference(getOperationCallQuery_Operation(), theEcorePackage.getEOperation(), null, "operation", null, 0, 1, OperationCallQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, //$NON-NLS-1$ + !IS_DERIVED, IS_ORDERED); + initEReference(getOperationCallQuery_Arguments(), theExtensiblePackage.getQuery(), null, "arguments", null, 0, -1, OperationCallQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, //$NON-NLS-1$ + !IS_DERIVED, IS_ORDERED); + } + +} // QueryPackageImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/StringLiteralQueryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/StringLiteralQueryImpl.java new file mode 100644 index 00000000000..e59a044941e --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/StringLiteralQueryImpl.java @@ -0,0 +1,191 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery + * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.QueryImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.StringLiteralQuery; + +/** + * + * An implementation of the model object 'String Literal Query'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.StringLiteralQueryImpl#getValue Value}
  • + *
+ * + * @generated + */ +public class StringLiteralQueryImpl extends QueryImpl implements StringLiteralQuery { + /** + * The default value of the '{@link #getValue() Value}' attribute. + * + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected static final String VALUE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getValue() Value}' attribute. + * + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected String value = VALUE_EDEFAULT; + + /** + * + * + * + * @generated + */ + protected StringLiteralQueryImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return QueryPackage.Literals.STRING_LITERAL_QUERY; + } + + /** + * + * + * + * @generated + */ + public String getValue() { + return value; + } + + /** + * + * + * + * @generated + */ + public void setValue(String newValue) { + String oldValue = value; + value = newValue; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, QueryPackage.STRING_LITERAL_QUERY__VALUE, oldValue, value)); + } + } + + /** + * + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case QueryPackage.STRING_LITERAL_QUERY__VALUE: + return getValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case QueryPackage.STRING_LITERAL_QUERY__VALUE: + setValue((String) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case QueryPackage.STRING_LITERAL_QUERY__VALUE: + setValue(VALUE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case QueryPackage.STRING_LITERAL_QUERY__VALUE: + return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); + } + return super.eIsSet(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (value: "); //$NON-NLS-1$ + result.append(value); + result.append(')'); + return result.toString(); + } + +} // StringLiteralQueryImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/TrueLiteralQueryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/TrueLiteralQueryImpl.java new file mode 100644 index 00000000000..2f90873ccc5 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/TrueLiteralQueryImpl.java @@ -0,0 +1,58 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery + * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query + * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.QueryImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.TrueLiteralQuery; + +/** + * + * An implementation of the model object 'True Literal Query'. + * + * + * @generated + */ +public class TrueLiteralQueryImpl extends QueryImpl implements TrueLiteralQuery { + /** + * + * + * + * @generated + */ + protected TrueLiteralQueryImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return QueryPackage.Literals.TRUE_LITERAL_QUERY; + } + +} // TrueLiteralQueryImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/util/QueryAdapterFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/util/QueryAdapterFactory.java new file mode 100644 index 00000000000..f1ddf493454 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/util/QueryAdapterFactory.java @@ -0,0 +1,353 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.util; + +import org.eclipse.emf.common.notify.Adapter; +import org.eclipse.emf.common.notify.Notifier; +import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.EObjectLiteralQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FalseLiteralQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FloatLiteralQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IntegerLiteralQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IsOneOfQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NavigationQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NullLiteralQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.OperationCallQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.StringLiteralQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.TrueLiteralQuery; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage + * @generated + */ +public class QueryAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * + * @generated + */ + protected static QueryPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * + * @generated + */ + public QueryAdapterFactory() { + if (modelPackage == null) { + modelPackage = QueryPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * + * This implementation returns true if the object is either the model's package or is an instance object of the model. + * + * + * @return whether this factory is applicable for the type of the object. + * @generated + */ + @Override + public boolean isFactoryForType(Object object) { + if (object == modelPackage) { + return true; + } + if (object instanceof EObject) { + return ((EObject) object).eClass().getEPackage() == modelPackage; + } + return false; + } + + /** + * The switch that delegates to the createXXX methods. + * + * + * + * @generated + */ + protected QuerySwitch modelSwitch = new QuerySwitch() { + @Override + public Adapter caseNavigationQuery(NavigationQuery object) { + return createNavigationQueryAdapter(); + } + + @Override + public Adapter caseIsOneOfQuery(IsOneOfQuery object) { + return createIsOneOfQueryAdapter(); + } + + @Override + public Adapter caseStringLiteralQuery(StringLiteralQuery object) { + return createStringLiteralQueryAdapter(); + } + + @Override + public Adapter caseTrueLiteralQuery(TrueLiteralQuery object) { + return createTrueLiteralQueryAdapter(); + } + + @Override + public Adapter caseFalseLiteralQuery(FalseLiteralQuery object) { + return createFalseLiteralQueryAdapter(); + } + + @Override + public Adapter caseNullLiteralQuery(NullLiteralQuery object) { + return createNullLiteralQueryAdapter(); + } + + @Override + public Adapter caseIntegerLiteralQuery(IntegerLiteralQuery object) { + return createIntegerLiteralQueryAdapter(); + } + + @Override + public Adapter caseFloatLiteralQuery(FloatLiteralQuery object) { + return createFloatLiteralQueryAdapter(); + } + + @Override + public Adapter caseEObjectLiteralQuery(EObjectLiteralQuery object) { + return createEObjectLiteralQueryAdapter(); + } + + @Override + public Adapter caseOperationCallQuery(OperationCallQuery object) { + return createOperationCallQueryAdapter(); + } + + @Override + public Adapter caseQuery(Query object) { + return createQueryAdapter(); + } + + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the target. + * + * + * + * @param target + * the object to adapt. + * @return the adapter for the target. + * @generated + */ + @Override + public Adapter createAdapter(Notifier target) { + return modelSwitch.doSwitch((EObject) target); + } + + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NavigationQuery Navigation Query}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NavigationQuery + * @generated + */ + public Adapter createNavigationQueryAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IsOneOfQuery Is One Of Query}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IsOneOfQuery + * @generated + */ + public Adapter createIsOneOfQueryAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.StringLiteralQuery String Literal Query}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.StringLiteralQuery + * @generated + */ + public Adapter createStringLiteralQueryAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.TrueLiteralQuery True Literal Query}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.TrueLiteralQuery + * @generated + */ + public Adapter createTrueLiteralQueryAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FalseLiteralQuery False Literal Query}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FalseLiteralQuery + * @generated + */ + public Adapter createFalseLiteralQueryAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NullLiteralQuery Null Literal Query}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NullLiteralQuery + * @generated + */ + public Adapter createNullLiteralQueryAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IntegerLiteralQuery Integer Literal Query}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IntegerLiteralQuery + * @generated + */ + public Adapter createIntegerLiteralQueryAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FloatLiteralQuery Float Literal Query}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FloatLiteralQuery + * @generated + */ + public Adapter createFloatLiteralQueryAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.EObjectLiteralQuery EObject Literal Query}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.EObjectLiteralQuery + * @generated + */ + public Adapter createEObjectLiteralQueryAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.OperationCallQuery Operation Call Query}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.OperationCallQuery + * @generated + */ + public Adapter createOperationCallQueryAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query Query}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query + * @generated + */ + public Adapter createQueryAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * + * This default implementation returns null. + * + * + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} // QueryAdapterFactory diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/util/QuerySwitch.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/util/QuerySwitch.java new file mode 100644 index 00000000000..f097d5b093e --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/util/QuerySwitch.java @@ -0,0 +1,434 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery + * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query + * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.util; + +import java.util.List; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.EObjectLiteralQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FalseLiteralQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FloatLiteralQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IntegerLiteralQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IsOneOfQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NavigationQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NullLiteralQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.OperationCallQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.StringLiteralQuery; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.TrueLiteralQuery; + +/** + * + * The Switch for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} to invoke the caseXXX method for each class of the model, + * starting with the actual class of the object + * and proceeding up the inheritance hierarchy + * until a non-null result is returned, + * which is the result of the switch. + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage + * @generated + */ +public class QuerySwitch { + /** + * The cached model package + * + * + * + * @generated + */ + protected static QueryPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * + * @generated + */ + public QuerySwitch() { + if (modelPackage == null) { + modelPackage = QueryPackage.eINSTANCE; + } + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + public T doSwitch(EObject theEObject) { + return doSwitch(theEObject.eClass(), theEObject); + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + protected T doSwitch(EClass theEClass, EObject theEObject) { + if (theEClass.eContainer() == modelPackage) { + return doSwitch(theEClass.getClassifierID(), theEObject); + } else { + List eSuperTypes = theEClass.getESuperTypes(); + return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(eSuperTypes.get(0), theEObject); + } + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { + case QueryPackage.NAVIGATION_QUERY: { + NavigationQuery navigationQuery = (NavigationQuery) theEObject; + T result = caseNavigationQuery(navigationQuery); + if (result == null) { + result = caseQuery(navigationQuery); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case QueryPackage.IS_ONE_OF_QUERY: { + IsOneOfQuery isOneOfQuery = (IsOneOfQuery) theEObject; + T result = caseIsOneOfQuery(isOneOfQuery); + if (result == null) { + result = caseQuery(isOneOfQuery); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case QueryPackage.STRING_LITERAL_QUERY: { + StringLiteralQuery stringLiteralQuery = (StringLiteralQuery) theEObject; + T result = caseStringLiteralQuery(stringLiteralQuery); + if (result == null) { + result = caseQuery(stringLiteralQuery); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case QueryPackage.TRUE_LITERAL_QUERY: { + TrueLiteralQuery trueLiteralQuery = (TrueLiteralQuery) theEObject; + T result = caseTrueLiteralQuery(trueLiteralQuery); + if (result == null) { + result = caseQuery(trueLiteralQuery); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case QueryPackage.FALSE_LITERAL_QUERY: { + FalseLiteralQuery falseLiteralQuery = (FalseLiteralQuery) theEObject; + T result = caseFalseLiteralQuery(falseLiteralQuery); + if (result == null) { + result = caseQuery(falseLiteralQuery); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case QueryPackage.NULL_LITERAL_QUERY: { + NullLiteralQuery nullLiteralQuery = (NullLiteralQuery) theEObject; + T result = caseNullLiteralQuery(nullLiteralQuery); + if (result == null) { + result = caseQuery(nullLiteralQuery); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case QueryPackage.INTEGER_LITERAL_QUERY: { + IntegerLiteralQuery integerLiteralQuery = (IntegerLiteralQuery) theEObject; + T result = caseIntegerLiteralQuery(integerLiteralQuery); + if (result == null) { + result = caseQuery(integerLiteralQuery); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case QueryPackage.FLOAT_LITERAL_QUERY: { + FloatLiteralQuery floatLiteralQuery = (FloatLiteralQuery) theEObject; + T result = caseFloatLiteralQuery(floatLiteralQuery); + if (result == null) { + result = caseQuery(floatLiteralQuery); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case QueryPackage.EOBJECT_LITERAL_QUERY: { + EObjectLiteralQuery eObjectLiteralQuery = (EObjectLiteralQuery) theEObject; + T result = caseEObjectLiteralQuery(eObjectLiteralQuery); + if (result == null) { + result = caseQuery(eObjectLiteralQuery); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case QueryPackage.OPERATION_CALL_QUERY: { + OperationCallQuery operationCallQuery = (OperationCallQuery) theEObject; + T result = caseOperationCallQuery(operationCallQuery); + if (result == null) { + result = caseQuery(operationCallQuery); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + default: + return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Navigation Query'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Navigation Query'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNavigationQuery(NavigationQuery object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Is One Of Query'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Is One Of Query'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseIsOneOfQuery(IsOneOfQuery object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'String Literal Query'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'String Literal Query'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseStringLiteralQuery(StringLiteralQuery object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'True Literal Query'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'True Literal Query'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTrueLiteralQuery(TrueLiteralQuery object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'False Literal Query'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'False Literal Query'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseFalseLiteralQuery(FalseLiteralQuery object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Null Literal Query'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Null Literal Query'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNullLiteralQuery(NullLiteralQuery object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Integer Literal Query'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Integer Literal Query'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseIntegerLiteralQuery(IntegerLiteralQuery object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Float Literal Query'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Float Literal Query'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseFloatLiteralQuery(FloatLiteralQuery object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EObject Literal Query'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'EObject Literal Query'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseEObjectLiteralQuery(EObjectLiteralQuery object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Operation Call Query'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Operation Call Query'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseOperationCallQuery(OperationCallQuery object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Query'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Query'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseQuery(Query object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EObject'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'EObject'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + public T defaultCase(EObject object) { + return null; + } + +} // QuerySwitch diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementEObjectListResult.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementEObjectListResult.java new file mode 100644 index 00000000000..9d6f2a3d1fc --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementEObjectListResult.java @@ -0,0 +1,63 @@ +/** + * Copyright (c) 2011, 2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery + * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query + * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'ETyped Element EObject List Result'. + * + * + * + * This class represents the result of evaluating the value of a multiplicity-many DerivedTypedElement by means of a multi-valued query . + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectListResult#getResultList Result List}
  • + *
+ * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage#getETypedElementEObjectListResult() + * @model + * @generated + */ +public interface ETypedElementEObjectListResult extends ETypedElementResult { + /** + * Returns the value of the 'Result List' reference list. + * + *

+ * If the meaning of the 'Result List' reference list isn't clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'Result List' reference list. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage#getETypedElementEObjectListResult_ResultList() + * @model + * @generated + */ + EList getResultList(); + +} // ETypedElementEObjectListResult diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementEObjectResult.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementEObjectResult.java new file mode 100644 index 00000000000..cdd9568381c --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementEObjectResult.java @@ -0,0 +1,75 @@ +/** + * Copyright (c) 2011, 2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery + * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query + * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'ETyped Element EObject Result'. + * + * + * + * This class represents the result of evaluating the value of a multiplicity-one DerivedTypedElement by means of a single-valued query . + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectResult#getResult Result}
  • + *
+ * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage#getETypedElementEObjectResult() + * @model + * @generated + */ +public interface ETypedElementEObjectResult extends ETypedElementResult { + /** + * Returns the value of the 'Result' reference. + * + *

+ * If the meaning of the 'Result' reference isn't clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'Result' reference. + * @see #setResult(EObject) + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage#getETypedElementEObjectResult_Result() + * @model + * @generated + */ + T getResult(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectResult#getResult Result}' reference. + * + * + * + * @param value + * the new value of the 'Result' reference. + * @see #getResult() + * @generated + */ + void setResult(T value); + +} // ETypedElementEObjectResult diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementPrimitiveTypeListResult.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementPrimitiveTypeListResult.java new file mode 100644 index 00000000000..fab5244e04e --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementPrimitiveTypeListResult.java @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2011, 2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery + * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query + * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'ETyped Element Primitive Type List Result'. + * + * + * + * This class represents the result of evaluating the value of a multiplicity-many DerivedTypedElement by means of a multi-valued query . + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeListResult#getResultList Result List}
  • + *
+ * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage#getETypedElementPrimitiveTypeListResult() + * @model + * @generated + */ +public interface ETypedElementPrimitiveTypeListResult extends ETypedElementResult { + /** + * Returns the value of the 'Result List' attribute list. + * + *

+ * If the meaning of the 'Result List' attribute list isn't clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'Result List' attribute list. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage#getETypedElementPrimitiveTypeListResult_ResultList() + * @model + * @generated + */ + EList getResultList(); + +} // ETypedElementPrimitiveTypeListResult diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementPrimitiveTypeResult.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementPrimitiveTypeResult.java new file mode 100644 index 00000000000..0b823b93d5e --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementPrimitiveTypeResult.java @@ -0,0 +1,74 @@ +/** + * Copyright (c) 2011, 2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery + * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query + * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime; + + +/** + * + * A representation of the model object 'ETyped Element Primitive Type Result'. + * + * + * + * This class represents the result of evaluating the value of a multiplicity-one DerivedTypedElement by means of a single-valued query . + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeResult#getResult Result}
  • + *
+ * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage#getETypedElementPrimitiveTypeResult() + * @model + * @generated + */ +public interface ETypedElementPrimitiveTypeResult extends ETypedElementResult { + /** + * Returns the value of the 'Result' attribute. + * + *

+ * If the meaning of the 'Result' attribute isn't clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'Result' attribute. + * @see #setResult(Object) + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage#getETypedElementPrimitiveTypeResult_Result() + * @model + * @generated + */ + T getResult(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeResult#getResult Result}' attribute. + * + * + * + * @param value + * the new value of the 'Result' attribute. + * @see #getResult() + * @generated + */ + void setResult(T value); + +} // ETypedElementPrimitiveTypeResult diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementResult.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementResult.java new file mode 100644 index 00000000000..0ee35384c16 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementResult.java @@ -0,0 +1,153 @@ +/** + * Copyright (c) 2011, 2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery + * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query + * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.ETypedElement; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue; + +/** + * + * A representation of the model object 'ETyped Element Result'. + * + * + * + * This class represents the result of evaluating the value of a DerivedTypedElement by means of a query . + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult#getDerivedTypedElement Derived Typed Element}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult#getParameterValues Parameter Values}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult#getSource Source}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult#getException Exception}
  • + *
+ * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage#getETypedElementResult() + * @model abstract="true" + * @generated + */ +public interface ETypedElementResult extends EObject { + /** + * Returns the value of the 'Derived Typed Element' reference. + * + * + * + * The reference "query" references the executed query. + * + * + * @return the value of the 'Derived Typed Element' reference. + * @see #setDerivedTypedElement(ETypedElement) + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage#getETypedElementResult_DerivedTypedElement() + * @model required="true" + * @generated + */ + ETypedElement getDerivedTypedElement(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult#getDerivedTypedElement Derived Typed Element}' reference. + * + * + * + * @param value + * the new value of the 'Derived Typed Element' reference. + * @see #getDerivedTypedElement() + * @generated + */ + void setDerivedTypedElement(ETypedElement value); + + /** + * Returns the value of the 'Parameter Values' containment reference list. + * The list contents are of type {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue}. + * + * + * + * This is the list of the values given as parameters for the query execution. + * + * + * @return the value of the 'Parameter Values' containment reference list. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage#getETypedElementResult_ParameterValues() + * @model containment="true" + * @generated + */ + EList getParameterValues(); + + /** + * Returns the value of the 'Source' reference. + * + *

+ * If the meaning of the 'Source' reference isn't clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'Source' reference. + * @see #setSource(EObject) + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage#getETypedElementResult_Source() + * @model required="true" + * @generated + */ + EObject getSource(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult#getSource Source}' reference. + * + * + * + * @param value + * the new value of the 'Source' reference. + * @see #getSource() + * @generated + */ + void setSource(EObject value); + + /** + * Returns the value of the 'Exception' attribute. + * + *

+ * If the meaning of the 'Exception' attribute isn't clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'Exception' attribute. + * @see #setException(Throwable) + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage#getETypedElementResult_Exception() + * @model dataType="org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.JavaException" transient="true" + * @generated + */ + Throwable getException(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult#getException Exception}' attribute. + * + * + * + * @param value + * the new value of the 'Exception' attribute. + * @see #getException() + * @generated + */ + void setException(Throwable value); + +} // ETypedElementResult diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/RuntimeFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/RuntimeFactory.java new file mode 100644 index 00000000000..7d27163fd38 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/RuntimeFactory.java @@ -0,0 +1,97 @@ +/** + * Copyright (c) 2011, 2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery + * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query + * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. + * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime; + +import org.eclipse.emf.ecore.EFactory; +import org.eclipse.emf.ecore.EObject; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage + * @generated + */ +public interface RuntimeFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * + * @generated + */ + RuntimeFactory eINSTANCE = org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.RuntimeFactoryImpl.init(); + + /** + * Returns a new object of class 'ETyped Element Primitive Type Result'. + * + * + * + * @return a new object of class 'ETyped Element Primitive Type Result'. + * @generated + */ + ETypedElementPrimitiveTypeResult createETypedElementPrimitiveTypeResult(); + + /** + * Returns a new object of class 'ETyped Element EObject Result'. + * + * + * + * @return a new object of class 'ETyped Element EObject Result'. + * @generated + */ + ETypedElementEObjectResult createETypedElementEObjectResult(); + + /** + * Returns a new object of class 'ETyped Element Primitive Type List Result'. + * + * + * + * @return a new object of class 'ETyped Element Primitive Type List Result'. + * @generated + */ + ETypedElementPrimitiveTypeListResult createETypedElementPrimitiveTypeListResult(); + + /** + * Returns a new object of class 'ETyped Element EObject List Result'. + * + * + * + * @return a new object of class 'ETyped Element EObject List Result'. + * @generated + */ + ETypedElementEObjectListResult createETypedElementEObjectListResult(); + + /** + * Returns the package supported by this factory. + * + * + * + * @return the package supported by this factory. + * @generated + */ + RuntimePackage getRuntimePackage(); + +} // RuntimeFactory diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/RuntimePackage.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/RuntimePackage.java new file mode 100644 index 00000000000..08dc0b7ae23 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/RuntimePackage.java @@ -0,0 +1,768 @@ +/** + * Copyright (c) 2011, 2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery + * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query + * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. + * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimeFactory + * @model kind="package" + * @generated + */ +public interface RuntimePackage extends EPackage { + /** + * The package name. + * + * + * + * @generated + */ + String eNAME = "runtime"; //$NON-NLS-1$ + + /** + * The package namespace URI. + * + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/emf/facet/efacet/0.2.incubation/efacet/runtime"; //$NON-NLS-1$ + + /** + * The package namespace name. + * + * + * + * @generated + */ + String eNS_PREFIX = "runtime"; //$NON-NLS-1$ + + /** + * The singleton instance of the package. + * + * + * + * @generated + */ + RuntimePackage eINSTANCE = org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.RuntimePackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementResultImpl ETyped Element Result}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementResultImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.RuntimePackageImpl#getETypedElementResult() + * @generated + */ + int ETYPED_ELEMENT_RESULT = 4; + + /** + * The feature id for the 'Derived Typed Element' reference. + * + * + * + * @generated + * @ordered + */ + int ETYPED_ELEMENT_RESULT__DERIVED_TYPED_ELEMENT = 0; + + /** + * The feature id for the 'Parameter Values' containment reference list. + * + * + * + * @generated + * @ordered + */ + int ETYPED_ELEMENT_RESULT__PARAMETER_VALUES = 1; + + /** + * The feature id for the 'Source' reference. + * + * + * + * @generated + * @ordered + */ + int ETYPED_ELEMENT_RESULT__SOURCE = 2; + + /** + * The feature id for the 'Exception' attribute. + * + * + * + * @generated + * @ordered + */ + int ETYPED_ELEMENT_RESULT__EXCEPTION = 3; + + /** + * The number of structural features of the 'ETyped Element Result' class. + * + * + * + * @generated + * @ordered + */ + int ETYPED_ELEMENT_RESULT_FEATURE_COUNT = 4; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementPrimitiveTypeResultImpl ETyped Element Primitive Type Result}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementPrimitiveTypeResultImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.RuntimePackageImpl#getETypedElementPrimitiveTypeResult() + * @generated + */ + int ETYPED_ELEMENT_PRIMITIVE_TYPE_RESULT = 0; + + /** + * The feature id for the 'Derived Typed Element' reference. + * + * + * + * @generated + * @ordered + */ + int ETYPED_ELEMENT_PRIMITIVE_TYPE_RESULT__DERIVED_TYPED_ELEMENT = ETYPED_ELEMENT_RESULT__DERIVED_TYPED_ELEMENT; + + /** + * The feature id for the 'Parameter Values' containment reference list. + * + * + * + * @generated + * @ordered + */ + int ETYPED_ELEMENT_PRIMITIVE_TYPE_RESULT__PARAMETER_VALUES = ETYPED_ELEMENT_RESULT__PARAMETER_VALUES; + + /** + * The feature id for the 'Source' reference. + * + * + * + * @generated + * @ordered + */ + int ETYPED_ELEMENT_PRIMITIVE_TYPE_RESULT__SOURCE = ETYPED_ELEMENT_RESULT__SOURCE; + + /** + * The feature id for the 'Exception' attribute. + * + * + * + * @generated + * @ordered + */ + int ETYPED_ELEMENT_PRIMITIVE_TYPE_RESULT__EXCEPTION = ETYPED_ELEMENT_RESULT__EXCEPTION; + + /** + * The feature id for the 'Result' attribute. + * + * + * + * @generated + * @ordered + */ + int ETYPED_ELEMENT_PRIMITIVE_TYPE_RESULT__RESULT = ETYPED_ELEMENT_RESULT_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'ETyped Element Primitive Type Result' class. + * + * + * + * @generated + * @ordered + */ + int ETYPED_ELEMENT_PRIMITIVE_TYPE_RESULT_FEATURE_COUNT = ETYPED_ELEMENT_RESULT_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementEObjectResultImpl ETyped Element EObject Result}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementEObjectResultImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.RuntimePackageImpl#getETypedElementEObjectResult() + * @generated + */ + int ETYPED_ELEMENT_EOBJECT_RESULT = 1; + + /** + * The feature id for the 'Derived Typed Element' reference. + * + * + * + * @generated + * @ordered + */ + int ETYPED_ELEMENT_EOBJECT_RESULT__DERIVED_TYPED_ELEMENT = ETYPED_ELEMENT_RESULT__DERIVED_TYPED_ELEMENT; + + /** + * The feature id for the 'Parameter Values' containment reference list. + * + * + * + * @generated + * @ordered + */ + int ETYPED_ELEMENT_EOBJECT_RESULT__PARAMETER_VALUES = ETYPED_ELEMENT_RESULT__PARAMETER_VALUES; + + /** + * The feature id for the 'Source' reference. + * + * + * + * @generated + * @ordered + */ + int ETYPED_ELEMENT_EOBJECT_RESULT__SOURCE = ETYPED_ELEMENT_RESULT__SOURCE; + + /** + * The feature id for the 'Exception' attribute. + * + * + * + * @generated + * @ordered + */ + int ETYPED_ELEMENT_EOBJECT_RESULT__EXCEPTION = ETYPED_ELEMENT_RESULT__EXCEPTION; + + /** + * The feature id for the 'Result' reference. + * + * + * + * @generated + * @ordered + */ + int ETYPED_ELEMENT_EOBJECT_RESULT__RESULT = ETYPED_ELEMENT_RESULT_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'ETyped Element EObject Result' class. + * + * + * + * @generated + * @ordered + */ + int ETYPED_ELEMENT_EOBJECT_RESULT_FEATURE_COUNT = ETYPED_ELEMENT_RESULT_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementPrimitiveTypeListResultImpl ETyped Element Primitive Type List Result}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementPrimitiveTypeListResultImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.RuntimePackageImpl#getETypedElementPrimitiveTypeListResult() + * @generated + */ + int ETYPED_ELEMENT_PRIMITIVE_TYPE_LIST_RESULT = 2; + + /** + * The feature id for the 'Derived Typed Element' reference. + * + * + * + * @generated + * @ordered + */ + int ETYPED_ELEMENT_PRIMITIVE_TYPE_LIST_RESULT__DERIVED_TYPED_ELEMENT = ETYPED_ELEMENT_RESULT__DERIVED_TYPED_ELEMENT; + + /** + * The feature id for the 'Parameter Values' containment reference list. + * + * + * + * @generated + * @ordered + */ + int ETYPED_ELEMENT_PRIMITIVE_TYPE_LIST_RESULT__PARAMETER_VALUES = ETYPED_ELEMENT_RESULT__PARAMETER_VALUES; + + /** + * The feature id for the 'Source' reference. + * + * + * + * @generated + * @ordered + */ + int ETYPED_ELEMENT_PRIMITIVE_TYPE_LIST_RESULT__SOURCE = ETYPED_ELEMENT_RESULT__SOURCE; + + /** + * The feature id for the 'Exception' attribute. + * + * + * + * @generated + * @ordered + */ + int ETYPED_ELEMENT_PRIMITIVE_TYPE_LIST_RESULT__EXCEPTION = ETYPED_ELEMENT_RESULT__EXCEPTION; + + /** + * The feature id for the 'Result List' attribute list. + * + * + * + * @generated + * @ordered + */ + int ETYPED_ELEMENT_PRIMITIVE_TYPE_LIST_RESULT__RESULT_LIST = ETYPED_ELEMENT_RESULT_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'ETyped Element Primitive Type List Result' class. + * + * + * + * @generated + * @ordered + */ + int ETYPED_ELEMENT_PRIMITIVE_TYPE_LIST_RESULT_FEATURE_COUNT = ETYPED_ELEMENT_RESULT_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementEObjectListResultImpl ETyped Element EObject List Result}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementEObjectListResultImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.RuntimePackageImpl#getETypedElementEObjectListResult() + * @generated + */ + int ETYPED_ELEMENT_EOBJECT_LIST_RESULT = 3; + + /** + * The feature id for the 'Derived Typed Element' reference. + * + * + * + * @generated + * @ordered + */ + int ETYPED_ELEMENT_EOBJECT_LIST_RESULT__DERIVED_TYPED_ELEMENT = ETYPED_ELEMENT_RESULT__DERIVED_TYPED_ELEMENT; + + /** + * The feature id for the 'Parameter Values' containment reference list. + * + * + * + * @generated + * @ordered + */ + int ETYPED_ELEMENT_EOBJECT_LIST_RESULT__PARAMETER_VALUES = ETYPED_ELEMENT_RESULT__PARAMETER_VALUES; + + /** + * The feature id for the 'Source' reference. + * + * + * + * @generated + * @ordered + */ + int ETYPED_ELEMENT_EOBJECT_LIST_RESULT__SOURCE = ETYPED_ELEMENT_RESULT__SOURCE; + + /** + * The feature id for the 'Exception' attribute. + * + * + * + * @generated + * @ordered + */ + int ETYPED_ELEMENT_EOBJECT_LIST_RESULT__EXCEPTION = ETYPED_ELEMENT_RESULT__EXCEPTION; + + /** + * The feature id for the 'Result List' reference list. + * + * + * + * @generated + * @ordered + */ + int ETYPED_ELEMENT_EOBJECT_LIST_RESULT__RESULT_LIST = ETYPED_ELEMENT_RESULT_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'ETyped Element EObject List Result' class. + * + * + * + * @generated + * @ordered + */ + int ETYPED_ELEMENT_EOBJECT_LIST_RESULT_FEATURE_COUNT = ETYPED_ELEMENT_RESULT_FEATURE_COUNT + 1; + + /** + * The meta object id for the 'Java Exception' data type. + * + * + * + * @see java.lang.Throwable + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.RuntimePackageImpl#getJavaException() + * @generated + */ + int JAVA_EXCEPTION = 5; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeResult ETyped Element Primitive Type Result}'. + * + * + * + * @return the meta object for class 'ETyped Element Primitive Type Result'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeResult + * @generated + */ + EClass getETypedElementPrimitiveTypeResult(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeResult#getResult Result}'. + * + * + * + * @return the meta object for the attribute 'Result'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeResult#getResult() + * @see #getETypedElementPrimitiveTypeResult() + * @generated + */ + EAttribute getETypedElementPrimitiveTypeResult_Result(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectResult ETyped Element EObject Result}'. + * + * + * + * @return the meta object for class 'ETyped Element EObject Result'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectResult + * @generated + */ + EClass getETypedElementEObjectResult(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectResult#getResult Result}'. + * + * + * + * @return the meta object for the reference 'Result'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectResult#getResult() + * @see #getETypedElementEObjectResult() + * @generated + */ + EReference getETypedElementEObjectResult_Result(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeListResult ETyped Element Primitive Type List Result}'. + * + * + * + * @return the meta object for class 'ETyped Element Primitive Type List Result'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeListResult + * @generated + */ + EClass getETypedElementPrimitiveTypeListResult(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeListResult#getResultList Result List}'. + * + * + * + * @return the meta object for the attribute list 'Result List'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeListResult#getResultList() + * @see #getETypedElementPrimitiveTypeListResult() + * @generated + */ + EAttribute getETypedElementPrimitiveTypeListResult_ResultList(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectListResult ETyped Element EObject List Result}'. + * + * + * + * @return the meta object for class 'ETyped Element EObject List Result'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectListResult + * @generated + */ + EClass getETypedElementEObjectListResult(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectListResult#getResultList Result List}'. + * + * + * + * @return the meta object for the reference list 'Result List'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectListResult#getResultList() + * @see #getETypedElementEObjectListResult() + * @generated + */ + EReference getETypedElementEObjectListResult_ResultList(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult ETyped Element Result}'. + * + * + * + * @return the meta object for class 'ETyped Element Result'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult + * @generated + */ + EClass getETypedElementResult(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult#getDerivedTypedElement Derived Typed Element}'. + * + * + * + * @return the meta object for the reference 'Derived Typed Element'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult#getDerivedTypedElement() + * @see #getETypedElementResult() + * @generated + */ + EReference getETypedElementResult_DerivedTypedElement(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult#getParameterValues Parameter Values}'. + * + * + * + * @return the meta object for the containment reference list 'Parameter Values'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult#getParameterValues() + * @see #getETypedElementResult() + * @generated + */ + EReference getETypedElementResult_ParameterValues(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult#getSource Source}'. + * + * + * + * @return the meta object for the reference 'Source'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult#getSource() + * @see #getETypedElementResult() + * @generated + */ + EReference getETypedElementResult_Source(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult#getException Exception}'. + * + * + * + * @return the meta object for the attribute 'Exception'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult#getException() + * @see #getETypedElementResult() + * @generated + */ + EAttribute getETypedElementResult_Exception(); + + /** + * Returns the meta object for data type '{@link java.lang.Throwable Java Exception}'. + * + * + * + * @return the meta object for data type 'Java Exception'. + * @see java.lang.Throwable + * @model instanceClass="java.lang.Throwable" + * @generated + */ + EDataType getJavaException(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + RuntimeFactory getRuntimeFactory(); + + /** + * + * Defines literals for the meta objects that represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementPrimitiveTypeResultImpl ETyped Element Primitive Type Result}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementPrimitiveTypeResultImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.RuntimePackageImpl#getETypedElementPrimitiveTypeResult() + * @generated + */ + EClass ETYPED_ELEMENT_PRIMITIVE_TYPE_RESULT = eINSTANCE.getETypedElementPrimitiveTypeResult(); + + /** + * The meta object literal for the 'Result' attribute feature. + * + * + * + * @generated + */ + EAttribute ETYPED_ELEMENT_PRIMITIVE_TYPE_RESULT__RESULT = eINSTANCE.getETypedElementPrimitiveTypeResult_Result(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementEObjectResultImpl ETyped Element EObject Result}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementEObjectResultImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.RuntimePackageImpl#getETypedElementEObjectResult() + * @generated + */ + EClass ETYPED_ELEMENT_EOBJECT_RESULT = eINSTANCE.getETypedElementEObjectResult(); + + /** + * The meta object literal for the 'Result' reference feature. + * + * + * + * @generated + */ + EReference ETYPED_ELEMENT_EOBJECT_RESULT__RESULT = eINSTANCE.getETypedElementEObjectResult_Result(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementPrimitiveTypeListResultImpl ETyped Element Primitive Type List Result}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementPrimitiveTypeListResultImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.RuntimePackageImpl#getETypedElementPrimitiveTypeListResult() + * @generated + */ + EClass ETYPED_ELEMENT_PRIMITIVE_TYPE_LIST_RESULT = eINSTANCE.getETypedElementPrimitiveTypeListResult(); + + /** + * The meta object literal for the 'Result List' attribute list feature. + * + * + * + * @generated + */ + EAttribute ETYPED_ELEMENT_PRIMITIVE_TYPE_LIST_RESULT__RESULT_LIST = eINSTANCE.getETypedElementPrimitiveTypeListResult_ResultList(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementEObjectListResultImpl ETyped Element EObject List Result}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementEObjectListResultImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.RuntimePackageImpl#getETypedElementEObjectListResult() + * @generated + */ + EClass ETYPED_ELEMENT_EOBJECT_LIST_RESULT = eINSTANCE.getETypedElementEObjectListResult(); + + /** + * The meta object literal for the 'Result List' reference list feature. + * + * + * + * @generated + */ + EReference ETYPED_ELEMENT_EOBJECT_LIST_RESULT__RESULT_LIST = eINSTANCE.getETypedElementEObjectListResult_ResultList(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementResultImpl ETyped Element Result}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementResultImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.RuntimePackageImpl#getETypedElementResult() + * @generated + */ + EClass ETYPED_ELEMENT_RESULT = eINSTANCE.getETypedElementResult(); + + /** + * The meta object literal for the 'Derived Typed Element' reference feature. + * + * + * + * @generated + */ + EReference ETYPED_ELEMENT_RESULT__DERIVED_TYPED_ELEMENT = eINSTANCE.getETypedElementResult_DerivedTypedElement(); + + /** + * The meta object literal for the 'Parameter Values' containment reference list feature. + * + * + * + * @generated + */ + EReference ETYPED_ELEMENT_RESULT__PARAMETER_VALUES = eINSTANCE.getETypedElementResult_ParameterValues(); + + /** + * The meta object literal for the 'Source' reference feature. + * + * + * + * @generated + */ + EReference ETYPED_ELEMENT_RESULT__SOURCE = eINSTANCE.getETypedElementResult_Source(); + + /** + * The meta object literal for the 'Exception' attribute feature. + * + * + * + * @generated + */ + EAttribute ETYPED_ELEMENT_RESULT__EXCEPTION = eINSTANCE.getETypedElementResult_Exception(); + + /** + * The meta object literal for the 'Java Exception' data type. + * + * + * + * @see java.lang.Throwable + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.RuntimePackageImpl#getJavaException() + * @generated + */ + EDataType JAVA_EXCEPTION = eINSTANCE.getJavaException(); + + } + +} // RuntimePackage diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementEObjectListResultImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementEObjectListResultImpl.java new file mode 100644 index 00000000000..c5cbfe63a72 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementEObjectListResultImpl.java @@ -0,0 +1,156 @@ +/** + * Copyright (c) 2011, 2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery + * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query + * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectListResult; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage; + +/** + * + * An implementation of the model object 'ETyped Element EObject List Result'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementEObjectListResultImpl#getResultList Result List}
  • + *
+ * + * @generated + */ +public class ETypedElementEObjectListResultImpl extends ETypedElementResultImpl implements ETypedElementEObjectListResult { + /** + * The cached value of the '{@link #getResultList() Result List}' reference list. + * + * + * + * @see #getResultList() + * @generated + * @ordered + */ + protected EList resultList; + + /** + * + * + * + * @generated + */ + protected ETypedElementEObjectListResultImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RuntimePackage.Literals.ETYPED_ELEMENT_EOBJECT_LIST_RESULT; + } + + /** + * + * + * + * @generated + */ + public EList getResultList() { + if (resultList == null) { + resultList = new EObjectResolvingEList(EObject.class, this, RuntimePackage.ETYPED_ELEMENT_EOBJECT_LIST_RESULT__RESULT_LIST); + } + return resultList; + } + + /** + * + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case RuntimePackage.ETYPED_ELEMENT_EOBJECT_LIST_RESULT__RESULT_LIST: + return getResultList(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case RuntimePackage.ETYPED_ELEMENT_EOBJECT_LIST_RESULT__RESULT_LIST: + getResultList().clear(); + getResultList().addAll((Collection) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case RuntimePackage.ETYPED_ELEMENT_EOBJECT_LIST_RESULT__RESULT_LIST: + getResultList().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case RuntimePackage.ETYPED_ELEMENT_EOBJECT_LIST_RESULT__RESULT_LIST: + return resultList != null && !resultList.isEmpty(); + } + return super.eIsSet(featureID); + } + +} // ETypedElementEObjectListResultImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementEObjectResultImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementEObjectResultImpl.java new file mode 100644 index 00000000000..de4fdfe9b43 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementEObjectResultImpl.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2011, 2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery + * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query + * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectResult; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage; + +/** + * + * An implementation of the model object 'ETyped Element EObject Result'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementEObjectResultImpl#getResult Result}
  • + *
+ * + * @generated + */ +public class ETypedElementEObjectResultImpl extends ETypedElementResultImpl implements ETypedElementEObjectResult { + /** + * The cached value of the '{@link #getResult() Result}' reference. + * + * + * + * @see #getResult() + * @generated + * @ordered + */ + protected T result; + + /** + * + * + * + * @generated + */ + protected ETypedElementEObjectResultImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RuntimePackage.Literals.ETYPED_ELEMENT_EOBJECT_RESULT; + } + + /** + * + * + * + * @generated + */ + @SuppressWarnings("unchecked") + public T getResult() { + if (result != null && result.eIsProxy()) { + InternalEObject oldResult = (InternalEObject) result; + result = (T) eResolveProxy(oldResult); + if (result != oldResult) { + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.RESOLVE, RuntimePackage.ETYPED_ELEMENT_EOBJECT_RESULT__RESULT, oldResult, result)); + } + } + } + return result; + } + + /** + * + * + * + * @generated + */ + public T basicGetResult() { + return result; + } + + /** + * + * + * + * @generated + */ + public void setResult(T newResult) { + T oldResult = result; + result = newResult; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, RuntimePackage.ETYPED_ELEMENT_EOBJECT_RESULT__RESULT, oldResult, result)); + } + } + + /** + * + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case RuntimePackage.ETYPED_ELEMENT_EOBJECT_RESULT__RESULT: + if (resolve) { + return getResult(); + } + return basicGetResult(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case RuntimePackage.ETYPED_ELEMENT_EOBJECT_RESULT__RESULT: + setResult((T) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case RuntimePackage.ETYPED_ELEMENT_EOBJECT_RESULT__RESULT: + setResult((T) null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case RuntimePackage.ETYPED_ELEMENT_EOBJECT_RESULT__RESULT: + return result != null; + } + return super.eIsSet(featureID); + } + +} // ETypedElementEObjectResultImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementPrimitiveTypeListResultImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementPrimitiveTypeListResultImpl.java new file mode 100644 index 00000000000..ca48ce1a648 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementPrimitiveTypeListResultImpl.java @@ -0,0 +1,174 @@ +/** + * Copyright (c) 2011, 2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery + * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query + * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeListResult; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage; + +/** + * + * An implementation of the model object 'ETyped Element Primitive Type List Result'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementPrimitiveTypeListResultImpl#getResultList Result List}
  • + *
+ * + * @generated + */ +public class ETypedElementPrimitiveTypeListResultImpl extends ETypedElementResultImpl implements ETypedElementPrimitiveTypeListResult { + /** + * The cached value of the '{@link #getResultList() Result List}' attribute list. + * + * + * + * @see #getResultList() + * @generated + * @ordered + */ + protected EList resultList; + + /** + * + * + * + * @generated + */ + protected ETypedElementPrimitiveTypeListResultImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RuntimePackage.Literals.ETYPED_ELEMENT_PRIMITIVE_TYPE_LIST_RESULT; + } + + /** + * + * + * + * @generated + */ + public EList getResultList() { + if (resultList == null) { + resultList = new EDataTypeUniqueEList(Object.class, this, RuntimePackage.ETYPED_ELEMENT_PRIMITIVE_TYPE_LIST_RESULT__RESULT_LIST); + } + return resultList; + } + + /** + * + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case RuntimePackage.ETYPED_ELEMENT_PRIMITIVE_TYPE_LIST_RESULT__RESULT_LIST: + return getResultList(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case RuntimePackage.ETYPED_ELEMENT_PRIMITIVE_TYPE_LIST_RESULT__RESULT_LIST: + getResultList().clear(); + getResultList().addAll((Collection) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case RuntimePackage.ETYPED_ELEMENT_PRIMITIVE_TYPE_LIST_RESULT__RESULT_LIST: + getResultList().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case RuntimePackage.ETYPED_ELEMENT_PRIMITIVE_TYPE_LIST_RESULT__RESULT_LIST: + return resultList != null && !resultList.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (resultList: "); //$NON-NLS-1$ + result.append(resultList); + result.append(')'); + return result.toString(); + } + +} // ETypedElementPrimitiveTypeListResultImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementPrimitiveTypeResultImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementPrimitiveTypeResultImpl.java new file mode 100644 index 00000000000..d8e23ebae10 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementPrimitiveTypeResultImpl.java @@ -0,0 +1,182 @@ +/** + * Copyright (c) 2011, 2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery + * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query + * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeResult; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage; + +/** + * + * An implementation of the model object 'ETyped Element Primitive Type Result'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementPrimitiveTypeResultImpl#getResult Result}
  • + *
+ * + * @generated + */ +public class ETypedElementPrimitiveTypeResultImpl extends ETypedElementResultImpl implements ETypedElementPrimitiveTypeResult { + /** + * The cached value of the '{@link #getResult() Result}' attribute. + * + * + * + * @see #getResult() + * @generated + * @ordered + */ + protected T result; + + /** + * + * + * + * @generated + */ + protected ETypedElementPrimitiveTypeResultImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RuntimePackage.Literals.ETYPED_ELEMENT_PRIMITIVE_TYPE_RESULT; + } + + /** + * + * + * + * @generated + */ + public T getResult() { + return result; + } + + /** + * + * + * + * @generated + */ + public void setResult(T newResult) { + T oldResult = result; + result = newResult; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, RuntimePackage.ETYPED_ELEMENT_PRIMITIVE_TYPE_RESULT__RESULT, oldResult, result)); + } + } + + /** + * + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case RuntimePackage.ETYPED_ELEMENT_PRIMITIVE_TYPE_RESULT__RESULT: + return getResult(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case RuntimePackage.ETYPED_ELEMENT_PRIMITIVE_TYPE_RESULT__RESULT: + setResult((T) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case RuntimePackage.ETYPED_ELEMENT_PRIMITIVE_TYPE_RESULT__RESULT: + setResult((T) null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case RuntimePackage.ETYPED_ELEMENT_PRIMITIVE_TYPE_RESULT__RESULT: + return result != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (result: "); //$NON-NLS-1$ + result.append(result); + result.append(')'); + return result.toString(); + } + +} // ETypedElementPrimitiveTypeResultImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementResultImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementResultImpl.java new file mode 100644 index 00000000000..805fc041582 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementResultImpl.java @@ -0,0 +1,391 @@ +/** + * Copyright (c) 2011, 2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery + * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query + * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.ETypedElement; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage; + +/** + * + * An implementation of the model object 'ETyped Element Result'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementResultImpl#getDerivedTypedElement Derived Typed Element}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementResultImpl#getParameterValues Parameter Values}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementResultImpl#getSource Source}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementResultImpl#getException Exception}
  • + *
+ * + * @generated + */ +public abstract class ETypedElementResultImpl extends EObjectImpl implements ETypedElementResult { + /** + * The cached value of the '{@link #getDerivedTypedElement() Derived Typed Element}' reference. + * + * + * + * @see #getDerivedTypedElement() + * @generated + * @ordered + */ + protected ETypedElement derivedTypedElement; + + /** + * The cached value of the '{@link #getParameterValues() Parameter Values}' containment reference list. + * + * + * + * @see #getParameterValues() + * @generated + * @ordered + */ + protected EList parameterValues; + + /** + * The cached value of the '{@link #getSource() Source}' reference. + * + * + * + * @see #getSource() + * @generated + * @ordered + */ + protected EObject source; + + /** + * The default value of the '{@link #getException() Exception}' attribute. + * + * + * + * @see #getException() + * @generated + * @ordered + */ + protected static final Throwable EXCEPTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getException() Exception}' attribute. + * + * + * + * @see #getException() + * @generated + * @ordered + */ + protected Throwable exception = EXCEPTION_EDEFAULT; + + /** + * + * + * + * @generated + */ + protected ETypedElementResultImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RuntimePackage.Literals.ETYPED_ELEMENT_RESULT; + } + + /** + * + * + * + * @generated + */ + public ETypedElement getDerivedTypedElement() { + if (derivedTypedElement != null && derivedTypedElement.eIsProxy()) { + InternalEObject oldDerivedTypedElement = (InternalEObject) derivedTypedElement; + derivedTypedElement = (ETypedElement) eResolveProxy(oldDerivedTypedElement); + if (derivedTypedElement != oldDerivedTypedElement) { + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.RESOLVE, RuntimePackage.ETYPED_ELEMENT_RESULT__DERIVED_TYPED_ELEMENT, oldDerivedTypedElement, derivedTypedElement)); + } + } + } + return derivedTypedElement; + } + + /** + * + * + * + * @generated + */ + public ETypedElement basicGetDerivedTypedElement() { + return derivedTypedElement; + } + + /** + * + * + * + * @generated + */ + public void setDerivedTypedElement(ETypedElement newDerivedTypedElement) { + ETypedElement oldDerivedTypedElement = derivedTypedElement; + derivedTypedElement = newDerivedTypedElement; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, RuntimePackage.ETYPED_ELEMENT_RESULT__DERIVED_TYPED_ELEMENT, oldDerivedTypedElement, derivedTypedElement)); + } + } + + /** + * + * + * + * @generated + */ + public EList getParameterValues() { + if (parameterValues == null) { + parameterValues = new EObjectContainmentEList(ParameterValue.class, this, RuntimePackage.ETYPED_ELEMENT_RESULT__PARAMETER_VALUES); + } + return parameterValues; + } + + /** + * + * + * + * @generated + */ + public EObject getSource() { + if (source != null && source.eIsProxy()) { + InternalEObject oldSource = (InternalEObject) source; + source = eResolveProxy(oldSource); + if (source != oldSource) { + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.RESOLVE, RuntimePackage.ETYPED_ELEMENT_RESULT__SOURCE, oldSource, source)); + } + } + } + return source; + } + + /** + * + * + * + * @generated + */ + public EObject basicGetSource() { + return source; + } + + /** + * + * + * + * @generated + */ + public void setSource(EObject newSource) { + EObject oldSource = source; + source = newSource; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, RuntimePackage.ETYPED_ELEMENT_RESULT__SOURCE, oldSource, source)); + } + } + + /** + * + * + * + * @generated + */ + public Throwable getException() { + return exception; + } + + /** + * + * + * + * @generated + */ + public void setException(Throwable newException) { + Throwable oldException = exception; + exception = newException; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, RuntimePackage.ETYPED_ELEMENT_RESULT__EXCEPTION, oldException, exception)); + } + } + + /** + * + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case RuntimePackage.ETYPED_ELEMENT_RESULT__PARAMETER_VALUES: + return ((InternalEList) getParameterValues()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case RuntimePackage.ETYPED_ELEMENT_RESULT__DERIVED_TYPED_ELEMENT: + if (resolve) { + return getDerivedTypedElement(); + } + return basicGetDerivedTypedElement(); + case RuntimePackage.ETYPED_ELEMENT_RESULT__PARAMETER_VALUES: + return getParameterValues(); + case RuntimePackage.ETYPED_ELEMENT_RESULT__SOURCE: + if (resolve) { + return getSource(); + } + return basicGetSource(); + case RuntimePackage.ETYPED_ELEMENT_RESULT__EXCEPTION: + return getException(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case RuntimePackage.ETYPED_ELEMENT_RESULT__DERIVED_TYPED_ELEMENT: + setDerivedTypedElement((ETypedElement) newValue); + return; + case RuntimePackage.ETYPED_ELEMENT_RESULT__PARAMETER_VALUES: + getParameterValues().clear(); + getParameterValues().addAll((Collection) newValue); + return; + case RuntimePackage.ETYPED_ELEMENT_RESULT__SOURCE: + setSource((EObject) newValue); + return; + case RuntimePackage.ETYPED_ELEMENT_RESULT__EXCEPTION: + setException((Throwable) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case RuntimePackage.ETYPED_ELEMENT_RESULT__DERIVED_TYPED_ELEMENT: + setDerivedTypedElement((ETypedElement) null); + return; + case RuntimePackage.ETYPED_ELEMENT_RESULT__PARAMETER_VALUES: + getParameterValues().clear(); + return; + case RuntimePackage.ETYPED_ELEMENT_RESULT__SOURCE: + setSource((EObject) null); + return; + case RuntimePackage.ETYPED_ELEMENT_RESULT__EXCEPTION: + setException(EXCEPTION_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case RuntimePackage.ETYPED_ELEMENT_RESULT__DERIVED_TYPED_ELEMENT: + return derivedTypedElement != null; + case RuntimePackage.ETYPED_ELEMENT_RESULT__PARAMETER_VALUES: + return parameterValues != null && !parameterValues.isEmpty(); + case RuntimePackage.ETYPED_ELEMENT_RESULT__SOURCE: + return source != null; + case RuntimePackage.ETYPED_ELEMENT_RESULT__EXCEPTION: + return EXCEPTION_EDEFAULT == null ? exception != null : !EXCEPTION_EDEFAULT.equals(exception); + } + return super.eIsSet(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (exception: "); //$NON-NLS-1$ + result.append(exception); + result.append(')'); + return result.toString(); + } + +} // ETypedElementResultImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/RuntimeFactoryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/RuntimeFactoryImpl.java new file mode 100644 index 00000000000..c8f2e150f92 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/RuntimeFactoryImpl.java @@ -0,0 +1,215 @@ +/** + * Copyright (c) 2011, 2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery + * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query + * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.impl.EFactoryImpl; +import org.eclipse.emf.ecore.plugin.EcorePlugin; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectListResult; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectResult; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeListResult; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeResult; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimeFactory; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage; + +/** + * + * An implementation of the model Factory. + * + * + * @generated + */ +public class RuntimeFactoryImpl extends EFactoryImpl implements RuntimeFactory { + /** + * Creates the default factory implementation. + * + * + * + * @generated + */ + public static RuntimeFactory init() { + try { + RuntimeFactory theRuntimeFactory = (RuntimeFactory) EPackage.Registry.INSTANCE.getEFactory(RuntimePackage.eNS_URI); + if (theRuntimeFactory != null) { + return theRuntimeFactory; + } + } catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new RuntimeFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * + * @generated + */ + public RuntimeFactoryImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case RuntimePackage.ETYPED_ELEMENT_PRIMITIVE_TYPE_RESULT: + return createETypedElementPrimitiveTypeResult(); + case RuntimePackage.ETYPED_ELEMENT_EOBJECT_RESULT: + return createETypedElementEObjectResult(); + case RuntimePackage.ETYPED_ELEMENT_PRIMITIVE_TYPE_LIST_RESULT: + return createETypedElementPrimitiveTypeListResult(); + case RuntimePackage.ETYPED_ELEMENT_EOBJECT_LIST_RESULT: + return createETypedElementEObjectListResult(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ + } + } + + /** + * + * + * + * @generated + */ + @Override + public Object createFromString(EDataType eDataType, String initialValue) { + switch (eDataType.getClassifierID()) { + case RuntimePackage.JAVA_EXCEPTION: + return createJavaExceptionFromString(eDataType, initialValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ + } + } + + /** + * + * + * + * @generated + */ + @Override + public String convertToString(EDataType eDataType, Object instanceValue) { + switch (eDataType.getClassifierID()) { + case RuntimePackage.JAVA_EXCEPTION: + return convertJavaExceptionToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ + } + } + + /** + * + * + * + * @generated + */ + public ETypedElementPrimitiveTypeResult createETypedElementPrimitiveTypeResult() { + ETypedElementPrimitiveTypeResultImpl eTypedElementPrimitiveTypeResult = new ETypedElementPrimitiveTypeResultImpl(); + return eTypedElementPrimitiveTypeResult; + } + + /** + * + * + * + * @generated + */ + public ETypedElementEObjectResult createETypedElementEObjectResult() { + ETypedElementEObjectResultImpl eTypedElementEObjectResult = new ETypedElementEObjectResultImpl(); + return eTypedElementEObjectResult; + } + + /** + * + * + * + * @generated + */ + public ETypedElementPrimitiveTypeListResult createETypedElementPrimitiveTypeListResult() { + ETypedElementPrimitiveTypeListResultImpl eTypedElementPrimitiveTypeListResult = new ETypedElementPrimitiveTypeListResultImpl(); + return eTypedElementPrimitiveTypeListResult; + } + + /** + * + * + * + * @generated + */ + public ETypedElementEObjectListResult createETypedElementEObjectListResult() { + ETypedElementEObjectListResultImpl eTypedElementEObjectListResult = new ETypedElementEObjectListResultImpl(); + return eTypedElementEObjectListResult; + } + + /** + * + * + * + * @generated + */ + public Throwable createJavaExceptionFromString(EDataType eDataType, String initialValue) { + return (Throwable) super.createFromString(eDataType, initialValue); + } + + /** + * + * + * + * @generated + */ + public String convertJavaExceptionToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * + * @generated + */ + public RuntimePackage getRuntimePackage() { + return (RuntimePackage) getEPackage(); + } + + /** + * + * + * + * @deprecated + * @generated + */ + @Deprecated + public static RuntimePackage getPackage() { + return RuntimePackage.eINSTANCE; + } + +} // RuntimeFactoryImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/RuntimePackageImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/RuntimePackageImpl.java new file mode 100644 index 00000000000..b87f47ad63b --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/RuntimePackageImpl.java @@ -0,0 +1,467 @@ +/** + * Copyright (c) 2011, 2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery + * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query + * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EGenericType; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.emf.ecore.ETypeParameter; +import org.eclipse.emf.ecore.EcorePackage; +import org.eclipse.emf.ecore.impl.EPackageImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensiblePackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.ExtensiblePackageImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectListResult; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectResult; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeListResult; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeResult; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimeFactory; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl; + +/** + * + * An implementation of the model Package. + * + * + * @generated + */ +public class RuntimePackageImpl extends EPackageImpl implements RuntimePackage { + /** + * + * + * + * @generated + */ + private EClass eTypedElementPrimitiveTypeResultEClass = null; + + /** + * + * + * + * @generated + */ + private EClass eTypedElementEObjectResultEClass = null; + + /** + * + * + * + * @generated + */ + private EClass eTypedElementPrimitiveTypeListResultEClass = null; + + /** + * + * + * + * @generated + */ + private EClass eTypedElementEObjectListResultEClass = null; + + /** + * + * + * + * @generated + */ + private EClass eTypedElementResultEClass = null; + + /** + * + * + * + * @generated + */ + private EDataType javaExceptionEDataType = null; + + /** + * Creates an instance of the model Package, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + *

+ * Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage#eNS_URI + * @see #init() + * @generated + */ + private RuntimePackageImpl() { + super(eNS_URI, RuntimeFactory.eINSTANCE); + } + + /** + * + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *

+ * This method is used to initialize {@link RuntimePackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static RuntimePackage init() { + if (isInited) { + return (RuntimePackage) EPackage.Registry.INSTANCE.getEPackage(RuntimePackage.eNS_URI); + } + + // Obtain or create and register package + Object registeredRuntimePackage = EPackage.Registry.INSTANCE.get(eNS_URI); + RuntimePackageImpl theRuntimePackage = registeredRuntimePackage instanceof RuntimePackageImpl ? (RuntimePackageImpl) registeredRuntimePackage : new RuntimePackageImpl(); + + isInited = true; + + // Initialize simple dependencies + EcorePackage.eINSTANCE.eClass(); + + // Obtain or create and register interdependencies + Object registeredPackage = EPackage.Registry.INSTANCE.getEPackage(EFacetPackage.eNS_URI); + EFacetPackageImpl theEFacetPackage = (EFacetPackageImpl) (registeredPackage instanceof EFacetPackageImpl ? registeredPackage : EFacetPackage.eINSTANCE); + registeredPackage = EPackage.Registry.INSTANCE.getEPackage(SerializationPackage.eNS_URI); + SerializationPackageImpl theSerializationPackage = (SerializationPackageImpl) (registeredPackage instanceof SerializationPackageImpl ? registeredPackage : SerializationPackage.eINSTANCE); + registeredPackage = EPackage.Registry.INSTANCE.getEPackage(ExtensiblePackage.eNS_URI); + ExtensiblePackageImpl theExtensiblePackage = (ExtensiblePackageImpl) (registeredPackage instanceof ExtensiblePackageImpl ? registeredPackage : ExtensiblePackage.eINSTANCE); + registeredPackage = EPackage.Registry.INSTANCE.getEPackage(QueryPackage.eNS_URI); + QueryPackageImpl theQueryPackage = (QueryPackageImpl) (registeredPackage instanceof QueryPackageImpl ? registeredPackage : QueryPackage.eINSTANCE); + + // Create package meta-data objects + theRuntimePackage.createPackageContents(); + theEFacetPackage.createPackageContents(); + theSerializationPackage.createPackageContents(); + theExtensiblePackage.createPackageContents(); + theQueryPackage.createPackageContents(); + + // Initialize created meta-data + theRuntimePackage.initializePackageContents(); + theEFacetPackage.initializePackageContents(); + theSerializationPackage.initializePackageContents(); + theExtensiblePackage.initializePackageContents(); + theQueryPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theRuntimePackage.freeze(); + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(RuntimePackage.eNS_URI, theRuntimePackage); + return theRuntimePackage; + } + + /** + * + * + * + * @generated + */ + public EClass getETypedElementPrimitiveTypeResult() { + return eTypedElementPrimitiveTypeResultEClass; + } + + /** + * + * + * + * @generated + */ + public EAttribute getETypedElementPrimitiveTypeResult_Result() { + return (EAttribute) eTypedElementPrimitiveTypeResultEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * + * @generated + */ + public EClass getETypedElementEObjectResult() { + return eTypedElementEObjectResultEClass; + } + + /** + * + * + * + * @generated + */ + public EReference getETypedElementEObjectResult_Result() { + return (EReference) eTypedElementEObjectResultEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * + * @generated + */ + public EClass getETypedElementPrimitiveTypeListResult() { + return eTypedElementPrimitiveTypeListResultEClass; + } + + /** + * + * + * + * @generated + */ + public EAttribute getETypedElementPrimitiveTypeListResult_ResultList() { + return (EAttribute) eTypedElementPrimitiveTypeListResultEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * + * @generated + */ + public EClass getETypedElementEObjectListResult() { + return eTypedElementEObjectListResultEClass; + } + + /** + * + * + * + * @generated + */ + public EReference getETypedElementEObjectListResult_ResultList() { + return (EReference) eTypedElementEObjectListResultEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * + * @generated + */ + public EClass getETypedElementResult() { + return eTypedElementResultEClass; + } + + /** + * + * + * + * @generated + */ + public EReference getETypedElementResult_DerivedTypedElement() { + return (EReference) eTypedElementResultEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * + * @generated + */ + public EReference getETypedElementResult_ParameterValues() { + return (EReference) eTypedElementResultEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * + * @generated + */ + public EReference getETypedElementResult_Source() { + return (EReference) eTypedElementResultEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * + * @generated + */ + public EAttribute getETypedElementResult_Exception() { + return (EAttribute) eTypedElementResultEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * + * @generated + */ + public EDataType getJavaException() { + return javaExceptionEDataType; + } + + /** + * + * + * + * @generated + */ + public RuntimeFactory getRuntimeFactory() { + return (RuntimeFactory) getEFactoryInstance(); + } + + /** + * + * + * + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * + * + * + * @generated + */ + public void createPackageContents() { + if (isCreated) { + return; + } + isCreated = true; + + // Create classes and their features + eTypedElementPrimitiveTypeResultEClass = createEClass(ETYPED_ELEMENT_PRIMITIVE_TYPE_RESULT); + createEAttribute(eTypedElementPrimitiveTypeResultEClass, ETYPED_ELEMENT_PRIMITIVE_TYPE_RESULT__RESULT); + + eTypedElementEObjectResultEClass = createEClass(ETYPED_ELEMENT_EOBJECT_RESULT); + createEReference(eTypedElementEObjectResultEClass, ETYPED_ELEMENT_EOBJECT_RESULT__RESULT); + + eTypedElementPrimitiveTypeListResultEClass = createEClass(ETYPED_ELEMENT_PRIMITIVE_TYPE_LIST_RESULT); + createEAttribute(eTypedElementPrimitiveTypeListResultEClass, ETYPED_ELEMENT_PRIMITIVE_TYPE_LIST_RESULT__RESULT_LIST); + + eTypedElementEObjectListResultEClass = createEClass(ETYPED_ELEMENT_EOBJECT_LIST_RESULT); + createEReference(eTypedElementEObjectListResultEClass, ETYPED_ELEMENT_EOBJECT_LIST_RESULT__RESULT_LIST); + + eTypedElementResultEClass = createEClass(ETYPED_ELEMENT_RESULT); + createEReference(eTypedElementResultEClass, ETYPED_ELEMENT_RESULT__DERIVED_TYPED_ELEMENT); + createEReference(eTypedElementResultEClass, ETYPED_ELEMENT_RESULT__PARAMETER_VALUES); + createEReference(eTypedElementResultEClass, ETYPED_ELEMENT_RESULT__SOURCE); + createEAttribute(eTypedElementResultEClass, ETYPED_ELEMENT_RESULT__EXCEPTION); + + // Create data types + javaExceptionEDataType = createEDataType(JAVA_EXCEPTION); + } + + /** + * + * + * + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * + * + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) { + return; + } + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + EcorePackage theEcorePackage = (EcorePackage) EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); + EFacetPackage theEFacetPackage = (EFacetPackage) EPackage.Registry.INSTANCE.getEPackage(EFacetPackage.eNS_URI); + + // Create type parameters + ETypeParameter eTypedElementPrimitiveTypeResultEClass_T = addETypeParameter(eTypedElementPrimitiveTypeResultEClass, "T"); //$NON-NLS-1$ + ETypeParameter eTypedElementEObjectResultEClass_T = addETypeParameter(eTypedElementEObjectResultEClass, "T"); //$NON-NLS-1$ + ETypeParameter eTypedElementPrimitiveTypeListResultEClass_T = addETypeParameter(eTypedElementPrimitiveTypeListResultEClass, "T"); //$NON-NLS-1$ + ETypeParameter eTypedElementEObjectListResultEClass_T = addETypeParameter(eTypedElementEObjectListResultEClass, "T"); //$NON-NLS-1$ + + // Set bounds for type parameters + EGenericType g1 = createEGenericType(theEcorePackage.getEObject()); + eTypedElementEObjectResultEClass_T.getEBounds().add(g1); + g1 = createEGenericType(theEcorePackage.getEObject()); + eTypedElementEObjectListResultEClass_T.getEBounds().add(g1); + + // Add supertypes to classes + eTypedElementPrimitiveTypeResultEClass.getESuperTypes().add(this.getETypedElementResult()); + eTypedElementEObjectResultEClass.getESuperTypes().add(this.getETypedElementResult()); + eTypedElementPrimitiveTypeListResultEClass.getESuperTypes().add(this.getETypedElementResult()); + eTypedElementEObjectListResultEClass.getESuperTypes().add(this.getETypedElementResult()); + + // Initialize classes and features; add operations and parameters + initEClass(eTypedElementPrimitiveTypeResultEClass, ETypedElementPrimitiveTypeResult.class, "ETypedElementPrimitiveTypeResult", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + g1 = createEGenericType(eTypedElementPrimitiveTypeResultEClass_T); + initEAttribute(getETypedElementPrimitiveTypeResult_Result(), g1, "result", null, 0, 1, ETypedElementPrimitiveTypeResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + + initEClass(eTypedElementEObjectResultEClass, ETypedElementEObjectResult.class, "ETypedElementEObjectResult", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + g1 = createEGenericType(eTypedElementEObjectResultEClass_T); + initEReference(getETypedElementEObjectResult_Result(), g1, null, "result", null, 0, 1, ETypedElementEObjectResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + + initEClass(eTypedElementPrimitiveTypeListResultEClass, ETypedElementPrimitiveTypeListResult.class, "ETypedElementPrimitiveTypeListResult", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + g1 = createEGenericType(eTypedElementPrimitiveTypeListResultEClass_T); + initEAttribute(getETypedElementPrimitiveTypeListResult_ResultList(), g1, "resultList", null, 0, -1, ETypedElementPrimitiveTypeListResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + + initEClass(eTypedElementEObjectListResultEClass, ETypedElementEObjectListResult.class, "ETypedElementEObjectListResult", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + g1 = createEGenericType(eTypedElementEObjectListResultEClass_T); + initEReference(getETypedElementEObjectListResult_ResultList(), g1, null, "resultList", null, 0, -1, ETypedElementEObjectListResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, //$NON-NLS-1$ + !IS_DERIVED, IS_ORDERED); + + initEClass(eTypedElementResultEClass, ETypedElementResult.class, "ETypedElementResult", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEReference(getETypedElementResult_DerivedTypedElement(), theEcorePackage.getETypedElement(), null, "derivedTypedElement", null, 1, 1, ETypedElementResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, //$NON-NLS-1$ + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getETypedElementResult_ParameterValues(), theEFacetPackage.getParameterValue(), null, "parameterValues", null, 0, -1, ETypedElementResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, //$NON-NLS-1$ + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getETypedElementResult_Source(), theEcorePackage.getEObject(), null, "source", null, 1, 1, ETypedElementResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, //$NON-NLS-1$ + IS_ORDERED); + initEAttribute(getETypedElementResult_Exception(), this.getJavaException(), "exception", null, 0, 1, ETypedElementResult.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + + // Initialize data types + initEDataType(javaExceptionEDataType, Throwable.class, "JavaException", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + } + +} // RuntimePackageImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/util/RuntimeAdapterFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/util/RuntimeAdapterFactory.java new file mode 100644 index 00000000000..66a4ebfc687 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/util/RuntimeAdapterFactory.java @@ -0,0 +1,230 @@ +/** + * Copyright (c) 2011, 2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery + * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query + * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.util; + +import org.eclipse.emf.common.notify.Adapter; +import org.eclipse.emf.common.notify.Notifier; +import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectListResult; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectResult; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeListResult; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeResult; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage + * @generated + */ +public class RuntimeAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * + * @generated + */ + protected static RuntimePackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * + * @generated + */ + public RuntimeAdapterFactory() { + if (modelPackage == null) { + modelPackage = RuntimePackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * + * This implementation returns true if the object is either the model's package or is an instance object of the model. + * + * + * @return whether this factory is applicable for the type of the object. + * @generated + */ + @Override + public boolean isFactoryForType(Object object) { + if (object == modelPackage) { + return true; + } + if (object instanceof EObject) { + return ((EObject) object).eClass().getEPackage() == modelPackage; + } + return false; + } + + /** + * The switch that delegates to the createXXX methods. + * + * + * + * @generated + */ + protected RuntimeSwitch modelSwitch = new RuntimeSwitch() { + @Override + public Adapter caseETypedElementPrimitiveTypeResult(ETypedElementPrimitiveTypeResult object) { + return createETypedElementPrimitiveTypeResultAdapter(); + } + + @Override + public Adapter caseETypedElementEObjectResult(ETypedElementEObjectResult object) { + return createETypedElementEObjectResultAdapter(); + } + + @Override + public Adapter caseETypedElementPrimitiveTypeListResult(ETypedElementPrimitiveTypeListResult object) { + return createETypedElementPrimitiveTypeListResultAdapter(); + } + + @Override + public Adapter caseETypedElementEObjectListResult(ETypedElementEObjectListResult object) { + return createETypedElementEObjectListResultAdapter(); + } + + @Override + public Adapter caseETypedElementResult(ETypedElementResult object) { + return createETypedElementResultAdapter(); + } + + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the target. + * + * + * + * @param target + * the object to adapt. + * @return the adapter for the target. + * @generated + */ + @Override + public Adapter createAdapter(Notifier target) { + return modelSwitch.doSwitch((EObject) target); + } + + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeResult ETyped Element Primitive Type Result}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeResult + * @generated + */ + public Adapter createETypedElementPrimitiveTypeResultAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectResult ETyped Element EObject Result}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectResult + * @generated + */ + public Adapter createETypedElementEObjectResultAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeListResult ETyped Element Primitive Type List Result}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeListResult + * @generated + */ + public Adapter createETypedElementPrimitiveTypeListResultAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectListResult ETyped Element EObject List Result}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectListResult + * @generated + */ + public Adapter createETypedElementEObjectListResultAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult ETyped Element Result}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult + * @generated + */ + public Adapter createETypedElementResultAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * + * This default implementation returns null. + * + * + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} // RuntimeAdapterFactory diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/util/RuntimeSwitch.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/util/RuntimeSwitch.java new file mode 100644 index 00000000000..4b9acec8fb3 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/util/RuntimeSwitch.java @@ -0,0 +1,269 @@ +/** + * Copyright (c) 2011, 2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery + * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query + * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.util; + +import java.util.List; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectListResult; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectResult; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeListResult; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeResult; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage; + +/** + * + * The Switch for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} to invoke the caseXXX method for each class of the model, + * starting with the actual class of the object + * and proceeding up the inheritance hierarchy + * until a non-null result is returned, + * which is the result of the switch. + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage + * @generated + */ +public class RuntimeSwitch { + /** + * The cached model package + * + * + * + * @generated + */ + protected static RuntimePackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * + * @generated + */ + public RuntimeSwitch() { + if (modelPackage == null) { + modelPackage = RuntimePackage.eINSTANCE; + } + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + public T1 doSwitch(EObject theEObject) { + return doSwitch(theEObject.eClass(), theEObject); + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + protected T1 doSwitch(EClass theEClass, EObject theEObject) { + if (theEClass.eContainer() == modelPackage) { + return doSwitch(theEClass.getClassifierID(), theEObject); + } else { + List eSuperTypes = theEClass.getESuperTypes(); + return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(eSuperTypes.get(0), theEObject); + } + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + protected T1 doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { + case RuntimePackage.ETYPED_ELEMENT_PRIMITIVE_TYPE_RESULT: { + ETypedElementPrimitiveTypeResult eTypedElementPrimitiveTypeResult = (ETypedElementPrimitiveTypeResult) theEObject; + T1 result = caseETypedElementPrimitiveTypeResult(eTypedElementPrimitiveTypeResult); + if (result == null) { + result = caseETypedElementResult(eTypedElementPrimitiveTypeResult); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case RuntimePackage.ETYPED_ELEMENT_EOBJECT_RESULT: { + ETypedElementEObjectResult eTypedElementEObjectResult = (ETypedElementEObjectResult) theEObject; + T1 result = caseETypedElementEObjectResult(eTypedElementEObjectResult); + if (result == null) { + result = caseETypedElementResult(eTypedElementEObjectResult); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case RuntimePackage.ETYPED_ELEMENT_PRIMITIVE_TYPE_LIST_RESULT: { + ETypedElementPrimitiveTypeListResult eTypedElementPrimitiveTypeListResult = (ETypedElementPrimitiveTypeListResult) theEObject; + T1 result = caseETypedElementPrimitiveTypeListResult(eTypedElementPrimitiveTypeListResult); + if (result == null) { + result = caseETypedElementResult(eTypedElementPrimitiveTypeListResult); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case RuntimePackage.ETYPED_ELEMENT_EOBJECT_LIST_RESULT: { + ETypedElementEObjectListResult eTypedElementEObjectListResult = (ETypedElementEObjectListResult) theEObject; + T1 result = caseETypedElementEObjectListResult(eTypedElementEObjectListResult); + if (result == null) { + result = caseETypedElementResult(eTypedElementEObjectListResult); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case RuntimePackage.ETYPED_ELEMENT_RESULT: { + ETypedElementResult eTypedElementResult = (ETypedElementResult) theEObject; + T1 result = caseETypedElementResult(eTypedElementResult); + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + default: + return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'ETyped Element Primitive Type Result'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'ETyped Element Primitive Type Result'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T1 caseETypedElementPrimitiveTypeResult(ETypedElementPrimitiveTypeResult object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'ETyped Element EObject Result'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'ETyped Element EObject Result'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T1 caseETypedElementEObjectResult(ETypedElementEObjectResult object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'ETyped Element Primitive Type List Result'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'ETyped Element Primitive Type List Result'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T1 caseETypedElementPrimitiveTypeListResult(ETypedElementPrimitiveTypeListResult object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'ETyped Element EObject List Result'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'ETyped Element EObject List Result'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T1 caseETypedElementEObjectListResult(ETypedElementEObjectListResult object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'ETyped Element Result'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'ETyped Element Result'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T1 caseETypedElementResult(ETypedElementResult object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EObject'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'EObject'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + public T1 defaultCase(EObject object) { + return null; + } + +} // RuntimeSwitch diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/AbstractAttributeInstance.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/AbstractAttributeInstance.java new file mode 100644 index 00000000000..b57d012e3da --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/AbstractAttributeInstance.java @@ -0,0 +1,67 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Abstract Attribute Instance'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractAttributeInstance#getEAttribute EAttribute}
  • + *
+ * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getAbstractAttributeInstance() + * @model + * @generated + */ +public interface AbstractAttributeInstance extends EObject { + /** + * Returns the value of the 'EAttribute' reference. + * + *

+ * If the meaning of the 'EAttribute' reference isn't clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'EAttribute' reference. + * @see #setEAttribute(EAttribute) + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getAbstractAttributeInstance_EAttribute() + * @model required="true" + * @generated + */ + EAttribute getEAttribute(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractAttributeInstance#getEAttribute EAttribute}' reference. + * + * + * + * @param value + * the new value of the 'EAttribute' reference. + * @see #getEAttribute() + * @generated + */ + void setEAttribute(EAttribute value); + +} // AbstractAttributeInstance diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/AbstractReferenceInstance.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/AbstractReferenceInstance.java new file mode 100644 index 00000000000..c2fbdd44478 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/AbstractReferenceInstance.java @@ -0,0 +1,67 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EReference; + +/** + * + * A representation of the model object 'Abstract Reference Instance'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractReferenceInstance#getEReference EReference}
  • + *
+ * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getAbstractReferenceInstance() + * @model + * @generated + */ +public interface AbstractReferenceInstance extends EObject { + /** + * Returns the value of the 'EReference' reference. + * + *

+ * If the meaning of the 'EReference' reference isn't clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'EReference' reference. + * @see #setEReference(EReference) + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getAbstractReferenceInstance_EReference() + * @model required="true" + * @generated + */ + EReference getEReference(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractReferenceInstance#getEReference EReference}' reference. + * + * + * + * @param value + * the new value of the 'EReference' reference. + * @see #getEReference() + * @generated + */ + void setEReference(EReference value); + +} // AbstractReferenceInstance diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/ExtendedEObjectReference.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/ExtendedEObjectReference.java new file mode 100644 index 00000000000..20e92809511 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/ExtendedEObjectReference.java @@ -0,0 +1,101 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Extended EObject Reference'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.ExtendedEObjectReference#getExtendedEObject Extended EObject}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.ExtendedEObjectReference#getAttributeInstances Attribute Instances}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.ExtendedEObjectReference#getReferenceInstances Reference Instances}
  • + *
+ * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getExtendedEObjectReference() + * @model + * @generated + */ +public interface ExtendedEObjectReference extends EObject { + /** + * Returns the value of the 'Extended EObject' reference. + * + *

+ * If the meaning of the 'Extended EObject' reference isn't clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'Extended EObject' reference. + * @see #setExtendedEObject(EObject) + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getExtendedEObjectReference_ExtendedEObject() + * @model required="true" + * @generated + */ + EObject getExtendedEObject(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.ExtendedEObjectReference#getExtendedEObject Extended EObject}' reference. + * + * + * + * @param value + * the new value of the 'Extended EObject' reference. + * @see #getExtendedEObject() + * @generated + */ + void setExtendedEObject(EObject value); + + /** + * Returns the value of the 'Attribute Instances' containment reference list. + * The list contents are of type {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractAttributeInstance}. + * + *

+ * If the meaning of the 'Attribute Instances' containment reference list isn't clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'Attribute Instances' containment reference list. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getExtendedEObjectReference_AttributeInstances() + * @model containment="true" + * @generated + */ + EList getAttributeInstances(); + + /** + * Returns the value of the 'Reference Instances' containment reference list. + * The list contents are of type {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractReferenceInstance}. + * + *

+ * If the meaning of the 'Reference Instances' containment reference list isn't clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'Reference Instances' containment reference list. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getExtendedEObjectReference_ReferenceInstances() + * @model containment="true" + * @generated + */ + EList getReferenceInstances(); + +} // ExtendedEObjectReference diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/MultiValuedAttributeInstance.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/MultiValuedAttributeInstance.java new file mode 100644 index 00000000000..07f4536fd28 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/MultiValuedAttributeInstance.java @@ -0,0 +1,54 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Multi Valued Attribute Instance'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedAttributeInstance#getValues Values}
  • + *
+ * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getMultiValuedAttributeInstance() + * @model + * @generated + */ +public interface MultiValuedAttributeInstance extends AbstractAttributeInstance { + /** + * Returns the value of the 'Values' attribute list. + * The list contents are of type {@link java.lang.Object}. + * + *

+ * If the meaning of the 'Values' attribute list isn't clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'Values' attribute list. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getMultiValuedAttributeInstance_Values() + * @model + * @generated + */ + EList getValues(); + +} // MultiValuedAttributeInstance diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/MultiValuedContainmentReferenceInstance.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/MultiValuedContainmentReferenceInstance.java new file mode 100644 index 00000000000..96e91ec02e5 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/MultiValuedContainmentReferenceInstance.java @@ -0,0 +1,55 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Multi Valued Containment Reference Instance'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedContainmentReferenceInstance#getOwnedElements Owned Elements}
  • + *
+ * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getMultiValuedContainmentReferenceInstance() + * @model + * @generated + */ +public interface MultiValuedContainmentReferenceInstance extends AbstractReferenceInstance { + /** + * Returns the value of the 'Owned Elements' containment reference list. + * The list contents are of type {@link org.eclipse.emf.ecore.EObject}. + * + *

+ * If the meaning of the 'Owned Elements' containment reference list isn't clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'Owned Elements' containment reference list. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getMultiValuedContainmentReferenceInstance_OwnedElements() + * @model containment="true" + * @generated + */ + EList getOwnedElements(); + +} // MultiValuedContainmentReferenceInstance diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/MultiValuedReferenceInstance.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/MultiValuedReferenceInstance.java new file mode 100644 index 00000000000..e409635439a --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/MultiValuedReferenceInstance.java @@ -0,0 +1,55 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Multi Valued Reference Instance'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedReferenceInstance#getReferencedElements Referenced Elements}
  • + *
+ * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getMultiValuedReferenceInstance() + * @model + * @generated + */ +public interface MultiValuedReferenceInstance extends AbstractReferenceInstance { + /** + * Returns the value of the 'Referenced Elements' reference list. + * The list contents are of type {@link org.eclipse.emf.ecore.EObject}. + * + *

+ * If the meaning of the 'Referenced Elements' reference list isn't clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'Referenced Elements' reference list. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getMultiValuedReferenceInstance_ReferencedElements() + * @model + * @generated + */ + EList getReferencedElements(); + +} // MultiValuedReferenceInstance diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SerializationFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SerializationFactory.java new file mode 100644 index 00000000000..0d446c2bc1b --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SerializationFactory.java @@ -0,0 +1,141 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization; + +import org.eclipse.emf.ecore.EFactory; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage + * @generated + */ +public interface SerializationFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * + * @generated + */ + SerializationFactory eINSTANCE = org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationFactoryImpl.init(); + + /** + * Returns a new object of class 'Abstract Reference Instance'. + * + * + * + * @return a new object of class 'Abstract Reference Instance'. + * @generated + */ + AbstractReferenceInstance createAbstractReferenceInstance(); + + /** + * Returns a new object of class 'Multi Valued Containment Reference Instance'. + * + * + * + * @return a new object of class 'Multi Valued Containment Reference Instance'. + * @generated + */ + MultiValuedContainmentReferenceInstance createMultiValuedContainmentReferenceInstance(); + + /** + * Returns a new object of class 'Multi Valued Reference Instance'. + * + * + * + * @return a new object of class 'Multi Valued Reference Instance'. + * @generated + */ + MultiValuedReferenceInstance createMultiValuedReferenceInstance(); + + /** + * Returns a new object of class 'Single Valued Attribute Instance'. + * + * + * + * @return a new object of class 'Single Valued Attribute Instance'. + * @generated + */ + SingleValuedAttributeInstance createSingleValuedAttributeInstance(); + + /** + * Returns a new object of class 'Extended EObject Reference'. + * + * + * + * @return a new object of class 'Extended EObject Reference'. + * @generated + */ + ExtendedEObjectReference createExtendedEObjectReference(); + + /** + * Returns a new object of class 'Single Valued Containment Reference Instance'. + * + * + * + * @return a new object of class 'Single Valued Containment Reference Instance'. + * @generated + */ + SingleValuedContainmentReferenceInstance createSingleValuedContainmentReferenceInstance(); + + /** + * Returns a new object of class 'Single Valued Reference Instance'. + * + * + * + * @return a new object of class 'Single Valued Reference Instance'. + * @generated + */ + SingleValuedReferenceInstance createSingleValuedReferenceInstance(); + + /** + * Returns a new object of class 'Multi Valued Attribute Instance'. + * + * + * + * @return a new object of class 'Multi Valued Attribute Instance'. + * @generated + */ + MultiValuedAttributeInstance createMultiValuedAttributeInstance(); + + /** + * Returns a new object of class 'Abstract Attribute Instance'. + * + * + * + * @return a new object of class 'Abstract Attribute Instance'. + * @generated + */ + AbstractAttributeInstance createAbstractAttributeInstance(); + + /** + * Returns the package supported by this factory. + * + * + * + * @return the package supported by this factory. + * @generated + */ + SerializationPackage getSerializationPackage(); + +} // SerializationFactory diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SerializationPackage.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SerializationPackage.java new file mode 100644 index 00000000000..3b406cfd479 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SerializationPackage.java @@ -0,0 +1,893 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationFactory + * @model kind="package" + * @generated + */ +public interface SerializationPackage extends EPackage { + /** + * The package name. + * + * + * + * @generated + */ + String eNAME = "serialization"; //$NON-NLS-1$ + + /** + * The package namespace URI. + * + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/emf/facet/efacet/0.2.incubation/efacet/serialization"; //$NON-NLS-1$ + + /** + * The package namespace name. + * + * + * + * @generated + */ + String eNS_PREFIX = "serialization"; //$NON-NLS-1$ + + /** + * The singleton instance of the package. + * + * + * + * @generated + */ + SerializationPackage eINSTANCE = org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.AbstractReferenceInstanceImpl Abstract Reference Instance}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.AbstractReferenceInstanceImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl#getAbstractReferenceInstance() + * @generated + */ + int ABSTRACT_REFERENCE_INSTANCE = 0; + + /** + * The feature id for the 'EReference' reference. + * + * + * + * @generated + * @ordered + */ + int ABSTRACT_REFERENCE_INSTANCE__EREFERENCE = 0; + + /** + * The number of structural features of the 'Abstract Reference Instance' class. + * + * + * + * @generated + * @ordered + */ + int ABSTRACT_REFERENCE_INSTANCE_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.MultiValuedContainmentReferenceInstanceImpl Multi Valued Containment Reference Instance}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.MultiValuedContainmentReferenceInstanceImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl#getMultiValuedContainmentReferenceInstance() + * @generated + */ + int MULTI_VALUED_CONTAINMENT_REFERENCE_INSTANCE = 1; + + /** + * The feature id for the 'EReference' reference. + * + * + * + * @generated + * @ordered + */ + int MULTI_VALUED_CONTAINMENT_REFERENCE_INSTANCE__EREFERENCE = ABSTRACT_REFERENCE_INSTANCE__EREFERENCE; + + /** + * The feature id for the 'Owned Elements' containment reference list. + * + * + * + * @generated + * @ordered + */ + int MULTI_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENTS = ABSTRACT_REFERENCE_INSTANCE_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Multi Valued Containment Reference Instance' class. + * + * + * + * @generated + * @ordered + */ + int MULTI_VALUED_CONTAINMENT_REFERENCE_INSTANCE_FEATURE_COUNT = ABSTRACT_REFERENCE_INSTANCE_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.MultiValuedReferenceInstanceImpl Multi Valued Reference Instance}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.MultiValuedReferenceInstanceImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl#getMultiValuedReferenceInstance() + * @generated + */ + int MULTI_VALUED_REFERENCE_INSTANCE = 2; + + /** + * The feature id for the 'EReference' reference. + * + * + * + * @generated + * @ordered + */ + int MULTI_VALUED_REFERENCE_INSTANCE__EREFERENCE = ABSTRACT_REFERENCE_INSTANCE__EREFERENCE; + + /** + * The feature id for the 'Referenced Elements' reference list. + * + * + * + * @generated + * @ordered + */ + int MULTI_VALUED_REFERENCE_INSTANCE__REFERENCED_ELEMENTS = ABSTRACT_REFERENCE_INSTANCE_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Multi Valued Reference Instance' class. + * + * + * + * @generated + * @ordered + */ + int MULTI_VALUED_REFERENCE_INSTANCE_FEATURE_COUNT = ABSTRACT_REFERENCE_INSTANCE_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.AbstractAttributeInstanceImpl Abstract Attribute Instance}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.AbstractAttributeInstanceImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl#getAbstractAttributeInstance() + * @generated + */ + int ABSTRACT_ATTRIBUTE_INSTANCE = 8; + + /** + * The feature id for the 'EAttribute' reference. + * + * + * + * @generated + * @ordered + */ + int ABSTRACT_ATTRIBUTE_INSTANCE__EATTRIBUTE = 0; + + /** + * The number of structural features of the 'Abstract Attribute Instance' class. + * + * + * + * @generated + * @ordered + */ + int ABSTRACT_ATTRIBUTE_INSTANCE_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SingleValuedAttributeInstanceImpl Single Valued Attribute Instance}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SingleValuedAttributeInstanceImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl#getSingleValuedAttributeInstance() + * @generated + */ + int SINGLE_VALUED_ATTRIBUTE_INSTANCE = 3; + + /** + * The feature id for the 'EAttribute' reference. + * + * + * + * @generated + * @ordered + */ + int SINGLE_VALUED_ATTRIBUTE_INSTANCE__EATTRIBUTE = ABSTRACT_ATTRIBUTE_INSTANCE__EATTRIBUTE; + + /** + * The feature id for the 'Value' attribute. + * + * + * + * @generated + * @ordered + */ + int SINGLE_VALUED_ATTRIBUTE_INSTANCE__VALUE = ABSTRACT_ATTRIBUTE_INSTANCE_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Single Valued Attribute Instance' class. + * + * + * + * @generated + * @ordered + */ + int SINGLE_VALUED_ATTRIBUTE_INSTANCE_FEATURE_COUNT = ABSTRACT_ATTRIBUTE_INSTANCE_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.ExtendedEObjectReferenceImpl Extended EObject Reference}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.ExtendedEObjectReferenceImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl#getExtendedEObjectReference() + * @generated + */ + int EXTENDED_EOBJECT_REFERENCE = 4; + + /** + * The feature id for the 'Extended EObject' reference. + * + * + * + * @generated + * @ordered + */ + int EXTENDED_EOBJECT_REFERENCE__EXTENDED_EOBJECT = 0; + + /** + * The feature id for the 'Attribute Instances' containment reference list. + * + * + * + * @generated + * @ordered + */ + int EXTENDED_EOBJECT_REFERENCE__ATTRIBUTE_INSTANCES = 1; + + /** + * The feature id for the 'Reference Instances' containment reference list. + * + * + * + * @generated + * @ordered + */ + int EXTENDED_EOBJECT_REFERENCE__REFERENCE_INSTANCES = 2; + + /** + * The number of structural features of the 'Extended EObject Reference' class. + * + * + * + * @generated + * @ordered + */ + int EXTENDED_EOBJECT_REFERENCE_FEATURE_COUNT = 3; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SingleValuedContainmentReferenceInstanceImpl Single Valued Containment Reference Instance}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SingleValuedContainmentReferenceInstanceImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl#getSingleValuedContainmentReferenceInstance() + * @generated + */ + int SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE = 5; + + /** + * The feature id for the 'EReference' reference. + * + * + * + * @generated + * @ordered + */ + int SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE__EREFERENCE = ABSTRACT_REFERENCE_INSTANCE__EREFERENCE; + + /** + * The feature id for the 'Owned Element' containment reference. + * + * + * + * @generated + * @ordered + */ + int SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENT = ABSTRACT_REFERENCE_INSTANCE_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Single Valued Containment Reference Instance' class. + * + * + * + * @generated + * @ordered + */ + int SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE_FEATURE_COUNT = ABSTRACT_REFERENCE_INSTANCE_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SingleValuedReferenceInstanceImpl Single Valued Reference Instance}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SingleValuedReferenceInstanceImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl#getSingleValuedReferenceInstance() + * @generated + */ + int SINGLE_VALUED_REFERENCE_INSTANCE = 6; + + /** + * The feature id for the 'EReference' reference. + * + * + * + * @generated + * @ordered + */ + int SINGLE_VALUED_REFERENCE_INSTANCE__EREFERENCE = ABSTRACT_REFERENCE_INSTANCE__EREFERENCE; + + /** + * The feature id for the 'Referenced Element' reference. + * + * + * + * @generated + * @ordered + */ + int SINGLE_VALUED_REFERENCE_INSTANCE__REFERENCED_ELEMENT = ABSTRACT_REFERENCE_INSTANCE_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Single Valued Reference Instance' class. + * + * + * + * @generated + * @ordered + */ + int SINGLE_VALUED_REFERENCE_INSTANCE_FEATURE_COUNT = ABSTRACT_REFERENCE_INSTANCE_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.MultiValuedAttributeInstanceImpl Multi Valued Attribute Instance}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.MultiValuedAttributeInstanceImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl#getMultiValuedAttributeInstance() + * @generated + */ + int MULTI_VALUED_ATTRIBUTE_INSTANCE = 7; + + /** + * The feature id for the 'EAttribute' reference. + * + * + * + * @generated + * @ordered + */ + int MULTI_VALUED_ATTRIBUTE_INSTANCE__EATTRIBUTE = ABSTRACT_ATTRIBUTE_INSTANCE__EATTRIBUTE; + + /** + * The feature id for the 'Values' attribute list. + * + * + * + * @generated + * @ordered + */ + int MULTI_VALUED_ATTRIBUTE_INSTANCE__VALUES = ABSTRACT_ATTRIBUTE_INSTANCE_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Multi Valued Attribute Instance' class. + * + * + * + * @generated + * @ordered + */ + int MULTI_VALUED_ATTRIBUTE_INSTANCE_FEATURE_COUNT = ABSTRACT_ATTRIBUTE_INSTANCE_FEATURE_COUNT + 1; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractReferenceInstance Abstract Reference Instance}'. + * + * + * + * @return the meta object for class 'Abstract Reference Instance'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractReferenceInstance + * @generated + */ + EClass getAbstractReferenceInstance(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractReferenceInstance#getEReference EReference}'. + * + * + * + * @return the meta object for the reference 'EReference'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractReferenceInstance#getEReference() + * @see #getAbstractReferenceInstance() + * @generated + */ + EReference getAbstractReferenceInstance_EReference(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedContainmentReferenceInstance Multi Valued Containment Reference Instance}'. + * + * + * + * @return the meta object for class 'Multi Valued Containment Reference Instance'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedContainmentReferenceInstance + * @generated + */ + EClass getMultiValuedContainmentReferenceInstance(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedContainmentReferenceInstance#getOwnedElements Owned Elements}'. + * + * + * + * @return the meta object for the containment reference list 'Owned Elements'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedContainmentReferenceInstance#getOwnedElements() + * @see #getMultiValuedContainmentReferenceInstance() + * @generated + */ + EReference getMultiValuedContainmentReferenceInstance_OwnedElements(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedReferenceInstance Multi Valued Reference Instance}'. + * + * + * + * @return the meta object for class 'Multi Valued Reference Instance'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedReferenceInstance + * @generated + */ + EClass getMultiValuedReferenceInstance(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedReferenceInstance#getReferencedElements Referenced Elements}'. + * + * + * + * @return the meta object for the reference list 'Referenced Elements'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedReferenceInstance#getReferencedElements() + * @see #getMultiValuedReferenceInstance() + * @generated + */ + EReference getMultiValuedReferenceInstance_ReferencedElements(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedAttributeInstance Single Valued Attribute Instance}'. + * + * + * + * @return the meta object for class 'Single Valued Attribute Instance'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedAttributeInstance + * @generated + */ + EClass getSingleValuedAttributeInstance(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedAttributeInstance#getValue Value}'. + * + * + * + * @return the meta object for the attribute 'Value'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedAttributeInstance#getValue() + * @see #getSingleValuedAttributeInstance() + * @generated + */ + EAttribute getSingleValuedAttributeInstance_Value(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.ExtendedEObjectReference Extended EObject Reference}'. + * + * + * + * @return the meta object for class 'Extended EObject Reference'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.ExtendedEObjectReference + * @generated + */ + EClass getExtendedEObjectReference(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.ExtendedEObjectReference#getExtendedEObject Extended EObject}'. + * + * + * + * @return the meta object for the reference 'Extended EObject'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.ExtendedEObjectReference#getExtendedEObject() + * @see #getExtendedEObjectReference() + * @generated + */ + EReference getExtendedEObjectReference_ExtendedEObject(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.ExtendedEObjectReference#getAttributeInstances Attribute Instances}'. + * + * + * + * @return the meta object for the containment reference list 'Attribute Instances'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.ExtendedEObjectReference#getAttributeInstances() + * @see #getExtendedEObjectReference() + * @generated + */ + EReference getExtendedEObjectReference_AttributeInstances(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.ExtendedEObjectReference#getReferenceInstances Reference Instances}'. + * + * + * + * @return the meta object for the containment reference list 'Reference Instances'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.ExtendedEObjectReference#getReferenceInstances() + * @see #getExtendedEObjectReference() + * @generated + */ + EReference getExtendedEObjectReference_ReferenceInstances(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedContainmentReferenceInstance Single Valued Containment Reference Instance}'. + * + * + * + * @return the meta object for class 'Single Valued Containment Reference Instance'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedContainmentReferenceInstance + * @generated + */ + EClass getSingleValuedContainmentReferenceInstance(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedContainmentReferenceInstance#getOwnedElement Owned Element}'. + * + * + * + * @return the meta object for the containment reference 'Owned Element'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedContainmentReferenceInstance#getOwnedElement() + * @see #getSingleValuedContainmentReferenceInstance() + * @generated + */ + EReference getSingleValuedContainmentReferenceInstance_OwnedElement(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedReferenceInstance Single Valued Reference Instance}'. + * + * + * + * @return the meta object for class 'Single Valued Reference Instance'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedReferenceInstance + * @generated + */ + EClass getSingleValuedReferenceInstance(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedReferenceInstance#getReferencedElement Referenced Element}'. + * + * + * + * @return the meta object for the reference 'Referenced Element'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedReferenceInstance#getReferencedElement() + * @see #getSingleValuedReferenceInstance() + * @generated + */ + EReference getSingleValuedReferenceInstance_ReferencedElement(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedAttributeInstance Multi Valued Attribute Instance}'. + * + * + * + * @return the meta object for class 'Multi Valued Attribute Instance'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedAttributeInstance + * @generated + */ + EClass getMultiValuedAttributeInstance(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedAttributeInstance#getValues Values}'. + * + * + * + * @return the meta object for the attribute list 'Values'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedAttributeInstance#getValues() + * @see #getMultiValuedAttributeInstance() + * @generated + */ + EAttribute getMultiValuedAttributeInstance_Values(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractAttributeInstance Abstract Attribute Instance}'. + * + * + * + * @return the meta object for class 'Abstract Attribute Instance'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractAttributeInstance + * @generated + */ + EClass getAbstractAttributeInstance(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractAttributeInstance#getEAttribute EAttribute}'. + * + * + * + * @return the meta object for the reference 'EAttribute'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractAttributeInstance#getEAttribute() + * @see #getAbstractAttributeInstance() + * @generated + */ + EReference getAbstractAttributeInstance_EAttribute(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + SerializationFactory getSerializationFactory(); + + /** + * + * Defines literals for the meta objects that represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.AbstractReferenceInstanceImpl Abstract Reference Instance}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.AbstractReferenceInstanceImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl#getAbstractReferenceInstance() + * @generated + */ + EClass ABSTRACT_REFERENCE_INSTANCE = eINSTANCE.getAbstractReferenceInstance(); + + /** + * The meta object literal for the 'EReference' reference feature. + * + * + * + * @generated + */ + EReference ABSTRACT_REFERENCE_INSTANCE__EREFERENCE = eINSTANCE.getAbstractReferenceInstance_EReference(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.MultiValuedContainmentReferenceInstanceImpl Multi Valued Containment Reference Instance}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.MultiValuedContainmentReferenceInstanceImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl#getMultiValuedContainmentReferenceInstance() + * @generated + */ + EClass MULTI_VALUED_CONTAINMENT_REFERENCE_INSTANCE = eINSTANCE.getMultiValuedContainmentReferenceInstance(); + + /** + * The meta object literal for the 'Owned Elements' containment reference list feature. + * + * + * + * @generated + */ + EReference MULTI_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENTS = eINSTANCE.getMultiValuedContainmentReferenceInstance_OwnedElements(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.MultiValuedReferenceInstanceImpl Multi Valued Reference Instance}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.MultiValuedReferenceInstanceImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl#getMultiValuedReferenceInstance() + * @generated + */ + EClass MULTI_VALUED_REFERENCE_INSTANCE = eINSTANCE.getMultiValuedReferenceInstance(); + + /** + * The meta object literal for the 'Referenced Elements' reference list feature. + * + * + * + * @generated + */ + EReference MULTI_VALUED_REFERENCE_INSTANCE__REFERENCED_ELEMENTS = eINSTANCE.getMultiValuedReferenceInstance_ReferencedElements(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SingleValuedAttributeInstanceImpl Single Valued Attribute Instance}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SingleValuedAttributeInstanceImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl#getSingleValuedAttributeInstance() + * @generated + */ + EClass SINGLE_VALUED_ATTRIBUTE_INSTANCE = eINSTANCE.getSingleValuedAttributeInstance(); + + /** + * The meta object literal for the 'Value' attribute feature. + * + * + * + * @generated + */ + EAttribute SINGLE_VALUED_ATTRIBUTE_INSTANCE__VALUE = eINSTANCE.getSingleValuedAttributeInstance_Value(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.ExtendedEObjectReferenceImpl Extended EObject Reference}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.ExtendedEObjectReferenceImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl#getExtendedEObjectReference() + * @generated + */ + EClass EXTENDED_EOBJECT_REFERENCE = eINSTANCE.getExtendedEObjectReference(); + + /** + * The meta object literal for the 'Extended EObject' reference feature. + * + * + * + * @generated + */ + EReference EXTENDED_EOBJECT_REFERENCE__EXTENDED_EOBJECT = eINSTANCE.getExtendedEObjectReference_ExtendedEObject(); + + /** + * The meta object literal for the 'Attribute Instances' containment reference list feature. + * + * + * + * @generated + */ + EReference EXTENDED_EOBJECT_REFERENCE__ATTRIBUTE_INSTANCES = eINSTANCE.getExtendedEObjectReference_AttributeInstances(); + + /** + * The meta object literal for the 'Reference Instances' containment reference list feature. + * + * + * + * @generated + */ + EReference EXTENDED_EOBJECT_REFERENCE__REFERENCE_INSTANCES = eINSTANCE.getExtendedEObjectReference_ReferenceInstances(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SingleValuedContainmentReferenceInstanceImpl Single Valued Containment Reference Instance}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SingleValuedContainmentReferenceInstanceImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl#getSingleValuedContainmentReferenceInstance() + * @generated + */ + EClass SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE = eINSTANCE.getSingleValuedContainmentReferenceInstance(); + + /** + * The meta object literal for the 'Owned Element' containment reference feature. + * + * + * + * @generated + */ + EReference SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENT = eINSTANCE.getSingleValuedContainmentReferenceInstance_OwnedElement(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SingleValuedReferenceInstanceImpl Single Valued Reference Instance}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SingleValuedReferenceInstanceImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl#getSingleValuedReferenceInstance() + * @generated + */ + EClass SINGLE_VALUED_REFERENCE_INSTANCE = eINSTANCE.getSingleValuedReferenceInstance(); + + /** + * The meta object literal for the 'Referenced Element' reference feature. + * + * + * + * @generated + */ + EReference SINGLE_VALUED_REFERENCE_INSTANCE__REFERENCED_ELEMENT = eINSTANCE.getSingleValuedReferenceInstance_ReferencedElement(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.MultiValuedAttributeInstanceImpl Multi Valued Attribute Instance}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.MultiValuedAttributeInstanceImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl#getMultiValuedAttributeInstance() + * @generated + */ + EClass MULTI_VALUED_ATTRIBUTE_INSTANCE = eINSTANCE.getMultiValuedAttributeInstance(); + + /** + * The meta object literal for the 'Values' attribute list feature. + * + * + * + * @generated + */ + EAttribute MULTI_VALUED_ATTRIBUTE_INSTANCE__VALUES = eINSTANCE.getMultiValuedAttributeInstance_Values(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.AbstractAttributeInstanceImpl Abstract Attribute Instance}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.AbstractAttributeInstanceImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl#getAbstractAttributeInstance() + * @generated + */ + EClass ABSTRACT_ATTRIBUTE_INSTANCE = eINSTANCE.getAbstractAttributeInstance(); + + /** + * The meta object literal for the 'EAttribute' reference feature. + * + * + * + * @generated + */ + EReference ABSTRACT_ATTRIBUTE_INSTANCE__EATTRIBUTE = eINSTANCE.getAbstractAttributeInstance_EAttribute(); + + } + +} // SerializationPackage diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SingleValuedAttributeInstance.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SingleValuedAttributeInstance.java new file mode 100644 index 00000000000..01bfc660539 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SingleValuedAttributeInstance.java @@ -0,0 +1,65 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization; + + +/** + * + * A representation of the model object 'Single Valued Attribute Instance'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedAttributeInstance#getValue Value}
  • + *
+ * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getSingleValuedAttributeInstance() + * @model + * @generated + */ +public interface SingleValuedAttributeInstance extends AbstractAttributeInstance { + /** + * Returns the value of the 'Value' attribute. + * + *

+ * If the meaning of the 'Value' attribute isn't clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'Value' attribute. + * @see #setValue(Object) + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getSingleValuedAttributeInstance_Value() + * @model + * @generated + */ + Object getValue(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedAttributeInstance#getValue Value}' attribute. + * + * + * + * @param value + * the new value of the 'Value' attribute. + * @see #getValue() + * @generated + */ + void setValue(Object value); + +} // SingleValuedAttributeInstance diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SingleValuedContainmentReferenceInstance.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SingleValuedContainmentReferenceInstance.java new file mode 100644 index 00000000000..2205021faa4 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SingleValuedContainmentReferenceInstance.java @@ -0,0 +1,66 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Single Valued Containment Reference Instance'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedContainmentReferenceInstance#getOwnedElement Owned Element}
  • + *
+ * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getSingleValuedContainmentReferenceInstance() + * @model + * @generated + */ +public interface SingleValuedContainmentReferenceInstance extends AbstractReferenceInstance { + /** + * Returns the value of the 'Owned Element' containment reference. + * + *

+ * If the meaning of the 'Owned Element' containment reference isn't clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'Owned Element' containment reference. + * @see #setOwnedElement(EObject) + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getSingleValuedContainmentReferenceInstance_OwnedElement() + * @model containment="true" + * @generated + */ + EObject getOwnedElement(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedContainmentReferenceInstance#getOwnedElement Owned Element}' containment reference. + * + * + * + * @param value + * the new value of the 'Owned Element' containment reference. + * @see #getOwnedElement() + * @generated + */ + void setOwnedElement(EObject value); + +} // SingleValuedContainmentReferenceInstance diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SingleValuedReferenceInstance.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SingleValuedReferenceInstance.java new file mode 100644 index 00000000000..95f80ffa06a --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SingleValuedReferenceInstance.java @@ -0,0 +1,66 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Single Valued Reference Instance'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedReferenceInstance#getReferencedElement Referenced Element}
  • + *
+ * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getSingleValuedReferenceInstance() + * @model + * @generated + */ +public interface SingleValuedReferenceInstance extends AbstractReferenceInstance { + /** + * Returns the value of the 'Referenced Element' reference. + * + *

+ * If the meaning of the 'Referenced Element' reference isn't clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'Referenced Element' reference. + * @see #setReferencedElement(EObject) + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getSingleValuedReferenceInstance_ReferencedElement() + * @model + * @generated + */ + EObject getReferencedElement(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedReferenceInstance#getReferencedElement Referenced Element}' reference. + * + * + * + * @param value + * the new value of the 'Referenced Element' reference. + * @see #getReferencedElement() + * @generated + */ + void setReferencedElement(EObject value); + +} // SingleValuedReferenceInstance diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/AbstractAttributeInstanceImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/AbstractAttributeInstanceImpl.java new file mode 100644 index 00000000000..30e4452e11b --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/AbstractAttributeInstanceImpl.java @@ -0,0 +1,182 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractAttributeInstance; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage; + +/** + * + * An implementation of the model object 'Abstract Attribute Instance'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.AbstractAttributeInstanceImpl#getEAttribute EAttribute}
  • + *
+ * + * @generated + */ +public class AbstractAttributeInstanceImpl extends EObjectImpl implements AbstractAttributeInstance { + /** + * The cached value of the '{@link #getEAttribute() EAttribute}' reference. + * + * + * + * @see #getEAttribute() + * @generated + * @ordered + */ + protected EAttribute eAttribute; + + /** + * + * + * + * @generated + */ + protected AbstractAttributeInstanceImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SerializationPackage.Literals.ABSTRACT_ATTRIBUTE_INSTANCE; + } + + /** + * + * + * + * @generated + */ + public EAttribute getEAttribute() { + if (eAttribute != null && eAttribute.eIsProxy()) { + InternalEObject oldEAttribute = (InternalEObject) eAttribute; + eAttribute = (EAttribute) eResolveProxy(oldEAttribute); + if (eAttribute != oldEAttribute) { + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.RESOLVE, SerializationPackage.ABSTRACT_ATTRIBUTE_INSTANCE__EATTRIBUTE, oldEAttribute, eAttribute)); + } + } + } + return eAttribute; + } + + /** + * + * + * + * @generated + */ + public EAttribute basicGetEAttribute() { + return eAttribute; + } + + /** + * + * + * + * @generated + */ + public void setEAttribute(EAttribute newEAttribute) { + EAttribute oldEAttribute = eAttribute; + eAttribute = newEAttribute; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, SerializationPackage.ABSTRACT_ATTRIBUTE_INSTANCE__EATTRIBUTE, oldEAttribute, eAttribute)); + } + } + + /** + * + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SerializationPackage.ABSTRACT_ATTRIBUTE_INSTANCE__EATTRIBUTE: + if (resolve) { + return getEAttribute(); + } + return basicGetEAttribute(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SerializationPackage.ABSTRACT_ATTRIBUTE_INSTANCE__EATTRIBUTE: + setEAttribute((EAttribute) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SerializationPackage.ABSTRACT_ATTRIBUTE_INSTANCE__EATTRIBUTE: + setEAttribute((EAttribute) null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SerializationPackage.ABSTRACT_ATTRIBUTE_INSTANCE__EATTRIBUTE: + return eAttribute != null; + } + return super.eIsSet(featureID); + } + +} // AbstractAttributeInstanceImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/AbstractReferenceInstanceImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/AbstractReferenceInstanceImpl.java new file mode 100644 index 00000000000..2246a2a74ac --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/AbstractReferenceInstanceImpl.java @@ -0,0 +1,182 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractReferenceInstance; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage; + +/** + * + * An implementation of the model object 'Abstract Reference Instance'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.AbstractReferenceInstanceImpl#getEReference EReference}
  • + *
+ * + * @generated + */ +public class AbstractReferenceInstanceImpl extends EObjectImpl implements AbstractReferenceInstance { + /** + * The cached value of the '{@link #getEReference() EReference}' reference. + * + * + * + * @see #getEReference() + * @generated + * @ordered + */ + protected EReference eReference; + + /** + * + * + * + * @generated + */ + protected AbstractReferenceInstanceImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SerializationPackage.Literals.ABSTRACT_REFERENCE_INSTANCE; + } + + /** + * + * + * + * @generated + */ + public EReference getEReference() { + if (eReference != null && eReference.eIsProxy()) { + InternalEObject oldEReference = (InternalEObject) eReference; + eReference = (EReference) eResolveProxy(oldEReference); + if (eReference != oldEReference) { + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.RESOLVE, SerializationPackage.ABSTRACT_REFERENCE_INSTANCE__EREFERENCE, oldEReference, eReference)); + } + } + } + return eReference; + } + + /** + * + * + * + * @generated + */ + public EReference basicGetEReference() { + return eReference; + } + + /** + * + * + * + * @generated + */ + public void setEReference(EReference newEReference) { + EReference oldEReference = eReference; + eReference = newEReference; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, SerializationPackage.ABSTRACT_REFERENCE_INSTANCE__EREFERENCE, oldEReference, eReference)); + } + } + + /** + * + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SerializationPackage.ABSTRACT_REFERENCE_INSTANCE__EREFERENCE: + if (resolve) { + return getEReference(); + } + return basicGetEReference(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SerializationPackage.ABSTRACT_REFERENCE_INSTANCE__EREFERENCE: + setEReference((EReference) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SerializationPackage.ABSTRACT_REFERENCE_INSTANCE__EREFERENCE: + setEReference((EReference) null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SerializationPackage.ABSTRACT_REFERENCE_INSTANCE__EREFERENCE: + return eReference != null; + } + return super.eIsSet(featureID); + } + +} // AbstractReferenceInstanceImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/ExtendedEObjectReferenceImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/ExtendedEObjectReferenceImpl.java new file mode 100644 index 00000000000..371ab5f7fb0 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/ExtendedEObjectReferenceImpl.java @@ -0,0 +1,280 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractAttributeInstance; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractReferenceInstance; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.ExtendedEObjectReference; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage; + +/** + * + * An implementation of the model object 'Extended EObject Reference'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.ExtendedEObjectReferenceImpl#getExtendedEObject Extended EObject}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.ExtendedEObjectReferenceImpl#getAttributeInstances Attribute Instances}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.ExtendedEObjectReferenceImpl#getReferenceInstances Reference Instances}
  • + *
+ * + * @generated + */ +public class ExtendedEObjectReferenceImpl extends EObjectImpl implements ExtendedEObjectReference { + /** + * The cached value of the '{@link #getExtendedEObject() Extended EObject}' reference. + * + * + * + * @see #getExtendedEObject() + * @generated + * @ordered + */ + protected EObject extendedEObject; + + /** + * The cached value of the '{@link #getAttributeInstances() Attribute Instances}' containment reference list. + * + * + * + * @see #getAttributeInstances() + * @generated + * @ordered + */ + protected EList attributeInstances; + + /** + * The cached value of the '{@link #getReferenceInstances() Reference Instances}' containment reference list. + * + * + * + * @see #getReferenceInstances() + * @generated + * @ordered + */ + protected EList referenceInstances; + + /** + * + * + * + * @generated + */ + protected ExtendedEObjectReferenceImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SerializationPackage.Literals.EXTENDED_EOBJECT_REFERENCE; + } + + /** + * + * + * + * @generated + */ + public EObject getExtendedEObject() { + if (extendedEObject != null && extendedEObject.eIsProxy()) { + InternalEObject oldExtendedEObject = (InternalEObject) extendedEObject; + extendedEObject = eResolveProxy(oldExtendedEObject); + if (extendedEObject != oldExtendedEObject) { + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.RESOLVE, SerializationPackage.EXTENDED_EOBJECT_REFERENCE__EXTENDED_EOBJECT, oldExtendedEObject, extendedEObject)); + } + } + } + return extendedEObject; + } + + /** + * + * + * + * @generated + */ + public EObject basicGetExtendedEObject() { + return extendedEObject; + } + + /** + * + * + * + * @generated + */ + public void setExtendedEObject(EObject newExtendedEObject) { + EObject oldExtendedEObject = extendedEObject; + extendedEObject = newExtendedEObject; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, SerializationPackage.EXTENDED_EOBJECT_REFERENCE__EXTENDED_EOBJECT, oldExtendedEObject, extendedEObject)); + } + } + + /** + * + * + * + * @generated + */ + public EList getAttributeInstances() { + if (attributeInstances == null) { + attributeInstances = new EObjectContainmentEList(AbstractAttributeInstance.class, this, SerializationPackage.EXTENDED_EOBJECT_REFERENCE__ATTRIBUTE_INSTANCES); + } + return attributeInstances; + } + + /** + * + * + * + * @generated + */ + public EList getReferenceInstances() { + if (referenceInstances == null) { + referenceInstances = new EObjectContainmentEList(AbstractReferenceInstance.class, this, SerializationPackage.EXTENDED_EOBJECT_REFERENCE__REFERENCE_INSTANCES); + } + return referenceInstances; + } + + /** + * + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case SerializationPackage.EXTENDED_EOBJECT_REFERENCE__ATTRIBUTE_INSTANCES: + return ((InternalEList) getAttributeInstances()).basicRemove(otherEnd, msgs); + case SerializationPackage.EXTENDED_EOBJECT_REFERENCE__REFERENCE_INSTANCES: + return ((InternalEList) getReferenceInstances()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SerializationPackage.EXTENDED_EOBJECT_REFERENCE__EXTENDED_EOBJECT: + if (resolve) { + return getExtendedEObject(); + } + return basicGetExtendedEObject(); + case SerializationPackage.EXTENDED_EOBJECT_REFERENCE__ATTRIBUTE_INSTANCES: + return getAttributeInstances(); + case SerializationPackage.EXTENDED_EOBJECT_REFERENCE__REFERENCE_INSTANCES: + return getReferenceInstances(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SerializationPackage.EXTENDED_EOBJECT_REFERENCE__EXTENDED_EOBJECT: + setExtendedEObject((EObject) newValue); + return; + case SerializationPackage.EXTENDED_EOBJECT_REFERENCE__ATTRIBUTE_INSTANCES: + getAttributeInstances().clear(); + getAttributeInstances().addAll((Collection) newValue); + return; + case SerializationPackage.EXTENDED_EOBJECT_REFERENCE__REFERENCE_INSTANCES: + getReferenceInstances().clear(); + getReferenceInstances().addAll((Collection) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SerializationPackage.EXTENDED_EOBJECT_REFERENCE__EXTENDED_EOBJECT: + setExtendedEObject((EObject) null); + return; + case SerializationPackage.EXTENDED_EOBJECT_REFERENCE__ATTRIBUTE_INSTANCES: + getAttributeInstances().clear(); + return; + case SerializationPackage.EXTENDED_EOBJECT_REFERENCE__REFERENCE_INSTANCES: + getReferenceInstances().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SerializationPackage.EXTENDED_EOBJECT_REFERENCE__EXTENDED_EOBJECT: + return extendedEObject != null; + case SerializationPackage.EXTENDED_EOBJECT_REFERENCE__ATTRIBUTE_INSTANCES: + return attributeInstances != null && !attributeInstances.isEmpty(); + case SerializationPackage.EXTENDED_EOBJECT_REFERENCE__REFERENCE_INSTANCES: + return referenceInstances != null && !referenceInstances.isEmpty(); + } + return super.eIsSet(featureID); + } + +} // ExtendedEObjectReferenceImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/MultiValuedAttributeInstanceImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/MultiValuedAttributeInstanceImpl.java new file mode 100644 index 00000000000..43393861ec8 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/MultiValuedAttributeInstanceImpl.java @@ -0,0 +1,169 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedAttributeInstance; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage; + +/** + * + * An implementation of the model object 'Multi Valued Attribute Instance'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.MultiValuedAttributeInstanceImpl#getValues Values}
  • + *
+ * + * @generated + */ +public class MultiValuedAttributeInstanceImpl extends AbstractAttributeInstanceImpl implements MultiValuedAttributeInstance { + /** + * The cached value of the '{@link #getValues() Values}' attribute list. + * + * + * + * @see #getValues() + * @generated + * @ordered + */ + protected EList values; + + /** + * + * + * + * @generated + */ + protected MultiValuedAttributeInstanceImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SerializationPackage.Literals.MULTI_VALUED_ATTRIBUTE_INSTANCE; + } + + /** + * + * + * + * @generated + */ + public EList getValues() { + if (values == null) { + values = new EDataTypeUniqueEList(Object.class, this, SerializationPackage.MULTI_VALUED_ATTRIBUTE_INSTANCE__VALUES); + } + return values; + } + + /** + * + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SerializationPackage.MULTI_VALUED_ATTRIBUTE_INSTANCE__VALUES: + return getValues(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SerializationPackage.MULTI_VALUED_ATTRIBUTE_INSTANCE__VALUES: + getValues().clear(); + getValues().addAll((Collection) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SerializationPackage.MULTI_VALUED_ATTRIBUTE_INSTANCE__VALUES: + getValues().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SerializationPackage.MULTI_VALUED_ATTRIBUTE_INSTANCE__VALUES: + return values != null && !values.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (values: "); //$NON-NLS-1$ + result.append(values); + result.append(')'); + return result.toString(); + } + +} // MultiValuedAttributeInstanceImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/MultiValuedContainmentReferenceInstanceImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/MultiValuedContainmentReferenceInstanceImpl.java new file mode 100644 index 00000000000..9c1c99025ca --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/MultiValuedContainmentReferenceInstanceImpl.java @@ -0,0 +1,169 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedContainmentReferenceInstance; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage; + +/** + * + * An implementation of the model object 'Multi Valued Containment Reference Instance'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.MultiValuedContainmentReferenceInstanceImpl#getOwnedElements Owned Elements}
  • + *
+ * + * @generated + */ +public class MultiValuedContainmentReferenceInstanceImpl extends AbstractReferenceInstanceImpl implements MultiValuedContainmentReferenceInstance { + /** + * The cached value of the '{@link #getOwnedElements() Owned Elements}' containment reference list. + * + * + * + * @see #getOwnedElements() + * @generated + * @ordered + */ + protected EList ownedElements; + + /** + * + * + * + * @generated + */ + protected MultiValuedContainmentReferenceInstanceImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SerializationPackage.Literals.MULTI_VALUED_CONTAINMENT_REFERENCE_INSTANCE; + } + + /** + * + * + * + * @generated + */ + public EList getOwnedElements() { + if (ownedElements == null) { + ownedElements = new EObjectContainmentEList(EObject.class, this, SerializationPackage.MULTI_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENTS); + } + return ownedElements; + } + + /** + * + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case SerializationPackage.MULTI_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENTS: + return ((InternalEList) getOwnedElements()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SerializationPackage.MULTI_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENTS: + return getOwnedElements(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SerializationPackage.MULTI_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENTS: + getOwnedElements().clear(); + getOwnedElements().addAll((Collection) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SerializationPackage.MULTI_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENTS: + getOwnedElements().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SerializationPackage.MULTI_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENTS: + return ownedElements != null && !ownedElements.isEmpty(); + } + return super.eIsSet(featureID); + } + +} // MultiValuedContainmentReferenceInstanceImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/MultiValuedReferenceInstanceImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/MultiValuedReferenceInstanceImpl.java new file mode 100644 index 00000000000..fab2e3e119f --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/MultiValuedReferenceInstanceImpl.java @@ -0,0 +1,151 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedReferenceInstance; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage; + +/** + * + * An implementation of the model object 'Multi Valued Reference Instance'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.MultiValuedReferenceInstanceImpl#getReferencedElements Referenced Elements}
  • + *
+ * + * @generated + */ +public class MultiValuedReferenceInstanceImpl extends AbstractReferenceInstanceImpl implements MultiValuedReferenceInstance { + /** + * The cached value of the '{@link #getReferencedElements() Referenced Elements}' reference list. + * + * + * + * @see #getReferencedElements() + * @generated + * @ordered + */ + protected EList referencedElements; + + /** + * + * + * + * @generated + */ + protected MultiValuedReferenceInstanceImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SerializationPackage.Literals.MULTI_VALUED_REFERENCE_INSTANCE; + } + + /** + * + * + * + * @generated + */ + public EList getReferencedElements() { + if (referencedElements == null) { + referencedElements = new EObjectResolvingEList(EObject.class, this, SerializationPackage.MULTI_VALUED_REFERENCE_INSTANCE__REFERENCED_ELEMENTS); + } + return referencedElements; + } + + /** + * + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SerializationPackage.MULTI_VALUED_REFERENCE_INSTANCE__REFERENCED_ELEMENTS: + return getReferencedElements(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SerializationPackage.MULTI_VALUED_REFERENCE_INSTANCE__REFERENCED_ELEMENTS: + getReferencedElements().clear(); + getReferencedElements().addAll((Collection) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SerializationPackage.MULTI_VALUED_REFERENCE_INSTANCE__REFERENCED_ELEMENTS: + getReferencedElements().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SerializationPackage.MULTI_VALUED_REFERENCE_INSTANCE__REFERENCED_ELEMENTS: + return referencedElements != null && !referencedElements.isEmpty(); + } + return super.eIsSet(featureID); + } + +} // MultiValuedReferenceInstanceImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SerializationFactoryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SerializationFactoryImpl.java new file mode 100644 index 00000000000..ab1f36dca8d --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SerializationFactoryImpl.java @@ -0,0 +1,227 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.impl.EFactoryImpl; +import org.eclipse.emf.ecore.plugin.EcorePlugin; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractAttributeInstance; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractReferenceInstance; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.ExtendedEObjectReference; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedAttributeInstance; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedContainmentReferenceInstance; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedReferenceInstance; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationFactory; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedAttributeInstance; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedContainmentReferenceInstance; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedReferenceInstance; + +/** + * + * An implementation of the model Factory. + * + * + * @generated + */ +public class SerializationFactoryImpl extends EFactoryImpl implements SerializationFactory { + /** + * Creates the default factory implementation. + * + * + * + * @generated + */ + public static SerializationFactory init() { + try { + SerializationFactory theSerializationFactory = (SerializationFactory) EPackage.Registry.INSTANCE.getEFactory(SerializationPackage.eNS_URI); + if (theSerializationFactory != null) { + return theSerializationFactory; + } + } catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new SerializationFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * + * @generated + */ + public SerializationFactoryImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case SerializationPackage.ABSTRACT_REFERENCE_INSTANCE: + return createAbstractReferenceInstance(); + case SerializationPackage.MULTI_VALUED_CONTAINMENT_REFERENCE_INSTANCE: + return createMultiValuedContainmentReferenceInstance(); + case SerializationPackage.MULTI_VALUED_REFERENCE_INSTANCE: + return createMultiValuedReferenceInstance(); + case SerializationPackage.SINGLE_VALUED_ATTRIBUTE_INSTANCE: + return createSingleValuedAttributeInstance(); + case SerializationPackage.EXTENDED_EOBJECT_REFERENCE: + return createExtendedEObjectReference(); + case SerializationPackage.SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE: + return createSingleValuedContainmentReferenceInstance(); + case SerializationPackage.SINGLE_VALUED_REFERENCE_INSTANCE: + return createSingleValuedReferenceInstance(); + case SerializationPackage.MULTI_VALUED_ATTRIBUTE_INSTANCE: + return createMultiValuedAttributeInstance(); + case SerializationPackage.ABSTRACT_ATTRIBUTE_INSTANCE: + return createAbstractAttributeInstance(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ + } + } + + /** + * + * + * + * @generated + */ + public AbstractReferenceInstance createAbstractReferenceInstance() { + AbstractReferenceInstanceImpl abstractReferenceInstance = new AbstractReferenceInstanceImpl(); + return abstractReferenceInstance; + } + + /** + * + * + * + * @generated + */ + public MultiValuedContainmentReferenceInstance createMultiValuedContainmentReferenceInstance() { + MultiValuedContainmentReferenceInstanceImpl multiValuedContainmentReferenceInstance = new MultiValuedContainmentReferenceInstanceImpl(); + return multiValuedContainmentReferenceInstance; + } + + /** + * + * + * + * @generated + */ + public MultiValuedReferenceInstance createMultiValuedReferenceInstance() { + MultiValuedReferenceInstanceImpl multiValuedReferenceInstance = new MultiValuedReferenceInstanceImpl(); + return multiValuedReferenceInstance; + } + + /** + * + * + * + * @generated + */ + public SingleValuedAttributeInstance createSingleValuedAttributeInstance() { + SingleValuedAttributeInstanceImpl singleValuedAttributeInstance = new SingleValuedAttributeInstanceImpl(); + return singleValuedAttributeInstance; + } + + /** + * + * + * + * @generated + */ + public ExtendedEObjectReference createExtendedEObjectReference() { + ExtendedEObjectReferenceImpl extendedEObjectReference = new ExtendedEObjectReferenceImpl(); + return extendedEObjectReference; + } + + /** + * + * + * + * @generated + */ + public SingleValuedContainmentReferenceInstance createSingleValuedContainmentReferenceInstance() { + SingleValuedContainmentReferenceInstanceImpl singleValuedContainmentReferenceInstance = new SingleValuedContainmentReferenceInstanceImpl(); + return singleValuedContainmentReferenceInstance; + } + + /** + * + * + * + * @generated + */ + public SingleValuedReferenceInstance createSingleValuedReferenceInstance() { + SingleValuedReferenceInstanceImpl singleValuedReferenceInstance = new SingleValuedReferenceInstanceImpl(); + return singleValuedReferenceInstance; + } + + /** + * + * + * + * @generated + */ + public MultiValuedAttributeInstance createMultiValuedAttributeInstance() { + MultiValuedAttributeInstanceImpl multiValuedAttributeInstance = new MultiValuedAttributeInstanceImpl(); + return multiValuedAttributeInstance; + } + + /** + * + * + * + * @generated + */ + public AbstractAttributeInstance createAbstractAttributeInstance() { + AbstractAttributeInstanceImpl abstractAttributeInstance = new AbstractAttributeInstanceImpl(); + return abstractAttributeInstance; + } + + /** + * + * + * + * @generated + */ + public SerializationPackage getSerializationPackage() { + return (SerializationPackage) getEPackage(); + } + + /** + * + * + * + * @deprecated + * @generated + */ + @Deprecated + public static SerializationPackage getPackage() { + return SerializationPackage.eINSTANCE; + } + +} // SerializationFactoryImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SerializationPackageImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SerializationPackageImpl.java new file mode 100644 index 00000000000..4587ded753b --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SerializationPackageImpl.java @@ -0,0 +1,560 @@ +/** + * Copyright (c) 2011, 2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + * Gregoire Dupe (Mia-Software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.emf.ecore.EcorePackage; +import org.eclipse.emf.ecore.impl.EPackageImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensiblePackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.ExtensiblePackageImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.RuntimePackageImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractAttributeInstance; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractReferenceInstance; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.ExtendedEObjectReference; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedAttributeInstance; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedContainmentReferenceInstance; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedReferenceInstance; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationFactory; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedAttributeInstance; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedContainmentReferenceInstance; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedReferenceInstance; + +/** + * + * An implementation of the model Package. + * + * + * @generated + */ +public class SerializationPackageImpl extends EPackageImpl implements SerializationPackage { + /** + * + * + * + * @generated + */ + private EClass abstractReferenceInstanceEClass = null; + + /** + * + * + * + * @generated + */ + private EClass multiValuedContainmentReferenceInstanceEClass = null; + + /** + * + * + * + * @generated + */ + private EClass multiValuedReferenceInstanceEClass = null; + + /** + * + * + * + * @generated + */ + private EClass singleValuedAttributeInstanceEClass = null; + + /** + * + * + * + * @generated + */ + private EClass extendedEObjectReferenceEClass = null; + + /** + * + * + * + * @generated + */ + private EClass singleValuedContainmentReferenceInstanceEClass = null; + + /** + * + * + * + * @generated + */ + private EClass singleValuedReferenceInstanceEClass = null; + + /** + * + * + * + * @generated + */ + private EClass multiValuedAttributeInstanceEClass = null; + + /** + * + * + * + * @generated + */ + private EClass abstractAttributeInstanceEClass = null; + + /** + * Creates an instance of the model Package, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + *

+ * Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#eNS_URI + * @see #init() + * @generated + */ + private SerializationPackageImpl() { + super(eNS_URI, SerializationFactory.eINSTANCE); + } + + /** + * + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *

+ * This method is used to initialize {@link SerializationPackage#eINSTANCE} when that field is accessed. Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static SerializationPackage init() { + if (isInited) { + return (SerializationPackage) EPackage.Registry.INSTANCE.getEPackage(SerializationPackage.eNS_URI); + } + + // Obtain or create and register package + Object registeredSerializationPackage = EPackage.Registry.INSTANCE.get(eNS_URI); + SerializationPackageImpl theSerializationPackage = registeredSerializationPackage instanceof SerializationPackageImpl ? (SerializationPackageImpl) registeredSerializationPackage : new SerializationPackageImpl(); + + isInited = true; + + // Initialize simple dependencies + EcorePackage.eINSTANCE.eClass(); + + // Obtain or create and register interdependencies + Object registeredPackage = EPackage.Registry.INSTANCE.getEPackage(EFacetPackage.eNS_URI); + EFacetPackageImpl theEFacetPackage = (EFacetPackageImpl) (registeredPackage instanceof EFacetPackageImpl ? registeredPackage : EFacetPackage.eINSTANCE); + registeredPackage = EPackage.Registry.INSTANCE.getEPackage(ExtensiblePackage.eNS_URI); + ExtensiblePackageImpl theExtensiblePackage = (ExtensiblePackageImpl) (registeredPackage instanceof ExtensiblePackageImpl ? registeredPackage : ExtensiblePackage.eINSTANCE); + registeredPackage = EPackage.Registry.INSTANCE.getEPackage(QueryPackage.eNS_URI); + QueryPackageImpl theQueryPackage = (QueryPackageImpl) (registeredPackage instanceof QueryPackageImpl ? registeredPackage : QueryPackage.eINSTANCE); + registeredPackage = EPackage.Registry.INSTANCE.getEPackage(RuntimePackage.eNS_URI); + RuntimePackageImpl theRuntimePackage = (RuntimePackageImpl) (registeredPackage instanceof RuntimePackageImpl ? registeredPackage : RuntimePackage.eINSTANCE); + + // Create package meta-data objects + theSerializationPackage.createPackageContents(); + theEFacetPackage.createPackageContents(); + theExtensiblePackage.createPackageContents(); + theQueryPackage.createPackageContents(); + theRuntimePackage.createPackageContents(); + + // Initialize created meta-data + theSerializationPackage.initializePackageContents(); + theEFacetPackage.initializePackageContents(); + theExtensiblePackage.initializePackageContents(); + theQueryPackage.initializePackageContents(); + theRuntimePackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theSerializationPackage.freeze(); + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(SerializationPackage.eNS_URI, theSerializationPackage); + return theSerializationPackage; + } + + /** + * + * + * + * @generated + */ + public EClass getAbstractReferenceInstance() { + return abstractReferenceInstanceEClass; + } + + /** + * + * + * + * @generated + */ + public EReference getAbstractReferenceInstance_EReference() { + return (EReference) abstractReferenceInstanceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * + * @generated + */ + public EClass getMultiValuedContainmentReferenceInstance() { + return multiValuedContainmentReferenceInstanceEClass; + } + + /** + * + * + * + * @generated + */ + public EReference getMultiValuedContainmentReferenceInstance_OwnedElements() { + return (EReference) multiValuedContainmentReferenceInstanceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * + * @generated + */ + public EClass getMultiValuedReferenceInstance() { + return multiValuedReferenceInstanceEClass; + } + + /** + * + * + * + * @generated + */ + public EReference getMultiValuedReferenceInstance_ReferencedElements() { + return (EReference) multiValuedReferenceInstanceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * + * @generated + */ + public EClass getSingleValuedAttributeInstance() { + return singleValuedAttributeInstanceEClass; + } + + /** + * + * + * + * @generated + */ + public EAttribute getSingleValuedAttributeInstance_Value() { + return (EAttribute) singleValuedAttributeInstanceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * + * @generated + */ + public EClass getExtendedEObjectReference() { + return extendedEObjectReferenceEClass; + } + + /** + * + * + * + * @generated + */ + public EReference getExtendedEObjectReference_ExtendedEObject() { + return (EReference) extendedEObjectReferenceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * + * @generated + */ + public EReference getExtendedEObjectReference_AttributeInstances() { + return (EReference) extendedEObjectReferenceEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * + * @generated + */ + public EReference getExtendedEObjectReference_ReferenceInstances() { + return (EReference) extendedEObjectReferenceEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * + * @generated + */ + public EClass getSingleValuedContainmentReferenceInstance() { + return singleValuedContainmentReferenceInstanceEClass; + } + + /** + * + * + * + * @generated + */ + public EReference getSingleValuedContainmentReferenceInstance_OwnedElement() { + return (EReference) singleValuedContainmentReferenceInstanceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * + * @generated + */ + public EClass getSingleValuedReferenceInstance() { + return singleValuedReferenceInstanceEClass; + } + + /** + * + * + * + * @generated + */ + public EReference getSingleValuedReferenceInstance_ReferencedElement() { + return (EReference) singleValuedReferenceInstanceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * + * @generated + */ + public EClass getMultiValuedAttributeInstance() { + return multiValuedAttributeInstanceEClass; + } + + /** + * + * + * + * @generated + */ + public EAttribute getMultiValuedAttributeInstance_Values() { + return (EAttribute) multiValuedAttributeInstanceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * + * @generated + */ + public EClass getAbstractAttributeInstance() { + return abstractAttributeInstanceEClass; + } + + /** + * + * + * + * @generated + */ + public EReference getAbstractAttributeInstance_EAttribute() { + return (EReference) abstractAttributeInstanceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * + * @generated + */ + public SerializationFactory getSerializationFactory() { + return (SerializationFactory) getEFactoryInstance(); + } + + /** + * + * + * + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * + * + * + * @generated + */ + public void createPackageContents() { + if (isCreated) { + return; + } + isCreated = true; + + // Create classes and their features + abstractReferenceInstanceEClass = createEClass(ABSTRACT_REFERENCE_INSTANCE); + createEReference(abstractReferenceInstanceEClass, ABSTRACT_REFERENCE_INSTANCE__EREFERENCE); + + multiValuedContainmentReferenceInstanceEClass = createEClass(MULTI_VALUED_CONTAINMENT_REFERENCE_INSTANCE); + createEReference(multiValuedContainmentReferenceInstanceEClass, MULTI_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENTS); + + multiValuedReferenceInstanceEClass = createEClass(MULTI_VALUED_REFERENCE_INSTANCE); + createEReference(multiValuedReferenceInstanceEClass, MULTI_VALUED_REFERENCE_INSTANCE__REFERENCED_ELEMENTS); + + singleValuedAttributeInstanceEClass = createEClass(SINGLE_VALUED_ATTRIBUTE_INSTANCE); + createEAttribute(singleValuedAttributeInstanceEClass, SINGLE_VALUED_ATTRIBUTE_INSTANCE__VALUE); + + extendedEObjectReferenceEClass = createEClass(EXTENDED_EOBJECT_REFERENCE); + createEReference(extendedEObjectReferenceEClass, EXTENDED_EOBJECT_REFERENCE__EXTENDED_EOBJECT); + createEReference(extendedEObjectReferenceEClass, EXTENDED_EOBJECT_REFERENCE__ATTRIBUTE_INSTANCES); + createEReference(extendedEObjectReferenceEClass, EXTENDED_EOBJECT_REFERENCE__REFERENCE_INSTANCES); + + singleValuedContainmentReferenceInstanceEClass = createEClass(SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE); + createEReference(singleValuedContainmentReferenceInstanceEClass, SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENT); + + singleValuedReferenceInstanceEClass = createEClass(SINGLE_VALUED_REFERENCE_INSTANCE); + createEReference(singleValuedReferenceInstanceEClass, SINGLE_VALUED_REFERENCE_INSTANCE__REFERENCED_ELEMENT); + + multiValuedAttributeInstanceEClass = createEClass(MULTI_VALUED_ATTRIBUTE_INSTANCE); + createEAttribute(multiValuedAttributeInstanceEClass, MULTI_VALUED_ATTRIBUTE_INSTANCE__VALUES); + + abstractAttributeInstanceEClass = createEClass(ABSTRACT_ATTRIBUTE_INSTANCE); + createEReference(abstractAttributeInstanceEClass, ABSTRACT_ATTRIBUTE_INSTANCE__EATTRIBUTE); + } + + /** + * + * + * + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * + * + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) { + return; + } + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + EcorePackage theEcorePackage = (EcorePackage) EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + multiValuedContainmentReferenceInstanceEClass.getESuperTypes().add(this.getAbstractReferenceInstance()); + multiValuedReferenceInstanceEClass.getESuperTypes().add(this.getAbstractReferenceInstance()); + singleValuedAttributeInstanceEClass.getESuperTypes().add(this.getAbstractAttributeInstance()); + singleValuedContainmentReferenceInstanceEClass.getESuperTypes().add(this.getAbstractReferenceInstance()); + singleValuedReferenceInstanceEClass.getESuperTypes().add(this.getAbstractReferenceInstance()); + multiValuedAttributeInstanceEClass.getESuperTypes().add(this.getAbstractAttributeInstance()); + + // Initialize classes and features; add operations and parameters + initEClass(abstractReferenceInstanceEClass, AbstractReferenceInstance.class, "AbstractReferenceInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEReference(getAbstractReferenceInstance_EReference(), theEcorePackage.getEReference(), null, "eReference", null, 1, 1, AbstractReferenceInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, //$NON-NLS-1$ + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(multiValuedContainmentReferenceInstanceEClass, MultiValuedContainmentReferenceInstance.class, "MultiValuedContainmentReferenceInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEReference(getMultiValuedContainmentReferenceInstance_OwnedElements(), theEcorePackage.getEObject(), null, "ownedElements", null, 0, -1, MultiValuedContainmentReferenceInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, //$NON-NLS-1$ + !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(multiValuedReferenceInstanceEClass, MultiValuedReferenceInstance.class, "MultiValuedReferenceInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEReference(getMultiValuedReferenceInstance_ReferencedElements(), theEcorePackage.getEObject(), null, "referencedElements", null, 0, -1, MultiValuedReferenceInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, //$NON-NLS-1$ + IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(singleValuedAttributeInstanceEClass, SingleValuedAttributeInstance.class, "SingleValuedAttributeInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEAttribute(getSingleValuedAttributeInstance_Value(), theEcorePackage.getEJavaObject(), "value", null, 0, 1, SingleValuedAttributeInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, //$NON-NLS-1$ + IS_ORDERED); + + initEClass(extendedEObjectReferenceEClass, ExtendedEObjectReference.class, "ExtendedEObjectReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEReference(getExtendedEObjectReference_ExtendedEObject(), theEcorePackage.getEObject(), null, "extendedEObject", null, 1, 1, ExtendedEObjectReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, //$NON-NLS-1$ + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getExtendedEObjectReference_AttributeInstances(), this.getAbstractAttributeInstance(), null, "attributeInstances", null, 0, -1, ExtendedEObjectReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, //$NON-NLS-1$ + !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getExtendedEObjectReference_ReferenceInstances(), this.getAbstractReferenceInstance(), null, "referenceInstances", null, 0, -1, ExtendedEObjectReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, //$NON-NLS-1$ + !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(singleValuedContainmentReferenceInstanceEClass, SingleValuedContainmentReferenceInstance.class, "SingleValuedContainmentReferenceInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEReference(getSingleValuedContainmentReferenceInstance_OwnedElement(), theEcorePackage.getEObject(), null, "ownedElement", null, 0, 1, SingleValuedContainmentReferenceInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, //$NON-NLS-1$ + !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(singleValuedReferenceInstanceEClass, SingleValuedReferenceInstance.class, "SingleValuedReferenceInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEReference(getSingleValuedReferenceInstance_ReferencedElement(), theEcorePackage.getEObject(), null, "referencedElement", null, 0, 1, SingleValuedReferenceInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, //$NON-NLS-1$ + IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(multiValuedAttributeInstanceEClass, MultiValuedAttributeInstance.class, "MultiValuedAttributeInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEAttribute(getMultiValuedAttributeInstance_Values(), theEcorePackage.getEJavaObject(), "values", null, 0, -1, MultiValuedAttributeInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, //$NON-NLS-1$ + IS_ORDERED); + + initEClass(abstractAttributeInstanceEClass, AbstractAttributeInstance.class, "AbstractAttributeInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEReference(getAbstractAttributeInstance_EAttribute(), theEcorePackage.getEAttribute(), null, "eAttribute", null, 1, 1, AbstractAttributeInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, //$NON-NLS-1$ + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + } + +} // SerializationPackageImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SingleValuedAttributeInstanceImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SingleValuedAttributeInstanceImpl.java new file mode 100644 index 00000000000..82c3ffb707e --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SingleValuedAttributeInstanceImpl.java @@ -0,0 +1,187 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedAttributeInstance; + +/** + * + * An implementation of the model object 'Single Valued Attribute Instance'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SingleValuedAttributeInstanceImpl#getValue Value}
  • + *
+ * + * @generated + */ +public class SingleValuedAttributeInstanceImpl extends AbstractAttributeInstanceImpl implements SingleValuedAttributeInstance { + /** + * The default value of the '{@link #getValue() Value}' attribute. + * + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected static final Object VALUE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getValue() Value}' attribute. + * + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected Object value = VALUE_EDEFAULT; + + /** + * + * + * + * @generated + */ + protected SingleValuedAttributeInstanceImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SerializationPackage.Literals.SINGLE_VALUED_ATTRIBUTE_INSTANCE; + } + + /** + * + * + * + * @generated + */ + public Object getValue() { + return value; + } + + /** + * + * + * + * @generated + */ + public void setValue(Object newValue) { + Object oldValue = value; + value = newValue; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, SerializationPackage.SINGLE_VALUED_ATTRIBUTE_INSTANCE__VALUE, oldValue, value)); + } + } + + /** + * + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SerializationPackage.SINGLE_VALUED_ATTRIBUTE_INSTANCE__VALUE: + return getValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SerializationPackage.SINGLE_VALUED_ATTRIBUTE_INSTANCE__VALUE: + setValue(newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SerializationPackage.SINGLE_VALUED_ATTRIBUTE_INSTANCE__VALUE: + setValue(VALUE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SerializationPackage.SINGLE_VALUED_ATTRIBUTE_INSTANCE__VALUE: + return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); + } + return super.eIsSet(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (value: "); //$NON-NLS-1$ + result.append(value); + result.append(')'); + return result.toString(); + } + +} // SingleValuedAttributeInstanceImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SingleValuedContainmentReferenceInstanceImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SingleValuedContainmentReferenceInstanceImpl.java new file mode 100644 index 00000000000..1489a47e190 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SingleValuedContainmentReferenceInstanceImpl.java @@ -0,0 +1,205 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedContainmentReferenceInstance; + +/** + * + * An implementation of the model object 'Single Valued Containment Reference Instance'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SingleValuedContainmentReferenceInstanceImpl#getOwnedElement Owned Element}
  • + *
+ * + * @generated + */ +public class SingleValuedContainmentReferenceInstanceImpl extends AbstractReferenceInstanceImpl implements SingleValuedContainmentReferenceInstance { + /** + * The cached value of the '{@link #getOwnedElement() Owned Element}' containment reference. + * + * + * + * @see #getOwnedElement() + * @generated + * @ordered + */ + protected EObject ownedElement; + + /** + * + * + * + * @generated + */ + protected SingleValuedContainmentReferenceInstanceImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SerializationPackage.Literals.SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE; + } + + /** + * + * + * + * @generated + */ + public EObject getOwnedElement() { + return ownedElement; + } + + /** + * + * + * + * @generated + */ + public NotificationChain basicSetOwnedElement(EObject newOwnedElement, NotificationChain msgs) { + EObject oldOwnedElement = ownedElement; + ownedElement = newOwnedElement; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SerializationPackage.SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENT, oldOwnedElement, newOwnedElement); + if (msgs == null) { + msgs = notification; + } else { + msgs.add(notification); + } + } + return msgs; + } + + /** + * + * + * + * @generated + */ + public void setOwnedElement(EObject newOwnedElement) { + if (newOwnedElement != ownedElement) { + NotificationChain msgs = null; + if (ownedElement != null) { + msgs = ((InternalEObject) ownedElement).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SerializationPackage.SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENT, null, msgs); + } + if (newOwnedElement != null) { + msgs = ((InternalEObject) newOwnedElement).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SerializationPackage.SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENT, null, msgs); + } + msgs = basicSetOwnedElement(newOwnedElement, msgs); + if (msgs != null) { + msgs.dispatch(); + } + } else if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, SerializationPackage.SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENT, newOwnedElement, newOwnedElement)); + } + } + + /** + * + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case SerializationPackage.SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENT: + return basicSetOwnedElement(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SerializationPackage.SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENT: + return getOwnedElement(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SerializationPackage.SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENT: + setOwnedElement((EObject) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SerializationPackage.SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENT: + setOwnedElement((EObject) null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SerializationPackage.SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENT: + return ownedElement != null; + } + return super.eIsSet(featureID); + } + +} // SingleValuedContainmentReferenceInstanceImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SingleValuedReferenceInstanceImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SingleValuedReferenceInstanceImpl.java new file mode 100644 index 00000000000..7592368ad7d --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SingleValuedReferenceInstanceImpl.java @@ -0,0 +1,181 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedReferenceInstance; + +/** + * + * An implementation of the model object 'Single Valued Reference Instance'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SingleValuedReferenceInstanceImpl#getReferencedElement Referenced Element}
  • + *
+ * + * @generated + */ +public class SingleValuedReferenceInstanceImpl extends AbstractReferenceInstanceImpl implements SingleValuedReferenceInstance { + /** + * The cached value of the '{@link #getReferencedElement() Referenced Element}' reference. + * + * + * + * @see #getReferencedElement() + * @generated + * @ordered + */ + protected EObject referencedElement; + + /** + * + * + * + * @generated + */ + protected SingleValuedReferenceInstanceImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SerializationPackage.Literals.SINGLE_VALUED_REFERENCE_INSTANCE; + } + + /** + * + * + * + * @generated + */ + public EObject getReferencedElement() { + if (referencedElement != null && referencedElement.eIsProxy()) { + InternalEObject oldReferencedElement = (InternalEObject) referencedElement; + referencedElement = eResolveProxy(oldReferencedElement); + if (referencedElement != oldReferencedElement) { + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.RESOLVE, SerializationPackage.SINGLE_VALUED_REFERENCE_INSTANCE__REFERENCED_ELEMENT, oldReferencedElement, referencedElement)); + } + } + } + return referencedElement; + } + + /** + * + * + * + * @generated + */ + public EObject basicGetReferencedElement() { + return referencedElement; + } + + /** + * + * + * + * @generated + */ + public void setReferencedElement(EObject newReferencedElement) { + EObject oldReferencedElement = referencedElement; + referencedElement = newReferencedElement; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, SerializationPackage.SINGLE_VALUED_REFERENCE_INSTANCE__REFERENCED_ELEMENT, oldReferencedElement, referencedElement)); + } + } + + /** + * + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SerializationPackage.SINGLE_VALUED_REFERENCE_INSTANCE__REFERENCED_ELEMENT: + if (resolve) { + return getReferencedElement(); + } + return basicGetReferencedElement(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SerializationPackage.SINGLE_VALUED_REFERENCE_INSTANCE__REFERENCED_ELEMENT: + setReferencedElement((EObject) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SerializationPackage.SINGLE_VALUED_REFERENCE_INSTANCE__REFERENCED_ELEMENT: + setReferencedElement((EObject) null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SerializationPackage.SINGLE_VALUED_REFERENCE_INSTANCE__REFERENCED_ELEMENT: + return referencedElement != null; + } + return super.eIsSet(featureID); + } + +} // SingleValuedReferenceInstanceImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/util/SerializationAdapterFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/util/SerializationAdapterFactory.java new file mode 100644 index 00000000000..30f7d9c0141 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/util/SerializationAdapterFactory.java @@ -0,0 +1,309 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.util; + +import org.eclipse.emf.common.notify.Adapter; +import org.eclipse.emf.common.notify.Notifier; +import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractAttributeInstance; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractReferenceInstance; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.ExtendedEObjectReference; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedAttributeInstance; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedContainmentReferenceInstance; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedReferenceInstance; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedAttributeInstance; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedContainmentReferenceInstance; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedReferenceInstance; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage + * @generated + */ +public class SerializationAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * + * @generated + */ + protected static SerializationPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * + * @generated + */ + public SerializationAdapterFactory() { + if (modelPackage == null) { + modelPackage = SerializationPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * + * This implementation returns true if the object is either the model's package or is an instance object of the model. + * + * + * @return whether this factory is applicable for the type of the object. + * @generated + */ + @Override + public boolean isFactoryForType(Object object) { + if (object == modelPackage) { + return true; + } + if (object instanceof EObject) { + return ((EObject) object).eClass().getEPackage() == modelPackage; + } + return false; + } + + /** + * The switch that delegates to the createXXX methods. + * + * + * + * @generated + */ + protected SerializationSwitch modelSwitch = new SerializationSwitch() { + @Override + public Adapter caseAbstractReferenceInstance(AbstractReferenceInstance object) { + return createAbstractReferenceInstanceAdapter(); + } + + @Override + public Adapter caseMultiValuedContainmentReferenceInstance(MultiValuedContainmentReferenceInstance object) { + return createMultiValuedContainmentReferenceInstanceAdapter(); + } + + @Override + public Adapter caseMultiValuedReferenceInstance(MultiValuedReferenceInstance object) { + return createMultiValuedReferenceInstanceAdapter(); + } + + @Override + public Adapter caseSingleValuedAttributeInstance(SingleValuedAttributeInstance object) { + return createSingleValuedAttributeInstanceAdapter(); + } + + @Override + public Adapter caseExtendedEObjectReference(ExtendedEObjectReference object) { + return createExtendedEObjectReferenceAdapter(); + } + + @Override + public Adapter caseSingleValuedContainmentReferenceInstance(SingleValuedContainmentReferenceInstance object) { + return createSingleValuedContainmentReferenceInstanceAdapter(); + } + + @Override + public Adapter caseSingleValuedReferenceInstance(SingleValuedReferenceInstance object) { + return createSingleValuedReferenceInstanceAdapter(); + } + + @Override + public Adapter caseMultiValuedAttributeInstance(MultiValuedAttributeInstance object) { + return createMultiValuedAttributeInstanceAdapter(); + } + + @Override + public Adapter caseAbstractAttributeInstance(AbstractAttributeInstance object) { + return createAbstractAttributeInstanceAdapter(); + } + + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the target. + * + * + * + * @param target + * the object to adapt. + * @return the adapter for the target. + * @generated + */ + @Override + public Adapter createAdapter(Notifier target) { + return modelSwitch.doSwitch((EObject) target); + } + + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractReferenceInstance Abstract Reference Instance}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractReferenceInstance + * @generated + */ + public Adapter createAbstractReferenceInstanceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedContainmentReferenceInstance Multi Valued Containment Reference Instance}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedContainmentReferenceInstance + * @generated + */ + public Adapter createMultiValuedContainmentReferenceInstanceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedReferenceInstance Multi Valued Reference Instance}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedReferenceInstance + * @generated + */ + public Adapter createMultiValuedReferenceInstanceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedAttributeInstance Single Valued Attribute Instance}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedAttributeInstance + * @generated + */ + public Adapter createSingleValuedAttributeInstanceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.ExtendedEObjectReference Extended EObject Reference}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.ExtendedEObjectReference + * @generated + */ + public Adapter createExtendedEObjectReferenceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedContainmentReferenceInstance Single Valued Containment Reference Instance}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedContainmentReferenceInstance + * @generated + */ + public Adapter createSingleValuedContainmentReferenceInstanceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedReferenceInstance Single Valued Reference Instance}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedReferenceInstance + * @generated + */ + public Adapter createSingleValuedReferenceInstanceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedAttributeInstance Multi Valued Attribute Instance}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedAttributeInstance + * @generated + */ + public Adapter createMultiValuedAttributeInstanceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractAttributeInstance Abstract Attribute Instance}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractAttributeInstance + * @generated + */ + public Adapter createAbstractAttributeInstanceAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * + * This default implementation returns null. + * + * + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} // SerializationAdapterFactory diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/util/SerializationSwitch.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/util/SerializationSwitch.java new file mode 100644 index 00000000000..89b305015be --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/util/SerializationSwitch.java @@ -0,0 +1,378 @@ +/** + * Copyright (c) 2011 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery + * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query + * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.util; + +import java.util.List; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractAttributeInstance; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractReferenceInstance; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.ExtendedEObjectReference; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedAttributeInstance; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedContainmentReferenceInstance; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedReferenceInstance; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedAttributeInstance; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedContainmentReferenceInstance; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedReferenceInstance; + +/** + * + * The Switch for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} to invoke the caseXXX method for each class of the model, + * starting with the actual class of the object + * and proceeding up the inheritance hierarchy + * until a non-null result is returned, + * which is the result of the switch. + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage + * @generated + */ +public class SerializationSwitch { + /** + * The cached model package + * + * + * + * @generated + */ + protected static SerializationPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * + * @generated + */ + public SerializationSwitch() { + if (modelPackage == null) { + modelPackage = SerializationPackage.eINSTANCE; + } + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + public T doSwitch(EObject theEObject) { + return doSwitch(theEObject.eClass(), theEObject); + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + protected T doSwitch(EClass theEClass, EObject theEObject) { + if (theEClass.eContainer() == modelPackage) { + return doSwitch(theEClass.getClassifierID(), theEObject); + } else { + List eSuperTypes = theEClass.getESuperTypes(); + return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(eSuperTypes.get(0), theEObject); + } + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { + case SerializationPackage.ABSTRACT_REFERENCE_INSTANCE: { + AbstractReferenceInstance abstractReferenceInstance = (AbstractReferenceInstance) theEObject; + T result = caseAbstractReferenceInstance(abstractReferenceInstance); + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case SerializationPackage.MULTI_VALUED_CONTAINMENT_REFERENCE_INSTANCE: { + MultiValuedContainmentReferenceInstance multiValuedContainmentReferenceInstance = (MultiValuedContainmentReferenceInstance) theEObject; + T result = caseMultiValuedContainmentReferenceInstance(multiValuedContainmentReferenceInstance); + if (result == null) { + result = caseAbstractReferenceInstance(multiValuedContainmentReferenceInstance); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case SerializationPackage.MULTI_VALUED_REFERENCE_INSTANCE: { + MultiValuedReferenceInstance multiValuedReferenceInstance = (MultiValuedReferenceInstance) theEObject; + T result = caseMultiValuedReferenceInstance(multiValuedReferenceInstance); + if (result == null) { + result = caseAbstractReferenceInstance(multiValuedReferenceInstance); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case SerializationPackage.SINGLE_VALUED_ATTRIBUTE_INSTANCE: { + SingleValuedAttributeInstance singleValuedAttributeInstance = (SingleValuedAttributeInstance) theEObject; + T result = caseSingleValuedAttributeInstance(singleValuedAttributeInstance); + if (result == null) { + result = caseAbstractAttributeInstance(singleValuedAttributeInstance); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case SerializationPackage.EXTENDED_EOBJECT_REFERENCE: { + ExtendedEObjectReference extendedEObjectReference = (ExtendedEObjectReference) theEObject; + T result = caseExtendedEObjectReference(extendedEObjectReference); + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case SerializationPackage.SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE: { + SingleValuedContainmentReferenceInstance singleValuedContainmentReferenceInstance = (SingleValuedContainmentReferenceInstance) theEObject; + T result = caseSingleValuedContainmentReferenceInstance(singleValuedContainmentReferenceInstance); + if (result == null) { + result = caseAbstractReferenceInstance(singleValuedContainmentReferenceInstance); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case SerializationPackage.SINGLE_VALUED_REFERENCE_INSTANCE: { + SingleValuedReferenceInstance singleValuedReferenceInstance = (SingleValuedReferenceInstance) theEObject; + T result = caseSingleValuedReferenceInstance(singleValuedReferenceInstance); + if (result == null) { + result = caseAbstractReferenceInstance(singleValuedReferenceInstance); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case SerializationPackage.MULTI_VALUED_ATTRIBUTE_INSTANCE: { + MultiValuedAttributeInstance multiValuedAttributeInstance = (MultiValuedAttributeInstance) theEObject; + T result = caseMultiValuedAttributeInstance(multiValuedAttributeInstance); + if (result == null) { + result = caseAbstractAttributeInstance(multiValuedAttributeInstance); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case SerializationPackage.ABSTRACT_ATTRIBUTE_INSTANCE: { + AbstractAttributeInstance abstractAttributeInstance = (AbstractAttributeInstance) theEObject; + T result = caseAbstractAttributeInstance(abstractAttributeInstance); + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + default: + return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Abstract Reference Instance'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Abstract Reference Instance'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAbstractReferenceInstance(AbstractReferenceInstance object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Multi Valued Containment Reference Instance'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Multi Valued Containment Reference Instance'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseMultiValuedContainmentReferenceInstance(MultiValuedContainmentReferenceInstance object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Multi Valued Reference Instance'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Multi Valued Reference Instance'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseMultiValuedReferenceInstance(MultiValuedReferenceInstance object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Single Valued Attribute Instance'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Single Valued Attribute Instance'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSingleValuedAttributeInstance(SingleValuedAttributeInstance object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Extended EObject Reference'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Extended EObject Reference'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseExtendedEObjectReference(ExtendedEObjectReference object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Single Valued Containment Reference Instance'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Single Valued Containment Reference Instance'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSingleValuedContainmentReferenceInstance(SingleValuedContainmentReferenceInstance object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Single Valued Reference Instance'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Single Valued Reference Instance'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSingleValuedReferenceInstance(SingleValuedReferenceInstance object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Multi Valued Attribute Instance'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Multi Valued Attribute Instance'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseMultiValuedAttributeInstance(MultiValuedAttributeInstance object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Abstract Attribute Instance'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Abstract Attribute Instance'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAbstractAttributeInstance(AbstractAttributeInstance object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EObject'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'EObject'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + public T defaultCase(EObject object) { + return null; + } + +} // SerializationSwitch diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/util/EFacetAdapterFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/util/EFacetAdapterFactory.java new file mode 100644 index 00000000000..acdd785a98e --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/util/EFacetAdapterFactory.java @@ -0,0 +1,520 @@ +/** + * Copyright (c) 2011, 2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.util; + +import org.eclipse.emf.common.notify.Adapter; +import org.eclipse.emf.common.notify.Notifier; +import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClassifier; +import org.eclipse.emf.ecore.EModelElement; +import org.eclipse.emf.ecore.ENamedElement; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EOperation; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.emf.ecore.ETypedElement; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Category; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetAttribute; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetElement; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetOperation; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetReference; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetSet; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage + * @generated + */ +public class EFacetAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * + * @generated + */ + protected static EFacetPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * + * @generated + */ + public EFacetAdapterFactory() { + if (modelPackage == null) { + modelPackage = EFacetPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * + * This implementation returns true if the object is either the model's package or is an instance object of the model. + * + * + * @return whether this factory is applicable for the type of the object. + * @generated + */ + @Override + public boolean isFactoryForType(Object object) { + if (object == modelPackage) { + return true; + } + if (object instanceof EObject) { + return ((EObject) object).eClass().getEPackage() == modelPackage; + } + return false; + } + + /** + * The switch that delegates to the createXXX methods. + * + * + * + * @generated + */ + protected EFacetSwitch modelSwitch = new EFacetSwitch() { + @Override + public Adapter caseFacetAttribute(FacetAttribute object) { + return createFacetAttributeAdapter(); + } + + @Override + public Adapter caseFacetReference(FacetReference object) { + return createFacetReferenceAdapter(); + } + + @Override + public Adapter caseFacetOperation(FacetOperation object) { + return createFacetOperationAdapter(); + } + + @Override + public Adapter caseFacetSet(FacetSet object) { + return createFacetSetAdapter(); + } + + @Override + public Adapter caseFacet(Facet object) { + return createFacetAdapter(); + } + + @Override + public Adapter caseCategory(Category object) { + return createCategoryAdapter(); + } + + @Override + public Adapter caseFacetElement(FacetElement object) { + return createFacetElementAdapter(); + } + + @Override + public Adapter caseDerivedTypedElement(DerivedTypedElement object) { + return createDerivedTypedElementAdapter(); + } + + @Override + public Adapter caseParameterValue(ParameterValue object) { + return createParameterValueAdapter(); + } + + @Override + public Adapter caseDocumentedElement(DocumentedElement object) { + return createDocumentedElementAdapter(); + } + + @Override + public Adapter caseEModelElement(EModelElement object) { + return createEModelElementAdapter(); + } + + @Override + public Adapter caseENamedElement(ENamedElement object) { + return createENamedElementAdapter(); + } + + @Override + public Adapter caseETypedElement(ETypedElement object) { + return createETypedElementAdapter(); + } + + @Override + public Adapter caseEStructuralFeature(EStructuralFeature object) { + return createEStructuralFeatureAdapter(); + } + + @Override + public Adapter caseEAttribute(EAttribute object) { + return createEAttributeAdapter(); + } + + @Override + public Adapter caseEReference(EReference object) { + return createEReferenceAdapter(); + } + + @Override + public Adapter caseEOperation(EOperation object) { + return createEOperationAdapter(); + } + + @Override + public Adapter caseEPackage(EPackage object) { + return createEPackageAdapter(); + } + + @Override + public Adapter caseEClassifier(EClassifier object) { + return createEClassifierAdapter(); + } + + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the target. + * + * + * + * @param target + * the object to adapt. + * @return the adapter for the target. + * @generated + */ + @Override + public Adapter createAdapter(Notifier target) { + return modelSwitch.doSwitch((EObject) target); + } + + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetAttribute Facet Attribute}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetAttribute + * @generated + */ + public Adapter createFacetAttributeAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetReference Facet Reference}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetReference + * @generated + */ + public Adapter createFacetReferenceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetOperation Facet Operation}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetOperation + * @generated + */ + public Adapter createFacetOperationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetSet Facet Set}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetSet + * @generated + */ + public Adapter createFacetSetAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet Facet}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet + * @generated + */ + public Adapter createFacetAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Category Category}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Category + * @generated + */ + public Adapter createCategoryAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetElement Facet Element}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetElement + * @generated + */ + public Adapter createFacetElementAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement Derived Typed Element}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement + * @generated + */ + public Adapter createDerivedTypedElementAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue Parameter Value}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue + * @generated + */ + public Adapter createParameterValueAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement Documented Element}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement + * @generated + */ + public Adapter createDocumentedElementAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecore.EModelElement EModel Element}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.emf.ecore.EModelElement + * @generated + */ + public Adapter createEModelElementAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecore.ENamedElement ENamed Element}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.emf.ecore.ENamedElement + * @generated + */ + public Adapter createENamedElementAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecore.ETypedElement ETyped Element}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.emf.ecore.ETypedElement + * @generated + */ + public Adapter createETypedElementAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecore.EStructuralFeature EStructural Feature}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.emf.ecore.EStructuralFeature + * @generated + */ + public Adapter createEStructuralFeatureAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecore.EAttribute EAttribute}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.emf.ecore.EAttribute + * @generated + */ + public Adapter createEAttributeAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecore.EReference EReference}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.emf.ecore.EReference + * @generated + */ + public Adapter createEReferenceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecore.EOperation EOperation}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.emf.ecore.EOperation + * @generated + */ + public Adapter createEOperationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecore.EPackage EPackage}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.emf.ecore.EPackage + * @generated + */ + public Adapter createEPackageAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecore.EClassifier EClassifier}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.emf.ecore.EClassifier + * @generated + */ + public Adapter createEClassifierAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * + * This default implementation returns null. + * + * + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} // EFacetAdapterFactory diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/util/EFacetSwitch.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/util/EFacetSwitch.java new file mode 100644 index 00000000000..6e07ee8ef93 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/util/EFacetSwitch.java @@ -0,0 +1,678 @@ +/** + * Copyright (c) 2011, 2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. + * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model + * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery + * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery + * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query + * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework + * Gregoire Dupe (Mia-Software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.util; + +import java.util.List; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EClassifier; +import org.eclipse.emf.ecore.EModelElement; +import org.eclipse.emf.ecore.ENamedElement; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EOperation; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.emf.ecore.ETypedElement; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Category; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetAttribute; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetElement; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetOperation; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetReference; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetSet; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue; + +/** + * + * The Switch for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} to invoke the caseXXX method for each class of the model, + * starting with the actual class of the object + * and proceeding up the inheritance hierarchy + * until a non-null result is returned, + * which is the result of the switch. + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage + * @generated + */ +public class EFacetSwitch { + /** + * The cached model package + * + * + * + * @generated + */ + protected static EFacetPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * + * @generated + */ + public EFacetSwitch() { + if (modelPackage == null) { + modelPackage = EFacetPackage.eINSTANCE; + } + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + public T doSwitch(EObject theEObject) { + return doSwitch(theEObject.eClass(), theEObject); + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + protected T doSwitch(EClass theEClass, EObject theEObject) { + if (theEClass.eContainer() == modelPackage) { + return doSwitch(theEClass.getClassifierID(), theEObject); + } else { + List eSuperTypes = theEClass.getESuperTypes(); + return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(eSuperTypes.get(0), theEObject); + } + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { + case EFacetPackage.FACET_ATTRIBUTE: { + FacetAttribute facetAttribute = (FacetAttribute) theEObject; + T result = caseFacetAttribute(facetAttribute); + if (result == null) { + result = caseEAttribute(facetAttribute); + } + if (result == null) { + result = caseDerivedTypedElement(facetAttribute); + } + if (result == null) { + result = caseEStructuralFeature(facetAttribute); + } + if (result == null) { + result = caseFacetElement(facetAttribute); + } + if (result == null) { + result = caseETypedElement(facetAttribute); + } + if (result == null) { + result = caseDocumentedElement(facetAttribute); + } + if (result == null) { + result = caseENamedElement(facetAttribute); + } + if (result == null) { + result = caseEModelElement(facetAttribute); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case EFacetPackage.FACET_REFERENCE: { + FacetReference facetReference = (FacetReference) theEObject; + T result = caseFacetReference(facetReference); + if (result == null) { + result = caseEReference(facetReference); + } + if (result == null) { + result = caseDerivedTypedElement(facetReference); + } + if (result == null) { + result = caseEStructuralFeature(facetReference); + } + if (result == null) { + result = caseFacetElement(facetReference); + } + if (result == null) { + result = caseETypedElement(facetReference); + } + if (result == null) { + result = caseDocumentedElement(facetReference); + } + if (result == null) { + result = caseENamedElement(facetReference); + } + if (result == null) { + result = caseEModelElement(facetReference); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case EFacetPackage.FACET_OPERATION: { + FacetOperation facetOperation = (FacetOperation) theEObject; + T result = caseFacetOperation(facetOperation); + if (result == null) { + result = caseEOperation(facetOperation); + } + if (result == null) { + result = caseDerivedTypedElement(facetOperation); + } + if (result == null) { + result = caseFacetElement(facetOperation); + } + if (result == null) { + result = caseETypedElement(facetOperation); + } + if (result == null) { + result = caseENamedElement(facetOperation); + } + if (result == null) { + result = caseDocumentedElement(facetOperation); + } + if (result == null) { + result = caseEModelElement(facetOperation); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case EFacetPackage.FACET_SET: { + FacetSet facetSet = (FacetSet) theEObject; + T result = caseFacetSet(facetSet); + if (result == null) { + result = caseEPackage(facetSet); + } + if (result == null) { + result = caseDocumentedElement(facetSet); + } + if (result == null) { + result = caseENamedElement(facetSet); + } + if (result == null) { + result = caseEModelElement(facetSet); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case EFacetPackage.FACET: { + Facet facet = (Facet) theEObject; + T result = caseFacet(facet); + if (result == null) { + result = caseEClassifier(facet); + } + if (result == null) { + result = caseDocumentedElement(facet); + } + if (result == null) { + result = caseENamedElement(facet); + } + if (result == null) { + result = caseEModelElement(facet); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case EFacetPackage.CATEGORY: { + Category category = (Category) theEObject; + T result = caseCategory(category); + if (result == null) { + result = caseENamedElement(category); + } + if (result == null) { + result = caseDocumentedElement(category); + } + if (result == null) { + result = caseEModelElement(category); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case EFacetPackage.FACET_ELEMENT: { + FacetElement facetElement = (FacetElement) theEObject; + T result = caseFacetElement(facetElement); + if (result == null) { + result = caseETypedElement(facetElement); + } + if (result == null) { + result = caseDocumentedElement(facetElement); + } + if (result == null) { + result = caseENamedElement(facetElement); + } + if (result == null) { + result = caseEModelElement(facetElement); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case EFacetPackage.DERIVED_TYPED_ELEMENT: { + DerivedTypedElement derivedTypedElement = (DerivedTypedElement) theEObject; + T result = caseDerivedTypedElement(derivedTypedElement); + if (result == null) { + result = caseFacetElement(derivedTypedElement); + } + if (result == null) { + result = caseETypedElement(derivedTypedElement); + } + if (result == null) { + result = caseDocumentedElement(derivedTypedElement); + } + if (result == null) { + result = caseENamedElement(derivedTypedElement); + } + if (result == null) { + result = caseEModelElement(derivedTypedElement); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case EFacetPackage.PARAMETER_VALUE: { + ParameterValue parameterValue = (ParameterValue) theEObject; + T result = caseParameterValue(parameterValue); + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case EFacetPackage.DOCUMENTED_ELEMENT: { + DocumentedElement documentedElement = (DocumentedElement) theEObject; + T result = caseDocumentedElement(documentedElement); + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + default: + return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Facet Attribute'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Facet Attribute'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseFacetAttribute(FacetAttribute object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Facet Reference'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Facet Reference'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseFacetReference(FacetReference object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Facet Operation'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Facet Operation'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseFacetOperation(FacetOperation object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Facet Set'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Facet Set'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseFacetSet(FacetSet object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Facet'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Facet'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseFacet(Facet object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Category'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Category'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCategory(Category object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Facet Element'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Facet Element'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseFacetElement(FacetElement object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Derived Typed Element'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Derived Typed Element'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDerivedTypedElement(DerivedTypedElement object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Parameter Value'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Parameter Value'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseParameterValue(ParameterValue object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Documented Element'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Documented Element'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDocumentedElement(DocumentedElement object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EModel Element'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'EModel Element'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseEModelElement(EModelElement object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'ENamed Element'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'ENamed Element'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseENamedElement(ENamedElement object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'ETyped Element'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'ETyped Element'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseETypedElement(ETypedElement object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EStructural Feature'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'EStructural Feature'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseEStructuralFeature(EStructuralFeature object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EAttribute'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'EAttribute'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseEAttribute(EAttribute object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EReference'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'EReference'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseEReference(EReference object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EOperation'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'EOperation'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseEOperation(EOperation object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EPackage'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'EPackage'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseEPackage(EPackage object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EClassifier'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'EClassifier'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseEClassifier(EClassifier object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EObject'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'EObject'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + public T defaultCase(EObject object) { + return null; + } + +} // EFacetSwitch diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/EfacetcatalogFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/EfacetcatalogFactory.java new file mode 100644 index 00000000000..37528132b4b --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/EfacetcatalogFactory.java @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2011,2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non-derived facet structural features and save their values. + * Nicolas Bros (Mia-Software) - Bug 370110 - Rename efacetcatalog2.ecore + * Grégoire Dupé (Mia-Software) - Bug 361817 - [Restructuring] Dynamic load to the facet catalog + * + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog; + +import org.eclipse.emf.ecore.EFactory; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.EfacetcatalogPackage + * @generated + */ +public interface EfacetcatalogFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * + * @generated + */ + EfacetcatalogFactory eINSTANCE = org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.impl.EfacetcatalogFactoryImpl.init(); + + /** + * Returns a new object of class 'Facet Set Catalog'. + * + * + * + * @return a new object of class 'Facet Set Catalog'. + * @generated + */ + FacetSetCatalog createFacetSetCatalog(); + + /** + * Returns the package supported by this factory. + * + * + * + * @return the package supported by this factory. + * @generated + */ + EfacetcatalogPackage getEfacetcatalogPackage(); + +} // EfacetcatalogFactory diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/EfacetcatalogPackage.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/EfacetcatalogPackage.java new file mode 100644 index 00000000000..a5b7b5415a3 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/EfacetcatalogPackage.java @@ -0,0 +1,168 @@ +/** + * Copyright (c) 2011,2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non-derived facet structural features and save their values. + * Nicolas Bros (Mia-Software) - Bug 370110 - Rename efacetcatalog2.ecore + * Grégoire Dupé (Mia-Software) - Bug 361817 - [Restructuring] Dynamic load to the facet catalog + * + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.papyrus.emf.facet.util.emf.catalog.CatalogPackage; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.EfacetcatalogFactory + * @model kind="package" + * @generated + */ +public interface EfacetcatalogPackage extends EPackage { + /** + * The package name. + * + * + * + * @generated + */ + String eNAME = "efacetcatalog"; //$NON-NLS-1$ + + /** + * The package namespace URI. + * + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/emf/facet/efacet/0.2.incubation/efacetcatalog"; //$NON-NLS-1$ + + /** + * The package namespace name. + * + * + * + * @generated + */ + String eNS_PREFIX = "efacetcatalog"; //$NON-NLS-1$ + + /** + * The singleton instance of the package. + * + * + * + * @generated + */ + EfacetcatalogPackage eINSTANCE = org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.impl.EfacetcatalogPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.impl.FacetSetCatalogImpl Facet Set Catalog}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.impl.FacetSetCatalogImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.impl.EfacetcatalogPackageImpl#getFacetSetCatalog() + * @generated + */ + int FACET_SET_CATALOG = 0; + + /** + * The feature id for the 'Installed Entries' reference list. + * + * + * + * @generated + * @ordered + */ + int FACET_SET_CATALOG__INSTALLED_ENTRIES = CatalogPackage.CATALOG__INSTALLED_ENTRIES; + + /** + * The feature id for the 'Name' attribute. + * + * + * + * @generated + * @ordered + */ + int FACET_SET_CATALOG__NAME = CatalogPackage.CATALOG__NAME; + + /** + * The number of structural features of the 'Facet Set Catalog' class. + * + * + * + * @generated + * @ordered + */ + int FACET_SET_CATALOG_FEATURE_COUNT = CatalogPackage.CATALOG_FEATURE_COUNT + 0; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.FacetSetCatalog Facet Set Catalog}'. + * + * + * + * @return the meta object for class 'Facet Set Catalog'. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.FacetSetCatalog + * @generated + */ + EClass getFacetSetCatalog(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + EfacetcatalogFactory getEfacetcatalogFactory(); + + /** + * + * Defines literals for the meta objects that represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.impl.FacetSetCatalogImpl Facet Set Catalog}' class. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.impl.FacetSetCatalogImpl + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.impl.EfacetcatalogPackageImpl#getFacetSetCatalog() + * @generated + */ + EClass FACET_SET_CATALOG = eINSTANCE.getFacetSetCatalog(); + + } + +} // EfacetcatalogPackage diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/FacetSetCatalog.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/FacetSetCatalog.java new file mode 100644 index 00000000000..028d0fc74de --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/FacetSetCatalog.java @@ -0,0 +1,39 @@ +/** + * Copyright (c) 2011,2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non-derived facet structural features and save their values. + * Nicolas Bros (Mia-Software) - Bug 370110 - Rename efacetcatalog2.ecore + * Grégoire Dupé (Mia-Software) - Bug 361817 - [Restructuring] Dynamic load to the facet catalog + * + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog; + +import org.eclipse.papyrus.emf.facet.util.emf.catalog.Catalog; + +/** + * + * A representation of the model object 'Facet Set Catalog'. + * + * + * + * A FacetSetCatalog aims at referencing EMF Facet FacetSet. + * + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.EfacetcatalogPackage#getFacetSetCatalog() + * @model + * @generated + */ +public interface FacetSetCatalog extends Catalog { + +} // FacetSetCatalog diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/impl/EfacetcatalogFactoryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/impl/EfacetcatalogFactoryImpl.java new file mode 100644 index 00000000000..8ab2c9b6373 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/impl/EfacetcatalogFactoryImpl.java @@ -0,0 +1,117 @@ +/** + * Copyright (c) 2011,2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non-derived facet structural features and save their values. + * Nicolas Bros (Mia-Software) - Bug 370110 - Rename efacetcatalog2.ecore + * Grégoire Dupé (Mia-Software) - Bug 361817 - [Restructuring] Dynamic load to the facet catalog + * + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.impl; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.impl.EFactoryImpl; +import org.eclipse.emf.ecore.plugin.EcorePlugin; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.EfacetcatalogFactory; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.EfacetcatalogPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.FacetSetCatalog; + +/** + * + * An implementation of the model Factory. + * + * + * @generated + */ +public class EfacetcatalogFactoryImpl extends EFactoryImpl implements EfacetcatalogFactory { + /** + * Creates the default factory implementation. + * + * + * + * @generated + */ + public static EfacetcatalogFactory init() { + try { + EfacetcatalogFactory theEfacetcatalogFactory = (EfacetcatalogFactory) EPackage.Registry.INSTANCE.getEFactory(EfacetcatalogPackage.eNS_URI); + if (theEfacetcatalogFactory != null) { + return theEfacetcatalogFactory; + } + } catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new EfacetcatalogFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * + * @generated + */ + public EfacetcatalogFactoryImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case EfacetcatalogPackage.FACET_SET_CATALOG: + return createFacetSetCatalog(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ + } + } + + /** + * + * + * + * @generated + */ + public FacetSetCatalog createFacetSetCatalog() { + FacetSetCatalogImpl facetSetCatalog = new FacetSetCatalogImpl(); + return facetSetCatalog; + } + + /** + * + * + * + * @generated + */ + public EfacetcatalogPackage getEfacetcatalogPackage() { + return (EfacetcatalogPackage) getEPackage(); + } + + /** + * + * + * + * @deprecated + * @generated + */ + @Deprecated + public static EfacetcatalogPackage getPackage() { + return EfacetcatalogPackage.eINSTANCE; + } + +} // EfacetcatalogFactoryImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/impl/EfacetcatalogPackageImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/impl/EfacetcatalogPackageImpl.java new file mode 100644 index 00000000000..6a7b350b816 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/impl/EfacetcatalogPackageImpl.java @@ -0,0 +1,203 @@ +/** + * Copyright (c) 2011,2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non-derived facet structural features and save their values. + * Nicolas Bros (Mia-Software) - Bug 370110 - Rename efacetcatalog2.ecore + * Grégoire Dupé (Mia-Software) - Bug 361817 - [Restructuring] Dynamic load to the facet catalog + * + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.impl; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.impl.EPackageImpl; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.EfacetcatalogFactory; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.EfacetcatalogPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.FacetSetCatalog; +import org.eclipse.papyrus.emf.facet.util.emf.catalog.CatalogPackage; + +/** + * + * An implementation of the model Package. + * + * + * @generated + */ +public class EfacetcatalogPackageImpl extends EPackageImpl implements EfacetcatalogPackage { + /** + * + * + * + * @generated + */ + private EClass facetSetCatalogEClass = null; + + /** + * Creates an instance of the model Package, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + *

+ * Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.EfacetcatalogPackage#eNS_URI + * @see #init() + * @generated + */ + private EfacetcatalogPackageImpl() { + super(eNS_URI, EfacetcatalogFactory.eINSTANCE); + } + + /** + * + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *

+ * This method is used to initialize {@link EfacetcatalogPackage#eINSTANCE} when that field is accessed. Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static EfacetcatalogPackage init() { + if (isInited) { + return (EfacetcatalogPackage) EPackage.Registry.INSTANCE.getEPackage(EfacetcatalogPackage.eNS_URI); + } + + // Obtain or create and register package + EfacetcatalogPackageImpl theEfacetcatalogPackage = (EfacetcatalogPackageImpl) (EPackage.Registry.INSTANCE.get(eNS_URI) instanceof EfacetcatalogPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new EfacetcatalogPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + CatalogPackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theEfacetcatalogPackage.createPackageContents(); + + // Initialize created meta-data + theEfacetcatalogPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theEfacetcatalogPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(EfacetcatalogPackage.eNS_URI, theEfacetcatalogPackage); + return theEfacetcatalogPackage; + } + + /** + * + * + * + * @generated + */ + public EClass getFacetSetCatalog() { + return facetSetCatalogEClass; + } + + /** + * + * + * + * @generated + */ + public EfacetcatalogFactory getEfacetcatalogFactory() { + return (EfacetcatalogFactory) getEFactoryInstance(); + } + + /** + * + * + * + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * + * + * + * @generated + */ + public void createPackageContents() { + if (isCreated) { + return; + } + isCreated = true; + + // Create classes and their features + facetSetCatalogEClass = createEClass(FACET_SET_CATALOG); + } + + /** + * + * + * + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * + * + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) { + return; + } + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + CatalogPackage theCatalogPackage = (CatalogPackage) EPackage.Registry.INSTANCE.getEPackage(CatalogPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + facetSetCatalogEClass.getESuperTypes().add(theCatalogPackage.getCatalog()); + + // Initialize classes and features; add operations and parameters + initEClass(facetSetCatalogEClass, FacetSetCatalog.class, "FacetSetCatalog", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + + // Create resource + createResource(eNS_URI); + } + +} // EfacetcatalogPackageImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/impl/FacetSetCatalogImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/impl/FacetSetCatalogImpl.java new file mode 100644 index 00000000000..561b91f822d --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/impl/FacetSetCatalogImpl.java @@ -0,0 +1,232 @@ +/** + * Copyright (c) 2011,2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non-derived facet structural features and save their values. + * Nicolas Bros (Mia-Software) - Bug 370110 - Rename efacetcatalog2.ecore + * Grégoire Dupé (Mia-Software) - Bug 361817 - [Restructuring] Dynamic load to the facet catalog + * + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.EfacetcatalogPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.FacetSetCatalog; + +/** + * + * An implementation of the model object 'Facet Set Catalog'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.impl.FacetSetCatalogImpl#getInstalledEntries Installed Entries}
  • + *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.impl.FacetSetCatalogImpl#getName Name}
  • + *
+ * + * @generated + */ +public class FacetSetCatalogImpl extends EObjectImpl implements FacetSetCatalog { + /** + * The cached value of the '{@link #getInstalledEntries() Installed Entries}' reference list. + * + * + * + * @see #getInstalledEntries() + * @generated + * @ordered + */ + protected EList installedEntries; + + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * + * + * + * @generated + */ + protected FacetSetCatalogImpl() { + super(); + } + + /** + * + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return EfacetcatalogPackage.Literals.FACET_SET_CATALOG; + } + + /** + * + * + * + * @generated + */ + public EList getInstalledEntries() { + if (installedEntries == null) { + installedEntries = new EObjectResolvingEList(EObject.class, this, EfacetcatalogPackage.FACET_SET_CATALOG__INSTALLED_ENTRIES); + } + return installedEntries; + } + + /** + * + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, EfacetcatalogPackage.FACET_SET_CATALOG__NAME, oldName, name)); + } + } + + /** + * + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case EfacetcatalogPackage.FACET_SET_CATALOG__INSTALLED_ENTRIES: + return getInstalledEntries(); + case EfacetcatalogPackage.FACET_SET_CATALOG__NAME: + return getName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case EfacetcatalogPackage.FACET_SET_CATALOG__INSTALLED_ENTRIES: + getInstalledEntries().clear(); + getInstalledEntries().addAll((Collection) newValue); + return; + case EfacetcatalogPackage.FACET_SET_CATALOG__NAME: + setName((String) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case EfacetcatalogPackage.FACET_SET_CATALOG__INSTALLED_ENTRIES: + getInstalledEntries().clear(); + return; + case EfacetcatalogPackage.FACET_SET_CATALOG__NAME: + setName(NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case EfacetcatalogPackage.FACET_SET_CATALOG__INSTALLED_ENTRIES: + return installedEntries != null && !installedEntries.isEmpty(); + case EfacetcatalogPackage.FACET_SET_CATALOG__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + } + return super.eIsSet(featureID); + } + + /** + * + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); //$NON-NLS-1$ + result.append(name); + result.append(')'); + return result.toString(); + } + +} // FacetSetCatalogImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/util/EfacetcatalogAdapterFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/util/EfacetcatalogAdapterFactory.java new file mode 100644 index 00000000000..b24c46f1bd0 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/util/EfacetcatalogAdapterFactory.java @@ -0,0 +1,164 @@ +/** + * Copyright (c) 2011,2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non-derived facet structural features and save their values. + * Nicolas Bros (Mia-Software) - Bug 370110 - Rename efacetcatalog2.ecore + * Grégoire Dupé (Mia-Software) - Bug 361817 - [Restructuring] Dynamic load to the facet catalog + * + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.util; + +import org.eclipse.emf.common.notify.Adapter; +import org.eclipse.emf.common.notify.Notifier; +import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.EfacetcatalogPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.FacetSetCatalog; +import org.eclipse.papyrus.emf.facet.util.emf.catalog.Catalog; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.EfacetcatalogPackage + * @generated + */ +public class EfacetcatalogAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * + * @generated + */ + protected static EfacetcatalogPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * + * @generated + */ + public EfacetcatalogAdapterFactory() { + if (modelPackage == null) { + modelPackage = EfacetcatalogPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * + * This implementation returns true if the object is either the model's package or is an instance object of the model. + * + * + * @return whether this factory is applicable for the type of the object. + * @generated + */ + @Override + public boolean isFactoryForType(Object object) { + if (object == modelPackage) { + return true; + } + if (object instanceof EObject) { + return ((EObject) object).eClass().getEPackage() == modelPackage; + } + return false; + } + + /** + * The switch that delegates to the createXXX methods. + * + * + * + * @generated + */ + protected EfacetcatalogSwitch modelSwitch = new EfacetcatalogSwitch() { + @Override + public Adapter caseFacetSetCatalog(FacetSetCatalog object) { + return createFacetSetCatalogAdapter(); + } + + @Override + public Adapter caseCatalog(Catalog object) { + return createCatalogAdapter(); + } + + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the target. + * + * + * + * @param target + * the object to adapt. + * @return the adapter for the target. + * @generated + */ + @Override + public Adapter createAdapter(Notifier target) { + return modelSwitch.doSwitch((EObject) target); + } + + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.FacetSetCatalog Facet Set Catalog}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.FacetSetCatalog + * @generated + */ + public Adapter createFacetSetCatalogAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.util.emf.catalog.Catalog Catalog}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.eclipse.papyrus.emf.facet.util.emf.catalog.Catalog + * @generated + */ + public Adapter createCatalogAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * + * This default implementation returns null. + * + * + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} // EfacetcatalogAdapterFactory diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/util/EfacetcatalogSwitch.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/util/EfacetcatalogSwitch.java new file mode 100644 index 00000000000..28f1a724cf5 --- /dev/null +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src-gen/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/util/EfacetcatalogSwitch.java @@ -0,0 +1,171 @@ +/** + * Copyright (c) 2011,2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Gregoire Dupe (Mia-Software) - Design + * Nicolas Guyomar (Mia-Software) - Implementation + * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non-derived facet structural features and save their values. + * Nicolas Bros (Mia-Software) - Bug 370110 - Rename efacetcatalog2.ecore + * Grégoire Dupé (Mia-Software) - Bug 361817 - [Restructuring] Dynamic load to the facet catalog + * + */ +package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.util; + +import java.util.List; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.EfacetcatalogPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.FacetSetCatalog; +import org.eclipse.papyrus.emf.facet.util.emf.catalog.Catalog; + +/** + * + * The Switch for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} to invoke the caseXXX method for each class of the model, + * starting with the actual class of the object + * and proceeding up the inheritance hierarchy + * until a non-null result is returned, + * which is the result of the switch. + * + * + * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.EfacetcatalogPackage + * @generated + */ +public class EfacetcatalogSwitch { + /** + * The cached model package + * + * + * + * @generated + */ + protected static EfacetcatalogPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * + * @generated + */ + public EfacetcatalogSwitch() { + if (modelPackage == null) { + modelPackage = EfacetcatalogPackage.eINSTANCE; + } + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + public T doSwitch(EObject theEObject) { + return doSwitch(theEObject.eClass(), theEObject); + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + protected T doSwitch(EClass theEClass, EObject theEObject) { + if (theEClass.eContainer() == modelPackage) { + return doSwitch(theEClass.getClassifierID(), theEObject); + } else { + List eSuperTypes = theEClass.getESuperTypes(); + return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(eSuperTypes.get(0), theEObject); + } + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { + case EfacetcatalogPackage.FACET_SET_CATALOG: { + FacetSetCatalog facetSetCatalog = (FacetSetCatalog) theEObject; + T result = caseFacetSetCatalog(facetSetCatalog); + if (result == null) { + result = caseCatalog(facetSetCatalog); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + default: + return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Facet Set Catalog'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Facet Set Catalog'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseFacetSetCatalog(FacetSetCatalog object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Catalog'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Catalog'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCatalog(Catalog object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EObject'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'EObject'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + public T defaultCase(EObject object) { + return null; + } + +} // EfacetcatalogSwitch diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/Category.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/Category.java deleted file mode 100644 index 49378ef5ce5..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/Category.java +++ /dev/null @@ -1,36 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet; - -import org.eclipse.emf.ecore.ENamedElement; - -/** - * - * A representation of the model object 'Category'. - * - * - * - * A Category is used to group related elements. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getCategory() - * @model - * @generated - */ -public interface Category extends ENamedElement, DocumentedElement { -} // Category diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/DerivedTypedElement.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/DerivedTypedElement.java deleted file mode 100644 index 69352f0b293..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/DerivedTypedElement.java +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet; - -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; - -/** - * - * A representation of the model object 'Derived Typed Element'. - * - * - * - * A derived typed element is a virtual structural feature the value of which is computed using a query. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement#getQuery Query}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement#getOverride Override}
  • - *
- * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getDerivedTypedElement() - * @model abstract="true" - * @generated - */ -public interface DerivedTypedElement extends FacetElement { - /** - * Returns the value of the 'Query' containment reference. - * - *

- * If the meaning of the 'Query' containment reference isn't clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'Query' containment reference. - * @see #setQuery(Query) - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getDerivedTypedElement_Query() - * @model containment="true" required="true" - * @generated - */ - Query getQuery(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement#getQuery Query}' containment reference. - * - * - * - * @param value - * the new value of the 'Query' containment reference. - * @see #getQuery() - * @generated - */ - void setQuery(Query value); - - /** - * Returns the value of the 'Override' reference. - * - * - * - * If it exists a facet A which extends a facet B then a derived typed element of A can override a typed element of B; if the both typed elements have the same name, same multiplicity, and same type. - * - * - * @return the value of the 'Override' reference. - * @see #setOverride(DerivedTypedElement) - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getDerivedTypedElement_Override() - * @model - * @generated - */ - DerivedTypedElement getOverride(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement#getOverride Override}' reference. - * - * - * - * @param value - * the new value of the 'Override' reference. - * @see #getOverride() - * @generated - */ - void setOverride(DerivedTypedElement value); - -} // DerivedTypedElement diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/DocumentedElement.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/DocumentedElement.java deleted file mode 100644 index 70914c410d8..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/DocumentedElement.java +++ /dev/null @@ -1,66 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Documented Element'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement#getDocumentation Documentation}
  • - *
- * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getDocumentedElement() - * @model - * @generated - */ -public interface DocumentedElement extends EObject { - /** - * Returns the value of the 'Documentation' attribute. - * - *

- * If the meaning of the 'Documentation' attribute isn't clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'Documentation' attribute. - * @see #setDocumentation(String) - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getDocumentedElement_Documentation() - * @model - * @generated - */ - String getDocumentation(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement#getDocumentation Documentation}' attribute. - * - * - * - * @param value - * the new value of the 'Documentation' attribute. - * @see #getDocumentation() - * @generated - */ - void setDocumentation(String value); - -} // DocumentedElement diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/EFacetFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/EFacetFactory.java deleted file mode 100644 index 57b293a6841..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/EFacetFactory.java +++ /dev/null @@ -1,132 +0,0 @@ -/** - * Copyright (c) 2011, 2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. - * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet; - -import org.eclipse.emf.ecore.EFactory; - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage - * @generated - */ -public interface EFacetFactory extends EFactory { - /** - * The singleton instance of the factory. - * - * - * - * @generated - */ - EFacetFactory eINSTANCE = org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetFactoryImpl.init(); - - /** - * Returns a new object of class 'Facet Attribute'. - * - * - * - * @return a new object of class 'Facet Attribute'. - * @generated - */ - FacetAttribute createFacetAttribute(); - - /** - * Returns a new object of class 'Facet Reference'. - * - * - * - * @return a new object of class 'Facet Reference'. - * @generated - */ - FacetReference createFacetReference(); - - /** - * Returns a new object of class 'Facet Operation'. - * - * - * - * @return a new object of class 'Facet Operation'. - * @generated - */ - FacetOperation createFacetOperation(); - - /** - * Returns a new object of class 'Facet Set'. - * - * - * - * @return a new object of class 'Facet Set'. - * @generated - */ - FacetSet createFacetSet(); - - /** - * Returns a new object of class 'Facet'. - * - * - * - * @return a new object of class 'Facet'. - * @generated - */ - Facet createFacet(); - - /** - * Returns a new object of class 'Category'. - * - * - * - * @return a new object of class 'Category'. - * @generated - */ - Category createCategory(); - - /** - * Returns a new object of class 'Parameter Value'. - * - * - * - * @return a new object of class 'Parameter Value'. - * @generated - */ - ParameterValue createParameterValue(); - - /** - * Returns a new object of class 'Documented Element'. - * - * - * - * @return a new object of class 'Documented Element'. - * @generated - */ - DocumentedElement createDocumentedElement(); - - /** - * Returns the package supported by this factory. - * - * - * - * @return the package supported by this factory. - * @generated - */ - EFacetPackage getEFacetPackage(); - -} // EFacetFactory diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/EFacetPackage.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/EFacetPackage.java deleted file mode 100644 index 94c56dc1416..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/EFacetPackage.java +++ /dev/null @@ -1,2201 +0,0 @@ -/** - * Copyright (c) 2011, 2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. - * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning - * Gregoire Dupe (Mia-Software) - Bug 376576 - [EFacet] Change the multiplicity of Facet::extendedFacet - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EDataType; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.EcorePackage; - -/** - * - * The Package for the model. - * It contains accessors for the meta objects to represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetFactory - * @model kind="package" - * annotation="http://www.eclipse.org/emf/2002/Ecore validationDelegates='org.eclipse.ocl.ecore.OCL'" - * @generated - * @noimplement This interface is not intended to be implemented by clients. - * @noextend This interface is not intended to be extended by clients. - */ -public interface EFacetPackage extends EPackage { - /** - * The package name. - * - * - * - * @generated - */ - String eNAME = "efacet"; //$NON-NLS-1$ - - /** - * The package namespace URI. - * - * - * - * @generated - */ - String eNS_URI = "http://www.eclipse.org/papyrus/emf/facet/efacet/0.2.incubation/efacet"; //$NON-NLS-1$ - - /** - * The package namespace name. - * - * - * - * @generated - */ - String eNS_PREFIX = "efacet"; //$NON-NLS-1$ - - /** - * The singleton instance of the package. - * - * - * - * @generated - */ - EFacetPackage eINSTANCE = org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl.init(); - - /** - * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetAttributeImpl Facet Attribute}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetAttributeImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getFacetAttribute() - * @generated - */ - int FACET_ATTRIBUTE = 0; - - /** - * The feature id for the 'EAnnotations' containment reference list. - * - * - * - * @generated - * @ordered - */ - int FACET_ATTRIBUTE__EANNOTATIONS = EcorePackage.EATTRIBUTE__EANNOTATIONS; - - /** - * The feature id for the 'Name' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_ATTRIBUTE__NAME = EcorePackage.EATTRIBUTE__NAME; - - /** - * The feature id for the 'Ordered' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_ATTRIBUTE__ORDERED = EcorePackage.EATTRIBUTE__ORDERED; - - /** - * The feature id for the 'Unique' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_ATTRIBUTE__UNIQUE = EcorePackage.EATTRIBUTE__UNIQUE; - - /** - * The feature id for the 'Lower Bound' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_ATTRIBUTE__LOWER_BOUND = EcorePackage.EATTRIBUTE__LOWER_BOUND; - - /** - * The feature id for the 'Upper Bound' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_ATTRIBUTE__UPPER_BOUND = EcorePackage.EATTRIBUTE__UPPER_BOUND; - - /** - * The feature id for the 'Many' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_ATTRIBUTE__MANY = EcorePackage.EATTRIBUTE__MANY; - - /** - * The feature id for the 'Required' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_ATTRIBUTE__REQUIRED = EcorePackage.EATTRIBUTE__REQUIRED; - - /** - * The feature id for the 'EType' reference. - * - * - * - * @generated - * @ordered - */ - int FACET_ATTRIBUTE__ETYPE = EcorePackage.EATTRIBUTE__ETYPE; - - /** - * The feature id for the 'EGeneric Type' containment reference. - * - * - * - * @generated - * @ordered - */ - int FACET_ATTRIBUTE__EGENERIC_TYPE = EcorePackage.EATTRIBUTE__EGENERIC_TYPE; - - /** - * The feature id for the 'Changeable' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_ATTRIBUTE__CHANGEABLE = EcorePackage.EATTRIBUTE__CHANGEABLE; - - /** - * The feature id for the 'Volatile' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_ATTRIBUTE__VOLATILE = EcorePackage.EATTRIBUTE__VOLATILE; - - /** - * The feature id for the 'Transient' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_ATTRIBUTE__TRANSIENT = EcorePackage.EATTRIBUTE__TRANSIENT; - - /** - * The feature id for the 'Default Value Literal' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_ATTRIBUTE__DEFAULT_VALUE_LITERAL = EcorePackage.EATTRIBUTE__DEFAULT_VALUE_LITERAL; - - /** - * The feature id for the 'Default Value' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_ATTRIBUTE__DEFAULT_VALUE = EcorePackage.EATTRIBUTE__DEFAULT_VALUE; - - /** - * The feature id for the 'Unsettable' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_ATTRIBUTE__UNSETTABLE = EcorePackage.EATTRIBUTE__UNSETTABLE; - - /** - * The feature id for the 'Derived' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_ATTRIBUTE__DERIVED = EcorePackage.EATTRIBUTE__DERIVED; - - /** - * The feature id for the 'EContaining Class' container reference. - * - * - * - * @generated - * @ordered - */ - int FACET_ATTRIBUTE__ECONTAINING_CLASS = EcorePackage.EATTRIBUTE__ECONTAINING_CLASS; - - /** - * The feature id for the 'ID' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_ATTRIBUTE__ID = EcorePackage.EATTRIBUTE__ID; - - /** - * The feature id for the 'EAttribute Type' reference. - * - * - * - * @generated - * @ordered - */ - int FACET_ATTRIBUTE__EATTRIBUTE_TYPE = EcorePackage.EATTRIBUTE__EATTRIBUTE_TYPE; - - /** - * The feature id for the 'Documentation' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_ATTRIBUTE__DOCUMENTATION = EcorePackage.EATTRIBUTE_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Categories' reference list. - * - * - * - * @generated - * @ordered - */ - int FACET_ATTRIBUTE__CATEGORIES = EcorePackage.EATTRIBUTE_FEATURE_COUNT + 1; - - /** - * The feature id for the 'Query' containment reference. - * - * - * - * @generated - * @ordered - */ - int FACET_ATTRIBUTE__QUERY = EcorePackage.EATTRIBUTE_FEATURE_COUNT + 2; - - /** - * The feature id for the 'Override' reference. - * - * - * - * @generated - * @ordered - */ - int FACET_ATTRIBUTE__OVERRIDE = EcorePackage.EATTRIBUTE_FEATURE_COUNT + 3; - - /** - * The number of structural features of the 'Facet Attribute' class. - * - * - * - * @generated - * @ordered - */ - int FACET_ATTRIBUTE_FEATURE_COUNT = EcorePackage.EATTRIBUTE_FEATURE_COUNT + 4; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetReferenceImpl Facet Reference}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetReferenceImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getFacetReference() - * @generated - */ - int FACET_REFERENCE = 1; - - /** - * The feature id for the 'EAnnotations' containment reference list. - * - * - * - * @generated - * @ordered - */ - int FACET_REFERENCE__EANNOTATIONS = EcorePackage.EREFERENCE__EANNOTATIONS; - - /** - * The feature id for the 'Name' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_REFERENCE__NAME = EcorePackage.EREFERENCE__NAME; - - /** - * The feature id for the 'Ordered' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_REFERENCE__ORDERED = EcorePackage.EREFERENCE__ORDERED; - - /** - * The feature id for the 'Unique' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_REFERENCE__UNIQUE = EcorePackage.EREFERENCE__UNIQUE; - - /** - * The feature id for the 'Lower Bound' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_REFERENCE__LOWER_BOUND = EcorePackage.EREFERENCE__LOWER_BOUND; - - /** - * The feature id for the 'Upper Bound' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_REFERENCE__UPPER_BOUND = EcorePackage.EREFERENCE__UPPER_BOUND; - - /** - * The feature id for the 'Many' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_REFERENCE__MANY = EcorePackage.EREFERENCE__MANY; - - /** - * The feature id for the 'Required' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_REFERENCE__REQUIRED = EcorePackage.EREFERENCE__REQUIRED; - - /** - * The feature id for the 'EType' reference. - * - * - * - * @generated - * @ordered - */ - int FACET_REFERENCE__ETYPE = EcorePackage.EREFERENCE__ETYPE; - - /** - * The feature id for the 'EGeneric Type' containment reference. - * - * - * - * @generated - * @ordered - */ - int FACET_REFERENCE__EGENERIC_TYPE = EcorePackage.EREFERENCE__EGENERIC_TYPE; - - /** - * The feature id for the 'Changeable' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_REFERENCE__CHANGEABLE = EcorePackage.EREFERENCE__CHANGEABLE; - - /** - * The feature id for the 'Volatile' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_REFERENCE__VOLATILE = EcorePackage.EREFERENCE__VOLATILE; - - /** - * The feature id for the 'Transient' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_REFERENCE__TRANSIENT = EcorePackage.EREFERENCE__TRANSIENT; - - /** - * The feature id for the 'Default Value Literal' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_REFERENCE__DEFAULT_VALUE_LITERAL = EcorePackage.EREFERENCE__DEFAULT_VALUE_LITERAL; - - /** - * The feature id for the 'Default Value' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_REFERENCE__DEFAULT_VALUE = EcorePackage.EREFERENCE__DEFAULT_VALUE; - - /** - * The feature id for the 'Unsettable' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_REFERENCE__UNSETTABLE = EcorePackage.EREFERENCE__UNSETTABLE; - - /** - * The feature id for the 'Derived' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_REFERENCE__DERIVED = EcorePackage.EREFERENCE__DERIVED; - - /** - * The feature id for the 'EContaining Class' container reference. - * - * - * - * @generated - * @ordered - */ - int FACET_REFERENCE__ECONTAINING_CLASS = EcorePackage.EREFERENCE__ECONTAINING_CLASS; - - /** - * The feature id for the 'Containment' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_REFERENCE__CONTAINMENT = EcorePackage.EREFERENCE__CONTAINMENT; - - /** - * The feature id for the 'Container' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_REFERENCE__CONTAINER = EcorePackage.EREFERENCE__CONTAINER; - - /** - * The feature id for the 'Resolve Proxies' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_REFERENCE__RESOLVE_PROXIES = EcorePackage.EREFERENCE__RESOLVE_PROXIES; - - /** - * The feature id for the 'EOpposite' reference. - * - * - * - * @generated - * @ordered - */ - int FACET_REFERENCE__EOPPOSITE = EcorePackage.EREFERENCE__EOPPOSITE; - - /** - * The feature id for the 'EReference Type' reference. - * - * - * - * @generated - * @ordered - */ - int FACET_REFERENCE__EREFERENCE_TYPE = EcorePackage.EREFERENCE__EREFERENCE_TYPE; - - /** - * The feature id for the 'EKeys' reference list. - * - * - * - * @generated - * @ordered - */ - int FACET_REFERENCE__EKEYS = EcorePackage.EREFERENCE__EKEYS; - - /** - * The feature id for the 'Documentation' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_REFERENCE__DOCUMENTATION = EcorePackage.EREFERENCE_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Categories' reference list. - * - * - * - * @generated - * @ordered - */ - int FACET_REFERENCE__CATEGORIES = EcorePackage.EREFERENCE_FEATURE_COUNT + 1; - - /** - * The feature id for the 'Query' containment reference. - * - * - * - * @generated - * @ordered - */ - int FACET_REFERENCE__QUERY = EcorePackage.EREFERENCE_FEATURE_COUNT + 2; - - /** - * The feature id for the 'Override' reference. - * - * - * - * @generated - * @ordered - */ - int FACET_REFERENCE__OVERRIDE = EcorePackage.EREFERENCE_FEATURE_COUNT + 3; - - /** - * The number of structural features of the 'Facet Reference' class. - * - * - * - * @generated - * @ordered - */ - int FACET_REFERENCE_FEATURE_COUNT = EcorePackage.EREFERENCE_FEATURE_COUNT + 4; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetOperationImpl Facet Operation}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetOperationImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getFacetOperation() - * @generated - */ - int FACET_OPERATION = 2; - - /** - * The feature id for the 'EAnnotations' containment reference list. - * - * - * - * @generated - * @ordered - */ - int FACET_OPERATION__EANNOTATIONS = EcorePackage.EOPERATION__EANNOTATIONS; - - /** - * The feature id for the 'Name' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_OPERATION__NAME = EcorePackage.EOPERATION__NAME; - - /** - * The feature id for the 'Ordered' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_OPERATION__ORDERED = EcorePackage.EOPERATION__ORDERED; - - /** - * The feature id for the 'Unique' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_OPERATION__UNIQUE = EcorePackage.EOPERATION__UNIQUE; - - /** - * The feature id for the 'Lower Bound' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_OPERATION__LOWER_BOUND = EcorePackage.EOPERATION__LOWER_BOUND; - - /** - * The feature id for the 'Upper Bound' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_OPERATION__UPPER_BOUND = EcorePackage.EOPERATION__UPPER_BOUND; - - /** - * The feature id for the 'Many' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_OPERATION__MANY = EcorePackage.EOPERATION__MANY; - - /** - * The feature id for the 'Required' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_OPERATION__REQUIRED = EcorePackage.EOPERATION__REQUIRED; - - /** - * The feature id for the 'EType' reference. - * - * - * - * @generated - * @ordered - */ - int FACET_OPERATION__ETYPE = EcorePackage.EOPERATION__ETYPE; - - /** - * The feature id for the 'EGeneric Type' containment reference. - * - * - * - * @generated - * @ordered - */ - int FACET_OPERATION__EGENERIC_TYPE = EcorePackage.EOPERATION__EGENERIC_TYPE; - - /** - * The feature id for the 'EContaining Class' container reference. - * - * - * - * @generated - * @ordered - */ - int FACET_OPERATION__ECONTAINING_CLASS = EcorePackage.EOPERATION__ECONTAINING_CLASS; - - /** - * The feature id for the 'EType Parameters' containment reference list. - * - * - * - * @generated - * @ordered - */ - int FACET_OPERATION__ETYPE_PARAMETERS = EcorePackage.EOPERATION__ETYPE_PARAMETERS; - - /** - * The feature id for the 'EParameters' containment reference list. - * - * - * - * @generated - * @ordered - */ - int FACET_OPERATION__EPARAMETERS = EcorePackage.EOPERATION__EPARAMETERS; - - /** - * The feature id for the 'EExceptions' reference list. - * - * - * - * @generated - * @ordered - */ - int FACET_OPERATION__EEXCEPTIONS = EcorePackage.EOPERATION__EEXCEPTIONS; - - /** - * The feature id for the 'EGeneric Exceptions' containment reference list. - * - * - * - * @generated - * @ordered - */ - int FACET_OPERATION__EGENERIC_EXCEPTIONS = EcorePackage.EOPERATION__EGENERIC_EXCEPTIONS; - - /** - * The feature id for the 'Documentation' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_OPERATION__DOCUMENTATION = EcorePackage.EOPERATION_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Categories' reference list. - * - * - * - * @generated - * @ordered - */ - int FACET_OPERATION__CATEGORIES = EcorePackage.EOPERATION_FEATURE_COUNT + 1; - - /** - * The feature id for the 'Query' containment reference. - * - * - * - * @generated - * @ordered - */ - int FACET_OPERATION__QUERY = EcorePackage.EOPERATION_FEATURE_COUNT + 2; - - /** - * The feature id for the 'Override' reference. - * - * - * - * @generated - * @ordered - */ - int FACET_OPERATION__OVERRIDE = EcorePackage.EOPERATION_FEATURE_COUNT + 3; - - /** - * The number of structural features of the 'Facet Operation' class. - * - * - * - * @generated - * @ordered - */ - int FACET_OPERATION_FEATURE_COUNT = EcorePackage.EOPERATION_FEATURE_COUNT + 4; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetSetImpl Facet Set}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetSetImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getFacetSet() - * @generated - */ - int FACET_SET = 3; - - /** - * The feature id for the 'EAnnotations' containment reference list. - * - * - * - * @generated - * @ordered - */ - int FACET_SET__EANNOTATIONS = EcorePackage.EPACKAGE__EANNOTATIONS; - - /** - * The feature id for the 'Name' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_SET__NAME = EcorePackage.EPACKAGE__NAME; - - /** - * The feature id for the 'Ns URI' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_SET__NS_URI = EcorePackage.EPACKAGE__NS_URI; - - /** - * The feature id for the 'Ns Prefix' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_SET__NS_PREFIX = EcorePackage.EPACKAGE__NS_PREFIX; - - /** - * The feature id for the 'EFactory Instance' reference. - * - * - * - * @generated - * @ordered - */ - int FACET_SET__EFACTORY_INSTANCE = EcorePackage.EPACKAGE__EFACTORY_INSTANCE; - - /** - * The feature id for the 'EClassifiers' containment reference list. - * - * - * - * @generated - * @ordered - */ - int FACET_SET__ECLASSIFIERS = EcorePackage.EPACKAGE__ECLASSIFIERS; - - /** - * The feature id for the 'ESubpackages' containment reference list. - * - * - * - * @generated - * @ordered - */ - int FACET_SET__ESUBPACKAGES = EcorePackage.EPACKAGE__ESUBPACKAGES; - - /** - * The feature id for the 'ESuper Package' container reference. - * - * - * - * @generated - * @ordered - */ - int FACET_SET__ESUPER_PACKAGE = EcorePackage.EPACKAGE__ESUPER_PACKAGE; - - /** - * The feature id for the 'Documentation' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_SET__DOCUMENTATION = EcorePackage.EPACKAGE_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Categories' containment reference list. - * - * - * - * @generated - * @ordered - */ - int FACET_SET__CATEGORIES = EcorePackage.EPACKAGE_FEATURE_COUNT + 1; - - /** - * The number of structural features of the 'Facet Set' class. - * - * - * - * @generated - * @ordered - */ - int FACET_SET_FEATURE_COUNT = EcorePackage.EPACKAGE_FEATURE_COUNT + 2; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetImpl Facet}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getFacet() - * @generated - */ - int FACET = 4; - - /** - * The feature id for the 'EAnnotations' containment reference list. - * - * - * - * @generated - * @ordered - */ - int FACET__EANNOTATIONS = EcorePackage.ECLASSIFIER__EANNOTATIONS; - - /** - * The feature id for the 'Name' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET__NAME = EcorePackage.ECLASSIFIER__NAME; - - /** - * The feature id for the 'Instance Class Name' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET__INSTANCE_CLASS_NAME = EcorePackage.ECLASSIFIER__INSTANCE_CLASS_NAME; - - /** - * The feature id for the 'Instance Class' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET__INSTANCE_CLASS = EcorePackage.ECLASSIFIER__INSTANCE_CLASS; - - /** - * The feature id for the 'Default Value' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET__DEFAULT_VALUE = EcorePackage.ECLASSIFIER__DEFAULT_VALUE; - - /** - * The feature id for the 'Instance Type Name' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET__INSTANCE_TYPE_NAME = EcorePackage.ECLASSIFIER__INSTANCE_TYPE_NAME; - - /** - * The feature id for the 'EPackage' container reference. - * - * - * - * @generated - * @ordered - */ - int FACET__EPACKAGE = EcorePackage.ECLASSIFIER__EPACKAGE; - - /** - * The feature id for the 'EType Parameters' containment reference list. - * - * - * - * @generated - * @ordered - */ - int FACET__ETYPE_PARAMETERS = EcorePackage.ECLASSIFIER__ETYPE_PARAMETERS; - - /** - * The feature id for the 'Documentation' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET__DOCUMENTATION = EcorePackage.ECLASSIFIER_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Extended Metaclass' reference. - * - * - * - * @generated - * @ordered - */ - int FACET__EXTENDED_METACLASS = EcorePackage.ECLASSIFIER_FEATURE_COUNT + 1; - - /** - * The feature id for the 'Facet Elements' containment reference list. - * - * - * - * @generated - * @ordered - */ - int FACET__FACET_ELEMENTS = EcorePackage.ECLASSIFIER_FEATURE_COUNT + 2; - - /** - * The feature id for the 'Facet Operations' containment reference list. - * - * - * - * @generated - * @ordered - */ - int FACET__FACET_OPERATIONS = EcorePackage.ECLASSIFIER_FEATURE_COUNT + 3; - - /** - * The feature id for the 'Conformance Typed Element' reference. - * - * - * - * @generated - * @ordered - */ - int FACET__CONFORMANCE_TYPED_ELEMENT = EcorePackage.ECLASSIFIER_FEATURE_COUNT + 4; - - /** - * The feature id for the 'Extended Facets' reference list. - * - * - * - * @generated - * @ordered - */ - int FACET__EXTENDED_FACETS = EcorePackage.ECLASSIFIER_FEATURE_COUNT + 5; - - /** - * The feature id for the 'All Typed Elements' reference list. - * - * - * - * @generated - * @ordered - * @since 1.2 - */ - int FACET__ALL_TYPED_ELEMENTS = EcorePackage.ECLASSIFIER_FEATURE_COUNT + 6; - - /** - * The feature id for the 'All Facet Operations' reference list. - * - * - * - * @generated - * @ordered - * @since 1.2 - */ - int FACET__ALL_FACET_OPERATIONS = EcorePackage.ECLASSIFIER_FEATURE_COUNT + 7; - - /** - * The feature id for the 'All Facet Elements' reference list. - * - * - * - * @generated - * @ordered - * @since 1.2 - */ - int FACET__ALL_FACET_ELEMENTS = EcorePackage.ECLASSIFIER_FEATURE_COUNT + 8; - - /** - * The number of structural features of the 'Facet' class. - * - * - * - * @generated - * @ordered - * @noreference This field is not intended to be referenced by clients. - */ - int FACET_FEATURE_COUNT = EcorePackage.ECLASSIFIER_FEATURE_COUNT + 9; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.CategoryImpl Category}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.CategoryImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getCategory() - * @generated - */ - int CATEGORY = 5; - - /** - * The feature id for the 'EAnnotations' containment reference list. - * - * - * - * @generated - * @ordered - */ - int CATEGORY__EANNOTATIONS = EcorePackage.ENAMED_ELEMENT__EANNOTATIONS; - - /** - * The feature id for the 'Name' attribute. - * - * - * - * @generated - * @ordered - */ - int CATEGORY__NAME = EcorePackage.ENAMED_ELEMENT__NAME; - - /** - * The feature id for the 'Documentation' attribute. - * - * - * - * @generated - * @ordered - */ - int CATEGORY__DOCUMENTATION = EcorePackage.ENAMED_ELEMENT_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Category' class. - * - * - * - * @generated - * @ordered - */ - int CATEGORY_FEATURE_COUNT = EcorePackage.ENAMED_ELEMENT_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetElementImpl Facet Element}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetElementImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getFacetElement() - * @generated - */ - int FACET_ELEMENT = 6; - - /** - * The feature id for the 'EAnnotations' containment reference list. - * - * - * - * @generated - * @ordered - */ - int FACET_ELEMENT__EANNOTATIONS = EcorePackage.ETYPED_ELEMENT__EANNOTATIONS; - - /** - * The feature id for the 'Name' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_ELEMENT__NAME = EcorePackage.ETYPED_ELEMENT__NAME; - - /** - * The feature id for the 'Ordered' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_ELEMENT__ORDERED = EcorePackage.ETYPED_ELEMENT__ORDERED; - - /** - * The feature id for the 'Unique' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_ELEMENT__UNIQUE = EcorePackage.ETYPED_ELEMENT__UNIQUE; - - /** - * The feature id for the 'Lower Bound' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_ELEMENT__LOWER_BOUND = EcorePackage.ETYPED_ELEMENT__LOWER_BOUND; - - /** - * The feature id for the 'Upper Bound' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_ELEMENT__UPPER_BOUND = EcorePackage.ETYPED_ELEMENT__UPPER_BOUND; - - /** - * The feature id for the 'Many' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_ELEMENT__MANY = EcorePackage.ETYPED_ELEMENT__MANY; - - /** - * The feature id for the 'Required' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_ELEMENT__REQUIRED = EcorePackage.ETYPED_ELEMENT__REQUIRED; - - /** - * The feature id for the 'EType' reference. - * - * - * - * @generated - * @ordered - */ - int FACET_ELEMENT__ETYPE = EcorePackage.ETYPED_ELEMENT__ETYPE; - - /** - * The feature id for the 'EGeneric Type' containment reference. - * - * - * - * @generated - * @ordered - */ - int FACET_ELEMENT__EGENERIC_TYPE = EcorePackage.ETYPED_ELEMENT__EGENERIC_TYPE; - - /** - * The feature id for the 'Documentation' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_ELEMENT__DOCUMENTATION = EcorePackage.ETYPED_ELEMENT_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Categories' reference list. - * - * - * - * @generated - * @ordered - */ - int FACET_ELEMENT__CATEGORIES = EcorePackage.ETYPED_ELEMENT_FEATURE_COUNT + 1; - - /** - * The number of structural features of the 'Facet Element' class. - * - * - * - * @generated - * @ordered - */ - int FACET_ELEMENT_FEATURE_COUNT = EcorePackage.ETYPED_ELEMENT_FEATURE_COUNT + 2; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.DerivedTypedElementImpl Derived Typed Element}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.DerivedTypedElementImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getDerivedTypedElement() - * @generated - */ - int DERIVED_TYPED_ELEMENT = 7; - - /** - * The feature id for the 'EAnnotations' containment reference list. - * - * - * - * @generated - * @ordered - */ - int DERIVED_TYPED_ELEMENT__EANNOTATIONS = FACET_ELEMENT__EANNOTATIONS; - - /** - * The feature id for the 'Name' attribute. - * - * - * - * @generated - * @ordered - */ - int DERIVED_TYPED_ELEMENT__NAME = FACET_ELEMENT__NAME; - - /** - * The feature id for the 'Ordered' attribute. - * - * - * - * @generated - * @ordered - */ - int DERIVED_TYPED_ELEMENT__ORDERED = FACET_ELEMENT__ORDERED; - - /** - * The feature id for the 'Unique' attribute. - * - * - * - * @generated - * @ordered - */ - int DERIVED_TYPED_ELEMENT__UNIQUE = FACET_ELEMENT__UNIQUE; - - /** - * The feature id for the 'Lower Bound' attribute. - * - * - * - * @generated - * @ordered - */ - int DERIVED_TYPED_ELEMENT__LOWER_BOUND = FACET_ELEMENT__LOWER_BOUND; - - /** - * The feature id for the 'Upper Bound' attribute. - * - * - * - * @generated - * @ordered - */ - int DERIVED_TYPED_ELEMENT__UPPER_BOUND = FACET_ELEMENT__UPPER_BOUND; - - /** - * The feature id for the 'Many' attribute. - * - * - * - * @generated - * @ordered - */ - int DERIVED_TYPED_ELEMENT__MANY = FACET_ELEMENT__MANY; - - /** - * The feature id for the 'Required' attribute. - * - * - * - * @generated - * @ordered - */ - int DERIVED_TYPED_ELEMENT__REQUIRED = FACET_ELEMENT__REQUIRED; - - /** - * The feature id for the 'EType' reference. - * - * - * - * @generated - * @ordered - */ - int DERIVED_TYPED_ELEMENT__ETYPE = FACET_ELEMENT__ETYPE; - - /** - * The feature id for the 'EGeneric Type' containment reference. - * - * - * - * @generated - * @ordered - */ - int DERIVED_TYPED_ELEMENT__EGENERIC_TYPE = FACET_ELEMENT__EGENERIC_TYPE; - - /** - * The feature id for the 'Documentation' attribute. - * - * - * - * @generated - * @ordered - */ - int DERIVED_TYPED_ELEMENT__DOCUMENTATION = FACET_ELEMENT__DOCUMENTATION; - - /** - * The feature id for the 'Categories' reference list. - * - * - * - * @generated - * @ordered - */ - int DERIVED_TYPED_ELEMENT__CATEGORIES = FACET_ELEMENT__CATEGORIES; - - /** - * The feature id for the 'Query' containment reference. - * - * - * - * @generated - * @ordered - */ - int DERIVED_TYPED_ELEMENT__QUERY = FACET_ELEMENT_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Override' reference. - * - * - * - * @generated - * @ordered - */ - int DERIVED_TYPED_ELEMENT__OVERRIDE = FACET_ELEMENT_FEATURE_COUNT + 1; - - /** - * The number of structural features of the 'Derived Typed Element' class. - * - * - * - * @generated - * @ordered - */ - int DERIVED_TYPED_ELEMENT_FEATURE_COUNT = FACET_ELEMENT_FEATURE_COUNT + 2; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.ParameterValueImpl Parameter Value}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.ParameterValueImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getParameterValue() - * @generated - */ - int PARAMETER_VALUE = 8; - - /** - * The feature id for the 'Parameter' reference. - * - * - * - * @generated - * @ordered - */ - int PARAMETER_VALUE__PARAMETER = 0; - - /** - * The feature id for the 'Value' attribute. - * - * - * - * @generated - * @ordered - */ - int PARAMETER_VALUE__VALUE = 1; - - /** - * The number of structural features of the 'Parameter Value' class. - * - * - * - * @generated - * @ordered - */ - int PARAMETER_VALUE_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.DocumentedElementImpl Documented Element}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.DocumentedElementImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getDocumentedElement() - * @generated - */ - int DOCUMENTED_ELEMENT = 9; - - /** - * The feature id for the 'Documentation' attribute. - * - * - * - * @generated - * @ordered - */ - int DOCUMENTED_ELEMENT__DOCUMENTATION = 0; - - /** - * The number of structural features of the 'Documented Element' class. - * - * - * - * @generated - * @ordered - */ - int DOCUMENTED_ELEMENT_FEATURE_COUNT = 1; - - /** - * The meta object id for the 'Resource' data type. - * - * - * - * @see org.eclipse.emf.ecore.resource.Resource - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getResource() - * @generated - */ - int RESOURCE = 10; - - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetAttribute Facet Attribute}'. - * - * - * - * @return the meta object for class 'Facet Attribute'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetAttribute - * @generated - */ - EClass getFacetAttribute(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetReference Facet Reference}'. - * - * - * - * @return the meta object for class 'Facet Reference'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetReference - * @generated - */ - EClass getFacetReference(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetOperation Facet Operation}'. - * - * - * - * @return the meta object for class 'Facet Operation'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetOperation - * @generated - */ - EClass getFacetOperation(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetSet Facet Set}'. - * - * - * - * @return the meta object for class 'Facet Set'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetSet - * @generated - */ - EClass getFacetSet(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetSet#getCategories Categories}'. - * - * - * - * @return the meta object for the containment reference list 'Categories'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetSet#getCategories() - * @see #getFacetSet() - * @generated - */ - EReference getFacetSet_Categories(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet Facet}'. - * - * - * - * @return the meta object for class 'Facet'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet - * @generated - */ - EClass getFacet(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getExtendedMetaclass Extended Metaclass}'. - * - * - * - * @return the meta object for the reference 'Extended Metaclass'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getExtendedMetaclass() - * @see #getFacet() - * @generated - */ - EReference getFacet_ExtendedMetaclass(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getFacetElements Facet Elements}'. - * - * - * - * @return the meta object for the containment reference list 'Facet Elements'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getFacetElements() - * @see #getFacet() - * @generated - */ - EReference getFacet_FacetElements(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getFacetOperations Facet Operations}'. - * - * - * - * @return the meta object for the containment reference list 'Facet Operations'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getFacetOperations() - * @see #getFacet() - * @generated - */ - EReference getFacet_FacetOperations(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getConformanceTypedElement Conformance Typed Element}'. - * - * - * - * @return the meta object for the reference 'Conformance Typed Element'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getConformanceTypedElement() - * @see #getFacet() - * @generated - */ - EReference getFacet_ConformanceTypedElement(); - - /** - * Returns the meta object for the reference list '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getExtendedFacets Extended Facets}'. - * - * - * - * @return the meta object for the reference list 'Extended Facets'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getExtendedFacets() - * @see #getFacet() - * @generated - */ - EReference getFacet_ExtendedFacets(); - - /** - * Returns the meta object for the reference list '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getAllTypedElements All Typed Elements}'. - * - * - * - * @return the meta object for the reference list 'All Typed Elements'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getAllTypedElements() - * @see #getFacet() - * @generated - * @since 1.2 - */ - EReference getFacet_AllTypedElements(); - - /** - * Returns the meta object for the reference list '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getAllFacetOperations All Facet Operations}'. - * - * - * - * @return the meta object for the reference list 'All Facet Operations'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getAllFacetOperations() - * @see #getFacet() - * @generated - * @since 1.2 - */ - EReference getFacet_AllFacetOperations(); - - /** - * Returns the meta object for the reference list '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getAllFacetElements All Facet Elements}'. - * - * - * - * @return the meta object for the reference list 'All Facet Elements'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getAllFacetElements() - * @see #getFacet() - * @generated - * @since 1.2 - */ - EReference getFacet_AllFacetElements(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Category Category}'. - * - * - * - * @return the meta object for class 'Category'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Category - * @generated - */ - EClass getCategory(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetElement Facet Element}'. - * - * - * - * @return the meta object for class 'Facet Element'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetElement - * @generated - */ - EClass getFacetElement(); - - /** - * Returns the meta object for the reference list '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetElement#getCategories Categories}'. - * - * - * - * @return the meta object for the reference list 'Categories'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetElement#getCategories() - * @see #getFacetElement() - * @generated - */ - EReference getFacetElement_Categories(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement Derived Typed Element}'. - * - * - * - * @return the meta object for class 'Derived Typed Element'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement - * @generated - */ - EClass getDerivedTypedElement(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement#getQuery Query}'. - * - * - * - * @return the meta object for the containment reference 'Query'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement#getQuery() - * @see #getDerivedTypedElement() - * @generated - */ - EReference getDerivedTypedElement_Query(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement#getOverride Override}'. - * - * - * - * @return the meta object for the reference 'Override'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement#getOverride() - * @see #getDerivedTypedElement() - * @generated - */ - EReference getDerivedTypedElement_Override(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue Parameter Value}'. - * - * - * - * @return the meta object for class 'Parameter Value'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue - * @generated - */ - EClass getParameterValue(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue#getParameter Parameter}'. - * - * - * - * @return the meta object for the reference 'Parameter'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue#getParameter() - * @see #getParameterValue() - * @generated - */ - EReference getParameterValue_Parameter(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue#getValue Value}'. - * - * - * - * @return the meta object for the attribute 'Value'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue#getValue() - * @see #getParameterValue() - * @generated - */ - EAttribute getParameterValue_Value(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement Documented Element}'. - * - * - * - * @return the meta object for class 'Documented Element'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement - * @generated - */ - EClass getDocumentedElement(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement#getDocumentation Documentation}'. - * - * - * - * @return the meta object for the attribute 'Documentation'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement#getDocumentation() - * @see #getDocumentedElement() - * @generated - */ - EAttribute getDocumentedElement_Documentation(); - - /** - * Returns the meta object for data type '{@link org.eclipse.emf.ecore.resource.Resource Resource}'. - * - * - * - * @return the meta object for data type 'Resource'. - * @see org.eclipse.emf.ecore.resource.Resource - * @model instanceClass="org.eclipse.emf.ecore.resource.Resource" - * @generated - */ - EDataType getResource(); - - /** - * Returns the factory that creates the instances of the model. - * - * - * - * @return the factory that creates the instances of the model. - * @generated - */ - EFacetFactory getEFacetFactory(); - - /** - * - * Defines literals for the meta objects that represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * - * @generated - */ - interface Literals { - /** - * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetAttributeImpl Facet Attribute}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetAttributeImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getFacetAttribute() - * @generated - */ - EClass FACET_ATTRIBUTE = eINSTANCE.getFacetAttribute(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetReferenceImpl Facet Reference}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetReferenceImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getFacetReference() - * @generated - */ - EClass FACET_REFERENCE = eINSTANCE.getFacetReference(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetOperationImpl Facet Operation}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetOperationImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getFacetOperation() - * @generated - */ - EClass FACET_OPERATION = eINSTANCE.getFacetOperation(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetSetImpl Facet Set}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetSetImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getFacetSet() - * @generated - */ - EClass FACET_SET = eINSTANCE.getFacetSet(); - - /** - * The meta object literal for the 'Categories' containment reference list feature. - * - * - * - * @generated - */ - EReference FACET_SET__CATEGORIES = eINSTANCE.getFacetSet_Categories(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetImpl Facet}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getFacet() - * @generated - */ - EClass FACET = eINSTANCE.getFacet(); - - /** - * The meta object literal for the 'Extended Metaclass' reference feature. - * - * - * - * @generated - */ - EReference FACET__EXTENDED_METACLASS = eINSTANCE.getFacet_ExtendedMetaclass(); - - /** - * The meta object literal for the 'Facet Elements' containment reference list feature. - * - * - * - * @generated - */ - EReference FACET__FACET_ELEMENTS = eINSTANCE.getFacet_FacetElements(); - - /** - * The meta object literal for the 'Facet Operations' containment reference list feature. - * - * - * - * @generated - */ - EReference FACET__FACET_OPERATIONS = eINSTANCE.getFacet_FacetOperations(); - - /** - * The meta object literal for the 'Conformance Typed Element' reference feature. - * - * - * - * @generated - */ - EReference FACET__CONFORMANCE_TYPED_ELEMENT = eINSTANCE.getFacet_ConformanceTypedElement(); - - /** - * The meta object literal for the 'Extended Facets' reference list feature. - * - * - * - * @generated - */ - EReference FACET__EXTENDED_FACETS = eINSTANCE.getFacet_ExtendedFacets(); - - /** - * The meta object literal for the 'All Typed Elements' reference list feature. - * - * - * - * @generated - * @since 1.2 - */ - EReference FACET__ALL_TYPED_ELEMENTS = eINSTANCE.getFacet_AllTypedElements(); - - /** - * The meta object literal for the 'All Facet Operations' reference list feature. - * - * - * - * @generated - * @since 1.2 - */ - EReference FACET__ALL_FACET_OPERATIONS = eINSTANCE.getFacet_AllFacetOperations(); - - /** - * The meta object literal for the 'All Facet Elements' reference list feature. - * - * - * - * @generated - * @since 1.2 - */ - EReference FACET__ALL_FACET_ELEMENTS = eINSTANCE.getFacet_AllFacetElements(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.CategoryImpl Category}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.CategoryImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getCategory() - * @generated - */ - EClass CATEGORY = eINSTANCE.getCategory(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetElementImpl Facet Element}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetElementImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getFacetElement() - * @generated - */ - EClass FACET_ELEMENT = eINSTANCE.getFacetElement(); - - /** - * The meta object literal for the 'Categories' reference list feature. - * - * - * - * @generated - */ - EReference FACET_ELEMENT__CATEGORIES = eINSTANCE.getFacetElement_Categories(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.DerivedTypedElementImpl Derived Typed Element}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.DerivedTypedElementImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getDerivedTypedElement() - * @generated - */ - EClass DERIVED_TYPED_ELEMENT = eINSTANCE.getDerivedTypedElement(); - - /** - * The meta object literal for the 'Query' containment reference feature. - * - * - * - * @generated - */ - EReference DERIVED_TYPED_ELEMENT__QUERY = eINSTANCE.getDerivedTypedElement_Query(); - - /** - * The meta object literal for the 'Override' reference feature. - * - * - * - * @generated - */ - EReference DERIVED_TYPED_ELEMENT__OVERRIDE = eINSTANCE.getDerivedTypedElement_Override(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.ParameterValueImpl Parameter Value}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.ParameterValueImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getParameterValue() - * @generated - */ - EClass PARAMETER_VALUE = eINSTANCE.getParameterValue(); - - /** - * The meta object literal for the 'Parameter' reference feature. - * - * - * - * @generated - */ - EReference PARAMETER_VALUE__PARAMETER = eINSTANCE.getParameterValue_Parameter(); - - /** - * The meta object literal for the 'Value' attribute feature. - * - * - * - * @generated - */ - EAttribute PARAMETER_VALUE__VALUE = eINSTANCE.getParameterValue_Value(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.DocumentedElementImpl Documented Element}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.DocumentedElementImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getDocumentedElement() - * @generated - */ - EClass DOCUMENTED_ELEMENT = eINSTANCE.getDocumentedElement(); - - /** - * The meta object literal for the 'Documentation' attribute feature. - * - * - * - * @generated - */ - EAttribute DOCUMENTED_ELEMENT__DOCUMENTATION = eINSTANCE.getDocumentedElement_Documentation(); - - /** - * The meta object literal for the 'Resource' data type. - * - * - * - * @see org.eclipse.emf.ecore.resource.Resource - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl#getResource() - * @generated - */ - EDataType RESOURCE = eINSTANCE.getResource(); - - } - -} // EFacetPackage diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/Facet.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/Facet.java deleted file mode 100644 index 6e6769629fb..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/Facet.java +++ /dev/null @@ -1,217 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning - * Gregoire Dupe (Mia-Software) - Bug 376576 - [EFacet] Change the multiplicity of Facet::extendedFacet - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EClassifier; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.ETypedElement; - -/** - * - * A representation of the model object 'Facet'. - * - * - * - * A Facet is a virtual sub-type of an existing EClass. A Facet cannot be instantiated. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getExtendedMetaclass Extended Metaclass}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getFacetElements Facet Elements}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getFacetOperations Facet Operations}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getConformanceTypedElement Conformance Typed Element}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getExtendedFacets Extended Facets}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getAllTypedElements All Typed Elements}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getAllFacetOperations All Facet Operations}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getAllFacetElements All Facet Elements}
  • - *
- * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getFacet() - * @model annotation="http://www.eclipse.org/emf/2002/Ecore validationDelegates='( self.query.scope = self.facet.extendedMetaClass ) and ( self.query.name = self.name )'" - * annotation="http://www.eclipse.org/emf/2002/Ecore validationDelegates='self.conformanceQuery.scope = self.extendedMetaClass'" - * annotation="org.eclipse.ocl.ecore.OCL body='not(self.container().oclCastAs(FacetSet).facets->exists(f|f.extendedMetaClass.container() <> self.extendedMetaClass.container() ))'" - * @generated - * @noimplement This interface is not intended to be implemented by clients. - */ -public interface Facet extends EClassifier, DocumentedElement { - /** - * Returns the value of the 'Extended Metaclass' reference. - * - *

- * If the meaning of the 'Extended Metaclass' reference isn't clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'Extended Metaclass' reference. - * @see #setExtendedMetaclass(EClass) - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getFacet_ExtendedMetaclass() - * @model annotation="GenModel documentation='The \"extendedMetaclass\" reference references the virtually subtyped EClass.'" - * @generated - */ - EClass getExtendedMetaclass(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getExtendedMetaclass Extended Metaclass}' reference. - * - * - * - * @param value - * the new value of the 'Extended Metaclass' reference. - * @see #getExtendedMetaclass() - * @generated - */ - void setExtendedMetaclass(EClass value); - - /** - * Returns the value of the 'Facet Elements' containment reference list. - * The list contents are of type {@link org.eclipse.emf.ecore.EStructuralFeature}. - * - * - * - * This composite reference contains virtual attributes, references and operations. - * - * - * @return the value of the 'Facet Elements' containment reference list. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getFacet_FacetElements() - * @model containment="true" - * @generated - */ - EList getFacetElements(); - - /** - * Returns the value of the 'Facet Operations' containment reference list. - * The list contents are of type {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetOperation}. - * - *

- * If the meaning of the 'Facet Operations' containment reference list isn't clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'Facet Operations' containment reference list. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getFacet_FacetOperations() - * @model containment="true" - * @generated - */ - EList getFacetOperations(); - - /** - * Returns the value of the 'Conformance Typed Element' reference. - * - *

- * If the meaning of the 'Conformance Typed Element' reference isn't clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'Conformance Typed Element' reference. - * @see #setConformanceTypedElement(ETypedElement) - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getFacet_ConformanceTypedElement() - * @model - * @generated - */ - ETypedElement getConformanceTypedElement(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet#getConformanceTypedElement Conformance Typed Element}' reference. - * - * - * - * @param value - * the new value of the 'Conformance Typed Element' reference. - * @see #getConformanceTypedElement() - * @generated - */ - void setConformanceTypedElement(ETypedElement value); - - /** - * Returns the value of the 'Extended Facets' reference list. - * The list contents are of type {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet}. - * - *

- * If the meaning of the 'Extended Facets' reference list isn't clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'Extended Facets' reference list. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getFacet_ExtendedFacets() - * @model annotation="GenModel documentation='A facet can extend other facets. If A facet A can extend a facet B. In this case an eObject conforms to the facet A if it matches conformance evaluation of A and B. '" - * @generated - */ - EList getExtendedFacets(); - - /** - * Returns the value of the 'All Typed Elements' reference list. - * The list contents are of type {@link org.eclipse.emf.ecore.ETypedElement}. - * - *

- * If the meaning of the 'All Typed Elements' reference list isn't clear, - * there really should be more of a description here... - *

- * - * - * @return the value of the 'All Typed Elements' reference list. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getFacet_AllTypedElements() - * @model transient="true" changeable="false" derived="true" - * @generated - * @since 1.2 - */ - EList getAllTypedElements(); - - /** - * Returns the value of the 'All Facet Operations' reference list. - * The list contents are of type {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetOperation}. - * - *

- * If the meaning of the 'All Facet Operations' reference list isn't clear, - * there really should be more of a description here... - *

- * - * - * @return the value of the 'All Facet Operations' reference list. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getFacet_AllFacetOperations() - * @model transient="true" changeable="false" derived="true" - * @generated - * @since 1.2 - */ - EList getAllFacetOperations(); - - /** - * Returns the value of the 'All Facet Elements' reference list. - * The list contents are of type {@link org.eclipse.emf.ecore.EStructuralFeature}. - * - *

- * If the meaning of the 'All Facet Elements' reference list isn't clear, - * there really should be more of a description here... - *

- * - * - * @return the value of the 'All Facet Elements' reference list. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getFacet_AllFacetElements() - * @model transient="true" changeable="false" derived="true" - * @generated - * @since 1.2 - */ - EList getAllFacetElements(); - -} // Facet diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetAttribute.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetAttribute.java deleted file mode 100644 index 0e927807ac1..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetAttribute.java +++ /dev/null @@ -1,36 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet; - -import org.eclipse.emf.ecore.EAttribute; - -/** - * - * A representation of the model object 'Facet Attribute'. - * - * - * - * A FacetAttribute is a virtual attribute added to all the eObjects which conform to the Facet owning the FacetAttribute. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getFacetAttribute() - * @model - * @generated - */ -public interface FacetAttribute extends EAttribute, DerivedTypedElement { -} // FacetAttribute diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetElement.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetElement.java deleted file mode 100644 index 0b903318a60..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetElement.java +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.ETypedElement; - -/** - * - * A representation of the model object 'Facet Element'. - * - * - * - * A facet element is owned by a facet. It can be a facet reference, a facet attribute or a facet operation. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetElement#getCategories Categories}
  • - *
- * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getFacetElement() - * @model abstract="true" - * @generated - */ -public interface FacetElement extends ETypedElement, DocumentedElement { - /** - * Returns the value of the 'Categories' reference list. - * The list contents are of type {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Category}. - * - *

- * If the meaning of the 'Categories' reference list isn't clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'Categories' reference list. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getFacetElement_Categories() - * @model - * @generated - */ - EList getCategories(); - -} // FacetElement diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetOperation.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetOperation.java deleted file mode 100644 index 7fcbe4b868e..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetOperation.java +++ /dev/null @@ -1,36 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet; - -import org.eclipse.emf.ecore.EOperation; - -/** - * - * A representation of the model object 'Facet Operation'. - * - * - * - * A FacetOperation is a virtual operation added to all the eObjects which conform to the Facet owning the FacetOperation. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getFacetOperation() - * @model - * @generated - */ -public interface FacetOperation extends EOperation, DerivedTypedElement { -} // FacetOperation diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetReference.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetReference.java deleted file mode 100644 index 88df7a67994..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetReference.java +++ /dev/null @@ -1,36 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet; - -import org.eclipse.emf.ecore.EReference; - -/** - * - * A representation of the model object 'Facet Reference'. - * - * - * - * A FacetReference is a virtual reference added to all the eObjects which conform to the Facet owning the FacetReference. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getFacetReference() - * @model - * @generated - */ -public interface FacetReference extends EReference, DerivedTypedElement { -} // FacetReference diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetSet.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetSet.java deleted file mode 100644 index 2b8b328c8ab..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/FacetSet.java +++ /dev/null @@ -1,66 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EPackage; - -/** - * - * A representation of the model object 'Facet Set'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetSet#getCategories Categories}
  • - *
- * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getFacetSet() - * @model annotation="GenModel documentation='A \"FacetSet\" is the root element of a facet model. It contains a list of \"Facet\".'" - * @generated - */ -public interface FacetSet extends EPackage, DocumentedElement { - /** - * Returns the value of the 'Categories' containment reference list. - * The list contents are of type {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Category}. - * - *

- * If the meaning of the 'Categories' containment reference list isn't clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'Categories' containment reference list. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getFacetSet_Categories() - * @model containment="true" - * @generated - */ - EList getCategories(); - - /** - * - * - * - * @model kind="operation" - * annotation="GenModel documentation='The FacetSets aggregated by this FacetSet (this operation is overridden in Aggregate in the aggregate metamodel).'" - * @generated - */ - EList getFacetSets(); - -} // FacetSet diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/ParameterValue.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/ParameterValue.java deleted file mode 100644 index 3c9d2b9782e..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/ParameterValue.java +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EParameter; - -/** - * - * A representation of the model object 'Parameter Value'. - * - * - * - * This is the value given as a parameter to execute a query for an operation. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue#getParameter Parameter}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue#getValue Value}
  • - *
- * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getParameterValue() - * @model - * @generated - */ -public interface ParameterValue extends EObject { - /** - * Returns the value of the 'Parameter' reference. - * - *

- * If the meaning of the 'Parameter' reference isn't clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'Parameter' reference. - * @see #setParameter(EParameter) - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getParameterValue_Parameter() - * @model required="true" - * @generated - */ - EParameter getParameter(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue#getParameter Parameter}' reference. - * - * - * - * @param value - * the new value of the 'Parameter' reference. - * @see #getParameter() - * @generated - */ - void setParameter(EParameter value); - - /** - * Returns the value of the 'Value' attribute. - * - *

- * If the meaning of the 'Value' attribute isn't clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'Value' attribute. - * @see #setValue(Object) - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#getParameterValue_Value() - * @model - * @generated - */ - Object getValue(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue#getValue Value}' attribute. - * - * - * - * @param value - * the new value of the 'Value' attribute. - * @see #getValue() - * @generated - */ - void setValue(Object value); - -} // ParameterValue diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/ExtensibleFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/ExtensibleFactory.java deleted file mode 100644 index 4719752ca8e..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/ExtensibleFactory.java +++ /dev/null @@ -1,51 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible; - -import org.eclipse.emf.ecore.EFactory; - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensiblePackage - * @generated - */ -public interface ExtensibleFactory extends EFactory { - /** - * The singleton instance of the factory. - * - * - * - * @generated - */ - ExtensibleFactory eINSTANCE = org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.ExtensibleFactoryImpl.init(); - - /** - * Returns the package supported by this factory. - * - * - * - * @return the package supported by this factory. - * @generated - */ - ExtensiblePackage getExtensiblePackage(); - -} // ExtensibleFactory diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/ExtensiblePackage.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/ExtensiblePackage.java deleted file mode 100644 index b887bf8bcb8..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/ExtensiblePackage.java +++ /dev/null @@ -1,209 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; - -/** - * - * The Package for the model. - * It contains accessors for the meta objects to represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensibleFactory - * @model kind="package" - * @generated - */ -public interface ExtensiblePackage extends EPackage { - /** - * The package name. - * - * - * - * @generated - */ - String eNAME = "extensible"; //$NON-NLS-1$ - - /** - * The package namespace URI. - * - * - * - * @generated - */ - String eNS_URI = "http://www.eclipse.org/papyrus/emf/facet/efacet/0.2.incubation/efacet/extensible"; //$NON-NLS-1$ - - /** - * The package namespace name. - * - * - * - * @generated - */ - String eNS_PREFIX = "extensible"; //$NON-NLS-1$ - - /** - * The singleton instance of the package. - * - * - * - * @generated - */ - ExtensiblePackage eINSTANCE = org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.ExtensiblePackageImpl.init(); - - /** - * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.QueryImpl Query}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.QueryImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.ExtensiblePackageImpl#getQuery() - * @generated - */ - int QUERY = 0; - - /** - * The feature id for the 'Can Have Side Effects' attribute. - * - * - * - * @generated - * @ordered - */ - int QUERY__CAN_HAVE_SIDE_EFFECTS = 0; - - /** - * The feature id for the 'Can Be Cached' attribute. - * - * - * - * @generated - * @ordered - */ - int QUERY__CAN_BE_CACHED = 1; - - /** - * The number of structural features of the 'Query' class. - * - * - * - * @generated - * @ordered - */ - int QUERY_FEATURE_COUNT = 2; - - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query Query}'. - * - * - * - * @return the meta object for class 'Query'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query - * @generated - */ - EClass getQuery(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query#isCanHaveSideEffects Can Have Side Effects}'. - * - * - * - * @return the meta object for the attribute 'Can Have Side Effects'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query#isCanHaveSideEffects() - * @see #getQuery() - * @generated - */ - EAttribute getQuery_CanHaveSideEffects(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query#isCanBeCached Can Be Cached}'. - * - * - * - * @return the meta object for the attribute 'Can Be Cached'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query#isCanBeCached() - * @see #getQuery() - * @generated - */ - EAttribute getQuery_CanBeCached(); - - /** - * Returns the factory that creates the instances of the model. - * - * - * - * @return the factory that creates the instances of the model. - * @generated - */ - ExtensibleFactory getExtensibleFactory(); - - /** - * - * Defines literals for the meta objects that represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * - * @generated - */ - interface Literals { - /** - * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.QueryImpl Query}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.QueryImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.ExtensiblePackageImpl#getQuery() - * @generated - */ - EClass QUERY = eINSTANCE.getQuery(); - - /** - * The meta object literal for the 'Can Have Side Effects' attribute feature. - * - * - * - * @generated - */ - EAttribute QUERY__CAN_HAVE_SIDE_EFFECTS = eINSTANCE.getQuery_CanHaveSideEffects(); - - /** - * The meta object literal for the 'Can Be Cached' attribute feature. - * - * - * - * @generated - */ - EAttribute QUERY__CAN_BE_CACHED = eINSTANCE.getQuery_CanBeCached(); - - } - -} // ExtensiblePackage diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/Query.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/Query.java deleted file mode 100644 index 1d90ae9ae37..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/Query.java +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Query'. - * - * - * - * Query is the abstract representation of the concept of query. This class has to be sub-classed for each existing query language (Java, OCL, etc.) - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query#isCanHaveSideEffects Can Have Side Effects}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query#isCanBeCached Can Be Cached}
  • - *
- * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensiblePackage#getQuery() - * @model abstract="true" - * @generated - */ -public interface Query extends EObject { - /** - * Returns the value of the 'Can Have Side Effects' attribute. - * - *

- * If the meaning of the 'Can Have Side Effects' attribute isn't clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'Can Have Side Effects' attribute. - * @see #setCanHaveSideEffects(boolean) - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensiblePackage#getQuery_CanHaveSideEffects() - * @model - * @generated - */ - boolean isCanHaveSideEffects(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query#isCanHaveSideEffects Can Have Side Effects}' attribute. - * - * - * - * @param value - * the new value of the 'Can Have Side Effects' attribute. - * @see #isCanHaveSideEffects() - * @generated - */ - void setCanHaveSideEffects(boolean value); - - /** - * Returns the value of the 'Can Be Cached' attribute. - * - *

- * If the meaning of the 'Can Be Cached' attribute isn't clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'Can Be Cached' attribute. - * @see #setCanBeCached(boolean) - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensiblePackage#getQuery_CanBeCached() - * @model - * @generated - */ - boolean isCanBeCached(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query#isCanBeCached Can Be Cached}' attribute. - * - * - * - * @param value - * the new value of the 'Can Be Cached' attribute. - * @see #isCanBeCached() - * @generated - */ - void setCanBeCached(boolean value); - -} // Query diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/impl/ExtensibleFactoryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/impl/ExtensibleFactoryImpl.java deleted file mode 100644 index 0c372d96338..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/impl/ExtensibleFactoryImpl.java +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.emf.ecore.plugin.EcorePlugin; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensibleFactory; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensiblePackage; - -/** - * - * An implementation of the model Factory. - * - * - * @generated - */ -public class ExtensibleFactoryImpl extends EFactoryImpl implements ExtensibleFactory { - /** - * Creates the default factory implementation. - * - * - * - * @generated - */ - public static ExtensibleFactory init() { - try { - ExtensibleFactory theExtensibleFactory = (ExtensibleFactory) EPackage.Registry.INSTANCE.getEFactory(ExtensiblePackage.eNS_URI); - if (theExtensibleFactory != null) { - return theExtensibleFactory; - } - } catch (Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new ExtensibleFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * - * - * @generated - */ - public ExtensibleFactoryImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ - } - } - - /** - * - * - * - * @generated - */ - public ExtensiblePackage getExtensiblePackage() { - return (ExtensiblePackage) getEPackage(); - } - - /** - * - * - * - * @deprecated - * @generated - */ - @Deprecated - public static ExtensiblePackage getPackage() { - return ExtensiblePackage.eINSTANCE; - } - -} // ExtensibleFactoryImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/impl/ExtensiblePackageImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/impl/ExtensiblePackageImpl.java deleted file mode 100644 index e4bae29fc80..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/impl/ExtensiblePackageImpl.java +++ /dev/null @@ -1,252 +0,0 @@ -/** - * Copyright (c) 2011, 2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - * Gregoire Dupe (Mia-Software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. - * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EcorePackage; -import org.eclipse.emf.ecore.impl.EPackageImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensibleFactory; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensiblePackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.RuntimePackageImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl; - -/** - * - * An implementation of the model Package. - * - * - * @generated - */ -public class ExtensiblePackageImpl extends EPackageImpl implements ExtensiblePackage { - /** - * - * - * - * @generated - */ - private EClass queryEClass = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - *

- * Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensiblePackage#eNS_URI - * @see #init() - * @generated - */ - private ExtensiblePackageImpl() { - super(eNS_URI, ExtensibleFactory.eINSTANCE); - } - - /** - * - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - * - *

- * This method is used to initialize {@link ExtensiblePackage#eINSTANCE} when that field is accessed. - * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. - * - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static ExtensiblePackage init() { - if (isInited) { - return (ExtensiblePackage) EPackage.Registry.INSTANCE.getEPackage(ExtensiblePackage.eNS_URI); - } - - // Obtain or create and register package - Object registeredExtensiblePackage = EPackage.Registry.INSTANCE.get(eNS_URI); - ExtensiblePackageImpl theExtensiblePackage = registeredExtensiblePackage instanceof ExtensiblePackageImpl ? (ExtensiblePackageImpl) registeredExtensiblePackage : new ExtensiblePackageImpl(); - - isInited = true; - - // Initialize simple dependencies - EcorePackage.eINSTANCE.eClass(); - - // Obtain or create and register interdependencies - Object registeredPackage = EPackage.Registry.INSTANCE.getEPackage(EFacetPackage.eNS_URI); - EFacetPackageImpl theEFacetPackage = (EFacetPackageImpl) (registeredPackage instanceof EFacetPackageImpl ? registeredPackage : EFacetPackage.eINSTANCE); - registeredPackage = EPackage.Registry.INSTANCE.getEPackage(SerializationPackage.eNS_URI); - SerializationPackageImpl theSerializationPackage = (SerializationPackageImpl) (registeredPackage instanceof SerializationPackageImpl ? registeredPackage : SerializationPackage.eINSTANCE); - registeredPackage = EPackage.Registry.INSTANCE.getEPackage(QueryPackage.eNS_URI); - QueryPackageImpl theQueryPackage = (QueryPackageImpl) (registeredPackage instanceof QueryPackageImpl ? registeredPackage : QueryPackage.eINSTANCE); - registeredPackage = EPackage.Registry.INSTANCE.getEPackage(RuntimePackage.eNS_URI); - RuntimePackageImpl theRuntimePackage = (RuntimePackageImpl) (registeredPackage instanceof RuntimePackageImpl ? registeredPackage : RuntimePackage.eINSTANCE); - - // Create package meta-data objects - theExtensiblePackage.createPackageContents(); - theEFacetPackage.createPackageContents(); - theSerializationPackage.createPackageContents(); - theQueryPackage.createPackageContents(); - theRuntimePackage.createPackageContents(); - - // Initialize created meta-data - theExtensiblePackage.initializePackageContents(); - theEFacetPackage.initializePackageContents(); - theSerializationPackage.initializePackageContents(); - theQueryPackage.initializePackageContents(); - theRuntimePackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theExtensiblePackage.freeze(); - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(ExtensiblePackage.eNS_URI, theExtensiblePackage); - return theExtensiblePackage; - } - - /** - * - * - * - * @generated - */ - public EClass getQuery() { - return queryEClass; - } - - /** - * - * - * - * @generated - */ - public EAttribute getQuery_CanHaveSideEffects() { - return (EAttribute) queryEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * - * @generated - */ - public EAttribute getQuery_CanBeCached() { - return (EAttribute) queryEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * - * @generated - */ - public ExtensibleFactory getExtensibleFactory() { - return (ExtensibleFactory) getEFactoryInstance(); - } - - /** - * - * - * - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * - * - * - * @generated - */ - public void createPackageContents() { - if (isCreated) { - return; - } - isCreated = true; - - // Create classes and their features - queryEClass = createEClass(QUERY); - createEAttribute(queryEClass, QUERY__CAN_HAVE_SIDE_EFFECTS); - createEAttribute(queryEClass, QUERY__CAN_BE_CACHED); - } - - /** - * - * - * - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * - * - * - * @generated - */ - public void initializePackageContents() { - if (isInitialized) { - return; - } - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - EcorePackage theEcorePackage = (EcorePackage) EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - - // Initialize classes and features; add operations and parameters - initEClass(queryEClass, Query.class, "Query", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getQuery_CanHaveSideEffects(), theEcorePackage.getEBoolean(), "canHaveSideEffects", null, 0, 1, Query.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getQuery_CanBeCached(), theEcorePackage.getEBoolean(), "canBeCached", null, 0, 1, Query.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - } - -} // ExtensiblePackageImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/impl/QueryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/impl/QueryImpl.java deleted file mode 100644 index 809c6d8e9d3..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/impl/QueryImpl.java +++ /dev/null @@ -1,264 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensiblePackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; - -/** - * - * An implementation of the model object 'Query'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.QueryImpl#isCanHaveSideEffects Can Have Side Effects}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.QueryImpl#isCanBeCached Can Be Cached}
  • - *
- * - * @generated - */ -public abstract class QueryImpl extends EObjectImpl implements Query { - /** - * The default value of the '{@link #isCanHaveSideEffects() Can Have Side Effects}' attribute. - * - * - * - * @see #isCanHaveSideEffects() - * @generated - * @ordered - */ - protected static final boolean CAN_HAVE_SIDE_EFFECTS_EDEFAULT = false; - - /** - * The cached value of the '{@link #isCanHaveSideEffects() Can Have Side Effects}' attribute. - * - * - * - * @see #isCanHaveSideEffects() - * @generated - * @ordered - */ - protected boolean canHaveSideEffects = CAN_HAVE_SIDE_EFFECTS_EDEFAULT; - - /** - * The default value of the '{@link #isCanBeCached() Can Be Cached}' attribute. - * - * - * - * @see #isCanBeCached() - * @generated - * @ordered - */ - protected static final boolean CAN_BE_CACHED_EDEFAULT = false; - - /** - * The cached value of the '{@link #isCanBeCached() Can Be Cached}' attribute. - * - * - * - * @see #isCanBeCached() - * @generated - * @ordered - */ - protected boolean canBeCached = CAN_BE_CACHED_EDEFAULT; - - /** - * - * - * - * @generated - */ - protected QueryImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ExtensiblePackage.Literals.QUERY; - } - - /** - * - * - * - * @generated NOT - */ - public DerivedTypedElement basicGetOwningDerivedTypedElement() { - EObject container = eContainer(); - if (container instanceof DerivedTypedElement) { - return (DerivedTypedElement) container; - } - throw new IllegalStateException("Query must always be contained by a DerivedTypedElement"); - } - - /** - * - * - * - * @generated - */ - public boolean isCanHaveSideEffects() { - return canHaveSideEffects; - } - - /** - * - * - * - * @generated - */ - public void setCanHaveSideEffects(boolean newCanHaveSideEffects) { - boolean oldCanHaveSideEffects = canHaveSideEffects; - canHaveSideEffects = newCanHaveSideEffects; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, ExtensiblePackage.QUERY__CAN_HAVE_SIDE_EFFECTS, oldCanHaveSideEffects, canHaveSideEffects)); - } - } - - /** - * - * - * - * @generated - */ - public boolean isCanBeCached() { - return canBeCached; - } - - /** - * - * - * - * @generated - */ - public void setCanBeCached(boolean newCanBeCached) { - boolean oldCanBeCached = canBeCached; - canBeCached = newCanBeCached; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, ExtensiblePackage.QUERY__CAN_BE_CACHED, oldCanBeCached, canBeCached)); - } - } - - /** - * - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ExtensiblePackage.QUERY__CAN_HAVE_SIDE_EFFECTS: - return isCanHaveSideEffects(); - case ExtensiblePackage.QUERY__CAN_BE_CACHED: - return isCanBeCached(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ExtensiblePackage.QUERY__CAN_HAVE_SIDE_EFFECTS: - setCanHaveSideEffects((Boolean) newValue); - return; - case ExtensiblePackage.QUERY__CAN_BE_CACHED: - setCanBeCached((Boolean) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ExtensiblePackage.QUERY__CAN_HAVE_SIDE_EFFECTS: - setCanHaveSideEffects(CAN_HAVE_SIDE_EFFECTS_EDEFAULT); - return; - case ExtensiblePackage.QUERY__CAN_BE_CACHED: - setCanBeCached(CAN_BE_CACHED_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ExtensiblePackage.QUERY__CAN_HAVE_SIDE_EFFECTS: - return canHaveSideEffects != CAN_HAVE_SIDE_EFFECTS_EDEFAULT; - case ExtensiblePackage.QUERY__CAN_BE_CACHED: - return canBeCached != CAN_BE_CACHED_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) { - return super.toString(); - } - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (canHaveSideEffects: "); //$NON-NLS-1$ - result.append(canHaveSideEffects); - result.append(", canBeCached: "); //$NON-NLS-1$ - result.append(canBeCached); - result.append(')'); - return result.toString(); - } - -} // QueryImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/util/ExtensibleAdapterFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/util/ExtensibleAdapterFactory.java deleted file mode 100644 index 739c559a761..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/util/ExtensibleAdapterFactory.java +++ /dev/null @@ -1,141 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.util; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensiblePackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; - -/** - * - * The Adapter Factory for the model. - * It provides an adapter createXXX method for each class of the model. - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensiblePackage - * @generated - */ -public class ExtensibleAdapterFactory extends AdapterFactoryImpl { - /** - * The cached model package. - * - * - * - * @generated - */ - protected static ExtensiblePackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * - * - * - * @generated - */ - public ExtensibleAdapterFactory() { - if (modelPackage == null) { - modelPackage = ExtensiblePackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * - * This implementation returns true if the object is either the model's package or is an instance object of the model. - * - * - * @return whether this factory is applicable for the type of the object. - * @generated - */ - @Override - public boolean isFactoryForType(Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject) object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch that delegates to the createXXX methods. - * - * - * - * @generated - */ - protected ExtensibleSwitch modelSwitch = new ExtensibleSwitch() { - @Override - public Adapter caseQuery(Query object) { - return createQueryAdapter(); - } - - @Override - public Adapter defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the target. - * - * - * - * @param target - * the object to adapt. - * @return the adapter for the target. - * @generated - */ - @Override - public Adapter createAdapter(Notifier target) { - return modelSwitch.doSwitch((EObject) target); - } - - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query Query}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query - * @generated - */ - public Adapter createQueryAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * - * This default implementation returns null. - * - * - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} // ExtensibleAdapterFactory diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/util/ExtensibleSwitch.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/util/ExtensibleSwitch.java deleted file mode 100644 index dc3879f5dcb..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/extensible/util/ExtensibleSwitch.java +++ /dev/null @@ -1,152 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery - * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query - * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.util; - -import java.util.List; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensiblePackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; - -/** - * - * The Switch for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch(EObject) doSwitch(object)} to invoke the caseXXX method for each class of the model, - * starting with the actual class of the object - * and proceeding up the inheritance hierarchy - * until a non-null result is returned, - * which is the result of the switch. - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensiblePackage - * @generated - */ -public class ExtensibleSwitch { - /** - * The cached model package - * - * - * - * @generated - */ - protected static ExtensiblePackage modelPackage; - - /** - * Creates an instance of the switch. - * - * - * - * @generated - */ - public ExtensibleSwitch() { - if (modelPackage == null) { - modelPackage = ExtensiblePackage.eINSTANCE; - } - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - public T doSwitch(EObject theEObject) { - return doSwitch(theEObject.eClass(), theEObject); - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - protected T doSwitch(EClass theEClass, EObject theEObject) { - if (theEClass.eContainer() == modelPackage) { - return doSwitch(theEClass.getClassifierID(), theEObject); - } else { - List eSuperTypes = theEClass.getESuperTypes(); - return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(eSuperTypes.get(0), theEObject); - } - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - protected T doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case ExtensiblePackage.QUERY: { - Query query = (Query) theEObject; - T result = caseQuery(query); - if (result == null) { - result = defaultCase(theEObject); - } - return result; - } - default: - return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of 'Query'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Query'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseQuery(Query object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EObject'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - public T defaultCase(EObject object) { - return null; - } - -} // ExtensibleSwitch diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/CategoryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/CategoryImpl.java deleted file mode 100644 index 391a7ca265c..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/CategoryImpl.java +++ /dev/null @@ -1,227 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.impl.ENamedElementImpl; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Category; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage; - -/** - * - * An implementation of the model object 'Category'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.CategoryImpl#getDocumentation Documentation}
  • - *
- * - * @generated - */ -public class CategoryImpl extends ENamedElementImpl implements Category { - /** - * The default value of the '{@link #getDocumentation() Documentation}' attribute. - * - * - * - * @see #getDocumentation() - * @generated - * @ordered - */ - protected static final String DOCUMENTATION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDocumentation() Documentation}' attribute. - * - * - * - * @see #getDocumentation() - * @generated - * @ordered - */ - protected String documentation = DOCUMENTATION_EDEFAULT; - - /** - * - * - * - * @generated - */ - protected CategoryImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return EFacetPackage.Literals.CATEGORY; - } - - /** - * - * - * - * @generated - */ - public String getDocumentation() { - return documentation; - } - - /** - * - * - * - * @generated - */ - public void setDocumentation(String newDocumentation) { - String oldDocumentation = documentation; - documentation = newDocumentation; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.CATEGORY__DOCUMENTATION, oldDocumentation, documentation)); - } - } - - /** - * - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case EFacetPackage.CATEGORY__DOCUMENTATION: - return getDocumentation(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case EFacetPackage.CATEGORY__DOCUMENTATION: - setDocumentation((String) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case EFacetPackage.CATEGORY__DOCUMENTATION: - setDocumentation(DOCUMENTATION_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case EFacetPackage.CATEGORY__DOCUMENTATION: - return DOCUMENTATION_EDEFAULT == null ? documentation != null : !DOCUMENTATION_EDEFAULT.equals(documentation); - } - return super.eIsSet(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { - if (baseClass == DocumentedElement.class) { - switch (derivedFeatureID) { - case EFacetPackage.CATEGORY__DOCUMENTATION: - return EFacetPackage.DOCUMENTED_ELEMENT__DOCUMENTATION; - default: - return -1; - } - } - return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); - } - - /** - * - * - * - * @generated - */ - @Override - public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { - if (baseClass == DocumentedElement.class) { - switch (baseFeatureID) { - case EFacetPackage.DOCUMENTED_ELEMENT__DOCUMENTATION: - return EFacetPackage.CATEGORY__DOCUMENTATION; - default: - return -1; - } - } - return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); - } - - /** - * - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) { - return super.toString(); - } - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (documentation: "); //$NON-NLS-1$ - result.append(documentation); - result.append(')'); - return result.toString(); - } - -} // CategoryImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/DerivedTypedElementImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/DerivedTypedElementImpl.java deleted file mode 100644 index ce1340e1979..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/DerivedTypedElementImpl.java +++ /dev/null @@ -1,273 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; - -/** - * - * An implementation of the model object 'Derived Typed Element'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.DerivedTypedElementImpl#getQuery Query}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.DerivedTypedElementImpl#getOverride Override}
  • - *
- * - * @generated - */ -public abstract class DerivedTypedElementImpl extends FacetElementImpl implements DerivedTypedElement { - /** - * The cached value of the '{@link #getQuery() Query}' containment reference. - * - * - * - * @see #getQuery() - * @generated - * @ordered - */ - protected Query query; - - /** - * The cached value of the '{@link #getOverride() Override}' reference. - * - * - * - * @see #getOverride() - * @generated - * @ordered - */ - protected DerivedTypedElement override; - - /** - * - * - * - * @generated - */ - protected DerivedTypedElementImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return EFacetPackage.Literals.DERIVED_TYPED_ELEMENT; - } - - /** - * - * - * - * @generated - */ - public Query getQuery() { - return query; - } - - /** - * - * - * - * @generated - */ - public NotificationChain basicSetQuery(Query newQuery, NotificationChain msgs) { - Query oldQuery = query; - query = newQuery; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EFacetPackage.DERIVED_TYPED_ELEMENT__QUERY, oldQuery, newQuery); - if (msgs == null) { - msgs = notification; - } else { - msgs.add(notification); - } - } - return msgs; - } - - /** - * - * - * - * @generated - */ - public void setQuery(Query newQuery) { - if (newQuery != query) { - NotificationChain msgs = null; - if (query != null) { - msgs = ((InternalEObject) query).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EFacetPackage.DERIVED_TYPED_ELEMENT__QUERY, null, msgs); - } - if (newQuery != null) { - msgs = ((InternalEObject) newQuery).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EFacetPackage.DERIVED_TYPED_ELEMENT__QUERY, null, msgs); - } - msgs = basicSetQuery(newQuery, msgs); - if (msgs != null) { - msgs.dispatch(); - } - } else if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.DERIVED_TYPED_ELEMENT__QUERY, newQuery, newQuery)); - } - } - - /** - * - * - * - * @generated - */ - public DerivedTypedElement getOverride() { - if (override != null && override.eIsProxy()) { - InternalEObject oldOverride = (InternalEObject) override; - override = (DerivedTypedElement) eResolveProxy(oldOverride); - if (override != oldOverride) { - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.RESOLVE, EFacetPackage.DERIVED_TYPED_ELEMENT__OVERRIDE, oldOverride, override)); - } - } - } - return override; - } - - /** - * - * - * - * @generated - */ - public DerivedTypedElement basicGetOverride() { - return override; - } - - /** - * - * - * - * @generated - */ - public void setOverride(DerivedTypedElement newOverride) { - DerivedTypedElement oldOverride = override; - override = newOverride; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.DERIVED_TYPED_ELEMENT__OVERRIDE, oldOverride, override)); - } - } - - /** - * - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case EFacetPackage.DERIVED_TYPED_ELEMENT__QUERY: - return basicSetQuery(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case EFacetPackage.DERIVED_TYPED_ELEMENT__QUERY: - return getQuery(); - case EFacetPackage.DERIVED_TYPED_ELEMENT__OVERRIDE: - if (resolve) { - return getOverride(); - } - return basicGetOverride(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case EFacetPackage.DERIVED_TYPED_ELEMENT__QUERY: - setQuery((Query) newValue); - return; - case EFacetPackage.DERIVED_TYPED_ELEMENT__OVERRIDE: - setOverride((DerivedTypedElement) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case EFacetPackage.DERIVED_TYPED_ELEMENT__QUERY: - setQuery((Query) null); - return; - case EFacetPackage.DERIVED_TYPED_ELEMENT__OVERRIDE: - setOverride((DerivedTypedElement) null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case EFacetPackage.DERIVED_TYPED_ELEMENT__QUERY: - return query != null; - case EFacetPackage.DERIVED_TYPED_ELEMENT__OVERRIDE: - return override != null; - } - return super.eIsSet(featureID); - } - -} // DerivedTypedElementImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/DocumentedElementImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/DocumentedElementImpl.java deleted file mode 100644 index 2b2f4f5f011..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/DocumentedElementImpl.java +++ /dev/null @@ -1,188 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage; - -/** - * - * An implementation of the model object 'Documented Element'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.DocumentedElementImpl#getDocumentation Documentation}
  • - *
- * - * @generated - */ -public class DocumentedElementImpl extends EObjectImpl implements DocumentedElement { - /** - * The default value of the '{@link #getDocumentation() Documentation}' attribute. - * - * - * - * @see #getDocumentation() - * @generated - * @ordered - */ - protected static final String DOCUMENTATION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDocumentation() Documentation}' attribute. - * - * - * - * @see #getDocumentation() - * @generated - * @ordered - */ - protected String documentation = DOCUMENTATION_EDEFAULT; - - /** - * - * - * - * @generated - */ - protected DocumentedElementImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return EFacetPackage.Literals.DOCUMENTED_ELEMENT; - } - - /** - * - * - * - * @generated - */ - public String getDocumentation() { - return documentation; - } - - /** - * - * - * - * @generated - */ - public void setDocumentation(String newDocumentation) { - String oldDocumentation = documentation; - documentation = newDocumentation; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.DOCUMENTED_ELEMENT__DOCUMENTATION, oldDocumentation, documentation)); - } - } - - /** - * - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case EFacetPackage.DOCUMENTED_ELEMENT__DOCUMENTATION: - return getDocumentation(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case EFacetPackage.DOCUMENTED_ELEMENT__DOCUMENTATION: - setDocumentation((String) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case EFacetPackage.DOCUMENTED_ELEMENT__DOCUMENTATION: - setDocumentation(DOCUMENTATION_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case EFacetPackage.DOCUMENTED_ELEMENT__DOCUMENTATION: - return DOCUMENTATION_EDEFAULT == null ? documentation != null : !DOCUMENTATION_EDEFAULT.equals(documentation); - } - return super.eIsSet(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) { - return super.toString(); - } - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (documentation: "); //$NON-NLS-1$ - result.append(documentation); - result.append(')'); - return result.toString(); - } - -} // DocumentedElementImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/EFacetFactoryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/EFacetFactoryImpl.java deleted file mode 100644 index 41e6a607b71..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/EFacetFactoryImpl.java +++ /dev/null @@ -1,268 +0,0 @@ -/** - * Copyright (c) 2011, 2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EDataType; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.emf.ecore.plugin.EcorePlugin; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Category; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetFactory; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetAttribute; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetOperation; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetReference; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetSet; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue; - -/** - * - * An implementation of the model Factory. - * - * - * @generated - */ -public class EFacetFactoryImpl extends EFactoryImpl implements EFacetFactory { - /** - * Creates the default factory implementation. - * - * - * - * @generated - */ - public static EFacetFactory init() { - try { - EFacetFactory theEFacetFactory = (EFacetFactory) EPackage.Registry.INSTANCE.getEFactory(EFacetPackage.eNS_URI); - if (theEFacetFactory != null) { - return theEFacetFactory; - } - } catch (Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new EFacetFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * - * - * @generated - */ - public EFacetFactoryImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case EFacetPackage.FACET_ATTRIBUTE: - return createFacetAttribute(); - case EFacetPackage.FACET_REFERENCE: - return createFacetReference(); - case EFacetPackage.FACET_OPERATION: - return createFacetOperation(); - case EFacetPackage.FACET_SET: - return createFacetSet(); - case EFacetPackage.FACET: - return createFacet(); - case EFacetPackage.CATEGORY: - return createCategory(); - case EFacetPackage.PARAMETER_VALUE: - return createParameterValue(); - case EFacetPackage.DOCUMENTED_ELEMENT: - return createDocumentedElement(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ - } - } - - /** - * - * - * - * @generated - */ - @Override - public Object createFromString(EDataType eDataType, String initialValue) { - switch (eDataType.getClassifierID()) { - case EFacetPackage.RESOURCE: - return createResourceFromString(eDataType, initialValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ - } - } - - /** - * - * - * - * @generated - */ - @Override - public String convertToString(EDataType eDataType, Object instanceValue) { - switch (eDataType.getClassifierID()) { - case EFacetPackage.RESOURCE: - return convertResourceToString(eDataType, instanceValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ - } - } - - /** - * - * - * - * @generated - */ - public FacetAttribute createFacetAttribute() { - FacetAttributeImpl facetAttribute = new FacetAttributeImpl(); - return facetAttribute; - } - - /** - * - * - * - * @generated - */ - public FacetReference createFacetReference() { - FacetReferenceImpl facetReference = new FacetReferenceImpl(); - return facetReference; - } - - /** - * - * - * - * @generated - */ - public FacetOperation createFacetOperation() { - FacetOperationImpl facetOperation = new FacetOperationImpl(); - return facetOperation; - } - - /** - * - * - * - * @generated - */ - public FacetSet createFacetSet() { - FacetSetImpl facetSet = new FacetSetImpl(); - return facetSet; - } - - /** - * - * - * - * @generated - */ - public Facet createFacet() { - FacetImpl facet = new FacetImpl(); - return facet; - } - - /** - * - * - * - * @generated - */ - public Category createCategory() { - CategoryImpl category = new CategoryImpl(); - return category; - } - - /** - * - * - * - * @generated - */ - public ParameterValue createParameterValue() { - ParameterValueImpl parameterValue = new ParameterValueImpl(); - return parameterValue; - } - - /** - * - * - * - * @generated - */ - public DocumentedElement createDocumentedElement() { - DocumentedElementImpl documentedElement = new DocumentedElementImpl(); - return documentedElement; - } - - /** - * - * - * - * @generated - */ - public Resource createResourceFromString(EDataType eDataType, String initialValue) { - return (Resource) super.createFromString(eDataType, initialValue); - } - - /** - * - * - * - * @generated - */ - public String convertResourceToString(EDataType eDataType, Object instanceValue) { - return super.convertToString(eDataType, instanceValue); - } - - /** - * - * - * - * @generated - */ - public EFacetPackage getEFacetPackage() { - return (EFacetPackage) getEPackage(); - } - - /** - * - * - * - * @deprecated - * @generated - */ - @Deprecated - public static EFacetPackage getPackage() { - return EFacetPackage.eINSTANCE; - } - -} // EFacetFactoryImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/EFacetPackageImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/EFacetPackageImpl.java deleted file mode 100644 index e258220b696..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/EFacetPackageImpl.java +++ /dev/null @@ -1,766 +0,0 @@ -/** - * Copyright (c) 2011, 2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - * Gregoire Dupe (Mia-Software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. - * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning - * Gregoire Dupe (Mia-Software) - Bug 376576 - [EFacet] Change the multiplicity of Facet::extendedFacet - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EDataType; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.EcorePackage; -import org.eclipse.emf.ecore.impl.EPackageImpl; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Category; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetFactory; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetAttribute; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetElement; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetOperation; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetReference; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetSet; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensiblePackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.ExtensiblePackageImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.RuntimePackageImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl; - -/** - * - * An implementation of the model Package. - * - * - * @generated - */ -public class EFacetPackageImpl extends EPackageImpl implements EFacetPackage { - /** - * - * - * - * @generated - */ - private EClass facetAttributeEClass = null; - - /** - * - * - * - * @generated - */ - private EClass facetReferenceEClass = null; - - /** - * - * - * - * @generated - */ - private EClass facetOperationEClass = null; - - /** - * - * - * - * @generated - */ - private EClass facetSetEClass = null; - - /** - * - * - * - * @generated - */ - private EClass facetEClass = null; - - /** - * - * - * - * @generated - */ - private EClass categoryEClass = null; - - /** - * - * - * - * @generated - */ - private EClass facetElementEClass = null; - - /** - * - * - * - * @generated - */ - private EClass derivedTypedElementEClass = null; - - /** - * - * - * - * @generated - */ - private EClass parameterValueEClass = null; - - /** - * - * - * - * @generated - */ - private EClass documentedElementEClass = null; - - /** - * - * - * - * @generated - */ - private EDataType resourceEDataType = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - *

- * Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage#eNS_URI - * @see #init() - * @generated - */ - private EFacetPackageImpl() { - super(eNS_URI, EFacetFactory.eINSTANCE); - } - - /** - * - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - * - *

- * This method is used to initialize {@link EFacetPackage#eINSTANCE} when that field is accessed. - * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. - * - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static EFacetPackage init() { - if (isInited) { - return (EFacetPackage) EPackage.Registry.INSTANCE.getEPackage(EFacetPackage.eNS_URI); - } - - // Obtain or create and register package - Object registeredEFacetPackage = EPackage.Registry.INSTANCE.get(eNS_URI); - EFacetPackageImpl theEFacetPackage = registeredEFacetPackage instanceof EFacetPackageImpl ? (EFacetPackageImpl) registeredEFacetPackage : new EFacetPackageImpl(); - - isInited = true; - - // Initialize simple dependencies - EcorePackage.eINSTANCE.eClass(); - - // Obtain or create and register interdependencies - Object registeredPackage = EPackage.Registry.INSTANCE.getEPackage(SerializationPackage.eNS_URI); - SerializationPackageImpl theSerializationPackage = (SerializationPackageImpl) (registeredPackage instanceof SerializationPackageImpl ? registeredPackage : SerializationPackage.eINSTANCE); - registeredPackage = EPackage.Registry.INSTANCE.getEPackage(ExtensiblePackage.eNS_URI); - ExtensiblePackageImpl theExtensiblePackage = (ExtensiblePackageImpl) (registeredPackage instanceof ExtensiblePackageImpl ? registeredPackage : ExtensiblePackage.eINSTANCE); - registeredPackage = EPackage.Registry.INSTANCE.getEPackage(QueryPackage.eNS_URI); - QueryPackageImpl theQueryPackage = (QueryPackageImpl) (registeredPackage instanceof QueryPackageImpl ? registeredPackage : QueryPackage.eINSTANCE); - registeredPackage = EPackage.Registry.INSTANCE.getEPackage(RuntimePackage.eNS_URI); - RuntimePackageImpl theRuntimePackage = (RuntimePackageImpl) (registeredPackage instanceof RuntimePackageImpl ? registeredPackage : RuntimePackage.eINSTANCE); - - // Create package meta-data objects - theEFacetPackage.createPackageContents(); - theSerializationPackage.createPackageContents(); - theExtensiblePackage.createPackageContents(); - theQueryPackage.createPackageContents(); - theRuntimePackage.createPackageContents(); - - // Initialize created meta-data - theEFacetPackage.initializePackageContents(); - theSerializationPackage.initializePackageContents(); - theExtensiblePackage.initializePackageContents(); - theQueryPackage.initializePackageContents(); - theRuntimePackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theEFacetPackage.freeze(); - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(EFacetPackage.eNS_URI, theEFacetPackage); - return theEFacetPackage; - } - - /** - * - * - * - * @generated - */ - public EClass getFacetAttribute() { - return facetAttributeEClass; - } - - /** - * - * - * - * @generated - */ - public EClass getFacetReference() { - return facetReferenceEClass; - } - - /** - * - * - * - * @generated - */ - public EClass getFacetOperation() { - return facetOperationEClass; - } - - /** - * - * - * - * @generated - */ - public EClass getFacetSet() { - return facetSetEClass; - } - - /** - * - * - * - * @generated - */ - public EReference getFacetSet_Categories() { - return (EReference) facetSetEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * - * @generated - */ - public EClass getFacet() { - return facetEClass; - } - - /** - * - * - * - * @generated - */ - public EReference getFacet_ExtendedMetaclass() { - return (EReference) facetEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * - * @generated - */ - public EReference getFacet_FacetElements() { - return (EReference) facetEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * - * @generated - */ - public EReference getFacet_FacetOperations() { - return (EReference) facetEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * - * @generated - */ - public EReference getFacet_ConformanceTypedElement() { - return (EReference) facetEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * - * @generated - */ - public EReference getFacet_ExtendedFacets() { - return (EReference) facetEClass.getEStructuralFeatures().get(4); - } - - /** - * - * - * - * @generated - * @since 1.2 - */ - public EReference getFacet_AllTypedElements() { - return (EReference) facetEClass.getEStructuralFeatures().get(5); - } - - /** - * - * - * - * @generated - * @since 1.2 - */ - public EReference getFacet_AllFacetOperations() { - return (EReference) facetEClass.getEStructuralFeatures().get(6); - } - - /** - * - * - * - * @generated - * @since 1.2 - */ - public EReference getFacet_AllFacetElements() { - return (EReference) facetEClass.getEStructuralFeatures().get(7); - } - - /** - * - * - * - * @generated - */ - public EClass getCategory() { - return categoryEClass; - } - - /** - * - * - * - * @generated - */ - public EClass getFacetElement() { - return facetElementEClass; - } - - /** - * - * - * - * @generated - */ - public EReference getFacetElement_Categories() { - return (EReference) facetElementEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * - * @generated - */ - public EClass getDerivedTypedElement() { - return derivedTypedElementEClass; - } - - /** - * - * - * - * @generated - */ - public EReference getDerivedTypedElement_Query() { - return (EReference) derivedTypedElementEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * - * @generated - */ - public EReference getDerivedTypedElement_Override() { - return (EReference) derivedTypedElementEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * - * @generated - */ - public EClass getParameterValue() { - return parameterValueEClass; - } - - /** - * - * - * - * @generated - */ - public EReference getParameterValue_Parameter() { - return (EReference) parameterValueEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * - * @generated - */ - public EAttribute getParameterValue_Value() { - return (EAttribute) parameterValueEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * - * @generated - */ - public EClass getDocumentedElement() { - return documentedElementEClass; - } - - /** - * - * - * - * @generated - */ - public EAttribute getDocumentedElement_Documentation() { - return (EAttribute) documentedElementEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * - * @generated - */ - public EDataType getResource() { - return resourceEDataType; - } - - /** - * - * - * - * @generated - */ - public EFacetFactory getEFacetFactory() { - return (EFacetFactory) getEFactoryInstance(); - } - - /** - * - * - * - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * - * - * - * @generated - */ - public void createPackageContents() { - if (isCreated) { - return; - } - isCreated = true; - - // Create classes and their features - facetAttributeEClass = createEClass(FACET_ATTRIBUTE); - - facetReferenceEClass = createEClass(FACET_REFERENCE); - - facetOperationEClass = createEClass(FACET_OPERATION); - - facetSetEClass = createEClass(FACET_SET); - createEReference(facetSetEClass, FACET_SET__CATEGORIES); - - facetEClass = createEClass(FACET); - createEReference(facetEClass, FACET__EXTENDED_METACLASS); - createEReference(facetEClass, FACET__FACET_ELEMENTS); - createEReference(facetEClass, FACET__FACET_OPERATIONS); - createEReference(facetEClass, FACET__CONFORMANCE_TYPED_ELEMENT); - createEReference(facetEClass, FACET__EXTENDED_FACETS); - createEReference(facetEClass, FACET__ALL_TYPED_ELEMENTS); - createEReference(facetEClass, FACET__ALL_FACET_OPERATIONS); - createEReference(facetEClass, FACET__ALL_FACET_ELEMENTS); - - categoryEClass = createEClass(CATEGORY); - - facetElementEClass = createEClass(FACET_ELEMENT); - createEReference(facetElementEClass, FACET_ELEMENT__CATEGORIES); - - derivedTypedElementEClass = createEClass(DERIVED_TYPED_ELEMENT); - createEReference(derivedTypedElementEClass, DERIVED_TYPED_ELEMENT__QUERY); - createEReference(derivedTypedElementEClass, DERIVED_TYPED_ELEMENT__OVERRIDE); - - parameterValueEClass = createEClass(PARAMETER_VALUE); - createEReference(parameterValueEClass, PARAMETER_VALUE__PARAMETER); - createEAttribute(parameterValueEClass, PARAMETER_VALUE__VALUE); - - documentedElementEClass = createEClass(DOCUMENTED_ELEMENT); - createEAttribute(documentedElementEClass, DOCUMENTED_ELEMENT__DOCUMENTATION); - - // Create data types - resourceEDataType = createEDataType(RESOURCE); - } - - /** - * - * - * - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * - * - * - * @generated - */ - public void initializePackageContents() { - if (isInitialized) { - return; - } - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - SerializationPackage theSerializationPackage = (SerializationPackage) EPackage.Registry.INSTANCE.getEPackage(SerializationPackage.eNS_URI); - ExtensiblePackage theExtensiblePackage = (ExtensiblePackage) EPackage.Registry.INSTANCE.getEPackage(ExtensiblePackage.eNS_URI); - QueryPackage theQueryPackage = (QueryPackage) EPackage.Registry.INSTANCE.getEPackage(QueryPackage.eNS_URI); - RuntimePackage theRuntimePackage = (RuntimePackage) EPackage.Registry.INSTANCE.getEPackage(RuntimePackage.eNS_URI); - EcorePackage theEcorePackage = (EcorePackage) EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); - - // Add subpackages - getESubpackages().add(theSerializationPackage); - getESubpackages().add(theExtensiblePackage); - getESubpackages().add(theQueryPackage); - getESubpackages().add(theRuntimePackage); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - facetAttributeEClass.getESuperTypes().add(theEcorePackage.getEAttribute()); - facetAttributeEClass.getESuperTypes().add(this.getDerivedTypedElement()); - facetReferenceEClass.getESuperTypes().add(theEcorePackage.getEReference()); - facetReferenceEClass.getESuperTypes().add(this.getDerivedTypedElement()); - facetOperationEClass.getESuperTypes().add(theEcorePackage.getEOperation()); - facetOperationEClass.getESuperTypes().add(this.getDerivedTypedElement()); - facetSetEClass.getESuperTypes().add(theEcorePackage.getEPackage()); - facetSetEClass.getESuperTypes().add(this.getDocumentedElement()); - facetEClass.getESuperTypes().add(theEcorePackage.getEClassifier()); - facetEClass.getESuperTypes().add(this.getDocumentedElement()); - categoryEClass.getESuperTypes().add(theEcorePackage.getENamedElement()); - categoryEClass.getESuperTypes().add(this.getDocumentedElement()); - facetElementEClass.getESuperTypes().add(theEcorePackage.getETypedElement()); - facetElementEClass.getESuperTypes().add(this.getDocumentedElement()); - derivedTypedElementEClass.getESuperTypes().add(this.getFacetElement()); - - // Initialize classes and features; add operations and parameters - initEClass(facetAttributeEClass, FacetAttribute.class, "FacetAttribute", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - - initEClass(facetReferenceEClass, FacetReference.class, "FacetReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - - initEClass(facetOperationEClass, FacetOperation.class, "FacetOperation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - - initEClass(facetSetEClass, FacetSet.class, "FacetSet", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEReference(getFacetSet_Categories(), this.getCategory(), null, "categories", null, 0, -1, FacetSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - addEOperation(facetSetEClass, this.getFacetSet(), "getFacetSets", 0, -1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$ - - initEClass(facetEClass, Facet.class, "Facet", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEReference(getFacet_ExtendedMetaclass(), theEcorePackage.getEClass(), null, "extendedMetaclass", null, 0, 1, Facet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, //$NON-NLS-1$ - IS_ORDERED); - initEReference(getFacet_FacetElements(), theEcorePackage.getEStructuralFeature(), null, "facetElements", null, 0, -1, Facet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, //$NON-NLS-1$ - IS_ORDERED); - initEReference(getFacet_FacetOperations(), this.getFacetOperation(), null, "facetOperations", null, 0, -1, Facet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getFacet_ConformanceTypedElement(), theEcorePackage.getETypedElement(), null, "conformanceTypedElement", null, 0, 1, Facet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, //$NON-NLS-1$ - !IS_DERIVED, IS_ORDERED); - initEReference(getFacet_ExtendedFacets(), this.getFacet(), null, "extendedFacets", null, 0, -1, Facet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getFacet_AllTypedElements(), theEcorePackage.getETypedElement(), null, "allTypedElements", null, 0, -1, Facet.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, //$NON-NLS-1$ - IS_ORDERED); - initEReference(getFacet_AllFacetOperations(), this.getFacetOperation(), null, "allFacetOperations", null, 0, -1, Facet.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, //$NON-NLS-1$ - IS_ORDERED); - initEReference(getFacet_AllFacetElements(), theEcorePackage.getEStructuralFeature(), null, "allFacetElements", null, 0, -1, Facet.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, //$NON-NLS-1$ - IS_DERIVED, IS_ORDERED); - - initEClass(categoryEClass, Category.class, "Category", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - - initEClass(facetElementEClass, FacetElement.class, "FacetElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEReference(getFacetElement_Categories(), this.getCategory(), null, "categories", null, 0, -1, FacetElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(derivedTypedElementEClass, DerivedTypedElement.class, "DerivedTypedElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEReference(getDerivedTypedElement_Query(), theExtensiblePackage.getQuery(), null, "query", null, 1, 1, DerivedTypedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, //$NON-NLS-1$ - IS_ORDERED); - initEReference(getDerivedTypedElement_Override(), this.getDerivedTypedElement(), null, "override", null, 0, 1, DerivedTypedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, //$NON-NLS-1$ - !IS_DERIVED, IS_ORDERED); - - initEClass(parameterValueEClass, ParameterValue.class, "ParameterValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEReference(getParameterValue_Parameter(), theEcorePackage.getEParameter(), null, "parameter", null, 1, 1, ParameterValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, //$NON-NLS-1$ - IS_ORDERED); - initEAttribute(getParameterValue_Value(), theEcorePackage.getEJavaObject(), "value", null, 0, 1, ParameterValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(documentedElementEClass, DocumentedElement.class, "DocumentedElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getDocumentedElement_Documentation(), theEcorePackage.getEString(), "documentation", null, 0, 1, DocumentedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - // Initialize data types - initEDataType(resourceEDataType, Resource.class, "Resource", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - - // Create resource - createResource(eNS_URI); - - // Create annotations - // http://www.eclipse.org/emf/2002/Ecore - createEcoreAnnotations(); - // GenModel - createGenModel_1Annotations(); - // org.eclipse.ocl.ecore.OCL - createOrgAnnotations(); - } - - /** - * Initializes the annotations for http://www.eclipse.org/emf/2002/Ecore. - * - * - * - * @generated - */ - protected void createEcoreAnnotations() { - String source = "http://www.eclipse.org/emf/2002/Ecore"; //$NON-NLS-1$ - addAnnotation(this, - source, - new String[] { - "validationDelegates", "org.eclipse.ocl.ecore.OCL" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation(facetEClass, - source, - new String[] { - "validationDelegates", "( self.query.scope = self.facet.extendedMetaClass ) and ( self.query.name = self.name )" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation(facetEClass, - source, - new String[] { - "validationDelegates", "self.conformanceQuery.scope = self.extendedMetaClass" //$NON-NLS-1$ //$NON-NLS-2$ - }); - } - - /** - * Initializes the annotations for GenModel. - * - * - * - * @generated - */ - protected void createGenModel_1Annotations() { - String source = "GenModel"; //$NON-NLS-1$ - addAnnotation(facetSetEClass, - source, - new String[] { - "documentation", "A \"FacetSet\" is the root element of a facet model. It contains a list of \"Facet\"." //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation(facetSetEClass.getEOperations().get(0), - source, - new String[] { - "documentation", "The FacetSets aggregated by this FacetSet (this operation is overridden in Aggregate in the aggregate metamodel)." //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation(getFacet_ExtendedMetaclass(), - source, - new String[] { - "documentation", "The \"extendedMetaclass\" reference references the virtually subtyped EClass." //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation(getFacet_ExtendedFacets(), - source, - new String[] { - "documentation", "A facet can extend other facets. If A facet A can extend a facet B. In this case an eObject conforms to the facet A if it matches conformance evaluation of A and B. " //$NON-NLS-1$ //$NON-NLS-2$ - }); - } - - /** - * Initializes the annotations for org.eclipse.ocl.ecore.OCL. - * - * - * - * @generated - */ - protected void createOrgAnnotations() { - String source = "org.eclipse.ocl.ecore.OCL"; //$NON-NLS-1$ - addAnnotation(facetEClass, - source, - new String[] { - "body", "not(self.container().oclCastAs(FacetSet).facets->exists(f|f.extendedMetaClass.container() <> self.extendedMetaClass.container() ))" //$NON-NLS-1$ //$NON-NLS-2$ - }); - } - -} // EFacetPackageImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetAttributeImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetAttributeImpl.java deleted file mode 100644 index 7eb738e85ce..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetAttributeImpl.java +++ /dev/null @@ -1,469 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.EAttributeImpl; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.EObjectResolvingEList; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Category; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetAttribute; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetElement; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; - -/** - * - * An implementation of the model object 'Facet Attribute'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetAttributeImpl#getDocumentation Documentation}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetAttributeImpl#getCategories Categories}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetAttributeImpl#getQuery Query}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetAttributeImpl#getOverride Override}
  • - *
- * - * @generated - */ -public class FacetAttributeImpl extends EAttributeImpl implements FacetAttribute { - /** - * The default value of the '{@link #getDocumentation() Documentation}' attribute. - * - * - * - * @see #getDocumentation() - * @generated - * @ordered - */ - protected static final String DOCUMENTATION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDocumentation() Documentation}' attribute. - * - * - * - * @see #getDocumentation() - * @generated - * @ordered - */ - protected String documentation = DOCUMENTATION_EDEFAULT; - - /** - * The cached value of the '{@link #getCategories() Categories}' reference list. - * - * - * - * @see #getCategories() - * @generated - * @ordered - */ - protected EList categories; - - /** - * The cached value of the '{@link #getQuery() Query}' containment reference. - * - * - * - * @see #getQuery() - * @generated - * @ordered - */ - protected Query query; - - /** - * The cached value of the '{@link #getOverride() Override}' reference. - * - * - * - * @see #getOverride() - * @generated - * @ordered - */ - protected DerivedTypedElement override; - - /** - * - * - * - * @generated - */ - protected FacetAttributeImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return EFacetPackage.Literals.FACET_ATTRIBUTE; - } - - /** - * - * - * - * @generated - */ - public String getDocumentation() { - return documentation; - } - - /** - * - * - * - * @generated - */ - public void setDocumentation(String newDocumentation) { - String oldDocumentation = documentation; - documentation = newDocumentation; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.FACET_ATTRIBUTE__DOCUMENTATION, oldDocumentation, documentation)); - } - } - - /** - * - * - * - * @generated - */ - public EList getCategories() { - if (categories == null) { - categories = new EObjectResolvingEList(Category.class, this, EFacetPackage.FACET_ATTRIBUTE__CATEGORIES); - } - return categories; - } - - /** - * - * - * - * @generated - */ - public Query getQuery() { - return query; - } - - /** - * - * - * - * @generated - */ - public NotificationChain basicSetQuery(Query newQuery, NotificationChain msgs) { - Query oldQuery = query; - query = newQuery; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EFacetPackage.FACET_ATTRIBUTE__QUERY, oldQuery, newQuery); - if (msgs == null) { - msgs = notification; - } else { - msgs.add(notification); - } - } - return msgs; - } - - /** - * - * - * - * @generated - */ - public void setQuery(Query newQuery) { - if (newQuery != query) { - NotificationChain msgs = null; - if (query != null) { - msgs = ((InternalEObject) query).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EFacetPackage.FACET_ATTRIBUTE__QUERY, null, msgs); - } - if (newQuery != null) { - msgs = ((InternalEObject) newQuery).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EFacetPackage.FACET_ATTRIBUTE__QUERY, null, msgs); - } - msgs = basicSetQuery(newQuery, msgs); - if (msgs != null) { - msgs.dispatch(); - } - } else if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.FACET_ATTRIBUTE__QUERY, newQuery, newQuery)); - } - } - - /** - * - * - * - * @generated - */ - public DerivedTypedElement getOverride() { - if (override != null && override.eIsProxy()) { - InternalEObject oldOverride = (InternalEObject) override; - override = (DerivedTypedElement) eResolveProxy(oldOverride); - if (override != oldOverride) { - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.RESOLVE, EFacetPackage.FACET_ATTRIBUTE__OVERRIDE, oldOverride, override)); - } - } - } - return override; - } - - /** - * - * - * - * @generated - */ - public DerivedTypedElement basicGetOverride() { - return override; - } - - /** - * - * - * - * @generated - */ - public void setOverride(DerivedTypedElement newOverride) { - DerivedTypedElement oldOverride = override; - override = newOverride; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.FACET_ATTRIBUTE__OVERRIDE, oldOverride, override)); - } - } - - /** - * - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case EFacetPackage.FACET_ATTRIBUTE__QUERY: - return basicSetQuery(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case EFacetPackage.FACET_ATTRIBUTE__DOCUMENTATION: - return getDocumentation(); - case EFacetPackage.FACET_ATTRIBUTE__CATEGORIES: - return getCategories(); - case EFacetPackage.FACET_ATTRIBUTE__QUERY: - return getQuery(); - case EFacetPackage.FACET_ATTRIBUTE__OVERRIDE: - if (resolve) { - return getOverride(); - } - return basicGetOverride(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case EFacetPackage.FACET_ATTRIBUTE__DOCUMENTATION: - setDocumentation((String) newValue); - return; - case EFacetPackage.FACET_ATTRIBUTE__CATEGORIES: - getCategories().clear(); - getCategories().addAll((Collection) newValue); - return; - case EFacetPackage.FACET_ATTRIBUTE__QUERY: - setQuery((Query) newValue); - return; - case EFacetPackage.FACET_ATTRIBUTE__OVERRIDE: - setOverride((DerivedTypedElement) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case EFacetPackage.FACET_ATTRIBUTE__DOCUMENTATION: - setDocumentation(DOCUMENTATION_EDEFAULT); - return; - case EFacetPackage.FACET_ATTRIBUTE__CATEGORIES: - getCategories().clear(); - return; - case EFacetPackage.FACET_ATTRIBUTE__QUERY: - setQuery((Query) null); - return; - case EFacetPackage.FACET_ATTRIBUTE__OVERRIDE: - setOverride((DerivedTypedElement) null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case EFacetPackage.FACET_ATTRIBUTE__DOCUMENTATION: - return DOCUMENTATION_EDEFAULT == null ? documentation != null : !DOCUMENTATION_EDEFAULT.equals(documentation); - case EFacetPackage.FACET_ATTRIBUTE__CATEGORIES: - return categories != null && !categories.isEmpty(); - case EFacetPackage.FACET_ATTRIBUTE__QUERY: - return query != null; - case EFacetPackage.FACET_ATTRIBUTE__OVERRIDE: - return override != null; - } - return super.eIsSet(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { - if (baseClass == DocumentedElement.class) { - switch (derivedFeatureID) { - case EFacetPackage.FACET_ATTRIBUTE__DOCUMENTATION: - return EFacetPackage.DOCUMENTED_ELEMENT__DOCUMENTATION; - default: - return -1; - } - } - if (baseClass == FacetElement.class) { - switch (derivedFeatureID) { - case EFacetPackage.FACET_ATTRIBUTE__CATEGORIES: - return EFacetPackage.FACET_ELEMENT__CATEGORIES; - default: - return -1; - } - } - if (baseClass == DerivedTypedElement.class) { - switch (derivedFeatureID) { - case EFacetPackage.FACET_ATTRIBUTE__QUERY: - return EFacetPackage.DERIVED_TYPED_ELEMENT__QUERY; - case EFacetPackage.FACET_ATTRIBUTE__OVERRIDE: - return EFacetPackage.DERIVED_TYPED_ELEMENT__OVERRIDE; - default: - return -1; - } - } - return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); - } - - /** - * - * - * - * @generated - */ - @Override - public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { - if (baseClass == DocumentedElement.class) { - switch (baseFeatureID) { - case EFacetPackage.DOCUMENTED_ELEMENT__DOCUMENTATION: - return EFacetPackage.FACET_ATTRIBUTE__DOCUMENTATION; - default: - return -1; - } - } - if (baseClass == FacetElement.class) { - switch (baseFeatureID) { - case EFacetPackage.FACET_ELEMENT__CATEGORIES: - return EFacetPackage.FACET_ATTRIBUTE__CATEGORIES; - default: - return -1; - } - } - if (baseClass == DerivedTypedElement.class) { - switch (baseFeatureID) { - case EFacetPackage.DERIVED_TYPED_ELEMENT__QUERY: - return EFacetPackage.FACET_ATTRIBUTE__QUERY; - case EFacetPackage.DERIVED_TYPED_ELEMENT__OVERRIDE: - return EFacetPackage.FACET_ATTRIBUTE__OVERRIDE; - default: - return -1; - } - } - return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); - } - - /** - * - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) { - return super.toString(); - } - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (documentation: "); //$NON-NLS-1$ - result.append(documentation); - result.append(')'); - return result.toString(); - } - -} // FacetAttributeImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetElementImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetElementImpl.java deleted file mode 100644 index 693b843ac26..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetElementImpl.java +++ /dev/null @@ -1,269 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.ETypedElementImpl; -import org.eclipse.emf.ecore.util.EObjectResolvingEList; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Category; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetElement; - -/** - * - * An implementation of the model object 'Facet Element'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetElementImpl#getDocumentation Documentation}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetElementImpl#getCategories Categories}
  • - *
- * - * @generated - */ -public abstract class FacetElementImpl extends ETypedElementImpl implements FacetElement { - /** - * The default value of the '{@link #getDocumentation() Documentation}' attribute. - * - * - * - * @see #getDocumentation() - * @generated - * @ordered - */ - protected static final String DOCUMENTATION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDocumentation() Documentation}' attribute. - * - * - * - * @see #getDocumentation() - * @generated - * @ordered - */ - protected String documentation = DOCUMENTATION_EDEFAULT; - - /** - * The cached value of the '{@link #getCategories() Categories}' reference list. - * - * - * - * @see #getCategories() - * @generated - * @ordered - */ - protected EList categories; - - /** - * - * - * - * @generated - */ - protected FacetElementImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return EFacetPackage.Literals.FACET_ELEMENT; - } - - /** - * - * - * - * @generated - */ - public String getDocumentation() { - return documentation; - } - - /** - * - * - * - * @generated - */ - public void setDocumentation(String newDocumentation) { - String oldDocumentation = documentation; - documentation = newDocumentation; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.FACET_ELEMENT__DOCUMENTATION, oldDocumentation, documentation)); - } - } - - /** - * - * - * - * @generated - */ - public EList getCategories() { - if (categories == null) { - categories = new EObjectResolvingEList(Category.class, this, EFacetPackage.FACET_ELEMENT__CATEGORIES); - } - return categories; - } - - /** - * - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case EFacetPackage.FACET_ELEMENT__DOCUMENTATION: - return getDocumentation(); - case EFacetPackage.FACET_ELEMENT__CATEGORIES: - return getCategories(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case EFacetPackage.FACET_ELEMENT__DOCUMENTATION: - setDocumentation((String) newValue); - return; - case EFacetPackage.FACET_ELEMENT__CATEGORIES: - getCategories().clear(); - getCategories().addAll((Collection) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case EFacetPackage.FACET_ELEMENT__DOCUMENTATION: - setDocumentation(DOCUMENTATION_EDEFAULT); - return; - case EFacetPackage.FACET_ELEMENT__CATEGORIES: - getCategories().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case EFacetPackage.FACET_ELEMENT__DOCUMENTATION: - return DOCUMENTATION_EDEFAULT == null ? documentation != null : !DOCUMENTATION_EDEFAULT.equals(documentation); - case EFacetPackage.FACET_ELEMENT__CATEGORIES: - return categories != null && !categories.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { - if (baseClass == DocumentedElement.class) { - switch (derivedFeatureID) { - case EFacetPackage.FACET_ELEMENT__DOCUMENTATION: - return EFacetPackage.DOCUMENTED_ELEMENT__DOCUMENTATION; - default: - return -1; - } - } - return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); - } - - /** - * - * - * - * @generated - */ - @Override - public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { - if (baseClass == DocumentedElement.class) { - switch (baseFeatureID) { - case EFacetPackage.DOCUMENTED_ELEMENT__DOCUMENTATION: - return EFacetPackage.FACET_ELEMENT__DOCUMENTATION; - default: - return -1; - } - } - return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); - } - - /** - * - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) { - return super.toString(); - } - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (documentation: "); //$NON-NLS-1$ - result.append(documentation); - result.append(')'); - return result.toString(); - } - -} // FacetElementImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetImpl.java deleted file mode 100644 index ca9a6433929..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetImpl.java +++ /dev/null @@ -1,647 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning - * Gregoire Dupe (Mia-Software) - Bug 376576 - [EFacet] Change the multiplicity of Facet::extendedFacet - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.BasicEList; -import org.eclipse.emf.common.util.ECollections; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.common.util.UniqueEList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.ETypedElement; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.EClassifierImpl; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.EObjectResolvingEList; -import org.eclipse.emf.ecore.util.EcoreEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetOperation; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetSet; - -/** - * - * An implementation of the model object 'Facet'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetImpl#getDocumentation Documentation}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetImpl#getExtendedMetaclass Extended Metaclass}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetImpl#getFacetElements Facet Elements}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetImpl#getFacetOperations Facet Operations}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetImpl#getConformanceTypedElement Conformance Typed Element}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetImpl#getExtendedFacets Extended Facets}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetImpl#getAllTypedElements All Typed Elements}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetImpl#getAllFacetOperations All Facet Operations}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetImpl#getAllFacetElements All Facet Elements}
  • - *
- * - * @generated - */ -public class FacetImpl extends EClassifierImpl implements Facet { - /** - * The default value of the '{@link #getDocumentation() Documentation}' attribute. - * - * - * - * @see #getDocumentation() - * @generated - * @ordered - */ - protected static final String DOCUMENTATION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDocumentation() Documentation}' attribute. - * - * - * - * @see #getDocumentation() - * @generated - * @ordered - */ - protected String documentation = DOCUMENTATION_EDEFAULT; - - /** - * The cached value of the '{@link #getExtendedMetaclass() Extended Metaclass}' reference. - * - * - * - * @see #getExtendedMetaclass() - * @generated - * @ordered - */ - protected EClass extendedMetaclass; - - /** - * The cached value of the '{@link #getFacetElements() Facet Elements}' containment reference list. - * - * - * - * @see #getFacetElements() - * @generated - * @ordered - */ - protected EList facetElements; - - /** - * The cached value of the '{@link #getFacetOperations() Facet Operations}' containment reference list. - * - * - * - * @see #getFacetOperations() - * @generated - * @ordered - */ - protected EList facetOperations; - - /** - * The cached value of the '{@link #getConformanceTypedElement() Conformance Typed Element}' reference. - * - * - * - * @see #getConformanceTypedElement() - * @generated - * @ordered - */ - protected ETypedElement conformanceTypedElement; - - /** - * The cached value of the '{@link #getExtendedFacets() Extended Facets}' reference list. - * - * - * - * @see #getExtendedFacets() - * @generated - * @ordered - */ - protected EList extendedFacets; - - /** - * The cached value of the '{@link #getAllTypedElements() All Typed Elements}' reference list. - * - * - * - * @see #getAllTypedElements() - * @generated - * @ordered - * @since 1.2 - */ - protected EList allTypedElements; - - /** - * The cached value of the '{@link #getAllFacetOperations() All Facet Operations}' reference list. - * - * - * - * @see #getAllFacetOperations() - * @generated - * @ordered - * @since 1.2 - */ - protected EList allFacetOperations; - - /** - * The cached value of the '{@link #getAllFacetElements() All Facet Elements}' reference list. - * - * - * - * @see #getAllFacetElements() - * @generated - * @ordered - * @since 1.2 - */ - protected EList allFacetElements; - - /** - * - * - * - * @generated - */ - protected FacetImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return EFacetPackage.Literals.FACET; - } - - /** - * - * - * - * @generated - */ - public String getDocumentation() { - return documentation; - } - - /** - * - * - * - * @generated - */ - public void setDocumentation(String newDocumentation) { - String oldDocumentation = documentation; - documentation = newDocumentation; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.FACET__DOCUMENTATION, oldDocumentation, documentation)); - } - } - - /** - * - * - * - * @generated NOT - */ - public FacetSet basicGetFacetSet() { - if (getEPackage() instanceof FacetSet) { - FacetSet facetSet = (FacetSet) getEPackage(); - return facetSet; - } - return null; - } - - /** - * - * - * - * @generated NOT - */ - public void setFacetSet(final FacetSet newFacetSet) { - newFacetSet.getEClassifiers().add(this); - } - - /** - * - * - * - * @generated - */ - public EClass getExtendedMetaclass() { - if (extendedMetaclass != null && extendedMetaclass.eIsProxy()) { - InternalEObject oldExtendedMetaclass = (InternalEObject) extendedMetaclass; - extendedMetaclass = (EClass) eResolveProxy(oldExtendedMetaclass); - if (extendedMetaclass != oldExtendedMetaclass) { - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.RESOLVE, EFacetPackage.FACET__EXTENDED_METACLASS, oldExtendedMetaclass, extendedMetaclass)); - } - } - } - return extendedMetaclass; - } - - /** - * - * - * - * @generated NOT - */ - public EClass basicGetExtendedMetaclass() { - if (this.extendedMetaclass != null && this.extendedMetaclass.eIsProxy()) { - InternalEObject oldExtendedMetaclass = (InternalEObject) this.extendedMetaclass; - this.extendedMetaclass = (EClass) eResolveProxy(oldExtendedMetaclass); - if (this.extendedMetaclass != oldExtendedMetaclass) { - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.RESOLVE, EFacetPackage.FACET__EXTENDED_METACLASS, oldExtendedMetaclass, this.extendedMetaclass)); - } - } - } - return this.extendedMetaclass; - } - - /** - * - * - * - * @generated - */ - public void setExtendedMetaclass(EClass newExtendedMetaclass) { - EClass oldExtendedMetaclass = extendedMetaclass; - extendedMetaclass = newExtendedMetaclass; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.FACET__EXTENDED_METACLASS, oldExtendedMetaclass, extendedMetaclass)); - } - } - - /** - * - * - * - * @generated - */ - public EList getFacetElements() { - if (facetElements == null) { - facetElements = new EObjectContainmentEList(EStructuralFeature.class, this, EFacetPackage.FACET__FACET_ELEMENTS); - } - return facetElements; - } - - /** - * - * - * - * @generated - */ - public EList getFacetOperations() { - if (facetOperations == null) { - facetOperations = new EObjectContainmentEList(FacetOperation.class, this, EFacetPackage.FACET__FACET_OPERATIONS); - } - return facetOperations; - } - - /** - * - * - * - * @generated - */ - public ETypedElement getConformanceTypedElement() { - if (conformanceTypedElement != null && conformanceTypedElement.eIsProxy()) { - InternalEObject oldConformanceTypedElement = (InternalEObject) conformanceTypedElement; - conformanceTypedElement = (ETypedElement) eResolveProxy(oldConformanceTypedElement); - if (conformanceTypedElement != oldConformanceTypedElement) { - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.RESOLVE, EFacetPackage.FACET__CONFORMANCE_TYPED_ELEMENT, oldConformanceTypedElement, conformanceTypedElement)); - } - } - } - return conformanceTypedElement; - } - - /** - * - * - * - * @generated - */ - public ETypedElement basicGetConformanceTypedElement() { - return conformanceTypedElement; - } - - /** - * - * - * - * @generated - */ - public void setConformanceTypedElement(ETypedElement newConformanceTypedElement) { - ETypedElement oldConformanceTypedElement = conformanceTypedElement; - conformanceTypedElement = newConformanceTypedElement; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.FACET__CONFORMANCE_TYPED_ELEMENT, oldConformanceTypedElement, conformanceTypedElement)); - } - } - - /** - * - * - * - * @generated - */ - public EList getExtendedFacets() { - if (extendedFacets == null) { - extendedFacets = new EObjectResolvingEList(Facet.class, this, EFacetPackage.FACET__EXTENDED_FACETS); - } - return extendedFacets; - } - - /** - * - * - * - * @generated NOT - * @since 1.2 - */ - public EList getAllTypedElements() { - if (allTypedElements == null) { - allTypedElements = new BasicEList(); - allTypedElements.addAll(getAllFacetElements()); - allTypedElements.addAll(getAllFacetOperations()); - allTypedElements = new EcoreEList.UnmodifiableEList(this,EFacetPackage.eINSTANCE.getFacet_AllTypedElements(),allTypedElements.size(), allTypedElements.toArray()); - } - return allTypedElements; - } - - /** - * - * - * - * @generated NOT - * @since 1.2 - */ - public EList getAllFacetOperations() { - if (allFacetOperations == null) { - allFacetOperations = new UniqueEList.FastCompare(); - for (Facet facet : getExtendedFacets()) { - allFacetOperations.addAll(facet.getAllFacetOperations()); - } - allFacetOperations.addAll(getFacetOperations()); - allFacetOperations = new EcoreEList.UnmodifiableEList(this,EFacetPackage.eINSTANCE.getFacet_AllFacetOperations(),allFacetOperations.size(), allFacetOperations.toArray()); - } - return allFacetOperations; - } - - /** - * - * - * - * @generated NOT - * @since 1.2 - */ - public EList getAllFacetElements() { - if (allFacetElements == null) { - allFacetElements = new UniqueEList.FastCompare(); - for (Facet facet : getExtendedFacets()) { - allFacetElements.addAll(facet.getAllFacetElements()); - } - allFacetElements.addAll(getFacetElements()); - allFacetElements = new EcoreEList.UnmodifiableEList(this,EFacetPackage.eINSTANCE.getFacet_AllFacetElements(),allFacetElements.size(), allFacetElements.toArray()); - } - return allFacetElements; - } - - /** - * - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case EFacetPackage.FACET__FACET_ELEMENTS: - return ((InternalEList) getFacetElements()).basicRemove(otherEnd, msgs); - case EFacetPackage.FACET__FACET_OPERATIONS: - return ((InternalEList) getFacetOperations()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case EFacetPackage.FACET__DOCUMENTATION: - return getDocumentation(); - case EFacetPackage.FACET__EXTENDED_METACLASS: - if (resolve) { - return getExtendedMetaclass(); - } - return basicGetExtendedMetaclass(); - case EFacetPackage.FACET__FACET_ELEMENTS: - return getFacetElements(); - case EFacetPackage.FACET__FACET_OPERATIONS: - return getFacetOperations(); - case EFacetPackage.FACET__CONFORMANCE_TYPED_ELEMENT: - if (resolve) { - return getConformanceTypedElement(); - } - return basicGetConformanceTypedElement(); - case EFacetPackage.FACET__EXTENDED_FACETS: - return getExtendedFacets(); - case EFacetPackage.FACET__ALL_TYPED_ELEMENTS: - return getAllTypedElements(); - case EFacetPackage.FACET__ALL_FACET_OPERATIONS: - return getAllFacetOperations(); - case EFacetPackage.FACET__ALL_FACET_ELEMENTS: - return getAllFacetElements(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case EFacetPackage.FACET__DOCUMENTATION: - setDocumentation((String) newValue); - return; - case EFacetPackage.FACET__EXTENDED_METACLASS: - setExtendedMetaclass((EClass) newValue); - return; - case EFacetPackage.FACET__FACET_ELEMENTS: - getFacetElements().clear(); - getFacetElements().addAll((Collection) newValue); - return; - case EFacetPackage.FACET__FACET_OPERATIONS: - getFacetOperations().clear(); - getFacetOperations().addAll((Collection) newValue); - return; - case EFacetPackage.FACET__CONFORMANCE_TYPED_ELEMENT: - setConformanceTypedElement((ETypedElement) newValue); - return; - case EFacetPackage.FACET__EXTENDED_FACETS: - getExtendedFacets().clear(); - getExtendedFacets().addAll((Collection) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case EFacetPackage.FACET__DOCUMENTATION: - setDocumentation(DOCUMENTATION_EDEFAULT); - return; - case EFacetPackage.FACET__EXTENDED_METACLASS: - setExtendedMetaclass((EClass) null); - return; - case EFacetPackage.FACET__FACET_ELEMENTS: - getFacetElements().clear(); - return; - case EFacetPackage.FACET__FACET_OPERATIONS: - getFacetOperations().clear(); - return; - case EFacetPackage.FACET__CONFORMANCE_TYPED_ELEMENT: - setConformanceTypedElement((ETypedElement) null); - return; - case EFacetPackage.FACET__EXTENDED_FACETS: - getExtendedFacets().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case EFacetPackage.FACET__DOCUMENTATION: - return DOCUMENTATION_EDEFAULT == null ? documentation != null : !DOCUMENTATION_EDEFAULT.equals(documentation); - case EFacetPackage.FACET__EXTENDED_METACLASS: - return extendedMetaclass != null; - case EFacetPackage.FACET__FACET_ELEMENTS: - return facetElements != null && !facetElements.isEmpty(); - case EFacetPackage.FACET__FACET_OPERATIONS: - return facetOperations != null && !facetOperations.isEmpty(); - case EFacetPackage.FACET__CONFORMANCE_TYPED_ELEMENT: - return conformanceTypedElement != null; - case EFacetPackage.FACET__EXTENDED_FACETS: - return extendedFacets != null && !extendedFacets.isEmpty(); - case EFacetPackage.FACET__ALL_TYPED_ELEMENTS: - return allTypedElements != null && !allTypedElements.isEmpty(); - case EFacetPackage.FACET__ALL_FACET_OPERATIONS: - return allFacetOperations != null && !allFacetOperations.isEmpty(); - case EFacetPackage.FACET__ALL_FACET_ELEMENTS: - return allFacetElements != null && !allFacetElements.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { - if (baseClass == DocumentedElement.class) { - switch (derivedFeatureID) { - case EFacetPackage.FACET__DOCUMENTATION: - return EFacetPackage.DOCUMENTED_ELEMENT__DOCUMENTATION; - default: - return -1; - } - } - return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); - } - - /** - * - * - * - * @generated - */ - @Override - public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { - if (baseClass == DocumentedElement.class) { - switch (baseFeatureID) { - case EFacetPackage.DOCUMENTED_ELEMENT__DOCUMENTATION: - return EFacetPackage.FACET__DOCUMENTATION; - default: - return -1; - } - } - return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); - } - - /** - * - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) { - return super.toString(); - } - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (documentation: "); //$NON-NLS-1$ - result.append(documentation); - result.append(')'); - return result.toString(); - } - -} // FacetImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetOperationImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetOperationImpl.java deleted file mode 100644 index fc23d0e9adb..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetOperationImpl.java +++ /dev/null @@ -1,469 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EOperationImpl; -import org.eclipse.emf.ecore.util.EObjectResolvingEList; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Category; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetElement; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetOperation; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; - -/** - * - * An implementation of the model object 'Facet Operation'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetOperationImpl#getDocumentation Documentation}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetOperationImpl#getCategories Categories}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetOperationImpl#getQuery Query}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetOperationImpl#getOverride Override}
  • - *
- * - * @generated - */ -public class FacetOperationImpl extends EOperationImpl implements FacetOperation { - /** - * The default value of the '{@link #getDocumentation() Documentation}' attribute. - * - * - * - * @see #getDocumentation() - * @generated - * @ordered - */ - protected static final String DOCUMENTATION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDocumentation() Documentation}' attribute. - * - * - * - * @see #getDocumentation() - * @generated - * @ordered - */ - protected String documentation = DOCUMENTATION_EDEFAULT; - - /** - * The cached value of the '{@link #getCategories() Categories}' reference list. - * - * - * - * @see #getCategories() - * @generated - * @ordered - */ - protected EList categories; - - /** - * The cached value of the '{@link #getQuery() Query}' containment reference. - * - * - * - * @see #getQuery() - * @generated - * @ordered - */ - protected Query query; - - /** - * The cached value of the '{@link #getOverride() Override}' reference. - * - * - * - * @see #getOverride() - * @generated - * @ordered - */ - protected DerivedTypedElement override; - - /** - * - * - * - * @generated - */ - protected FacetOperationImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return EFacetPackage.Literals.FACET_OPERATION; - } - - /** - * - * - * - * @generated - */ - public String getDocumentation() { - return documentation; - } - - /** - * - * - * - * @generated - */ - public void setDocumentation(String newDocumentation) { - String oldDocumentation = documentation; - documentation = newDocumentation; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.FACET_OPERATION__DOCUMENTATION, oldDocumentation, documentation)); - } - } - - /** - * - * - * - * @generated - */ - public EList getCategories() { - if (categories == null) { - categories = new EObjectResolvingEList(Category.class, this, EFacetPackage.FACET_OPERATION__CATEGORIES); - } - return categories; - } - - /** - * - * - * - * @generated - */ - public Query getQuery() { - return query; - } - - /** - * - * - * - * @generated - */ - public NotificationChain basicSetQuery(Query newQuery, NotificationChain msgs) { - Query oldQuery = query; - query = newQuery; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EFacetPackage.FACET_OPERATION__QUERY, oldQuery, newQuery); - if (msgs == null) { - msgs = notification; - } else { - msgs.add(notification); - } - } - return msgs; - } - - /** - * - * - * - * @generated - */ - public void setQuery(Query newQuery) { - if (newQuery != query) { - NotificationChain msgs = null; - if (query != null) { - msgs = ((InternalEObject) query).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EFacetPackage.FACET_OPERATION__QUERY, null, msgs); - } - if (newQuery != null) { - msgs = ((InternalEObject) newQuery).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EFacetPackage.FACET_OPERATION__QUERY, null, msgs); - } - msgs = basicSetQuery(newQuery, msgs); - if (msgs != null) { - msgs.dispatch(); - } - } else if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.FACET_OPERATION__QUERY, newQuery, newQuery)); - } - } - - /** - * - * - * - * @generated - */ - public DerivedTypedElement getOverride() { - if (override != null && override.eIsProxy()) { - InternalEObject oldOverride = (InternalEObject) override; - override = (DerivedTypedElement) eResolveProxy(oldOverride); - if (override != oldOverride) { - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.RESOLVE, EFacetPackage.FACET_OPERATION__OVERRIDE, oldOverride, override)); - } - } - } - return override; - } - - /** - * - * - * - * @generated - */ - public DerivedTypedElement basicGetOverride() { - return override; - } - - /** - * - * - * - * @generated - */ - public void setOverride(DerivedTypedElement newOverride) { - DerivedTypedElement oldOverride = override; - override = newOverride; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.FACET_OPERATION__OVERRIDE, oldOverride, override)); - } - } - - /** - * - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case EFacetPackage.FACET_OPERATION__QUERY: - return basicSetQuery(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case EFacetPackage.FACET_OPERATION__DOCUMENTATION: - return getDocumentation(); - case EFacetPackage.FACET_OPERATION__CATEGORIES: - return getCategories(); - case EFacetPackage.FACET_OPERATION__QUERY: - return getQuery(); - case EFacetPackage.FACET_OPERATION__OVERRIDE: - if (resolve) { - return getOverride(); - } - return basicGetOverride(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case EFacetPackage.FACET_OPERATION__DOCUMENTATION: - setDocumentation((String) newValue); - return; - case EFacetPackage.FACET_OPERATION__CATEGORIES: - getCategories().clear(); - getCategories().addAll((Collection) newValue); - return; - case EFacetPackage.FACET_OPERATION__QUERY: - setQuery((Query) newValue); - return; - case EFacetPackage.FACET_OPERATION__OVERRIDE: - setOverride((DerivedTypedElement) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case EFacetPackage.FACET_OPERATION__DOCUMENTATION: - setDocumentation(DOCUMENTATION_EDEFAULT); - return; - case EFacetPackage.FACET_OPERATION__CATEGORIES: - getCategories().clear(); - return; - case EFacetPackage.FACET_OPERATION__QUERY: - setQuery((Query) null); - return; - case EFacetPackage.FACET_OPERATION__OVERRIDE: - setOverride((DerivedTypedElement) null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case EFacetPackage.FACET_OPERATION__DOCUMENTATION: - return DOCUMENTATION_EDEFAULT == null ? documentation != null : !DOCUMENTATION_EDEFAULT.equals(documentation); - case EFacetPackage.FACET_OPERATION__CATEGORIES: - return categories != null && !categories.isEmpty(); - case EFacetPackage.FACET_OPERATION__QUERY: - return query != null; - case EFacetPackage.FACET_OPERATION__OVERRIDE: - return override != null; - } - return super.eIsSet(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { - if (baseClass == DocumentedElement.class) { - switch (derivedFeatureID) { - case EFacetPackage.FACET_OPERATION__DOCUMENTATION: - return EFacetPackage.DOCUMENTED_ELEMENT__DOCUMENTATION; - default: - return -1; - } - } - if (baseClass == FacetElement.class) { - switch (derivedFeatureID) { - case EFacetPackage.FACET_OPERATION__CATEGORIES: - return EFacetPackage.FACET_ELEMENT__CATEGORIES; - default: - return -1; - } - } - if (baseClass == DerivedTypedElement.class) { - switch (derivedFeatureID) { - case EFacetPackage.FACET_OPERATION__QUERY: - return EFacetPackage.DERIVED_TYPED_ELEMENT__QUERY; - case EFacetPackage.FACET_OPERATION__OVERRIDE: - return EFacetPackage.DERIVED_TYPED_ELEMENT__OVERRIDE; - default: - return -1; - } - } - return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); - } - - /** - * - * - * - * @generated - */ - @Override - public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { - if (baseClass == DocumentedElement.class) { - switch (baseFeatureID) { - case EFacetPackage.DOCUMENTED_ELEMENT__DOCUMENTATION: - return EFacetPackage.FACET_OPERATION__DOCUMENTATION; - default: - return -1; - } - } - if (baseClass == FacetElement.class) { - switch (baseFeatureID) { - case EFacetPackage.FACET_ELEMENT__CATEGORIES: - return EFacetPackage.FACET_OPERATION__CATEGORIES; - default: - return -1; - } - } - if (baseClass == DerivedTypedElement.class) { - switch (baseFeatureID) { - case EFacetPackage.DERIVED_TYPED_ELEMENT__QUERY: - return EFacetPackage.FACET_OPERATION__QUERY; - case EFacetPackage.DERIVED_TYPED_ELEMENT__OVERRIDE: - return EFacetPackage.FACET_OPERATION__OVERRIDE; - default: - return -1; - } - } - return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); - } - - /** - * - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) { - return super.toString(); - } - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (documentation: "); //$NON-NLS-1$ - result.append(documentation); - result.append(')'); - return result.toString(); - } - -} // FacetOperationImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetReferenceImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetReferenceImpl.java deleted file mode 100644 index f64a6f00fe4..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetReferenceImpl.java +++ /dev/null @@ -1,469 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EReferenceImpl; -import org.eclipse.emf.ecore.util.EObjectResolvingEList; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Category; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetElement; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetReference; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; - -/** - * - * An implementation of the model object 'Facet Reference'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetReferenceImpl#getDocumentation Documentation}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetReferenceImpl#getCategories Categories}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetReferenceImpl#getQuery Query}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetReferenceImpl#getOverride Override}
  • - *
- * - * @generated - */ -public class FacetReferenceImpl extends EReferenceImpl implements FacetReference { - /** - * The default value of the '{@link #getDocumentation() Documentation}' attribute. - * - * - * - * @see #getDocumentation() - * @generated - * @ordered - */ - protected static final String DOCUMENTATION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDocumentation() Documentation}' attribute. - * - * - * - * @see #getDocumentation() - * @generated - * @ordered - */ - protected String documentation = DOCUMENTATION_EDEFAULT; - - /** - * The cached value of the '{@link #getCategories() Categories}' reference list. - * - * - * - * @see #getCategories() - * @generated - * @ordered - */ - protected EList categories; - - /** - * The cached value of the '{@link #getQuery() Query}' containment reference. - * - * - * - * @see #getQuery() - * @generated - * @ordered - */ - protected Query query; - - /** - * The cached value of the '{@link #getOverride() Override}' reference. - * - * - * - * @see #getOverride() - * @generated - * @ordered - */ - protected DerivedTypedElement override; - - /** - * - * - * - * @generated - */ - protected FacetReferenceImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return EFacetPackage.Literals.FACET_REFERENCE; - } - - /** - * - * - * - * @generated - */ - public String getDocumentation() { - return documentation; - } - - /** - * - * - * - * @generated - */ - public void setDocumentation(String newDocumentation) { - String oldDocumentation = documentation; - documentation = newDocumentation; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.FACET_REFERENCE__DOCUMENTATION, oldDocumentation, documentation)); - } - } - - /** - * - * - * - * @generated - */ - public EList getCategories() { - if (categories == null) { - categories = new EObjectResolvingEList(Category.class, this, EFacetPackage.FACET_REFERENCE__CATEGORIES); - } - return categories; - } - - /** - * - * - * - * @generated - */ - public Query getQuery() { - return query; - } - - /** - * - * - * - * @generated - */ - public NotificationChain basicSetQuery(Query newQuery, NotificationChain msgs) { - Query oldQuery = query; - query = newQuery; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EFacetPackage.FACET_REFERENCE__QUERY, oldQuery, newQuery); - if (msgs == null) { - msgs = notification; - } else { - msgs.add(notification); - } - } - return msgs; - } - - /** - * - * - * - * @generated - */ - public void setQuery(Query newQuery) { - if (newQuery != query) { - NotificationChain msgs = null; - if (query != null) { - msgs = ((InternalEObject) query).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EFacetPackage.FACET_REFERENCE__QUERY, null, msgs); - } - if (newQuery != null) { - msgs = ((InternalEObject) newQuery).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EFacetPackage.FACET_REFERENCE__QUERY, null, msgs); - } - msgs = basicSetQuery(newQuery, msgs); - if (msgs != null) { - msgs.dispatch(); - } - } else if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.FACET_REFERENCE__QUERY, newQuery, newQuery)); - } - } - - /** - * - * - * - * @generated - */ - public DerivedTypedElement getOverride() { - if (override != null && override.eIsProxy()) { - InternalEObject oldOverride = (InternalEObject) override; - override = (DerivedTypedElement) eResolveProxy(oldOverride); - if (override != oldOverride) { - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.RESOLVE, EFacetPackage.FACET_REFERENCE__OVERRIDE, oldOverride, override)); - } - } - } - return override; - } - - /** - * - * - * - * @generated - */ - public DerivedTypedElement basicGetOverride() { - return override; - } - - /** - * - * - * - * @generated - */ - public void setOverride(DerivedTypedElement newOverride) { - DerivedTypedElement oldOverride = override; - override = newOverride; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.FACET_REFERENCE__OVERRIDE, oldOverride, override)); - } - } - - /** - * - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case EFacetPackage.FACET_REFERENCE__QUERY: - return basicSetQuery(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case EFacetPackage.FACET_REFERENCE__DOCUMENTATION: - return getDocumentation(); - case EFacetPackage.FACET_REFERENCE__CATEGORIES: - return getCategories(); - case EFacetPackage.FACET_REFERENCE__QUERY: - return getQuery(); - case EFacetPackage.FACET_REFERENCE__OVERRIDE: - if (resolve) { - return getOverride(); - } - return basicGetOverride(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case EFacetPackage.FACET_REFERENCE__DOCUMENTATION: - setDocumentation((String) newValue); - return; - case EFacetPackage.FACET_REFERENCE__CATEGORIES: - getCategories().clear(); - getCategories().addAll((Collection) newValue); - return; - case EFacetPackage.FACET_REFERENCE__QUERY: - setQuery((Query) newValue); - return; - case EFacetPackage.FACET_REFERENCE__OVERRIDE: - setOverride((DerivedTypedElement) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case EFacetPackage.FACET_REFERENCE__DOCUMENTATION: - setDocumentation(DOCUMENTATION_EDEFAULT); - return; - case EFacetPackage.FACET_REFERENCE__CATEGORIES: - getCategories().clear(); - return; - case EFacetPackage.FACET_REFERENCE__QUERY: - setQuery((Query) null); - return; - case EFacetPackage.FACET_REFERENCE__OVERRIDE: - setOverride((DerivedTypedElement) null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case EFacetPackage.FACET_REFERENCE__DOCUMENTATION: - return DOCUMENTATION_EDEFAULT == null ? documentation != null : !DOCUMENTATION_EDEFAULT.equals(documentation); - case EFacetPackage.FACET_REFERENCE__CATEGORIES: - return categories != null && !categories.isEmpty(); - case EFacetPackage.FACET_REFERENCE__QUERY: - return query != null; - case EFacetPackage.FACET_REFERENCE__OVERRIDE: - return override != null; - } - return super.eIsSet(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { - if (baseClass == DocumentedElement.class) { - switch (derivedFeatureID) { - case EFacetPackage.FACET_REFERENCE__DOCUMENTATION: - return EFacetPackage.DOCUMENTED_ELEMENT__DOCUMENTATION; - default: - return -1; - } - } - if (baseClass == FacetElement.class) { - switch (derivedFeatureID) { - case EFacetPackage.FACET_REFERENCE__CATEGORIES: - return EFacetPackage.FACET_ELEMENT__CATEGORIES; - default: - return -1; - } - } - if (baseClass == DerivedTypedElement.class) { - switch (derivedFeatureID) { - case EFacetPackage.FACET_REFERENCE__QUERY: - return EFacetPackage.DERIVED_TYPED_ELEMENT__QUERY; - case EFacetPackage.FACET_REFERENCE__OVERRIDE: - return EFacetPackage.DERIVED_TYPED_ELEMENT__OVERRIDE; - default: - return -1; - } - } - return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); - } - - /** - * - * - * - * @generated - */ - @Override - public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { - if (baseClass == DocumentedElement.class) { - switch (baseFeatureID) { - case EFacetPackage.DOCUMENTED_ELEMENT__DOCUMENTATION: - return EFacetPackage.FACET_REFERENCE__DOCUMENTATION; - default: - return -1; - } - } - if (baseClass == FacetElement.class) { - switch (baseFeatureID) { - case EFacetPackage.FACET_ELEMENT__CATEGORIES: - return EFacetPackage.FACET_REFERENCE__CATEGORIES; - default: - return -1; - } - } - if (baseClass == DerivedTypedElement.class) { - switch (baseFeatureID) { - case EFacetPackage.DERIVED_TYPED_ELEMENT__QUERY: - return EFacetPackage.FACET_REFERENCE__QUERY; - case EFacetPackage.DERIVED_TYPED_ELEMENT__OVERRIDE: - return EFacetPackage.FACET_REFERENCE__OVERRIDE; - default: - return -1; - } - } - return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); - } - - /** - * - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) { - return super.toString(); - } - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (documentation: "); //$NON-NLS-1$ - result.append(documentation); - result.append(')'); - return result.toString(); - } - -} // FacetReferenceImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetSetImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetSetImpl.java deleted file mode 100644 index 6b9bc0f05c5..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetSetImpl.java +++ /dev/null @@ -1,344 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.BasicEList; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EClassifier; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EPackageImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Category; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetSet; - -/** - * - * An implementation of the model object 'Facet Set'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetSetImpl#getDocumentation Documentation}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.FacetSetImpl#getCategories Categories}
  • - *
- * - * @generated - */ -public class FacetSetImpl extends EPackageImpl implements FacetSet { - /** - * The default value of the '{@link #getDocumentation() Documentation}' attribute. - * - * - * - * @see #getDocumentation() - * @generated - * @ordered - */ - protected static final String DOCUMENTATION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDocumentation() Documentation}' attribute. - * - * - * - * @see #getDocumentation() - * @generated - * @ordered - */ - protected String documentation = DOCUMENTATION_EDEFAULT; - - /** - * The cached value of the '{@link #getCategories() Categories}' containment reference list. - * - * - * - * @see #getCategories() - * @generated - * @ordered - */ - protected EList categories; - - /** - * - * - * - * @generated - */ - protected FacetSetImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return EFacetPackage.Literals.FACET_SET; - } - - /** - * - * - * - * @generated - */ - public String getDocumentation() { - return documentation; - } - - /** - * - * - * - * @generated - */ - public void setDocumentation(String newDocumentation) { - String oldDocumentation = documentation; - documentation = newDocumentation; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.FACET_SET__DOCUMENTATION, oldDocumentation, documentation)); - } - } - - /** - * - * - * - * @generated NOT - */ - public EList getFacets() { - EList facets = new BasicEList(); - for (EClassifier eClassifier : this.getEClassifiers()) { - if (eClassifier instanceof Facet) { - Facet facet = (Facet) eClassifier; - facets.add(facet); - } - } - return facets; - } - - /** - * - * - * - * @generated - */ - public EList getCategories() { - if (categories == null) { - categories = new EObjectContainmentEList(Category.class, this, EFacetPackage.FACET_SET__CATEGORIES); - } - return categories; - } - - /** - * - * - * - * @generated NOT - */ - public EPackage basicGetExtendedEPackage() { - EList facets = getFacets(); - EPackage result = null; - for (Facet facet : facets) { - EClass extendedMetaclass = facet.getExtendedMetaclass(); - if (extendedMetaclass != null) { - EPackage ePackage = extendedMetaclass.getEPackage(); - if (ePackage != null) { - if (result != null && ePackage != result) { - throw new IllegalStateException("The Facets in a FacetSet must all extend EClasses from the same EPackage"); - } - result = ePackage; - } - } - } - return result; - } - - /** - * - * - * - * @generated NOT - */ - public EList getFacetSets() { - return new BasicEList(); - } - - /** - * - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case EFacetPackage.FACET_SET__CATEGORIES: - return ((InternalEList) getCategories()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case EFacetPackage.FACET_SET__DOCUMENTATION: - return getDocumentation(); - case EFacetPackage.FACET_SET__CATEGORIES: - return getCategories(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case EFacetPackage.FACET_SET__DOCUMENTATION: - setDocumentation((String) newValue); - return; - case EFacetPackage.FACET_SET__CATEGORIES: - getCategories().clear(); - getCategories().addAll((Collection) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case EFacetPackage.FACET_SET__DOCUMENTATION: - setDocumentation(DOCUMENTATION_EDEFAULT); - return; - case EFacetPackage.FACET_SET__CATEGORIES: - getCategories().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case EFacetPackage.FACET_SET__DOCUMENTATION: - return DOCUMENTATION_EDEFAULT == null ? documentation != null : !DOCUMENTATION_EDEFAULT.equals(documentation); - case EFacetPackage.FACET_SET__CATEGORIES: - return categories != null && !categories.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { - if (baseClass == DocumentedElement.class) { - switch (derivedFeatureID) { - case EFacetPackage.FACET_SET__DOCUMENTATION: - return EFacetPackage.DOCUMENTED_ELEMENT__DOCUMENTATION; - default: - return -1; - } - } - return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); - } - - /** - * - * - * - * @generated - */ - @Override - public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { - if (baseClass == DocumentedElement.class) { - switch (baseFeatureID) { - case EFacetPackage.DOCUMENTED_ELEMENT__DOCUMENTATION: - return EFacetPackage.FACET_SET__DOCUMENTATION; - default: - return -1; - } - } - return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); - } - - /** - * - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) { - return super.toString(); - } - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (documentation: "); //$NON-NLS-1$ - result.append(documentation); - result.append(')'); - return result.toString(); - } - -} // FacetSetImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/ParameterValueImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/ParameterValueImpl.java deleted file mode 100644 index 6e931e14dcb..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/ParameterValueImpl.java +++ /dev/null @@ -1,258 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EParameter; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue; - -/** - * - * An implementation of the model object 'Parameter Value'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.ParameterValueImpl#getParameter Parameter}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.ParameterValueImpl#getValue Value}
  • - *
- * - * @generated - */ -public class ParameterValueImpl extends EObjectImpl implements ParameterValue { - /** - * The cached value of the '{@link #getParameter() Parameter}' reference. - * - * - * - * @see #getParameter() - * @generated - * @ordered - */ - protected EParameter parameter; - - /** - * The default value of the '{@link #getValue() Value}' attribute. - * - * - * - * @see #getValue() - * @generated - * @ordered - */ - protected static final Object VALUE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getValue() Value}' attribute. - * - * - * - * @see #getValue() - * @generated - * @ordered - */ - protected Object value = VALUE_EDEFAULT; - - /** - * - * - * - * @generated - */ - protected ParameterValueImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return EFacetPackage.Literals.PARAMETER_VALUE; - } - - /** - * - * - * - * @generated - */ - public EParameter getParameter() { - if (parameter != null && parameter.eIsProxy()) { - InternalEObject oldParameter = (InternalEObject) parameter; - parameter = (EParameter) eResolveProxy(oldParameter); - if (parameter != oldParameter) { - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.RESOLVE, EFacetPackage.PARAMETER_VALUE__PARAMETER, oldParameter, parameter)); - } - } - } - return parameter; - } - - /** - * - * - * - * @generated - */ - public EParameter basicGetParameter() { - return parameter; - } - - /** - * - * - * - * @generated - */ - public void setParameter(EParameter newParameter) { - EParameter oldParameter = parameter; - parameter = newParameter; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.PARAMETER_VALUE__PARAMETER, oldParameter, parameter)); - } - } - - /** - * - * - * - * @generated - */ - public Object getValue() { - return value; - } - - /** - * - * - * - * @generated - */ - public void setValue(Object newValue) { - Object oldValue = value; - value = newValue; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, EFacetPackage.PARAMETER_VALUE__VALUE, oldValue, value)); - } - } - - /** - * - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case EFacetPackage.PARAMETER_VALUE__PARAMETER: - if (resolve) { - return getParameter(); - } - return basicGetParameter(); - case EFacetPackage.PARAMETER_VALUE__VALUE: - return getValue(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case EFacetPackage.PARAMETER_VALUE__PARAMETER: - setParameter((EParameter) newValue); - return; - case EFacetPackage.PARAMETER_VALUE__VALUE: - setValue(newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case EFacetPackage.PARAMETER_VALUE__PARAMETER: - setParameter((EParameter) null); - return; - case EFacetPackage.PARAMETER_VALUE__VALUE: - setValue(VALUE_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case EFacetPackage.PARAMETER_VALUE__PARAMETER: - return parameter != null; - case EFacetPackage.PARAMETER_VALUE__VALUE: - return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); - } - return super.eIsSet(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) { - return super.toString(); - } - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (value: "); //$NON-NLS-1$ - result.append(value); - result.append(')'); - return result.toString(); - } - -} // ParameterValueImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/EObjectLiteralQuery.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/EObjectLiteralQuery.java deleted file mode 100644 index 6eb58087307..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/EObjectLiteralQuery.java +++ /dev/null @@ -1,75 +0,0 @@ -/** - * Copyright (c) 2011-2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery - * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query - * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. - * Nicolas Bros (Mia-Software) - Bug 372626 - [Facet] Aggregates - * Nicolas Bros (Mia-Software) - Bug 376941 - [EFacet] Facet operation arguments in Facet model - * - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; - -/** - * - * A representation of the model object 'EObject Literal Query'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.EObjectLiteralQuery#getElement Element}
  • - *
- * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#getEObjectLiteralQuery() - * @model - * @generated - */ -public interface EObjectLiteralQuery extends Query { - /** - * Returns the value of the 'Element' reference. - * - *

- * If the meaning of the 'Element' reference isn't clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'Element' reference. - * @see #setElement(EObject) - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#getEObjectLiteralQuery_Element() - * @model - * @generated - */ - EObject getElement(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.EObjectLiteralQuery#getElement Element}' reference. - * - * - * - * @param value - * the new value of the 'Element' reference. - * @see #getElement() - * @generated - */ - void setElement(EObject value); - -} // EObjectLiteralQuery diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/FalseLiteralQuery.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/FalseLiteralQuery.java deleted file mode 100644 index 9f9a9f1e5a0..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/FalseLiteralQuery.java +++ /dev/null @@ -1,40 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery - * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query - * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query; - -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; - -/** - * - * A representation of the model object 'False Literal Query'. - * - * - * - * This query retrun false. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#getFalseLiteralQuery() - * @model - * @generated - */ -public interface FalseLiteralQuery extends Query { -} // FalseLiteralQuery diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/FloatLiteralQuery.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/FloatLiteralQuery.java deleted file mode 100644 index 399dba0e702..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/FloatLiteralQuery.java +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Copyright (c) 2011-2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery - * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query - * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. - * Nicolas Bros (Mia-Software) - Bug 372626 - [Facet] Aggregates - * Nicolas Bros (Mia-Software) - Bug 376941 - [EFacet] Facet operation arguments in Facet model - * - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query; - -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; - -/** - * - * A representation of the model object 'Float Literal Query'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FloatLiteralQuery#getValue Value}
  • - *
- * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#getFloatLiteralQuery() - * @model - * @generated - */ -public interface FloatLiteralQuery extends Query { - /** - * Returns the value of the 'Value' attribute. - * - *

- * If the meaning of the 'Value' attribute isn't clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'Value' attribute. - * @see #setValue(float) - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#getFloatLiteralQuery_Value() - * @model - * @generated - */ - float getValue(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FloatLiteralQuery#getValue Value}' attribute. - * - * - * - * @param value - * the new value of the 'Value' attribute. - * @see #getValue() - * @generated - */ - void setValue(float value); - -} // FloatLiteralQuery diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/IntegerLiteralQuery.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/IntegerLiteralQuery.java deleted file mode 100644 index 0dccf2f6852..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/IntegerLiteralQuery.java +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Copyright (c) 2011-2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery - * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query - * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. - * Nicolas Bros (Mia-Software) - Bug 372626 - [Facet] Aggregates - * Nicolas Bros (Mia-Software) - Bug 376941 - [EFacet] Facet operation arguments in Facet model - * - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query; - -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; - -/** - * - * A representation of the model object 'Integer Literal Query'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IntegerLiteralQuery#getValue Value}
  • - *
- * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#getIntegerLiteralQuery() - * @model - * @generated - */ -public interface IntegerLiteralQuery extends Query { - /** - * Returns the value of the 'Value' attribute. - * - *

- * If the meaning of the 'Value' attribute isn't clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'Value' attribute. - * @see #setValue(int) - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#getIntegerLiteralQuery_Value() - * @model - * @generated - */ - int getValue(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IntegerLiteralQuery#getValue Value}' attribute. - * - * - * - * @param value - * the new value of the 'Value' attribute. - * @see #getValue() - * @generated - */ - void setValue(int value); - -} // IntegerLiteralQuery diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/IsOneOfQuery.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/IsOneOfQuery.java deleted file mode 100644 index cc156fae86d..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/IsOneOfQuery.java +++ /dev/null @@ -1,63 +0,0 @@ -/** - * Copyright (c) 2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery - * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; - -/** - * - * A representation of the model object 'Is One Of Query'. - * - * - * - * This query returns true if the source of the query is contained in a list of eObject handled by the referennce 'expectedEObjects'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IsOneOfQuery#getExpectedEObjects Expected EObjects}
  • - *
- * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#getIsOneOfQuery() - * @model - * @generated - */ -public interface IsOneOfQuery extends Query { - /** - * Returns the value of the 'Expected EObjects' reference list. - * The list contents are of type {@link org.eclipse.emf.ecore.EObject}. - * - *

- * If the meaning of the 'Expected EObjects' reference list isn't clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'Expected EObjects' reference list. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#getIsOneOfQuery_ExpectedEObjects() - * @model - * @generated - */ - EList getExpectedEObjects(); - -} // IsOneOfQuery diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/NavigationQuery.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/NavigationQuery.java deleted file mode 100644 index 8534e3a7be2..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/NavigationQuery.java +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.ETypedElement; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; - -/** - * - * A representation of the model object 'Navigation Query'. - * - * - * - * This query points to a typed element (another attribute, reference or operation for example) that lends it value to the query. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NavigationQuery#getPath Path}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NavigationQuery#isFailOnError Fail On Error}
  • - *
- * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#getNavigationQuery() - * @model - * @generated - */ -public interface NavigationQuery extends Query { - /** - * Returns the value of the 'Path' reference list. - * The list contents are of type {@link org.eclipse.emf.ecore.ETypedElement}. - * - *

- * If the meaning of the 'Path' reference list isn't clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'Path' reference list. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#getNavigationQuery_Path() - * @model required="true" - * @generated - */ - EList getPath(); - - /** - * Returns the value of the 'Fail On Error' attribute. - * The default value is "true". - * - *

- * If the meaning of the 'Fail On Error' attribute isn't clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'Fail On Error' attribute. - * @see #setFailOnError(boolean) - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#getNavigationQuery_FailOnError() - * @model default="true" - * @generated - */ - boolean isFailOnError(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NavigationQuery#isFailOnError Fail On Error}' attribute. - * - * - * - * @param value - * the new value of the 'Fail On Error' attribute. - * @see #isFailOnError() - * @generated - */ - void setFailOnError(boolean value); - -} // NavigationQuery diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/NullLiteralQuery.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/NullLiteralQuery.java deleted file mode 100644 index 0ea4a7d48d1..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/NullLiteralQuery.java +++ /dev/null @@ -1,41 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery - * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query - * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query; - -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; - -/** - * - * A representation of the model object 'Null Literal Query'. - * - * - * - * This query retrun null. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#getNullLiteralQuery() - * @model - * @generated - */ -public interface NullLiteralQuery extends Query { -} // NullLiteralQuery diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/OperationCallQuery.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/OperationCallQuery.java deleted file mode 100644 index d115ec1f2f7..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/OperationCallQuery.java +++ /dev/null @@ -1,93 +0,0 @@ -/** - * Copyright (c) 2011-2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery - * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query - * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. - * Nicolas Bros (Mia-Software) - Bug 372626 - [Facet] Aggregates - * Nicolas Bros (Mia-Software) - Bug 376941 - [EFacet] Facet operation arguments in Facet model - * - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EOperation; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; - -/** - * - * A representation of the model object 'Operation Call Query'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.OperationCallQuery#getOperation Operation}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.OperationCallQuery#getArguments Arguments}
  • - *
- * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#getOperationCallQuery() - * @model - * @generated - */ -public interface OperationCallQuery extends Query { - /** - * Returns the value of the 'Operation' reference. - * - *

- * If the meaning of the 'Operation' reference isn't clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'Operation' reference. - * @see #setOperation(EOperation) - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#getOperationCallQuery_Operation() - * @model - * @generated - */ - EOperation getOperation(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.OperationCallQuery#getOperation Operation}' reference. - * - * - * - * @param value - * the new value of the 'Operation' reference. - * @see #getOperation() - * @generated - */ - void setOperation(EOperation value); - - /** - * Returns the value of the 'Arguments' containment reference list. - * The list contents are of type {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query}. - * - *

- * If the meaning of the 'Arguments' containment reference list isn't clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'Arguments' containment reference list. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#getOperationCallQuery_Arguments() - * @model containment="true" - * @generated - */ - EList getArguments(); - -} // OperationCallQuery diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/QueryFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/QueryFactory.java deleted file mode 100644 index fc7bb8906f3..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/QueryFactory.java +++ /dev/null @@ -1,153 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query; - -import org.eclipse.emf.ecore.EFactory; - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage - * @generated - */ -public interface QueryFactory extends EFactory { - /** - * The singleton instance of the factory. - * - * - * - * @generated - */ - QueryFactory eINSTANCE = org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryFactoryImpl.init(); - - /** - * Returns a new object of class 'Navigation Query'. - * - * - * - * @return a new object of class 'Navigation Query'. - * @generated - */ - NavigationQuery createNavigationQuery(); - - /** - * Returns a new object of class 'Is One Of Query'. - * - * - * - * @return a new object of class 'Is One Of Query'. - * @generated - */ - IsOneOfQuery createIsOneOfQuery(); - - /** - * Returns a new object of class 'String Literal Query'. - * - * - * - * @return a new object of class 'String Literal Query'. - * @generated - */ - StringLiteralQuery createStringLiteralQuery(); - - /** - * Returns a new object of class 'True Literal Query'. - * - * - * - * @return a new object of class 'True Literal Query'. - * @generated - */ - TrueLiteralQuery createTrueLiteralQuery(); - - /** - * Returns a new object of class 'False Literal Query'. - * - * - * - * @return a new object of class 'False Literal Query'. - * @generated - */ - FalseLiteralQuery createFalseLiteralQuery(); - - /** - * Returns a new object of class 'Null Literal Query'. - * - * - * - * @return a new object of class 'Null Literal Query'. - * @generated - */ - NullLiteralQuery createNullLiteralQuery(); - - /** - * Returns a new object of class 'Integer Literal Query'. - * - * - * - * @return a new object of class 'Integer Literal Query'. - * @generated - */ - IntegerLiteralQuery createIntegerLiteralQuery(); - - /** - * Returns a new object of class 'Float Literal Query'. - * - * - * - * @return a new object of class 'Float Literal Query'. - * @generated - */ - FloatLiteralQuery createFloatLiteralQuery(); - - /** - * Returns a new object of class 'EObject Literal Query'. - * - * - * - * @return a new object of class 'EObject Literal Query'. - * @generated - */ - EObjectLiteralQuery createEObjectLiteralQuery(); - - /** - * Returns a new object of class 'Operation Call Query'. - * - * - * - * @return a new object of class 'Operation Call Query'. - * @generated - */ - OperationCallQuery createOperationCallQuery(); - - /** - * Returns the package supported by this factory. - * - * - * - * @return the package supported by this factory. - * @generated - */ - QueryPackage getQueryPackage(); - -} // QueryFactory diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/QueryPackage.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/QueryPackage.java deleted file mode 100644 index 176fc5f3639..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/QueryPackage.java +++ /dev/null @@ -1,1022 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensiblePackage; - -/** - * - * The Package for the model. - * It contains accessors for the meta objects to represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryFactory - * @model kind="package" - * @generated - */ -public interface QueryPackage extends EPackage { - /** - * The package name. - * - * - * - * @generated - */ - String eNAME = "query"; //$NON-NLS-1$ - - /** - * The package namespace URI. - * - * - * - * @generated - */ - String eNS_URI = "http://www.eclipse.org/papyrus/emf/facet/efacet/0.2.incubation/efacet/query"; //$NON-NLS-1$ - - /** - * The package namespace name. - * - * - * - * @generated - */ - String eNS_PREFIX = "query"; //$NON-NLS-1$ - - /** - * The singleton instance of the package. - * - * - * - * @generated - */ - QueryPackage eINSTANCE = org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl.init(); - - /** - * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.NavigationQueryImpl Navigation Query}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.NavigationQueryImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getNavigationQuery() - * @generated - */ - int NAVIGATION_QUERY = 0; - - /** - * The feature id for the 'Can Have Side Effects' attribute. - * - * - * - * @generated - * @ordered - */ - int NAVIGATION_QUERY__CAN_HAVE_SIDE_EFFECTS = ExtensiblePackage.QUERY__CAN_HAVE_SIDE_EFFECTS; - - /** - * The feature id for the 'Can Be Cached' attribute. - * - * - * - * @generated - * @ordered - */ - int NAVIGATION_QUERY__CAN_BE_CACHED = ExtensiblePackage.QUERY__CAN_BE_CACHED; - - /** - * The feature id for the 'Path' reference list. - * - * - * - * @generated - * @ordered - */ - int NAVIGATION_QUERY__PATH = ExtensiblePackage.QUERY_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Fail On Error' attribute. - * - * - * - * @generated - * @ordered - */ - int NAVIGATION_QUERY__FAIL_ON_ERROR = ExtensiblePackage.QUERY_FEATURE_COUNT + 1; - - /** - * The number of structural features of the 'Navigation Query' class. - * - * - * - * @generated - * @ordered - */ - int NAVIGATION_QUERY_FEATURE_COUNT = ExtensiblePackage.QUERY_FEATURE_COUNT + 2; - - - /** - * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.IsOneOfQueryImpl Is One Of Query}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.IsOneOfQueryImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getIsOneOfQuery() - * @generated - */ - int IS_ONE_OF_QUERY = 1; - - /** - * The feature id for the 'Can Have Side Effects' attribute. - * - * - * - * @generated - * @ordered - */ - int IS_ONE_OF_QUERY__CAN_HAVE_SIDE_EFFECTS = ExtensiblePackage.QUERY__CAN_HAVE_SIDE_EFFECTS; - - /** - * The feature id for the 'Can Be Cached' attribute. - * - * - * - * @generated - * @ordered - */ - int IS_ONE_OF_QUERY__CAN_BE_CACHED = ExtensiblePackage.QUERY__CAN_BE_CACHED; - - /** - * The feature id for the 'Expected EObjects' reference list. - * - * - * - * @generated - * @ordered - */ - int IS_ONE_OF_QUERY__EXPECTED_EOBJECTS = ExtensiblePackage.QUERY_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Is One Of Query' class. - * - * - * - * @generated - * @ordered - */ - int IS_ONE_OF_QUERY_FEATURE_COUNT = ExtensiblePackage.QUERY_FEATURE_COUNT + 1; - - - /** - * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.StringLiteralQueryImpl String Literal Query}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.StringLiteralQueryImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getStringLiteralQuery() - * @generated - */ - int STRING_LITERAL_QUERY = 2; - - /** - * The feature id for the 'Can Have Side Effects' attribute. - * - * - * - * @generated - * @ordered - */ - int STRING_LITERAL_QUERY__CAN_HAVE_SIDE_EFFECTS = ExtensiblePackage.QUERY__CAN_HAVE_SIDE_EFFECTS; - - /** - * The feature id for the 'Can Be Cached' attribute. - * - * - * - * @generated - * @ordered - */ - int STRING_LITERAL_QUERY__CAN_BE_CACHED = ExtensiblePackage.QUERY__CAN_BE_CACHED; - - /** - * The feature id for the 'Value' attribute. - * - * - * - * @generated - * @ordered - */ - int STRING_LITERAL_QUERY__VALUE = ExtensiblePackage.QUERY_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'String Literal Query' class. - * - * - * - * @generated - * @ordered - */ - int STRING_LITERAL_QUERY_FEATURE_COUNT = ExtensiblePackage.QUERY_FEATURE_COUNT + 1; - - - /** - * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.TrueLiteralQueryImpl True Literal Query}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.TrueLiteralQueryImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getTrueLiteralQuery() - * @generated - */ - int TRUE_LITERAL_QUERY = 3; - - /** - * The feature id for the 'Can Have Side Effects' attribute. - * - * - * - * @generated - * @ordered - */ - int TRUE_LITERAL_QUERY__CAN_HAVE_SIDE_EFFECTS = ExtensiblePackage.QUERY__CAN_HAVE_SIDE_EFFECTS; - - /** - * The feature id for the 'Can Be Cached' attribute. - * - * - * - * @generated - * @ordered - */ - int TRUE_LITERAL_QUERY__CAN_BE_CACHED = ExtensiblePackage.QUERY__CAN_BE_CACHED; - - /** - * The number of structural features of the 'True Literal Query' class. - * - * - * - * @generated - * @ordered - */ - int TRUE_LITERAL_QUERY_FEATURE_COUNT = ExtensiblePackage.QUERY_FEATURE_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.FalseLiteralQueryImpl False Literal Query}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.FalseLiteralQueryImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getFalseLiteralQuery() - * @generated - */ - int FALSE_LITERAL_QUERY = 4; - - /** - * The feature id for the 'Can Have Side Effects' attribute. - * - * - * - * @generated - * @ordered - */ - int FALSE_LITERAL_QUERY__CAN_HAVE_SIDE_EFFECTS = ExtensiblePackage.QUERY__CAN_HAVE_SIDE_EFFECTS; - - /** - * The feature id for the 'Can Be Cached' attribute. - * - * - * - * @generated - * @ordered - */ - int FALSE_LITERAL_QUERY__CAN_BE_CACHED = ExtensiblePackage.QUERY__CAN_BE_CACHED; - - /** - * The number of structural features of the 'False Literal Query' class. - * - * - * - * @generated - * @ordered - */ - int FALSE_LITERAL_QUERY_FEATURE_COUNT = ExtensiblePackage.QUERY_FEATURE_COUNT + 0; - - - /** - * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.NullLiteralQueryImpl Null Literal Query}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.NullLiteralQueryImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getNullLiteralQuery() - * @generated - */ - int NULL_LITERAL_QUERY = 5; - - /** - * The feature id for the 'Can Have Side Effects' attribute. - * - * - * - * @generated - * @ordered - */ - int NULL_LITERAL_QUERY__CAN_HAVE_SIDE_EFFECTS = ExtensiblePackage.QUERY__CAN_HAVE_SIDE_EFFECTS; - - /** - * The feature id for the 'Can Be Cached' attribute. - * - * - * - * @generated - * @ordered - */ - int NULL_LITERAL_QUERY__CAN_BE_CACHED = ExtensiblePackage.QUERY__CAN_BE_CACHED; - - /** - * The number of structural features of the 'Null Literal Query' class. - * - * - * - * @generated - * @ordered - */ - int NULL_LITERAL_QUERY_FEATURE_COUNT = ExtensiblePackage.QUERY_FEATURE_COUNT + 0; - - - /** - * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.IntegerLiteralQueryImpl Integer Literal Query}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.IntegerLiteralQueryImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getIntegerLiteralQuery() - * @generated - */ - int INTEGER_LITERAL_QUERY = 6; - - /** - * The feature id for the 'Can Have Side Effects' attribute. - * - * - * - * @generated - * @ordered - */ - int INTEGER_LITERAL_QUERY__CAN_HAVE_SIDE_EFFECTS = ExtensiblePackage.QUERY__CAN_HAVE_SIDE_EFFECTS; - - /** - * The feature id for the 'Can Be Cached' attribute. - * - * - * - * @generated - * @ordered - */ - int INTEGER_LITERAL_QUERY__CAN_BE_CACHED = ExtensiblePackage.QUERY__CAN_BE_CACHED; - - /** - * The feature id for the 'Value' attribute. - * - * - * - * @generated - * @ordered - */ - int INTEGER_LITERAL_QUERY__VALUE = ExtensiblePackage.QUERY_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Integer Literal Query' class. - * - * - * - * @generated - * @ordered - */ - int INTEGER_LITERAL_QUERY_FEATURE_COUNT = ExtensiblePackage.QUERY_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.FloatLiteralQueryImpl Float Literal Query}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.FloatLiteralQueryImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getFloatLiteralQuery() - * @generated - */ - int FLOAT_LITERAL_QUERY = 7; - - /** - * The feature id for the 'Can Have Side Effects' attribute. - * - * - * - * @generated - * @ordered - */ - int FLOAT_LITERAL_QUERY__CAN_HAVE_SIDE_EFFECTS = ExtensiblePackage.QUERY__CAN_HAVE_SIDE_EFFECTS; - - /** - * The feature id for the 'Can Be Cached' attribute. - * - * - * - * @generated - * @ordered - */ - int FLOAT_LITERAL_QUERY__CAN_BE_CACHED = ExtensiblePackage.QUERY__CAN_BE_CACHED; - - /** - * The feature id for the 'Value' attribute. - * - * - * - * @generated - * @ordered - */ - int FLOAT_LITERAL_QUERY__VALUE = ExtensiblePackage.QUERY_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Float Literal Query' class. - * - * - * - * @generated - * @ordered - */ - int FLOAT_LITERAL_QUERY_FEATURE_COUNT = ExtensiblePackage.QUERY_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.EObjectLiteralQueryImpl EObject Literal Query}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.EObjectLiteralQueryImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getEObjectLiteralQuery() - * @generated - */ - int EOBJECT_LITERAL_QUERY = 8; - - /** - * The feature id for the 'Can Have Side Effects' attribute. - * - * - * - * @generated - * @ordered - */ - int EOBJECT_LITERAL_QUERY__CAN_HAVE_SIDE_EFFECTS = ExtensiblePackage.QUERY__CAN_HAVE_SIDE_EFFECTS; - - /** - * The feature id for the 'Can Be Cached' attribute. - * - * - * - * @generated - * @ordered - */ - int EOBJECT_LITERAL_QUERY__CAN_BE_CACHED = ExtensiblePackage.QUERY__CAN_BE_CACHED; - - /** - * The feature id for the 'Element' reference. - * - * - * - * @generated - * @ordered - */ - int EOBJECT_LITERAL_QUERY__ELEMENT = ExtensiblePackage.QUERY_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'EObject Literal Query' class. - * - * - * - * @generated - * @ordered - */ - int EOBJECT_LITERAL_QUERY_FEATURE_COUNT = ExtensiblePackage.QUERY_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.OperationCallQueryImpl Operation Call Query}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.OperationCallQueryImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getOperationCallQuery() - * @generated - */ - int OPERATION_CALL_QUERY = 9; - - /** - * The feature id for the 'Can Have Side Effects' attribute. - * - * - * - * @generated - * @ordered - */ - int OPERATION_CALL_QUERY__CAN_HAVE_SIDE_EFFECTS = ExtensiblePackage.QUERY__CAN_HAVE_SIDE_EFFECTS; - - /** - * The feature id for the 'Can Be Cached' attribute. - * - * - * - * @generated - * @ordered - */ - int OPERATION_CALL_QUERY__CAN_BE_CACHED = ExtensiblePackage.QUERY__CAN_BE_CACHED; - - /** - * The feature id for the 'Operation' reference. - * - * - * - * @generated - * @ordered - */ - int OPERATION_CALL_QUERY__OPERATION = ExtensiblePackage.QUERY_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Arguments' containment reference list. - * - * - * - * @generated - * @ordered - */ - int OPERATION_CALL_QUERY__ARGUMENTS = ExtensiblePackage.QUERY_FEATURE_COUNT + 1; - - /** - * The number of structural features of the 'Operation Call Query' class. - * - * - * - * @generated - * @ordered - */ - int OPERATION_CALL_QUERY_FEATURE_COUNT = ExtensiblePackage.QUERY_FEATURE_COUNT + 2; - - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NavigationQuery Navigation Query}'. - * - * - * - * @return the meta object for class 'Navigation Query'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NavigationQuery - * @generated - */ - EClass getNavigationQuery(); - - /** - * Returns the meta object for the reference list '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NavigationQuery#getPath Path}'. - * - * - * - * @return the meta object for the reference list 'Path'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NavigationQuery#getPath() - * @see #getNavigationQuery() - * @generated - */ - EReference getNavigationQuery_Path(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NavigationQuery#isFailOnError Fail On Error}'. - * - * - * - * @return the meta object for the attribute 'Fail On Error'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NavigationQuery#isFailOnError() - * @see #getNavigationQuery() - * @generated - */ - EAttribute getNavigationQuery_FailOnError(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IsOneOfQuery Is One Of Query}'. - * - * - * - * @return the meta object for class 'Is One Of Query'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IsOneOfQuery - * @generated - */ - EClass getIsOneOfQuery(); - - /** - * Returns the meta object for the reference list '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IsOneOfQuery#getExpectedEObjects Expected EObjects}'. - * - * - * - * @return the meta object for the reference list 'Expected EObjects'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IsOneOfQuery#getExpectedEObjects() - * @see #getIsOneOfQuery() - * @generated - */ - EReference getIsOneOfQuery_ExpectedEObjects(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.StringLiteralQuery String Literal Query}'. - * - * - * - * @return the meta object for class 'String Literal Query'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.StringLiteralQuery - * @generated - */ - EClass getStringLiteralQuery(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.StringLiteralQuery#getValue Value}'. - * - * - * - * @return the meta object for the attribute 'Value'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.StringLiteralQuery#getValue() - * @see #getStringLiteralQuery() - * @generated - */ - EAttribute getStringLiteralQuery_Value(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.TrueLiteralQuery True Literal Query}'. - * - * - * - * @return the meta object for class 'True Literal Query'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.TrueLiteralQuery - * @generated - */ - EClass getTrueLiteralQuery(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FalseLiteralQuery False Literal Query}'. - * - * - * - * @return the meta object for class 'False Literal Query'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FalseLiteralQuery - * @generated - */ - EClass getFalseLiteralQuery(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NullLiteralQuery Null Literal Query}'. - * - * - * - * @return the meta object for class 'Null Literal Query'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NullLiteralQuery - * @generated - */ - EClass getNullLiteralQuery(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IntegerLiteralQuery Integer Literal Query}'. - * - * - * - * @return the meta object for class 'Integer Literal Query'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IntegerLiteralQuery - * @generated - */ - EClass getIntegerLiteralQuery(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IntegerLiteralQuery#getValue Value}'. - * - * - * - * @return the meta object for the attribute 'Value'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IntegerLiteralQuery#getValue() - * @see #getIntegerLiteralQuery() - * @generated - */ - EAttribute getIntegerLiteralQuery_Value(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FloatLiteralQuery Float Literal Query}'. - * - * - * - * @return the meta object for class 'Float Literal Query'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FloatLiteralQuery - * @generated - */ - EClass getFloatLiteralQuery(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FloatLiteralQuery#getValue Value}'. - * - * - * - * @return the meta object for the attribute 'Value'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FloatLiteralQuery#getValue() - * @see #getFloatLiteralQuery() - * @generated - */ - EAttribute getFloatLiteralQuery_Value(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.EObjectLiteralQuery EObject Literal Query}'. - * - * - * - * @return the meta object for class 'EObject Literal Query'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.EObjectLiteralQuery - * @generated - */ - EClass getEObjectLiteralQuery(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.EObjectLiteralQuery#getElement Element}'. - * - * - * - * @return the meta object for the reference 'Element'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.EObjectLiteralQuery#getElement() - * @see #getEObjectLiteralQuery() - * @generated - */ - EReference getEObjectLiteralQuery_Element(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.OperationCallQuery Operation Call Query}'. - * - * - * - * @return the meta object for class 'Operation Call Query'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.OperationCallQuery - * @generated - */ - EClass getOperationCallQuery(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.OperationCallQuery#getOperation Operation}'. - * - * - * - * @return the meta object for the reference 'Operation'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.OperationCallQuery#getOperation() - * @see #getOperationCallQuery() - * @generated - */ - EReference getOperationCallQuery_Operation(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.OperationCallQuery#getArguments Arguments}'. - * - * - * - * @return the meta object for the containment reference list 'Arguments'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.OperationCallQuery#getArguments() - * @see #getOperationCallQuery() - * @generated - */ - EReference getOperationCallQuery_Arguments(); - - /** - * Returns the factory that creates the instances of the model. - * - * - * - * @return the factory that creates the instances of the model. - * @generated - */ - QueryFactory getQueryFactory(); - - /** - * - * Defines literals for the meta objects that represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * - * @generated - */ - interface Literals { - /** - * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.NavigationQueryImpl Navigation Query}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.NavigationQueryImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getNavigationQuery() - * @generated - */ - EClass NAVIGATION_QUERY = eINSTANCE.getNavigationQuery(); - - /** - * The meta object literal for the 'Path' reference list feature. - * - * - * - * @generated - */ - EReference NAVIGATION_QUERY__PATH = eINSTANCE.getNavigationQuery_Path(); - - /** - * The meta object literal for the 'Fail On Error' attribute feature. - * - * - * - * @generated - */ - EAttribute NAVIGATION_QUERY__FAIL_ON_ERROR = eINSTANCE.getNavigationQuery_FailOnError(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.IsOneOfQueryImpl Is One Of Query}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.IsOneOfQueryImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getIsOneOfQuery() - * @generated - */ - EClass IS_ONE_OF_QUERY = eINSTANCE.getIsOneOfQuery(); - - /** - * The meta object literal for the 'Expected EObjects' reference list feature. - * - * - * - * @generated - */ - EReference IS_ONE_OF_QUERY__EXPECTED_EOBJECTS = eINSTANCE.getIsOneOfQuery_ExpectedEObjects(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.StringLiteralQueryImpl String Literal Query}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.StringLiteralQueryImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getStringLiteralQuery() - * @generated - */ - EClass STRING_LITERAL_QUERY = eINSTANCE.getStringLiteralQuery(); - - /** - * The meta object literal for the 'Value' attribute feature. - * - * - * - * @generated - */ - EAttribute STRING_LITERAL_QUERY__VALUE = eINSTANCE.getStringLiteralQuery_Value(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.TrueLiteralQueryImpl True Literal Query}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.TrueLiteralQueryImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getTrueLiteralQuery() - * @generated - */ - EClass TRUE_LITERAL_QUERY = eINSTANCE.getTrueLiteralQuery(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.FalseLiteralQueryImpl False Literal Query}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.FalseLiteralQueryImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getFalseLiteralQuery() - * @generated - */ - EClass FALSE_LITERAL_QUERY = eINSTANCE.getFalseLiteralQuery(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.NullLiteralQueryImpl Null Literal Query}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.NullLiteralQueryImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getNullLiteralQuery() - * @generated - */ - EClass NULL_LITERAL_QUERY = eINSTANCE.getNullLiteralQuery(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.IntegerLiteralQueryImpl Integer Literal Query}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.IntegerLiteralQueryImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getIntegerLiteralQuery() - * @generated - */ - EClass INTEGER_LITERAL_QUERY = eINSTANCE.getIntegerLiteralQuery(); - - /** - * The meta object literal for the 'Value' attribute feature. - * - * - * - * @generated - */ - EAttribute INTEGER_LITERAL_QUERY__VALUE = eINSTANCE.getIntegerLiteralQuery_Value(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.FloatLiteralQueryImpl Float Literal Query}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.FloatLiteralQueryImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getFloatLiteralQuery() - * @generated - */ - EClass FLOAT_LITERAL_QUERY = eINSTANCE.getFloatLiteralQuery(); - - /** - * The meta object literal for the 'Value' attribute feature. - * - * - * - * @generated - */ - EAttribute FLOAT_LITERAL_QUERY__VALUE = eINSTANCE.getFloatLiteralQuery_Value(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.EObjectLiteralQueryImpl EObject Literal Query}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.EObjectLiteralQueryImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getEObjectLiteralQuery() - * @generated - */ - EClass EOBJECT_LITERAL_QUERY = eINSTANCE.getEObjectLiteralQuery(); - - /** - * The meta object literal for the 'Element' reference feature. - * - * - * - * @generated - */ - EReference EOBJECT_LITERAL_QUERY__ELEMENT = eINSTANCE.getEObjectLiteralQuery_Element(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.OperationCallQueryImpl Operation Call Query}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.OperationCallQueryImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl#getOperationCallQuery() - * @generated - */ - EClass OPERATION_CALL_QUERY = eINSTANCE.getOperationCallQuery(); - - /** - * The meta object literal for the 'Operation' reference feature. - * - * - * - * @generated - */ - EReference OPERATION_CALL_QUERY__OPERATION = eINSTANCE.getOperationCallQuery_Operation(); - - /** - * The meta object literal for the 'Arguments' containment reference list feature. - * - * - * - * @generated - */ - EReference OPERATION_CALL_QUERY__ARGUMENTS = eINSTANCE.getOperationCallQuery_Arguments(); - - } - -} // QueryPackage diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/StringLiteralQuery.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/StringLiteralQuery.java deleted file mode 100644 index 15a97824b4c..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/StringLiteralQuery.java +++ /dev/null @@ -1,69 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery - * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query; - -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; - -/** - * - * A representation of the model object 'String Literal Query'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.StringLiteralQuery#getValue Value}
  • - *
- * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#getStringLiteralQuery() - * @model - * @generated - */ -public interface StringLiteralQuery extends Query { - /** - * Returns the value of the 'Value' attribute. - * - *

- * If the meaning of the 'Value' attribute isn't clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'Value' attribute. - * @see #setValue(String) - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#getStringLiteralQuery_Value() - * @model - * @generated - */ - String getValue(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.StringLiteralQuery#getValue Value}' attribute. - * - * - * - * @param value - * the new value of the 'Value' attribute. - * @see #getValue() - * @generated - */ - void setValue(String value); - -} // StringLiteralQuery diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/TrueLiteralQuery.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/TrueLiteralQuery.java deleted file mode 100644 index 0f7703f61b0..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/TrueLiteralQuery.java +++ /dev/null @@ -1,40 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery - * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query - * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query; - -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; - -/** - * - * A representation of the model object 'True Literal Query'. - * - * - * - * This query retrun true. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#getTrueLiteralQuery() - * @model - * @generated - */ -public interface TrueLiteralQuery extends Query { -} // TrueLiteralQuery diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/EObjectLiteralQueryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/EObjectLiteralQueryImpl.java deleted file mode 100644 index 5a9e4bcbc2e..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/EObjectLiteralQueryImpl.java +++ /dev/null @@ -1,190 +0,0 @@ -/** - * Copyright (c) 2011-2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery - * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query - * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. - * Nicolas Bros (Mia-Software) - Bug 372626 - [Facet] Aggregates - * Nicolas Bros (Mia-Software) - Bug 376941 - [EFacet] Facet operation arguments in Facet model - * - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.QueryImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.EObjectLiteralQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage; - -/** - * - * An implementation of the model object 'EObject Literal Query'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.EObjectLiteralQueryImpl#getElement Element}
  • - *
- * - * @generated - */ -public class EObjectLiteralQueryImpl extends QueryImpl implements EObjectLiteralQuery { - /** - * The cached value of the '{@link #getElement() Element}' reference. - * - * - * - * @see #getElement() - * @generated - * @ordered - */ - protected EObject element; - - /** - * - * - * - * @generated - */ - protected EObjectLiteralQueryImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return QueryPackage.Literals.EOBJECT_LITERAL_QUERY; - } - - /** - * - * - * - * @generated - */ - public EObject getElement() { - if (element != null && element.eIsProxy()) { - InternalEObject oldElement = (InternalEObject) element; - element = eResolveProxy(oldElement); - if (element != oldElement) { - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.RESOLVE, QueryPackage.EOBJECT_LITERAL_QUERY__ELEMENT, oldElement, element)); - } - } - } - return element; - } - - /** - * - * - * - * @generated - */ - public EObject basicGetElement() { - return element; - } - - /** - * - * - * - * @generated - */ - public void setElement(EObject newElement) { - EObject oldElement = element; - element = newElement; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, QueryPackage.EOBJECT_LITERAL_QUERY__ELEMENT, oldElement, element)); - } - } - - /** - * - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case QueryPackage.EOBJECT_LITERAL_QUERY__ELEMENT: - if (resolve) { - return getElement(); - } - return basicGetElement(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case QueryPackage.EOBJECT_LITERAL_QUERY__ELEMENT: - setElement((EObject) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case QueryPackage.EOBJECT_LITERAL_QUERY__ELEMENT: - setElement((EObject) null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case QueryPackage.EOBJECT_LITERAL_QUERY__ELEMENT: - return element != null; - } - return super.eIsSet(featureID); - } - -} // EObjectLiteralQueryImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/FalseLiteralQueryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/FalseLiteralQueryImpl.java deleted file mode 100644 index 442ec4bb464..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/FalseLiteralQueryImpl.java +++ /dev/null @@ -1,57 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery - * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query - * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.QueryImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FalseLiteralQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage; - -/** - * - * An implementation of the model object 'False Literal Query'. - * - * - * @generated - */ -public class FalseLiteralQueryImpl extends QueryImpl implements FalseLiteralQuery { - /** - * - * - * - * @generated - */ - protected FalseLiteralQueryImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return QueryPackage.Literals.FALSE_LITERAL_QUERY; - } - -} // FalseLiteralQueryImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/FloatLiteralQueryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/FloatLiteralQueryImpl.java deleted file mode 100644 index 83a6b7930aa..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/FloatLiteralQueryImpl.java +++ /dev/null @@ -1,196 +0,0 @@ -/** - * Copyright (c) 2011-2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery - * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query - * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. - * Nicolas Bros (Mia-Software) - Bug 372626 - [Facet] Aggregates - * Nicolas Bros (Mia-Software) - Bug 376941 - [EFacet] Facet operation arguments in Facet model - * - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.QueryImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FloatLiteralQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage; - -/** - * - * An implementation of the model object 'Float Literal Query'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.FloatLiteralQueryImpl#getValue Value}
  • - *
- * - * @generated - */ -public class FloatLiteralQueryImpl extends QueryImpl implements FloatLiteralQuery { - /** - * The default value of the '{@link #getValue() Value}' attribute. - * - * - * - * @see #getValue() - * @generated - * @ordered - */ - protected static final float VALUE_EDEFAULT = 0.0F; - - /** - * The cached value of the '{@link #getValue() Value}' attribute. - * - * - * - * @see #getValue() - * @generated - * @ordered - */ - protected float value = VALUE_EDEFAULT; - - /** - * - * - * - * @generated - */ - protected FloatLiteralQueryImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return QueryPackage.Literals.FLOAT_LITERAL_QUERY; - } - - /** - * - * - * - * @generated - */ - public float getValue() { - return value; - } - - /** - * - * - * - * @generated - */ - public void setValue(float newValue) { - float oldValue = value; - value = newValue; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, QueryPackage.FLOAT_LITERAL_QUERY__VALUE, oldValue, value)); - } - } - - /** - * - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case QueryPackage.FLOAT_LITERAL_QUERY__VALUE: - return getValue(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case QueryPackage.FLOAT_LITERAL_QUERY__VALUE: - setValue((Float) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case QueryPackage.FLOAT_LITERAL_QUERY__VALUE: - setValue(VALUE_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case QueryPackage.FLOAT_LITERAL_QUERY__VALUE: - return value != VALUE_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) { - return super.toString(); - } - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (value: "); //$NON-NLS-1$ - result.append(value); - result.append(')'); - return result.toString(); - } - -} // FloatLiteralQueryImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/IntegerLiteralQueryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/IntegerLiteralQueryImpl.java deleted file mode 100644 index faa21d37fde..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/IntegerLiteralQueryImpl.java +++ /dev/null @@ -1,196 +0,0 @@ -/** - * Copyright (c) 2011-2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery - * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query - * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. - * Nicolas Bros (Mia-Software) - Bug 372626 - [Facet] Aggregates - * Nicolas Bros (Mia-Software) - Bug 376941 - [EFacet] Facet operation arguments in Facet model - * - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.QueryImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IntegerLiteralQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage; - -/** - * - * An implementation of the model object 'Integer Literal Query'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.IntegerLiteralQueryImpl#getValue Value}
  • - *
- * - * @generated - */ -public class IntegerLiteralQueryImpl extends QueryImpl implements IntegerLiteralQuery { - /** - * The default value of the '{@link #getValue() Value}' attribute. - * - * - * - * @see #getValue() - * @generated - * @ordered - */ - protected static final int VALUE_EDEFAULT = 0; - - /** - * The cached value of the '{@link #getValue() Value}' attribute. - * - * - * - * @see #getValue() - * @generated - * @ordered - */ - protected int value = VALUE_EDEFAULT; - - /** - * - * - * - * @generated - */ - protected IntegerLiteralQueryImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return QueryPackage.Literals.INTEGER_LITERAL_QUERY; - } - - /** - * - * - * - * @generated - */ - public int getValue() { - return value; - } - - /** - * - * - * - * @generated - */ - public void setValue(int newValue) { - int oldValue = value; - value = newValue; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, QueryPackage.INTEGER_LITERAL_QUERY__VALUE, oldValue, value)); - } - } - - /** - * - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case QueryPackage.INTEGER_LITERAL_QUERY__VALUE: - return getValue(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case QueryPackage.INTEGER_LITERAL_QUERY__VALUE: - setValue((Integer) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case QueryPackage.INTEGER_LITERAL_QUERY__VALUE: - setValue(VALUE_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case QueryPackage.INTEGER_LITERAL_QUERY__VALUE: - return value != VALUE_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) { - return super.toString(); - } - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (value: "); //$NON-NLS-1$ - result.append(value); - result.append(')'); - return result.toString(); - } - -} // IntegerLiteralQueryImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/IsOneOfQueryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/IsOneOfQueryImpl.java deleted file mode 100644 index e9e1bede21c..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/IsOneOfQueryImpl.java +++ /dev/null @@ -1,154 +0,0 @@ -/** - * Copyright (c) 2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.util.EObjectResolvingEList; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.QueryImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IsOneOfQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage; - -/** - * - * An implementation of the model object 'Is One Of Query'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.IsOneOfQueryImpl#getExpectedEObjects Expected EObjects}
  • - *
- * - * @generated - */ -public class IsOneOfQueryImpl extends QueryImpl implements IsOneOfQuery { - /** - * The cached value of the '{@link #getExpectedEObjects() Expected EObjects}' reference list. - * - * - * - * @see #getExpectedEObjects() - * @generated - * @ordered - */ - protected EList expectedEObjects; - - /** - * - * - * - * @generated - */ - protected IsOneOfQueryImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return QueryPackage.Literals.IS_ONE_OF_QUERY; - } - - /** - * - * - * - * @generated - */ - public EList getExpectedEObjects() { - if (expectedEObjects == null) { - expectedEObjects = new EObjectResolvingEList(EObject.class, this, QueryPackage.IS_ONE_OF_QUERY__EXPECTED_EOBJECTS); - } - return expectedEObjects; - } - - /** - * - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case QueryPackage.IS_ONE_OF_QUERY__EXPECTED_EOBJECTS: - return getExpectedEObjects(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case QueryPackage.IS_ONE_OF_QUERY__EXPECTED_EOBJECTS: - getExpectedEObjects().clear(); - getExpectedEObjects().addAll((Collection) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case QueryPackage.IS_ONE_OF_QUERY__EXPECTED_EOBJECTS: - getExpectedEObjects().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case QueryPackage.IS_ONE_OF_QUERY__EXPECTED_EOBJECTS: - return expectedEObjects != null && !expectedEObjects.isEmpty(); - } - return super.eIsSet(featureID); - } - -} // IsOneOfQueryImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/NavigationQueryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/NavigationQueryImpl.java deleted file mode 100644 index 0edf41c0aac..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/NavigationQueryImpl.java +++ /dev/null @@ -1,230 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.ETypedElement; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.EObjectResolvingEList; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.QueryImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NavigationQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage; - -/** - * - * An implementation of the model object 'Navigation Query'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.NavigationQueryImpl#getPath Path}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.NavigationQueryImpl#isFailOnError Fail On Error}
  • - *
- * - * @generated - */ -public class NavigationQueryImpl extends QueryImpl implements NavigationQuery { - /** - * The cached value of the '{@link #getPath() Path}' reference list. - * - * - * - * @see #getPath() - * @generated - * @ordered - */ - protected EList path; - - /** - * The default value of the '{@link #isFailOnError() Fail On Error}' attribute. - * - * - * - * @see #isFailOnError() - * @generated - * @ordered - */ - protected static final boolean FAIL_ON_ERROR_EDEFAULT = true; - /** - * The cached value of the '{@link #isFailOnError() Fail On Error}' attribute. - * - * - * - * @see #isFailOnError() - * @generated - * @ordered - */ - protected boolean failOnError = FAIL_ON_ERROR_EDEFAULT; - - /** - * - * - * - * @generated - */ - protected NavigationQueryImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return QueryPackage.Literals.NAVIGATION_QUERY; - } - - /** - * - * - * - * @generated - */ - public EList getPath() { - if (path == null) { - path = new EObjectResolvingEList(ETypedElement.class, this, QueryPackage.NAVIGATION_QUERY__PATH); - } - return path; - } - - /** - * - * - * - * @generated - */ - public boolean isFailOnError() { - return failOnError; - } - - /** - * - * - * - * @generated - */ - public void setFailOnError(boolean newFailOnError) { - boolean oldFailOnError = failOnError; - failOnError = newFailOnError; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, QueryPackage.NAVIGATION_QUERY__FAIL_ON_ERROR, oldFailOnError, failOnError)); - } - } - - /** - * - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case QueryPackage.NAVIGATION_QUERY__PATH: - return getPath(); - case QueryPackage.NAVIGATION_QUERY__FAIL_ON_ERROR: - return isFailOnError(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case QueryPackage.NAVIGATION_QUERY__PATH: - getPath().clear(); - getPath().addAll((Collection) newValue); - return; - case QueryPackage.NAVIGATION_QUERY__FAIL_ON_ERROR: - setFailOnError((Boolean) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case QueryPackage.NAVIGATION_QUERY__PATH: - getPath().clear(); - return; - case QueryPackage.NAVIGATION_QUERY__FAIL_ON_ERROR: - setFailOnError(FAIL_ON_ERROR_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case QueryPackage.NAVIGATION_QUERY__PATH: - return path != null && !path.isEmpty(); - case QueryPackage.NAVIGATION_QUERY__FAIL_ON_ERROR: - return failOnError != FAIL_ON_ERROR_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) { - return super.toString(); - } - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (failOnError: "); //$NON-NLS-1$ - result.append(failOnError); - result.append(')'); - return result.toString(); - } - -} // NavigationQueryImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/NullLiteralQueryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/NullLiteralQueryImpl.java deleted file mode 100644 index e1ff1581ee3..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/NullLiteralQueryImpl.java +++ /dev/null @@ -1,57 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery - * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query - * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.QueryImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NullLiteralQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage; - -/** - * - * An implementation of the model object 'Null Literal Query'. - * - * - * @generated - */ -public class NullLiteralQueryImpl extends QueryImpl implements NullLiteralQuery { - /** - * - * - * - * @generated - */ - protected NullLiteralQueryImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return QueryPackage.Literals.NULL_LITERAL_QUERY; - } - -} // NullLiteralQueryImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/OperationCallQueryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/OperationCallQueryImpl.java deleted file mode 100644 index 97a7fffcbb8..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/OperationCallQueryImpl.java +++ /dev/null @@ -1,249 +0,0 @@ -/** - * Copyright (c) 2011-2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery - * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query - * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. - * Nicolas Bros (Mia-Software) - Bug 372626 - [Facet] Aggregates - * Nicolas Bros (Mia-Software) - Bug 376941 - [EFacet] Facet operation arguments in Facet model - * - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EOperation; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.QueryImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.OperationCallQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage; - -/** - * - * An implementation of the model object 'Operation Call Query'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.OperationCallQueryImpl#getOperation Operation}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.OperationCallQueryImpl#getArguments Arguments}
  • - *
- * - * @generated - */ -public class OperationCallQueryImpl extends QueryImpl implements OperationCallQuery { - /** - * The cached value of the '{@link #getOperation() Operation}' reference. - * - * - * - * @see #getOperation() - * @generated - * @ordered - */ - protected EOperation operation; - - /** - * The cached value of the '{@link #getArguments() Arguments}' containment reference list. - * - * - * - * @see #getArguments() - * @generated - * @ordered - */ - protected EList arguments; - - /** - * - * - * - * @generated - */ - protected OperationCallQueryImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return QueryPackage.Literals.OPERATION_CALL_QUERY; - } - - /** - * - * - * - * @generated - */ - public EOperation getOperation() { - if (operation != null && operation.eIsProxy()) { - InternalEObject oldOperation = (InternalEObject) operation; - operation = (EOperation) eResolveProxy(oldOperation); - if (operation != oldOperation) { - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.RESOLVE, QueryPackage.OPERATION_CALL_QUERY__OPERATION, oldOperation, operation)); - } - } - } - return operation; - } - - /** - * - * - * - * @generated - */ - public EOperation basicGetOperation() { - return operation; - } - - /** - * - * - * - * @generated - */ - public void setOperation(EOperation newOperation) { - EOperation oldOperation = operation; - operation = newOperation; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, QueryPackage.OPERATION_CALL_QUERY__OPERATION, oldOperation, operation)); - } - } - - /** - * - * - * - * @generated - */ - public EList getArguments() { - if (arguments == null) { - arguments = new EObjectContainmentEList(Query.class, this, QueryPackage.OPERATION_CALL_QUERY__ARGUMENTS); - } - return arguments; - } - - /** - * - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case QueryPackage.OPERATION_CALL_QUERY__ARGUMENTS: - return ((InternalEList) getArguments()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case QueryPackage.OPERATION_CALL_QUERY__OPERATION: - if (resolve) { - return getOperation(); - } - return basicGetOperation(); - case QueryPackage.OPERATION_CALL_QUERY__ARGUMENTS: - return getArguments(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case QueryPackage.OPERATION_CALL_QUERY__OPERATION: - setOperation((EOperation) newValue); - return; - case QueryPackage.OPERATION_CALL_QUERY__ARGUMENTS: - getArguments().clear(); - getArguments().addAll((Collection) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case QueryPackage.OPERATION_CALL_QUERY__OPERATION: - setOperation((EOperation) null); - return; - case QueryPackage.OPERATION_CALL_QUERY__ARGUMENTS: - getArguments().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case QueryPackage.OPERATION_CALL_QUERY__OPERATION: - return operation != null; - case QueryPackage.OPERATION_CALL_QUERY__ARGUMENTS: - return arguments != null && !arguments.isEmpty(); - } - return super.eIsSet(featureID); - } - -} // OperationCallQueryImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/QueryFactoryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/QueryFactoryImpl.java deleted file mode 100644 index 7150fbfc7de..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/QueryFactoryImpl.java +++ /dev/null @@ -1,243 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.emf.ecore.plugin.EcorePlugin; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.EObjectLiteralQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FalseLiteralQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FloatLiteralQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IntegerLiteralQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IsOneOfQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NavigationQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NullLiteralQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.OperationCallQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryFactory; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.StringLiteralQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.TrueLiteralQuery; - -/** - * - * An implementation of the model Factory. - * - * - * @generated - */ -public class QueryFactoryImpl extends EFactoryImpl implements QueryFactory { - /** - * Creates the default factory implementation. - * - * - * - * @generated - */ - public static QueryFactory init() { - try { - QueryFactory theQueryFactory = (QueryFactory) EPackage.Registry.INSTANCE.getEFactory(QueryPackage.eNS_URI); - if (theQueryFactory != null) { - return theQueryFactory; - } - } catch (Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new QueryFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * - * - * @generated - */ - public QueryFactoryImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case QueryPackage.NAVIGATION_QUERY: - return createNavigationQuery(); - case QueryPackage.IS_ONE_OF_QUERY: - return createIsOneOfQuery(); - case QueryPackage.STRING_LITERAL_QUERY: - return createStringLiteralQuery(); - case QueryPackage.TRUE_LITERAL_QUERY: - return createTrueLiteralQuery(); - case QueryPackage.FALSE_LITERAL_QUERY: - return createFalseLiteralQuery(); - case QueryPackage.NULL_LITERAL_QUERY: - return createNullLiteralQuery(); - case QueryPackage.INTEGER_LITERAL_QUERY: - return createIntegerLiteralQuery(); - case QueryPackage.FLOAT_LITERAL_QUERY: - return createFloatLiteralQuery(); - case QueryPackage.EOBJECT_LITERAL_QUERY: - return createEObjectLiteralQuery(); - case QueryPackage.OPERATION_CALL_QUERY: - return createOperationCallQuery(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ - } - } - - /** - * - * - * - * @generated - */ - public NavigationQuery createNavigationQuery() { - NavigationQueryImpl navigationQuery = new NavigationQueryImpl(); - return navigationQuery; - } - - /** - * - * - * - * @generated - */ - public IsOneOfQuery createIsOneOfQuery() { - IsOneOfQueryImpl isOneOfQuery = new IsOneOfQueryImpl(); - return isOneOfQuery; - } - - /** - * - * - * - * @generated - */ - public StringLiteralQuery createStringLiteralQuery() { - StringLiteralQueryImpl stringLiteralQuery = new StringLiteralQueryImpl(); - return stringLiteralQuery; - } - - /** - * - * - * - * @generated - */ - public TrueLiteralQuery createTrueLiteralQuery() { - TrueLiteralQueryImpl trueLiteralQuery = new TrueLiteralQueryImpl(); - return trueLiteralQuery; - } - - /** - * - * - * - * @generated - */ - public FalseLiteralQuery createFalseLiteralQuery() { - FalseLiteralQueryImpl falseLiteralQuery = new FalseLiteralQueryImpl(); - return falseLiteralQuery; - } - - /** - * - * - * - * @generated - */ - public NullLiteralQuery createNullLiteralQuery() { - NullLiteralQueryImpl nullLiteralQuery = new NullLiteralQueryImpl(); - return nullLiteralQuery; - } - - /** - * - * - * - * @generated - */ - public IntegerLiteralQuery createIntegerLiteralQuery() { - IntegerLiteralQueryImpl integerLiteralQuery = new IntegerLiteralQueryImpl(); - return integerLiteralQuery; - } - - /** - * - * - * - * @generated - */ - public FloatLiteralQuery createFloatLiteralQuery() { - FloatLiteralQueryImpl floatLiteralQuery = new FloatLiteralQueryImpl(); - return floatLiteralQuery; - } - - /** - * - * - * - * @generated - */ - public EObjectLiteralQuery createEObjectLiteralQuery() { - EObjectLiteralQueryImpl eObjectLiteralQuery = new EObjectLiteralQueryImpl(); - return eObjectLiteralQuery; - } - - /** - * - * - * - * @generated - */ - public OperationCallQuery createOperationCallQuery() { - OperationCallQueryImpl operationCallQuery = new OperationCallQueryImpl(); - return operationCallQuery; - } - - /** - * - * - * - * @generated - */ - public QueryPackage getQueryPackage() { - return (QueryPackage) getEPackage(); - } - - /** - * - * - * - * @deprecated - * @generated - */ - @Deprecated - public static QueryPackage getPackage() { - return QueryPackage.eINSTANCE; - } - -} // QueryFactoryImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/QueryPackageImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/QueryPackageImpl.java deleted file mode 100644 index 5438d29d74e..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/QueryPackageImpl.java +++ /dev/null @@ -1,560 +0,0 @@ -/** - * Copyright (c) 2011, 2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - * Gregoire Dupe (Mia-Software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.EcorePackage; -import org.eclipse.emf.ecore.impl.EPackageImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensiblePackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.ExtensiblePackageImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.EObjectLiteralQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FalseLiteralQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FloatLiteralQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IntegerLiteralQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IsOneOfQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NavigationQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NullLiteralQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.OperationCallQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryFactory; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.StringLiteralQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.TrueLiteralQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.RuntimePackageImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl; - -/** - * - * An implementation of the model Package. - * - * - * @generated - */ -public class QueryPackageImpl extends EPackageImpl implements QueryPackage { - /** - * - * - * - * @generated - */ - private EClass navigationQueryEClass = null; - - /** - * - * - * - * @generated - */ - private EClass isOneOfQueryEClass = null; - - /** - * - * - * - * @generated - */ - private EClass stringLiteralQueryEClass = null; - - /** - * - * - * - * @generated - */ - private EClass trueLiteralQueryEClass = null; - - /** - * - * - * - * @generated - */ - private EClass falseLiteralQueryEClass = null; - - /** - * - * - * - * @generated - */ - private EClass nullLiteralQueryEClass = null; - - /** - * - * - * - * @generated - */ - private EClass integerLiteralQueryEClass = null; - - /** - * - * - * - * @generated - */ - private EClass floatLiteralQueryEClass = null; - - /** - * - * - * - * @generated - */ - private EClass eObjectLiteralQueryEClass = null; - - /** - * - * - * - * @generated - */ - private EClass operationCallQueryEClass = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - *

- * Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage#eNS_URI - * @see #init() - * @generated - */ - private QueryPackageImpl() { - super(eNS_URI, QueryFactory.eINSTANCE); - } - - /** - * - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - * - *

- * This method is used to initialize {@link QueryPackage#eINSTANCE} when that field is accessed. - * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. - * - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static QueryPackage init() { - if (isInited) { - return (QueryPackage) EPackage.Registry.INSTANCE.getEPackage(QueryPackage.eNS_URI); - } - - // Obtain or create and register package - Object registeredQueryPackage = EPackage.Registry.INSTANCE.get(eNS_URI); - QueryPackageImpl theQueryPackage = registeredQueryPackage instanceof QueryPackageImpl ? (QueryPackageImpl) registeredQueryPackage : new QueryPackageImpl(); - - isInited = true; - - // Initialize simple dependencies - EcorePackage.eINSTANCE.eClass(); - - // Obtain or create and register interdependencies - Object registeredPackage = EPackage.Registry.INSTANCE.getEPackage(EFacetPackage.eNS_URI); - EFacetPackageImpl theEFacetPackage = (EFacetPackageImpl) (registeredPackage instanceof EFacetPackageImpl ? registeredPackage : EFacetPackage.eINSTANCE); - registeredPackage = EPackage.Registry.INSTANCE.getEPackage(SerializationPackage.eNS_URI); - SerializationPackageImpl theSerializationPackage = (SerializationPackageImpl) (registeredPackage instanceof SerializationPackageImpl ? registeredPackage : SerializationPackage.eINSTANCE); - registeredPackage = EPackage.Registry.INSTANCE.getEPackage(ExtensiblePackage.eNS_URI); - ExtensiblePackageImpl theExtensiblePackage = (ExtensiblePackageImpl) (registeredPackage instanceof ExtensiblePackageImpl ? registeredPackage : ExtensiblePackage.eINSTANCE); - registeredPackage = EPackage.Registry.INSTANCE.getEPackage(RuntimePackage.eNS_URI); - RuntimePackageImpl theRuntimePackage = (RuntimePackageImpl) (registeredPackage instanceof RuntimePackageImpl ? registeredPackage : RuntimePackage.eINSTANCE); - - // Create package meta-data objects - theQueryPackage.createPackageContents(); - theEFacetPackage.createPackageContents(); - theSerializationPackage.createPackageContents(); - theExtensiblePackage.createPackageContents(); - theRuntimePackage.createPackageContents(); - - // Initialize created meta-data - theQueryPackage.initializePackageContents(); - theEFacetPackage.initializePackageContents(); - theSerializationPackage.initializePackageContents(); - theExtensiblePackage.initializePackageContents(); - theRuntimePackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theQueryPackage.freeze(); - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(QueryPackage.eNS_URI, theQueryPackage); - return theQueryPackage; - } - - /** - * - * - * - * @generated - */ - public EClass getNavigationQuery() { - return navigationQueryEClass; - } - - /** - * - * - * - * @generated - */ - public EReference getNavigationQuery_Path() { - return (EReference) navigationQueryEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * - * @generated - */ - public EAttribute getNavigationQuery_FailOnError() { - return (EAttribute) navigationQueryEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * - * @generated - */ - public EClass getIsOneOfQuery() { - return isOneOfQueryEClass; - } - - /** - * - * - * - * @generated - */ - public EReference getIsOneOfQuery_ExpectedEObjects() { - return (EReference) isOneOfQueryEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * - * @generated - */ - public EClass getStringLiteralQuery() { - return stringLiteralQueryEClass; - } - - /** - * - * - * - * @generated - */ - public EAttribute getStringLiteralQuery_Value() { - return (EAttribute) stringLiteralQueryEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * - * @generated - */ - public EClass getTrueLiteralQuery() { - return trueLiteralQueryEClass; - } - - /** - * - * - * - * @generated - */ - public EClass getFalseLiteralQuery() { - return falseLiteralQueryEClass; - } - - /** - * - * - * - * @generated - */ - public EClass getNullLiteralQuery() { - return nullLiteralQueryEClass; - } - - /** - * - * - * - * @generated - */ - public EClass getIntegerLiteralQuery() { - return integerLiteralQueryEClass; - } - - /** - * - * - * - * @generated - */ - public EAttribute getIntegerLiteralQuery_Value() { - return (EAttribute) integerLiteralQueryEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * - * @generated - */ - public EClass getFloatLiteralQuery() { - return floatLiteralQueryEClass; - } - - /** - * - * - * - * @generated - */ - public EAttribute getFloatLiteralQuery_Value() { - return (EAttribute) floatLiteralQueryEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * - * @generated - */ - public EClass getEObjectLiteralQuery() { - return eObjectLiteralQueryEClass; - } - - /** - * - * - * - * @generated - */ - public EReference getEObjectLiteralQuery_Element() { - return (EReference) eObjectLiteralQueryEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * - * @generated - */ - public EClass getOperationCallQuery() { - return operationCallQueryEClass; - } - - /** - * - * - * - * @generated - */ - public EReference getOperationCallQuery_Operation() { - return (EReference) operationCallQueryEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * - * @generated - */ - public EReference getOperationCallQuery_Arguments() { - return (EReference) operationCallQueryEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * - * @generated - */ - public QueryFactory getQueryFactory() { - return (QueryFactory) getEFactoryInstance(); - } - - /** - * - * - * - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * - * - * - * @generated - */ - public void createPackageContents() { - if (isCreated) { - return; - } - isCreated = true; - - // Create classes and their features - navigationQueryEClass = createEClass(NAVIGATION_QUERY); - createEReference(navigationQueryEClass, NAVIGATION_QUERY__PATH); - createEAttribute(navigationQueryEClass, NAVIGATION_QUERY__FAIL_ON_ERROR); - - isOneOfQueryEClass = createEClass(IS_ONE_OF_QUERY); - createEReference(isOneOfQueryEClass, IS_ONE_OF_QUERY__EXPECTED_EOBJECTS); - - stringLiteralQueryEClass = createEClass(STRING_LITERAL_QUERY); - createEAttribute(stringLiteralQueryEClass, STRING_LITERAL_QUERY__VALUE); - - trueLiteralQueryEClass = createEClass(TRUE_LITERAL_QUERY); - - falseLiteralQueryEClass = createEClass(FALSE_LITERAL_QUERY); - - nullLiteralQueryEClass = createEClass(NULL_LITERAL_QUERY); - - integerLiteralQueryEClass = createEClass(INTEGER_LITERAL_QUERY); - createEAttribute(integerLiteralQueryEClass, INTEGER_LITERAL_QUERY__VALUE); - - floatLiteralQueryEClass = createEClass(FLOAT_LITERAL_QUERY); - createEAttribute(floatLiteralQueryEClass, FLOAT_LITERAL_QUERY__VALUE); - - eObjectLiteralQueryEClass = createEClass(EOBJECT_LITERAL_QUERY); - createEReference(eObjectLiteralQueryEClass, EOBJECT_LITERAL_QUERY__ELEMENT); - - operationCallQueryEClass = createEClass(OPERATION_CALL_QUERY); - createEReference(operationCallQueryEClass, OPERATION_CALL_QUERY__OPERATION); - createEReference(operationCallQueryEClass, OPERATION_CALL_QUERY__ARGUMENTS); - } - - /** - * - * - * - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * - * - * - * @generated - */ - public void initializePackageContents() { - if (isInitialized) { - return; - } - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - ExtensiblePackage theExtensiblePackage = (ExtensiblePackage) EPackage.Registry.INSTANCE.getEPackage(ExtensiblePackage.eNS_URI); - EcorePackage theEcorePackage = (EcorePackage) EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - navigationQueryEClass.getESuperTypes().add(theExtensiblePackage.getQuery()); - isOneOfQueryEClass.getESuperTypes().add(theExtensiblePackage.getQuery()); - stringLiteralQueryEClass.getESuperTypes().add(theExtensiblePackage.getQuery()); - trueLiteralQueryEClass.getESuperTypes().add(theExtensiblePackage.getQuery()); - falseLiteralQueryEClass.getESuperTypes().add(theExtensiblePackage.getQuery()); - nullLiteralQueryEClass.getESuperTypes().add(theExtensiblePackage.getQuery()); - integerLiteralQueryEClass.getESuperTypes().add(theExtensiblePackage.getQuery()); - floatLiteralQueryEClass.getESuperTypes().add(theExtensiblePackage.getQuery()); - eObjectLiteralQueryEClass.getESuperTypes().add(theExtensiblePackage.getQuery()); - operationCallQueryEClass.getESuperTypes().add(theExtensiblePackage.getQuery()); - - // Initialize classes and features; add operations and parameters - initEClass(navigationQueryEClass, NavigationQuery.class, "NavigationQuery", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEReference(getNavigationQuery_Path(), theEcorePackage.getETypedElement(), null, "path", null, 1, -1, NavigationQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, //$NON-NLS-1$ - IS_ORDERED); - initEAttribute(getNavigationQuery_FailOnError(), theEcorePackage.getEBoolean(), "failOnError", "true", 0, 1, NavigationQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ - - initEClass(isOneOfQueryEClass, IsOneOfQuery.class, "IsOneOfQuery", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEReference(getIsOneOfQuery_ExpectedEObjects(), theEcorePackage.getEObject(), null, "expectedEObjects", null, 0, -1, IsOneOfQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, //$NON-NLS-1$ - !IS_DERIVED, IS_ORDERED); - - initEClass(stringLiteralQueryEClass, StringLiteralQuery.class, "StringLiteralQuery", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getStringLiteralQuery_Value(), theEcorePackage.getEString(), "value", null, 0, 1, StringLiteralQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(trueLiteralQueryEClass, TrueLiteralQuery.class, "TrueLiteralQuery", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - - initEClass(falseLiteralQueryEClass, FalseLiteralQuery.class, "FalseLiteralQuery", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - - initEClass(nullLiteralQueryEClass, NullLiteralQuery.class, "NullLiteralQuery", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - - initEClass(integerLiteralQueryEClass, IntegerLiteralQuery.class, "IntegerLiteralQuery", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getIntegerLiteralQuery_Value(), theEcorePackage.getEInt(), "value", null, 0, 1, IntegerLiteralQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(floatLiteralQueryEClass, FloatLiteralQuery.class, "FloatLiteralQuery", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getFloatLiteralQuery_Value(), theEcorePackage.getEFloat(), "value", null, 0, 1, FloatLiteralQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(eObjectLiteralQueryEClass, EObjectLiteralQuery.class, "EObjectLiteralQuery", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEReference(getEObjectLiteralQuery_Element(), theEcorePackage.getEObject(), null, "element", null, 0, 1, EObjectLiteralQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, //$NON-NLS-1$ - !IS_DERIVED, IS_ORDERED); - - initEClass(operationCallQueryEClass, OperationCallQuery.class, "OperationCallQuery", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEReference(getOperationCallQuery_Operation(), theEcorePackage.getEOperation(), null, "operation", null, 0, 1, OperationCallQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, //$NON-NLS-1$ - !IS_DERIVED, IS_ORDERED); - initEReference(getOperationCallQuery_Arguments(), theExtensiblePackage.getQuery(), null, "arguments", null, 0, -1, OperationCallQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, //$NON-NLS-1$ - !IS_DERIVED, IS_ORDERED); - } - -} // QueryPackageImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/StringLiteralQueryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/StringLiteralQueryImpl.java deleted file mode 100644 index e59a044941e..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/StringLiteralQueryImpl.java +++ /dev/null @@ -1,191 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery - * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.QueryImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.StringLiteralQuery; - -/** - * - * An implementation of the model object 'String Literal Query'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.StringLiteralQueryImpl#getValue Value}
  • - *
- * - * @generated - */ -public class StringLiteralQueryImpl extends QueryImpl implements StringLiteralQuery { - /** - * The default value of the '{@link #getValue() Value}' attribute. - * - * - * - * @see #getValue() - * @generated - * @ordered - */ - protected static final String VALUE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getValue() Value}' attribute. - * - * - * - * @see #getValue() - * @generated - * @ordered - */ - protected String value = VALUE_EDEFAULT; - - /** - * - * - * - * @generated - */ - protected StringLiteralQueryImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return QueryPackage.Literals.STRING_LITERAL_QUERY; - } - - /** - * - * - * - * @generated - */ - public String getValue() { - return value; - } - - /** - * - * - * - * @generated - */ - public void setValue(String newValue) { - String oldValue = value; - value = newValue; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, QueryPackage.STRING_LITERAL_QUERY__VALUE, oldValue, value)); - } - } - - /** - * - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case QueryPackage.STRING_LITERAL_QUERY__VALUE: - return getValue(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case QueryPackage.STRING_LITERAL_QUERY__VALUE: - setValue((String) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case QueryPackage.STRING_LITERAL_QUERY__VALUE: - setValue(VALUE_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case QueryPackage.STRING_LITERAL_QUERY__VALUE: - return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); - } - return super.eIsSet(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) { - return super.toString(); - } - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (value: "); //$NON-NLS-1$ - result.append(value); - result.append(')'); - return result.toString(); - } - -} // StringLiteralQueryImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/TrueLiteralQueryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/TrueLiteralQueryImpl.java deleted file mode 100644 index 2f90873ccc5..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/impl/TrueLiteralQueryImpl.java +++ /dev/null @@ -1,58 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery - * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query - * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.QueryImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.TrueLiteralQuery; - -/** - * - * An implementation of the model object 'True Literal Query'. - * - * - * @generated - */ -public class TrueLiteralQueryImpl extends QueryImpl implements TrueLiteralQuery { - /** - * - * - * - * @generated - */ - protected TrueLiteralQueryImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return QueryPackage.Literals.TRUE_LITERAL_QUERY; - } - -} // TrueLiteralQueryImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/util/QueryAdapterFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/util/QueryAdapterFactory.java deleted file mode 100644 index f1ddf493454..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/util/QueryAdapterFactory.java +++ /dev/null @@ -1,353 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.util; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.EObjectLiteralQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FalseLiteralQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FloatLiteralQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IntegerLiteralQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IsOneOfQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NavigationQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NullLiteralQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.OperationCallQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.StringLiteralQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.TrueLiteralQuery; - -/** - * - * The Adapter Factory for the model. - * It provides an adapter createXXX method for each class of the model. - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage - * @generated - */ -public class QueryAdapterFactory extends AdapterFactoryImpl { - /** - * The cached model package. - * - * - * - * @generated - */ - protected static QueryPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * - * - * - * @generated - */ - public QueryAdapterFactory() { - if (modelPackage == null) { - modelPackage = QueryPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * - * This implementation returns true if the object is either the model's package or is an instance object of the model. - * - * - * @return whether this factory is applicable for the type of the object. - * @generated - */ - @Override - public boolean isFactoryForType(Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject) object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch that delegates to the createXXX methods. - * - * - * - * @generated - */ - protected QuerySwitch modelSwitch = new QuerySwitch() { - @Override - public Adapter caseNavigationQuery(NavigationQuery object) { - return createNavigationQueryAdapter(); - } - - @Override - public Adapter caseIsOneOfQuery(IsOneOfQuery object) { - return createIsOneOfQueryAdapter(); - } - - @Override - public Adapter caseStringLiteralQuery(StringLiteralQuery object) { - return createStringLiteralQueryAdapter(); - } - - @Override - public Adapter caseTrueLiteralQuery(TrueLiteralQuery object) { - return createTrueLiteralQueryAdapter(); - } - - @Override - public Adapter caseFalseLiteralQuery(FalseLiteralQuery object) { - return createFalseLiteralQueryAdapter(); - } - - @Override - public Adapter caseNullLiteralQuery(NullLiteralQuery object) { - return createNullLiteralQueryAdapter(); - } - - @Override - public Adapter caseIntegerLiteralQuery(IntegerLiteralQuery object) { - return createIntegerLiteralQueryAdapter(); - } - - @Override - public Adapter caseFloatLiteralQuery(FloatLiteralQuery object) { - return createFloatLiteralQueryAdapter(); - } - - @Override - public Adapter caseEObjectLiteralQuery(EObjectLiteralQuery object) { - return createEObjectLiteralQueryAdapter(); - } - - @Override - public Adapter caseOperationCallQuery(OperationCallQuery object) { - return createOperationCallQueryAdapter(); - } - - @Override - public Adapter caseQuery(Query object) { - return createQueryAdapter(); - } - - @Override - public Adapter defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the target. - * - * - * - * @param target - * the object to adapt. - * @return the adapter for the target. - * @generated - */ - @Override - public Adapter createAdapter(Notifier target) { - return modelSwitch.doSwitch((EObject) target); - } - - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NavigationQuery Navigation Query}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NavigationQuery - * @generated - */ - public Adapter createNavigationQueryAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IsOneOfQuery Is One Of Query}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IsOneOfQuery - * @generated - */ - public Adapter createIsOneOfQueryAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.StringLiteralQuery String Literal Query}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.StringLiteralQuery - * @generated - */ - public Adapter createStringLiteralQueryAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.TrueLiteralQuery True Literal Query}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.TrueLiteralQuery - * @generated - */ - public Adapter createTrueLiteralQueryAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FalseLiteralQuery False Literal Query}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FalseLiteralQuery - * @generated - */ - public Adapter createFalseLiteralQueryAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NullLiteralQuery Null Literal Query}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NullLiteralQuery - * @generated - */ - public Adapter createNullLiteralQueryAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IntegerLiteralQuery Integer Literal Query}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IntegerLiteralQuery - * @generated - */ - public Adapter createIntegerLiteralQueryAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FloatLiteralQuery Float Literal Query}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FloatLiteralQuery - * @generated - */ - public Adapter createFloatLiteralQueryAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.EObjectLiteralQuery EObject Literal Query}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.EObjectLiteralQuery - * @generated - */ - public Adapter createEObjectLiteralQueryAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.OperationCallQuery Operation Call Query}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.OperationCallQuery - * @generated - */ - public Adapter createOperationCallQueryAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query Query}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query - * @generated - */ - public Adapter createQueryAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * - * This default implementation returns null. - * - * - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} // QueryAdapterFactory diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/util/QuerySwitch.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/util/QuerySwitch.java deleted file mode 100644 index f097d5b093e..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/query/util/QuerySwitch.java +++ /dev/null @@ -1,434 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery - * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query - * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.util; - -import java.util.List; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.EObjectLiteralQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FalseLiteralQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.FloatLiteralQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IntegerLiteralQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.IsOneOfQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NavigationQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.NullLiteralQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.OperationCallQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.StringLiteralQuery; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.TrueLiteralQuery; - -/** - * - * The Switch for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch(EObject) doSwitch(object)} to invoke the caseXXX method for each class of the model, - * starting with the actual class of the object - * and proceeding up the inheritance hierarchy - * until a non-null result is returned, - * which is the result of the switch. - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage - * @generated - */ -public class QuerySwitch { - /** - * The cached model package - * - * - * - * @generated - */ - protected static QueryPackage modelPackage; - - /** - * Creates an instance of the switch. - * - * - * - * @generated - */ - public QuerySwitch() { - if (modelPackage == null) { - modelPackage = QueryPackage.eINSTANCE; - } - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - public T doSwitch(EObject theEObject) { - return doSwitch(theEObject.eClass(), theEObject); - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - protected T doSwitch(EClass theEClass, EObject theEObject) { - if (theEClass.eContainer() == modelPackage) { - return doSwitch(theEClass.getClassifierID(), theEObject); - } else { - List eSuperTypes = theEClass.getESuperTypes(); - return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(eSuperTypes.get(0), theEObject); - } - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - protected T doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case QueryPackage.NAVIGATION_QUERY: { - NavigationQuery navigationQuery = (NavigationQuery) theEObject; - T result = caseNavigationQuery(navigationQuery); - if (result == null) { - result = caseQuery(navigationQuery); - } - if (result == null) { - result = defaultCase(theEObject); - } - return result; - } - case QueryPackage.IS_ONE_OF_QUERY: { - IsOneOfQuery isOneOfQuery = (IsOneOfQuery) theEObject; - T result = caseIsOneOfQuery(isOneOfQuery); - if (result == null) { - result = caseQuery(isOneOfQuery); - } - if (result == null) { - result = defaultCase(theEObject); - } - return result; - } - case QueryPackage.STRING_LITERAL_QUERY: { - StringLiteralQuery stringLiteralQuery = (StringLiteralQuery) theEObject; - T result = caseStringLiteralQuery(stringLiteralQuery); - if (result == null) { - result = caseQuery(stringLiteralQuery); - } - if (result == null) { - result = defaultCase(theEObject); - } - return result; - } - case QueryPackage.TRUE_LITERAL_QUERY: { - TrueLiteralQuery trueLiteralQuery = (TrueLiteralQuery) theEObject; - T result = caseTrueLiteralQuery(trueLiteralQuery); - if (result == null) { - result = caseQuery(trueLiteralQuery); - } - if (result == null) { - result = defaultCase(theEObject); - } - return result; - } - case QueryPackage.FALSE_LITERAL_QUERY: { - FalseLiteralQuery falseLiteralQuery = (FalseLiteralQuery) theEObject; - T result = caseFalseLiteralQuery(falseLiteralQuery); - if (result == null) { - result = caseQuery(falseLiteralQuery); - } - if (result == null) { - result = defaultCase(theEObject); - } - return result; - } - case QueryPackage.NULL_LITERAL_QUERY: { - NullLiteralQuery nullLiteralQuery = (NullLiteralQuery) theEObject; - T result = caseNullLiteralQuery(nullLiteralQuery); - if (result == null) { - result = caseQuery(nullLiteralQuery); - } - if (result == null) { - result = defaultCase(theEObject); - } - return result; - } - case QueryPackage.INTEGER_LITERAL_QUERY: { - IntegerLiteralQuery integerLiteralQuery = (IntegerLiteralQuery) theEObject; - T result = caseIntegerLiteralQuery(integerLiteralQuery); - if (result == null) { - result = caseQuery(integerLiteralQuery); - } - if (result == null) { - result = defaultCase(theEObject); - } - return result; - } - case QueryPackage.FLOAT_LITERAL_QUERY: { - FloatLiteralQuery floatLiteralQuery = (FloatLiteralQuery) theEObject; - T result = caseFloatLiteralQuery(floatLiteralQuery); - if (result == null) { - result = caseQuery(floatLiteralQuery); - } - if (result == null) { - result = defaultCase(theEObject); - } - return result; - } - case QueryPackage.EOBJECT_LITERAL_QUERY: { - EObjectLiteralQuery eObjectLiteralQuery = (EObjectLiteralQuery) theEObject; - T result = caseEObjectLiteralQuery(eObjectLiteralQuery); - if (result == null) { - result = caseQuery(eObjectLiteralQuery); - } - if (result == null) { - result = defaultCase(theEObject); - } - return result; - } - case QueryPackage.OPERATION_CALL_QUERY: { - OperationCallQuery operationCallQuery = (OperationCallQuery) theEObject; - T result = caseOperationCallQuery(operationCallQuery); - if (result == null) { - result = caseQuery(operationCallQuery); - } - if (result == null) { - result = defaultCase(theEObject); - } - return result; - } - default: - return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of 'Navigation Query'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Navigation Query'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseNavigationQuery(NavigationQuery object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Is One Of Query'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Is One Of Query'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseIsOneOfQuery(IsOneOfQuery object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'String Literal Query'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'String Literal Query'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseStringLiteralQuery(StringLiteralQuery object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'True Literal Query'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'True Literal Query'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseTrueLiteralQuery(TrueLiteralQuery object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'False Literal Query'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'False Literal Query'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseFalseLiteralQuery(FalseLiteralQuery object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Null Literal Query'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Null Literal Query'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseNullLiteralQuery(NullLiteralQuery object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Integer Literal Query'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Integer Literal Query'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseIntegerLiteralQuery(IntegerLiteralQuery object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Float Literal Query'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Float Literal Query'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseFloatLiteralQuery(FloatLiteralQuery object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EObject Literal Query'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject Literal Query'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseEObjectLiteralQuery(EObjectLiteralQuery object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Operation Call Query'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Operation Call Query'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseOperationCallQuery(OperationCallQuery object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Query'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Query'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseQuery(Query object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EObject'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - public T defaultCase(EObject object) { - return null; - } - -} // QuerySwitch diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementEObjectListResult.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementEObjectListResult.java deleted file mode 100644 index 9d6f2a3d1fc..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementEObjectListResult.java +++ /dev/null @@ -1,63 +0,0 @@ -/** - * Copyright (c) 2011, 2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery - * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query - * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'ETyped Element EObject List Result'. - * - * - * - * This class represents the result of evaluating the value of a multiplicity-many DerivedTypedElement by means of a multi-valued query . - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectListResult#getResultList Result List}
  • - *
- * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage#getETypedElementEObjectListResult() - * @model - * @generated - */ -public interface ETypedElementEObjectListResult extends ETypedElementResult { - /** - * Returns the value of the 'Result List' reference list. - * - *

- * If the meaning of the 'Result List' reference list isn't clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'Result List' reference list. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage#getETypedElementEObjectListResult_ResultList() - * @model - * @generated - */ - EList getResultList(); - -} // ETypedElementEObjectListResult diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementEObjectResult.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementEObjectResult.java deleted file mode 100644 index cdd9568381c..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementEObjectResult.java +++ /dev/null @@ -1,75 +0,0 @@ -/** - * Copyright (c) 2011, 2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery - * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query - * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'ETyped Element EObject Result'. - * - * - * - * This class represents the result of evaluating the value of a multiplicity-one DerivedTypedElement by means of a single-valued query . - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectResult#getResult Result}
  • - *
- * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage#getETypedElementEObjectResult() - * @model - * @generated - */ -public interface ETypedElementEObjectResult extends ETypedElementResult { - /** - * Returns the value of the 'Result' reference. - * - *

- * If the meaning of the 'Result' reference isn't clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'Result' reference. - * @see #setResult(EObject) - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage#getETypedElementEObjectResult_Result() - * @model - * @generated - */ - T getResult(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectResult#getResult Result}' reference. - * - * - * - * @param value - * the new value of the 'Result' reference. - * @see #getResult() - * @generated - */ - void setResult(T value); - -} // ETypedElementEObjectResult diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementPrimitiveTypeListResult.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementPrimitiveTypeListResult.java deleted file mode 100644 index fab5244e04e..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementPrimitiveTypeListResult.java +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Copyright (c) 2011, 2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery - * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query - * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime; - -import org.eclipse.emf.common.util.EList; - -/** - * - * A representation of the model object 'ETyped Element Primitive Type List Result'. - * - * - * - * This class represents the result of evaluating the value of a multiplicity-many DerivedTypedElement by means of a multi-valued query . - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeListResult#getResultList Result List}
  • - *
- * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage#getETypedElementPrimitiveTypeListResult() - * @model - * @generated - */ -public interface ETypedElementPrimitiveTypeListResult extends ETypedElementResult { - /** - * Returns the value of the 'Result List' attribute list. - * - *

- * If the meaning of the 'Result List' attribute list isn't clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'Result List' attribute list. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage#getETypedElementPrimitiveTypeListResult_ResultList() - * @model - * @generated - */ - EList getResultList(); - -} // ETypedElementPrimitiveTypeListResult diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementPrimitiveTypeResult.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementPrimitiveTypeResult.java deleted file mode 100644 index 0b823b93d5e..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementPrimitiveTypeResult.java +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Copyright (c) 2011, 2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery - * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query - * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime; - - -/** - * - * A representation of the model object 'ETyped Element Primitive Type Result'. - * - * - * - * This class represents the result of evaluating the value of a multiplicity-one DerivedTypedElement by means of a single-valued query . - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeResult#getResult Result}
  • - *
- * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage#getETypedElementPrimitiveTypeResult() - * @model - * @generated - */ -public interface ETypedElementPrimitiveTypeResult extends ETypedElementResult { - /** - * Returns the value of the 'Result' attribute. - * - *

- * If the meaning of the 'Result' attribute isn't clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'Result' attribute. - * @see #setResult(Object) - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage#getETypedElementPrimitiveTypeResult_Result() - * @model - * @generated - */ - T getResult(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeResult#getResult Result}' attribute. - * - * - * - * @param value - * the new value of the 'Result' attribute. - * @see #getResult() - * @generated - */ - void setResult(T value); - -} // ETypedElementPrimitiveTypeResult diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementResult.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementResult.java deleted file mode 100644 index 0ee35384c16..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/ETypedElementResult.java +++ /dev/null @@ -1,153 +0,0 @@ -/** - * Copyright (c) 2011, 2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery - * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query - * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.ETypedElement; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue; - -/** - * - * A representation of the model object 'ETyped Element Result'. - * - * - * - * This class represents the result of evaluating the value of a DerivedTypedElement by means of a query . - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult#getDerivedTypedElement Derived Typed Element}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult#getParameterValues Parameter Values}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult#getSource Source}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult#getException Exception}
  • - *
- * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage#getETypedElementResult() - * @model abstract="true" - * @generated - */ -public interface ETypedElementResult extends EObject { - /** - * Returns the value of the 'Derived Typed Element' reference. - * - * - * - * The reference "query" references the executed query. - * - * - * @return the value of the 'Derived Typed Element' reference. - * @see #setDerivedTypedElement(ETypedElement) - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage#getETypedElementResult_DerivedTypedElement() - * @model required="true" - * @generated - */ - ETypedElement getDerivedTypedElement(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult#getDerivedTypedElement Derived Typed Element}' reference. - * - * - * - * @param value - * the new value of the 'Derived Typed Element' reference. - * @see #getDerivedTypedElement() - * @generated - */ - void setDerivedTypedElement(ETypedElement value); - - /** - * Returns the value of the 'Parameter Values' containment reference list. - * The list contents are of type {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue}. - * - * - * - * This is the list of the values given as parameters for the query execution. - * - * - * @return the value of the 'Parameter Values' containment reference list. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage#getETypedElementResult_ParameterValues() - * @model containment="true" - * @generated - */ - EList getParameterValues(); - - /** - * Returns the value of the 'Source' reference. - * - *

- * If the meaning of the 'Source' reference isn't clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'Source' reference. - * @see #setSource(EObject) - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage#getETypedElementResult_Source() - * @model required="true" - * @generated - */ - EObject getSource(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult#getSource Source}' reference. - * - * - * - * @param value - * the new value of the 'Source' reference. - * @see #getSource() - * @generated - */ - void setSource(EObject value); - - /** - * Returns the value of the 'Exception' attribute. - * - *

- * If the meaning of the 'Exception' attribute isn't clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'Exception' attribute. - * @see #setException(Throwable) - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage#getETypedElementResult_Exception() - * @model dataType="org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.JavaException" transient="true" - * @generated - */ - Throwable getException(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult#getException Exception}' attribute. - * - * - * - * @param value - * the new value of the 'Exception' attribute. - * @see #getException() - * @generated - */ - void setException(Throwable value); - -} // ETypedElementResult diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/RuntimeFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/RuntimeFactory.java deleted file mode 100644 index 7d27163fd38..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/RuntimeFactory.java +++ /dev/null @@ -1,97 +0,0 @@ -/** - * Copyright (c) 2011, 2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery - * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query - * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. - * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime; - -import org.eclipse.emf.ecore.EFactory; -import org.eclipse.emf.ecore.EObject; - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage - * @generated - */ -public interface RuntimeFactory extends EFactory { - /** - * The singleton instance of the factory. - * - * - * - * @generated - */ - RuntimeFactory eINSTANCE = org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.RuntimeFactoryImpl.init(); - - /** - * Returns a new object of class 'ETyped Element Primitive Type Result'. - * - * - * - * @return a new object of class 'ETyped Element Primitive Type Result'. - * @generated - */ - ETypedElementPrimitiveTypeResult createETypedElementPrimitiveTypeResult(); - - /** - * Returns a new object of class 'ETyped Element EObject Result'. - * - * - * - * @return a new object of class 'ETyped Element EObject Result'. - * @generated - */ - ETypedElementEObjectResult createETypedElementEObjectResult(); - - /** - * Returns a new object of class 'ETyped Element Primitive Type List Result'. - * - * - * - * @return a new object of class 'ETyped Element Primitive Type List Result'. - * @generated - */ - ETypedElementPrimitiveTypeListResult createETypedElementPrimitiveTypeListResult(); - - /** - * Returns a new object of class 'ETyped Element EObject List Result'. - * - * - * - * @return a new object of class 'ETyped Element EObject List Result'. - * @generated - */ - ETypedElementEObjectListResult createETypedElementEObjectListResult(); - - /** - * Returns the package supported by this factory. - * - * - * - * @return the package supported by this factory. - * @generated - */ - RuntimePackage getRuntimePackage(); - -} // RuntimeFactory diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/RuntimePackage.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/RuntimePackage.java deleted file mode 100644 index 08dc0b7ae23..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/RuntimePackage.java +++ /dev/null @@ -1,768 +0,0 @@ -/** - * Copyright (c) 2011, 2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery - * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query - * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. - * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EDataType; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; - -/** - * - * The Package for the model. - * It contains accessors for the meta objects to represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimeFactory - * @model kind="package" - * @generated - */ -public interface RuntimePackage extends EPackage { - /** - * The package name. - * - * - * - * @generated - */ - String eNAME = "runtime"; //$NON-NLS-1$ - - /** - * The package namespace URI. - * - * - * - * @generated - */ - String eNS_URI = "http://www.eclipse.org/papyrus/emf/facet/efacet/0.2.incubation/efacet/runtime"; //$NON-NLS-1$ - - /** - * The package namespace name. - * - * - * - * @generated - */ - String eNS_PREFIX = "runtime"; //$NON-NLS-1$ - - /** - * The singleton instance of the package. - * - * - * - * @generated - */ - RuntimePackage eINSTANCE = org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.RuntimePackageImpl.init(); - - /** - * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementResultImpl ETyped Element Result}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementResultImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.RuntimePackageImpl#getETypedElementResult() - * @generated - */ - int ETYPED_ELEMENT_RESULT = 4; - - /** - * The feature id for the 'Derived Typed Element' reference. - * - * - * - * @generated - * @ordered - */ - int ETYPED_ELEMENT_RESULT__DERIVED_TYPED_ELEMENT = 0; - - /** - * The feature id for the 'Parameter Values' containment reference list. - * - * - * - * @generated - * @ordered - */ - int ETYPED_ELEMENT_RESULT__PARAMETER_VALUES = 1; - - /** - * The feature id for the 'Source' reference. - * - * - * - * @generated - * @ordered - */ - int ETYPED_ELEMENT_RESULT__SOURCE = 2; - - /** - * The feature id for the 'Exception' attribute. - * - * - * - * @generated - * @ordered - */ - int ETYPED_ELEMENT_RESULT__EXCEPTION = 3; - - /** - * The number of structural features of the 'ETyped Element Result' class. - * - * - * - * @generated - * @ordered - */ - int ETYPED_ELEMENT_RESULT_FEATURE_COUNT = 4; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementPrimitiveTypeResultImpl ETyped Element Primitive Type Result}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementPrimitiveTypeResultImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.RuntimePackageImpl#getETypedElementPrimitiveTypeResult() - * @generated - */ - int ETYPED_ELEMENT_PRIMITIVE_TYPE_RESULT = 0; - - /** - * The feature id for the 'Derived Typed Element' reference. - * - * - * - * @generated - * @ordered - */ - int ETYPED_ELEMENT_PRIMITIVE_TYPE_RESULT__DERIVED_TYPED_ELEMENT = ETYPED_ELEMENT_RESULT__DERIVED_TYPED_ELEMENT; - - /** - * The feature id for the 'Parameter Values' containment reference list. - * - * - * - * @generated - * @ordered - */ - int ETYPED_ELEMENT_PRIMITIVE_TYPE_RESULT__PARAMETER_VALUES = ETYPED_ELEMENT_RESULT__PARAMETER_VALUES; - - /** - * The feature id for the 'Source' reference. - * - * - * - * @generated - * @ordered - */ - int ETYPED_ELEMENT_PRIMITIVE_TYPE_RESULT__SOURCE = ETYPED_ELEMENT_RESULT__SOURCE; - - /** - * The feature id for the 'Exception' attribute. - * - * - * - * @generated - * @ordered - */ - int ETYPED_ELEMENT_PRIMITIVE_TYPE_RESULT__EXCEPTION = ETYPED_ELEMENT_RESULT__EXCEPTION; - - /** - * The feature id for the 'Result' attribute. - * - * - * - * @generated - * @ordered - */ - int ETYPED_ELEMENT_PRIMITIVE_TYPE_RESULT__RESULT = ETYPED_ELEMENT_RESULT_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'ETyped Element Primitive Type Result' class. - * - * - * - * @generated - * @ordered - */ - int ETYPED_ELEMENT_PRIMITIVE_TYPE_RESULT_FEATURE_COUNT = ETYPED_ELEMENT_RESULT_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementEObjectResultImpl ETyped Element EObject Result}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementEObjectResultImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.RuntimePackageImpl#getETypedElementEObjectResult() - * @generated - */ - int ETYPED_ELEMENT_EOBJECT_RESULT = 1; - - /** - * The feature id for the 'Derived Typed Element' reference. - * - * - * - * @generated - * @ordered - */ - int ETYPED_ELEMENT_EOBJECT_RESULT__DERIVED_TYPED_ELEMENT = ETYPED_ELEMENT_RESULT__DERIVED_TYPED_ELEMENT; - - /** - * The feature id for the 'Parameter Values' containment reference list. - * - * - * - * @generated - * @ordered - */ - int ETYPED_ELEMENT_EOBJECT_RESULT__PARAMETER_VALUES = ETYPED_ELEMENT_RESULT__PARAMETER_VALUES; - - /** - * The feature id for the 'Source' reference. - * - * - * - * @generated - * @ordered - */ - int ETYPED_ELEMENT_EOBJECT_RESULT__SOURCE = ETYPED_ELEMENT_RESULT__SOURCE; - - /** - * The feature id for the 'Exception' attribute. - * - * - * - * @generated - * @ordered - */ - int ETYPED_ELEMENT_EOBJECT_RESULT__EXCEPTION = ETYPED_ELEMENT_RESULT__EXCEPTION; - - /** - * The feature id for the 'Result' reference. - * - * - * - * @generated - * @ordered - */ - int ETYPED_ELEMENT_EOBJECT_RESULT__RESULT = ETYPED_ELEMENT_RESULT_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'ETyped Element EObject Result' class. - * - * - * - * @generated - * @ordered - */ - int ETYPED_ELEMENT_EOBJECT_RESULT_FEATURE_COUNT = ETYPED_ELEMENT_RESULT_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementPrimitiveTypeListResultImpl ETyped Element Primitive Type List Result}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementPrimitiveTypeListResultImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.RuntimePackageImpl#getETypedElementPrimitiveTypeListResult() - * @generated - */ - int ETYPED_ELEMENT_PRIMITIVE_TYPE_LIST_RESULT = 2; - - /** - * The feature id for the 'Derived Typed Element' reference. - * - * - * - * @generated - * @ordered - */ - int ETYPED_ELEMENT_PRIMITIVE_TYPE_LIST_RESULT__DERIVED_TYPED_ELEMENT = ETYPED_ELEMENT_RESULT__DERIVED_TYPED_ELEMENT; - - /** - * The feature id for the 'Parameter Values' containment reference list. - * - * - * - * @generated - * @ordered - */ - int ETYPED_ELEMENT_PRIMITIVE_TYPE_LIST_RESULT__PARAMETER_VALUES = ETYPED_ELEMENT_RESULT__PARAMETER_VALUES; - - /** - * The feature id for the 'Source' reference. - * - * - * - * @generated - * @ordered - */ - int ETYPED_ELEMENT_PRIMITIVE_TYPE_LIST_RESULT__SOURCE = ETYPED_ELEMENT_RESULT__SOURCE; - - /** - * The feature id for the 'Exception' attribute. - * - * - * - * @generated - * @ordered - */ - int ETYPED_ELEMENT_PRIMITIVE_TYPE_LIST_RESULT__EXCEPTION = ETYPED_ELEMENT_RESULT__EXCEPTION; - - /** - * The feature id for the 'Result List' attribute list. - * - * - * - * @generated - * @ordered - */ - int ETYPED_ELEMENT_PRIMITIVE_TYPE_LIST_RESULT__RESULT_LIST = ETYPED_ELEMENT_RESULT_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'ETyped Element Primitive Type List Result' class. - * - * - * - * @generated - * @ordered - */ - int ETYPED_ELEMENT_PRIMITIVE_TYPE_LIST_RESULT_FEATURE_COUNT = ETYPED_ELEMENT_RESULT_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementEObjectListResultImpl ETyped Element EObject List Result}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementEObjectListResultImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.RuntimePackageImpl#getETypedElementEObjectListResult() - * @generated - */ - int ETYPED_ELEMENT_EOBJECT_LIST_RESULT = 3; - - /** - * The feature id for the 'Derived Typed Element' reference. - * - * - * - * @generated - * @ordered - */ - int ETYPED_ELEMENT_EOBJECT_LIST_RESULT__DERIVED_TYPED_ELEMENT = ETYPED_ELEMENT_RESULT__DERIVED_TYPED_ELEMENT; - - /** - * The feature id for the 'Parameter Values' containment reference list. - * - * - * - * @generated - * @ordered - */ - int ETYPED_ELEMENT_EOBJECT_LIST_RESULT__PARAMETER_VALUES = ETYPED_ELEMENT_RESULT__PARAMETER_VALUES; - - /** - * The feature id for the 'Source' reference. - * - * - * - * @generated - * @ordered - */ - int ETYPED_ELEMENT_EOBJECT_LIST_RESULT__SOURCE = ETYPED_ELEMENT_RESULT__SOURCE; - - /** - * The feature id for the 'Exception' attribute. - * - * - * - * @generated - * @ordered - */ - int ETYPED_ELEMENT_EOBJECT_LIST_RESULT__EXCEPTION = ETYPED_ELEMENT_RESULT__EXCEPTION; - - /** - * The feature id for the 'Result List' reference list. - * - * - * - * @generated - * @ordered - */ - int ETYPED_ELEMENT_EOBJECT_LIST_RESULT__RESULT_LIST = ETYPED_ELEMENT_RESULT_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'ETyped Element EObject List Result' class. - * - * - * - * @generated - * @ordered - */ - int ETYPED_ELEMENT_EOBJECT_LIST_RESULT_FEATURE_COUNT = ETYPED_ELEMENT_RESULT_FEATURE_COUNT + 1; - - /** - * The meta object id for the 'Java Exception' data type. - * - * - * - * @see java.lang.Throwable - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.RuntimePackageImpl#getJavaException() - * @generated - */ - int JAVA_EXCEPTION = 5; - - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeResult ETyped Element Primitive Type Result}'. - * - * - * - * @return the meta object for class 'ETyped Element Primitive Type Result'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeResult - * @generated - */ - EClass getETypedElementPrimitiveTypeResult(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeResult#getResult Result}'. - * - * - * - * @return the meta object for the attribute 'Result'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeResult#getResult() - * @see #getETypedElementPrimitiveTypeResult() - * @generated - */ - EAttribute getETypedElementPrimitiveTypeResult_Result(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectResult ETyped Element EObject Result}'. - * - * - * - * @return the meta object for class 'ETyped Element EObject Result'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectResult - * @generated - */ - EClass getETypedElementEObjectResult(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectResult#getResult Result}'. - * - * - * - * @return the meta object for the reference 'Result'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectResult#getResult() - * @see #getETypedElementEObjectResult() - * @generated - */ - EReference getETypedElementEObjectResult_Result(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeListResult ETyped Element Primitive Type List Result}'. - * - * - * - * @return the meta object for class 'ETyped Element Primitive Type List Result'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeListResult - * @generated - */ - EClass getETypedElementPrimitiveTypeListResult(); - - /** - * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeListResult#getResultList Result List}'. - * - * - * - * @return the meta object for the attribute list 'Result List'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeListResult#getResultList() - * @see #getETypedElementPrimitiveTypeListResult() - * @generated - */ - EAttribute getETypedElementPrimitiveTypeListResult_ResultList(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectListResult ETyped Element EObject List Result}'. - * - * - * - * @return the meta object for class 'ETyped Element EObject List Result'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectListResult - * @generated - */ - EClass getETypedElementEObjectListResult(); - - /** - * Returns the meta object for the reference list '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectListResult#getResultList Result List}'. - * - * - * - * @return the meta object for the reference list 'Result List'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectListResult#getResultList() - * @see #getETypedElementEObjectListResult() - * @generated - */ - EReference getETypedElementEObjectListResult_ResultList(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult ETyped Element Result}'. - * - * - * - * @return the meta object for class 'ETyped Element Result'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult - * @generated - */ - EClass getETypedElementResult(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult#getDerivedTypedElement Derived Typed Element}'. - * - * - * - * @return the meta object for the reference 'Derived Typed Element'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult#getDerivedTypedElement() - * @see #getETypedElementResult() - * @generated - */ - EReference getETypedElementResult_DerivedTypedElement(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult#getParameterValues Parameter Values}'. - * - * - * - * @return the meta object for the containment reference list 'Parameter Values'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult#getParameterValues() - * @see #getETypedElementResult() - * @generated - */ - EReference getETypedElementResult_ParameterValues(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult#getSource Source}'. - * - * - * - * @return the meta object for the reference 'Source'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult#getSource() - * @see #getETypedElementResult() - * @generated - */ - EReference getETypedElementResult_Source(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult#getException Exception}'. - * - * - * - * @return the meta object for the attribute 'Exception'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult#getException() - * @see #getETypedElementResult() - * @generated - */ - EAttribute getETypedElementResult_Exception(); - - /** - * Returns the meta object for data type '{@link java.lang.Throwable Java Exception}'. - * - * - * - * @return the meta object for data type 'Java Exception'. - * @see java.lang.Throwable - * @model instanceClass="java.lang.Throwable" - * @generated - */ - EDataType getJavaException(); - - /** - * Returns the factory that creates the instances of the model. - * - * - * - * @return the factory that creates the instances of the model. - * @generated - */ - RuntimeFactory getRuntimeFactory(); - - /** - * - * Defines literals for the meta objects that represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * - * @generated - */ - interface Literals { - /** - * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementPrimitiveTypeResultImpl ETyped Element Primitive Type Result}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementPrimitiveTypeResultImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.RuntimePackageImpl#getETypedElementPrimitiveTypeResult() - * @generated - */ - EClass ETYPED_ELEMENT_PRIMITIVE_TYPE_RESULT = eINSTANCE.getETypedElementPrimitiveTypeResult(); - - /** - * The meta object literal for the 'Result' attribute feature. - * - * - * - * @generated - */ - EAttribute ETYPED_ELEMENT_PRIMITIVE_TYPE_RESULT__RESULT = eINSTANCE.getETypedElementPrimitiveTypeResult_Result(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementEObjectResultImpl ETyped Element EObject Result}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementEObjectResultImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.RuntimePackageImpl#getETypedElementEObjectResult() - * @generated - */ - EClass ETYPED_ELEMENT_EOBJECT_RESULT = eINSTANCE.getETypedElementEObjectResult(); - - /** - * The meta object literal for the 'Result' reference feature. - * - * - * - * @generated - */ - EReference ETYPED_ELEMENT_EOBJECT_RESULT__RESULT = eINSTANCE.getETypedElementEObjectResult_Result(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementPrimitiveTypeListResultImpl ETyped Element Primitive Type List Result}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementPrimitiveTypeListResultImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.RuntimePackageImpl#getETypedElementPrimitiveTypeListResult() - * @generated - */ - EClass ETYPED_ELEMENT_PRIMITIVE_TYPE_LIST_RESULT = eINSTANCE.getETypedElementPrimitiveTypeListResult(); - - /** - * The meta object literal for the 'Result List' attribute list feature. - * - * - * - * @generated - */ - EAttribute ETYPED_ELEMENT_PRIMITIVE_TYPE_LIST_RESULT__RESULT_LIST = eINSTANCE.getETypedElementPrimitiveTypeListResult_ResultList(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementEObjectListResultImpl ETyped Element EObject List Result}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementEObjectListResultImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.RuntimePackageImpl#getETypedElementEObjectListResult() - * @generated - */ - EClass ETYPED_ELEMENT_EOBJECT_LIST_RESULT = eINSTANCE.getETypedElementEObjectListResult(); - - /** - * The meta object literal for the 'Result List' reference list feature. - * - * - * - * @generated - */ - EReference ETYPED_ELEMENT_EOBJECT_LIST_RESULT__RESULT_LIST = eINSTANCE.getETypedElementEObjectListResult_ResultList(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementResultImpl ETyped Element Result}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementResultImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.RuntimePackageImpl#getETypedElementResult() - * @generated - */ - EClass ETYPED_ELEMENT_RESULT = eINSTANCE.getETypedElementResult(); - - /** - * The meta object literal for the 'Derived Typed Element' reference feature. - * - * - * - * @generated - */ - EReference ETYPED_ELEMENT_RESULT__DERIVED_TYPED_ELEMENT = eINSTANCE.getETypedElementResult_DerivedTypedElement(); - - /** - * The meta object literal for the 'Parameter Values' containment reference list feature. - * - * - * - * @generated - */ - EReference ETYPED_ELEMENT_RESULT__PARAMETER_VALUES = eINSTANCE.getETypedElementResult_ParameterValues(); - - /** - * The meta object literal for the 'Source' reference feature. - * - * - * - * @generated - */ - EReference ETYPED_ELEMENT_RESULT__SOURCE = eINSTANCE.getETypedElementResult_Source(); - - /** - * The meta object literal for the 'Exception' attribute feature. - * - * - * - * @generated - */ - EAttribute ETYPED_ELEMENT_RESULT__EXCEPTION = eINSTANCE.getETypedElementResult_Exception(); - - /** - * The meta object literal for the 'Java Exception' data type. - * - * - * - * @see java.lang.Throwable - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.RuntimePackageImpl#getJavaException() - * @generated - */ - EDataType JAVA_EXCEPTION = eINSTANCE.getJavaException(); - - } - -} // RuntimePackage diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementEObjectListResultImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementEObjectListResultImpl.java deleted file mode 100644 index c5cbfe63a72..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementEObjectListResultImpl.java +++ /dev/null @@ -1,156 +0,0 @@ -/** - * Copyright (c) 2011, 2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery - * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query - * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.util.EObjectResolvingEList; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectListResult; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage; - -/** - * - * An implementation of the model object 'ETyped Element EObject List Result'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementEObjectListResultImpl#getResultList Result List}
  • - *
- * - * @generated - */ -public class ETypedElementEObjectListResultImpl extends ETypedElementResultImpl implements ETypedElementEObjectListResult { - /** - * The cached value of the '{@link #getResultList() Result List}' reference list. - * - * - * - * @see #getResultList() - * @generated - * @ordered - */ - protected EList resultList; - - /** - * - * - * - * @generated - */ - protected ETypedElementEObjectListResultImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return RuntimePackage.Literals.ETYPED_ELEMENT_EOBJECT_LIST_RESULT; - } - - /** - * - * - * - * @generated - */ - public EList getResultList() { - if (resultList == null) { - resultList = new EObjectResolvingEList(EObject.class, this, RuntimePackage.ETYPED_ELEMENT_EOBJECT_LIST_RESULT__RESULT_LIST); - } - return resultList; - } - - /** - * - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case RuntimePackage.ETYPED_ELEMENT_EOBJECT_LIST_RESULT__RESULT_LIST: - return getResultList(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case RuntimePackage.ETYPED_ELEMENT_EOBJECT_LIST_RESULT__RESULT_LIST: - getResultList().clear(); - getResultList().addAll((Collection) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case RuntimePackage.ETYPED_ELEMENT_EOBJECT_LIST_RESULT__RESULT_LIST: - getResultList().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case RuntimePackage.ETYPED_ELEMENT_EOBJECT_LIST_RESULT__RESULT_LIST: - return resultList != null && !resultList.isEmpty(); - } - return super.eIsSet(featureID); - } - -} // ETypedElementEObjectListResultImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementEObjectResultImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementEObjectResultImpl.java deleted file mode 100644 index de4fdfe9b43..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementEObjectResultImpl.java +++ /dev/null @@ -1,188 +0,0 @@ -/** - * Copyright (c) 2011, 2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery - * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query - * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectResult; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage; - -/** - * - * An implementation of the model object 'ETyped Element EObject Result'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementEObjectResultImpl#getResult Result}
  • - *
- * - * @generated - */ -public class ETypedElementEObjectResultImpl extends ETypedElementResultImpl implements ETypedElementEObjectResult { - /** - * The cached value of the '{@link #getResult() Result}' reference. - * - * - * - * @see #getResult() - * @generated - * @ordered - */ - protected T result; - - /** - * - * - * - * @generated - */ - protected ETypedElementEObjectResultImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return RuntimePackage.Literals.ETYPED_ELEMENT_EOBJECT_RESULT; - } - - /** - * - * - * - * @generated - */ - @SuppressWarnings("unchecked") - public T getResult() { - if (result != null && result.eIsProxy()) { - InternalEObject oldResult = (InternalEObject) result; - result = (T) eResolveProxy(oldResult); - if (result != oldResult) { - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.RESOLVE, RuntimePackage.ETYPED_ELEMENT_EOBJECT_RESULT__RESULT, oldResult, result)); - } - } - } - return result; - } - - /** - * - * - * - * @generated - */ - public T basicGetResult() { - return result; - } - - /** - * - * - * - * @generated - */ - public void setResult(T newResult) { - T oldResult = result; - result = newResult; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, RuntimePackage.ETYPED_ELEMENT_EOBJECT_RESULT__RESULT, oldResult, result)); - } - } - - /** - * - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case RuntimePackage.ETYPED_ELEMENT_EOBJECT_RESULT__RESULT: - if (resolve) { - return getResult(); - } - return basicGetResult(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case RuntimePackage.ETYPED_ELEMENT_EOBJECT_RESULT__RESULT: - setResult((T) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case RuntimePackage.ETYPED_ELEMENT_EOBJECT_RESULT__RESULT: - setResult((T) null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case RuntimePackage.ETYPED_ELEMENT_EOBJECT_RESULT__RESULT: - return result != null; - } - return super.eIsSet(featureID); - } - -} // ETypedElementEObjectResultImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementPrimitiveTypeListResultImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementPrimitiveTypeListResultImpl.java deleted file mode 100644 index ca48ce1a648..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementPrimitiveTypeListResultImpl.java +++ /dev/null @@ -1,174 +0,0 @@ -/** - * Copyright (c) 2011, 2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery - * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query - * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeListResult; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage; - -/** - * - * An implementation of the model object 'ETyped Element Primitive Type List Result'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementPrimitiveTypeListResultImpl#getResultList Result List}
  • - *
- * - * @generated - */ -public class ETypedElementPrimitiveTypeListResultImpl extends ETypedElementResultImpl implements ETypedElementPrimitiveTypeListResult { - /** - * The cached value of the '{@link #getResultList() Result List}' attribute list. - * - * - * - * @see #getResultList() - * @generated - * @ordered - */ - protected EList resultList; - - /** - * - * - * - * @generated - */ - protected ETypedElementPrimitiveTypeListResultImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return RuntimePackage.Literals.ETYPED_ELEMENT_PRIMITIVE_TYPE_LIST_RESULT; - } - - /** - * - * - * - * @generated - */ - public EList getResultList() { - if (resultList == null) { - resultList = new EDataTypeUniqueEList(Object.class, this, RuntimePackage.ETYPED_ELEMENT_PRIMITIVE_TYPE_LIST_RESULT__RESULT_LIST); - } - return resultList; - } - - /** - * - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case RuntimePackage.ETYPED_ELEMENT_PRIMITIVE_TYPE_LIST_RESULT__RESULT_LIST: - return getResultList(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case RuntimePackage.ETYPED_ELEMENT_PRIMITIVE_TYPE_LIST_RESULT__RESULT_LIST: - getResultList().clear(); - getResultList().addAll((Collection) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case RuntimePackage.ETYPED_ELEMENT_PRIMITIVE_TYPE_LIST_RESULT__RESULT_LIST: - getResultList().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case RuntimePackage.ETYPED_ELEMENT_PRIMITIVE_TYPE_LIST_RESULT__RESULT_LIST: - return resultList != null && !resultList.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) { - return super.toString(); - } - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (resultList: "); //$NON-NLS-1$ - result.append(resultList); - result.append(')'); - return result.toString(); - } - -} // ETypedElementPrimitiveTypeListResultImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementPrimitiveTypeResultImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementPrimitiveTypeResultImpl.java deleted file mode 100644 index d8e23ebae10..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementPrimitiveTypeResultImpl.java +++ /dev/null @@ -1,182 +0,0 @@ -/** - * Copyright (c) 2011, 2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery - * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query - * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeResult; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage; - -/** - * - * An implementation of the model object 'ETyped Element Primitive Type Result'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementPrimitiveTypeResultImpl#getResult Result}
  • - *
- * - * @generated - */ -public class ETypedElementPrimitiveTypeResultImpl extends ETypedElementResultImpl implements ETypedElementPrimitiveTypeResult { - /** - * The cached value of the '{@link #getResult() Result}' attribute. - * - * - * - * @see #getResult() - * @generated - * @ordered - */ - protected T result; - - /** - * - * - * - * @generated - */ - protected ETypedElementPrimitiveTypeResultImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return RuntimePackage.Literals.ETYPED_ELEMENT_PRIMITIVE_TYPE_RESULT; - } - - /** - * - * - * - * @generated - */ - public T getResult() { - return result; - } - - /** - * - * - * - * @generated - */ - public void setResult(T newResult) { - T oldResult = result; - result = newResult; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, RuntimePackage.ETYPED_ELEMENT_PRIMITIVE_TYPE_RESULT__RESULT, oldResult, result)); - } - } - - /** - * - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case RuntimePackage.ETYPED_ELEMENT_PRIMITIVE_TYPE_RESULT__RESULT: - return getResult(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case RuntimePackage.ETYPED_ELEMENT_PRIMITIVE_TYPE_RESULT__RESULT: - setResult((T) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case RuntimePackage.ETYPED_ELEMENT_PRIMITIVE_TYPE_RESULT__RESULT: - setResult((T) null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case RuntimePackage.ETYPED_ELEMENT_PRIMITIVE_TYPE_RESULT__RESULT: - return result != null; - } - return super.eIsSet(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) { - return super.toString(); - } - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (result: "); //$NON-NLS-1$ - result.append(result); - result.append(')'); - return result.toString(); - } - -} // ETypedElementPrimitiveTypeResultImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementResultImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementResultImpl.java deleted file mode 100644 index 805fc041582..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/ETypedElementResultImpl.java +++ /dev/null @@ -1,391 +0,0 @@ -/** - * Copyright (c) 2011, 2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery - * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query - * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.ETypedElement; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage; - -/** - * - * An implementation of the model object 'ETyped Element Result'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementResultImpl#getDerivedTypedElement Derived Typed Element}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementResultImpl#getParameterValues Parameter Values}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementResultImpl#getSource Source}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.ETypedElementResultImpl#getException Exception}
  • - *
- * - * @generated - */ -public abstract class ETypedElementResultImpl extends EObjectImpl implements ETypedElementResult { - /** - * The cached value of the '{@link #getDerivedTypedElement() Derived Typed Element}' reference. - * - * - * - * @see #getDerivedTypedElement() - * @generated - * @ordered - */ - protected ETypedElement derivedTypedElement; - - /** - * The cached value of the '{@link #getParameterValues() Parameter Values}' containment reference list. - * - * - * - * @see #getParameterValues() - * @generated - * @ordered - */ - protected EList parameterValues; - - /** - * The cached value of the '{@link #getSource() Source}' reference. - * - * - * - * @see #getSource() - * @generated - * @ordered - */ - protected EObject source; - - /** - * The default value of the '{@link #getException() Exception}' attribute. - * - * - * - * @see #getException() - * @generated - * @ordered - */ - protected static final Throwable EXCEPTION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getException() Exception}' attribute. - * - * - * - * @see #getException() - * @generated - * @ordered - */ - protected Throwable exception = EXCEPTION_EDEFAULT; - - /** - * - * - * - * @generated - */ - protected ETypedElementResultImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return RuntimePackage.Literals.ETYPED_ELEMENT_RESULT; - } - - /** - * - * - * - * @generated - */ - public ETypedElement getDerivedTypedElement() { - if (derivedTypedElement != null && derivedTypedElement.eIsProxy()) { - InternalEObject oldDerivedTypedElement = (InternalEObject) derivedTypedElement; - derivedTypedElement = (ETypedElement) eResolveProxy(oldDerivedTypedElement); - if (derivedTypedElement != oldDerivedTypedElement) { - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.RESOLVE, RuntimePackage.ETYPED_ELEMENT_RESULT__DERIVED_TYPED_ELEMENT, oldDerivedTypedElement, derivedTypedElement)); - } - } - } - return derivedTypedElement; - } - - /** - * - * - * - * @generated - */ - public ETypedElement basicGetDerivedTypedElement() { - return derivedTypedElement; - } - - /** - * - * - * - * @generated - */ - public void setDerivedTypedElement(ETypedElement newDerivedTypedElement) { - ETypedElement oldDerivedTypedElement = derivedTypedElement; - derivedTypedElement = newDerivedTypedElement; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, RuntimePackage.ETYPED_ELEMENT_RESULT__DERIVED_TYPED_ELEMENT, oldDerivedTypedElement, derivedTypedElement)); - } - } - - /** - * - * - * - * @generated - */ - public EList getParameterValues() { - if (parameterValues == null) { - parameterValues = new EObjectContainmentEList(ParameterValue.class, this, RuntimePackage.ETYPED_ELEMENT_RESULT__PARAMETER_VALUES); - } - return parameterValues; - } - - /** - * - * - * - * @generated - */ - public EObject getSource() { - if (source != null && source.eIsProxy()) { - InternalEObject oldSource = (InternalEObject) source; - source = eResolveProxy(oldSource); - if (source != oldSource) { - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.RESOLVE, RuntimePackage.ETYPED_ELEMENT_RESULT__SOURCE, oldSource, source)); - } - } - } - return source; - } - - /** - * - * - * - * @generated - */ - public EObject basicGetSource() { - return source; - } - - /** - * - * - * - * @generated - */ - public void setSource(EObject newSource) { - EObject oldSource = source; - source = newSource; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, RuntimePackage.ETYPED_ELEMENT_RESULT__SOURCE, oldSource, source)); - } - } - - /** - * - * - * - * @generated - */ - public Throwable getException() { - return exception; - } - - /** - * - * - * - * @generated - */ - public void setException(Throwable newException) { - Throwable oldException = exception; - exception = newException; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, RuntimePackage.ETYPED_ELEMENT_RESULT__EXCEPTION, oldException, exception)); - } - } - - /** - * - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case RuntimePackage.ETYPED_ELEMENT_RESULT__PARAMETER_VALUES: - return ((InternalEList) getParameterValues()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case RuntimePackage.ETYPED_ELEMENT_RESULT__DERIVED_TYPED_ELEMENT: - if (resolve) { - return getDerivedTypedElement(); - } - return basicGetDerivedTypedElement(); - case RuntimePackage.ETYPED_ELEMENT_RESULT__PARAMETER_VALUES: - return getParameterValues(); - case RuntimePackage.ETYPED_ELEMENT_RESULT__SOURCE: - if (resolve) { - return getSource(); - } - return basicGetSource(); - case RuntimePackage.ETYPED_ELEMENT_RESULT__EXCEPTION: - return getException(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case RuntimePackage.ETYPED_ELEMENT_RESULT__DERIVED_TYPED_ELEMENT: - setDerivedTypedElement((ETypedElement) newValue); - return; - case RuntimePackage.ETYPED_ELEMENT_RESULT__PARAMETER_VALUES: - getParameterValues().clear(); - getParameterValues().addAll((Collection) newValue); - return; - case RuntimePackage.ETYPED_ELEMENT_RESULT__SOURCE: - setSource((EObject) newValue); - return; - case RuntimePackage.ETYPED_ELEMENT_RESULT__EXCEPTION: - setException((Throwable) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case RuntimePackage.ETYPED_ELEMENT_RESULT__DERIVED_TYPED_ELEMENT: - setDerivedTypedElement((ETypedElement) null); - return; - case RuntimePackage.ETYPED_ELEMENT_RESULT__PARAMETER_VALUES: - getParameterValues().clear(); - return; - case RuntimePackage.ETYPED_ELEMENT_RESULT__SOURCE: - setSource((EObject) null); - return; - case RuntimePackage.ETYPED_ELEMENT_RESULT__EXCEPTION: - setException(EXCEPTION_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case RuntimePackage.ETYPED_ELEMENT_RESULT__DERIVED_TYPED_ELEMENT: - return derivedTypedElement != null; - case RuntimePackage.ETYPED_ELEMENT_RESULT__PARAMETER_VALUES: - return parameterValues != null && !parameterValues.isEmpty(); - case RuntimePackage.ETYPED_ELEMENT_RESULT__SOURCE: - return source != null; - case RuntimePackage.ETYPED_ELEMENT_RESULT__EXCEPTION: - return EXCEPTION_EDEFAULT == null ? exception != null : !EXCEPTION_EDEFAULT.equals(exception); - } - return super.eIsSet(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) { - return super.toString(); - } - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (exception: "); //$NON-NLS-1$ - result.append(exception); - result.append(')'); - return result.toString(); - } - -} // ETypedElementResultImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/RuntimeFactoryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/RuntimeFactoryImpl.java deleted file mode 100644 index c8f2e150f92..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/RuntimeFactoryImpl.java +++ /dev/null @@ -1,215 +0,0 @@ -/** - * Copyright (c) 2011, 2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery - * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query - * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EDataType; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.emf.ecore.plugin.EcorePlugin; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectListResult; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectResult; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeListResult; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeResult; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimeFactory; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage; - -/** - * - * An implementation of the model Factory. - * - * - * @generated - */ -public class RuntimeFactoryImpl extends EFactoryImpl implements RuntimeFactory { - /** - * Creates the default factory implementation. - * - * - * - * @generated - */ - public static RuntimeFactory init() { - try { - RuntimeFactory theRuntimeFactory = (RuntimeFactory) EPackage.Registry.INSTANCE.getEFactory(RuntimePackage.eNS_URI); - if (theRuntimeFactory != null) { - return theRuntimeFactory; - } - } catch (Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new RuntimeFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * - * - * @generated - */ - public RuntimeFactoryImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case RuntimePackage.ETYPED_ELEMENT_PRIMITIVE_TYPE_RESULT: - return createETypedElementPrimitiveTypeResult(); - case RuntimePackage.ETYPED_ELEMENT_EOBJECT_RESULT: - return createETypedElementEObjectResult(); - case RuntimePackage.ETYPED_ELEMENT_PRIMITIVE_TYPE_LIST_RESULT: - return createETypedElementPrimitiveTypeListResult(); - case RuntimePackage.ETYPED_ELEMENT_EOBJECT_LIST_RESULT: - return createETypedElementEObjectListResult(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ - } - } - - /** - * - * - * - * @generated - */ - @Override - public Object createFromString(EDataType eDataType, String initialValue) { - switch (eDataType.getClassifierID()) { - case RuntimePackage.JAVA_EXCEPTION: - return createJavaExceptionFromString(eDataType, initialValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ - } - } - - /** - * - * - * - * @generated - */ - @Override - public String convertToString(EDataType eDataType, Object instanceValue) { - switch (eDataType.getClassifierID()) { - case RuntimePackage.JAVA_EXCEPTION: - return convertJavaExceptionToString(eDataType, instanceValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ - } - } - - /** - * - * - * - * @generated - */ - public ETypedElementPrimitiveTypeResult createETypedElementPrimitiveTypeResult() { - ETypedElementPrimitiveTypeResultImpl eTypedElementPrimitiveTypeResult = new ETypedElementPrimitiveTypeResultImpl(); - return eTypedElementPrimitiveTypeResult; - } - - /** - * - * - * - * @generated - */ - public ETypedElementEObjectResult createETypedElementEObjectResult() { - ETypedElementEObjectResultImpl eTypedElementEObjectResult = new ETypedElementEObjectResultImpl(); - return eTypedElementEObjectResult; - } - - /** - * - * - * - * @generated - */ - public ETypedElementPrimitiveTypeListResult createETypedElementPrimitiveTypeListResult() { - ETypedElementPrimitiveTypeListResultImpl eTypedElementPrimitiveTypeListResult = new ETypedElementPrimitiveTypeListResultImpl(); - return eTypedElementPrimitiveTypeListResult; - } - - /** - * - * - * - * @generated - */ - public ETypedElementEObjectListResult createETypedElementEObjectListResult() { - ETypedElementEObjectListResultImpl eTypedElementEObjectListResult = new ETypedElementEObjectListResultImpl(); - return eTypedElementEObjectListResult; - } - - /** - * - * - * - * @generated - */ - public Throwable createJavaExceptionFromString(EDataType eDataType, String initialValue) { - return (Throwable) super.createFromString(eDataType, initialValue); - } - - /** - * - * - * - * @generated - */ - public String convertJavaExceptionToString(EDataType eDataType, Object instanceValue) { - return super.convertToString(eDataType, instanceValue); - } - - /** - * - * - * - * @generated - */ - public RuntimePackage getRuntimePackage() { - return (RuntimePackage) getEPackage(); - } - - /** - * - * - * - * @deprecated - * @generated - */ - @Deprecated - public static RuntimePackage getPackage() { - return RuntimePackage.eINSTANCE; - } - -} // RuntimeFactoryImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/RuntimePackageImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/RuntimePackageImpl.java deleted file mode 100644 index b87f47ad63b..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/impl/RuntimePackageImpl.java +++ /dev/null @@ -1,467 +0,0 @@ -/** - * Copyright (c) 2011, 2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery - * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query - * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EDataType; -import org.eclipse.emf.ecore.EGenericType; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.ETypeParameter; -import org.eclipse.emf.ecore.EcorePackage; -import org.eclipse.emf.ecore.impl.EPackageImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensiblePackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.ExtensiblePackageImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectListResult; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectResult; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeListResult; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeResult; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimeFactory; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl; - -/** - * - * An implementation of the model Package. - * - * - * @generated - */ -public class RuntimePackageImpl extends EPackageImpl implements RuntimePackage { - /** - * - * - * - * @generated - */ - private EClass eTypedElementPrimitiveTypeResultEClass = null; - - /** - * - * - * - * @generated - */ - private EClass eTypedElementEObjectResultEClass = null; - - /** - * - * - * - * @generated - */ - private EClass eTypedElementPrimitiveTypeListResultEClass = null; - - /** - * - * - * - * @generated - */ - private EClass eTypedElementEObjectListResultEClass = null; - - /** - * - * - * - * @generated - */ - private EClass eTypedElementResultEClass = null; - - /** - * - * - * - * @generated - */ - private EDataType javaExceptionEDataType = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - *

- * Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage#eNS_URI - * @see #init() - * @generated - */ - private RuntimePackageImpl() { - super(eNS_URI, RuntimeFactory.eINSTANCE); - } - - /** - * - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - * - *

- * This method is used to initialize {@link RuntimePackage#eINSTANCE} when that field is accessed. - * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. - * - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static RuntimePackage init() { - if (isInited) { - return (RuntimePackage) EPackage.Registry.INSTANCE.getEPackage(RuntimePackage.eNS_URI); - } - - // Obtain or create and register package - Object registeredRuntimePackage = EPackage.Registry.INSTANCE.get(eNS_URI); - RuntimePackageImpl theRuntimePackage = registeredRuntimePackage instanceof RuntimePackageImpl ? (RuntimePackageImpl) registeredRuntimePackage : new RuntimePackageImpl(); - - isInited = true; - - // Initialize simple dependencies - EcorePackage.eINSTANCE.eClass(); - - // Obtain or create and register interdependencies - Object registeredPackage = EPackage.Registry.INSTANCE.getEPackage(EFacetPackage.eNS_URI); - EFacetPackageImpl theEFacetPackage = (EFacetPackageImpl) (registeredPackage instanceof EFacetPackageImpl ? registeredPackage : EFacetPackage.eINSTANCE); - registeredPackage = EPackage.Registry.INSTANCE.getEPackage(SerializationPackage.eNS_URI); - SerializationPackageImpl theSerializationPackage = (SerializationPackageImpl) (registeredPackage instanceof SerializationPackageImpl ? registeredPackage : SerializationPackage.eINSTANCE); - registeredPackage = EPackage.Registry.INSTANCE.getEPackage(ExtensiblePackage.eNS_URI); - ExtensiblePackageImpl theExtensiblePackage = (ExtensiblePackageImpl) (registeredPackage instanceof ExtensiblePackageImpl ? registeredPackage : ExtensiblePackage.eINSTANCE); - registeredPackage = EPackage.Registry.INSTANCE.getEPackage(QueryPackage.eNS_URI); - QueryPackageImpl theQueryPackage = (QueryPackageImpl) (registeredPackage instanceof QueryPackageImpl ? registeredPackage : QueryPackage.eINSTANCE); - - // Create package meta-data objects - theRuntimePackage.createPackageContents(); - theEFacetPackage.createPackageContents(); - theSerializationPackage.createPackageContents(); - theExtensiblePackage.createPackageContents(); - theQueryPackage.createPackageContents(); - - // Initialize created meta-data - theRuntimePackage.initializePackageContents(); - theEFacetPackage.initializePackageContents(); - theSerializationPackage.initializePackageContents(); - theExtensiblePackage.initializePackageContents(); - theQueryPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theRuntimePackage.freeze(); - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(RuntimePackage.eNS_URI, theRuntimePackage); - return theRuntimePackage; - } - - /** - * - * - * - * @generated - */ - public EClass getETypedElementPrimitiveTypeResult() { - return eTypedElementPrimitiveTypeResultEClass; - } - - /** - * - * - * - * @generated - */ - public EAttribute getETypedElementPrimitiveTypeResult_Result() { - return (EAttribute) eTypedElementPrimitiveTypeResultEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * - * @generated - */ - public EClass getETypedElementEObjectResult() { - return eTypedElementEObjectResultEClass; - } - - /** - * - * - * - * @generated - */ - public EReference getETypedElementEObjectResult_Result() { - return (EReference) eTypedElementEObjectResultEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * - * @generated - */ - public EClass getETypedElementPrimitiveTypeListResult() { - return eTypedElementPrimitiveTypeListResultEClass; - } - - /** - * - * - * - * @generated - */ - public EAttribute getETypedElementPrimitiveTypeListResult_ResultList() { - return (EAttribute) eTypedElementPrimitiveTypeListResultEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * - * @generated - */ - public EClass getETypedElementEObjectListResult() { - return eTypedElementEObjectListResultEClass; - } - - /** - * - * - * - * @generated - */ - public EReference getETypedElementEObjectListResult_ResultList() { - return (EReference) eTypedElementEObjectListResultEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * - * @generated - */ - public EClass getETypedElementResult() { - return eTypedElementResultEClass; - } - - /** - * - * - * - * @generated - */ - public EReference getETypedElementResult_DerivedTypedElement() { - return (EReference) eTypedElementResultEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * - * @generated - */ - public EReference getETypedElementResult_ParameterValues() { - return (EReference) eTypedElementResultEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * - * @generated - */ - public EReference getETypedElementResult_Source() { - return (EReference) eTypedElementResultEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * - * @generated - */ - public EAttribute getETypedElementResult_Exception() { - return (EAttribute) eTypedElementResultEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * - * @generated - */ - public EDataType getJavaException() { - return javaExceptionEDataType; - } - - /** - * - * - * - * @generated - */ - public RuntimeFactory getRuntimeFactory() { - return (RuntimeFactory) getEFactoryInstance(); - } - - /** - * - * - * - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * - * - * - * @generated - */ - public void createPackageContents() { - if (isCreated) { - return; - } - isCreated = true; - - // Create classes and their features - eTypedElementPrimitiveTypeResultEClass = createEClass(ETYPED_ELEMENT_PRIMITIVE_TYPE_RESULT); - createEAttribute(eTypedElementPrimitiveTypeResultEClass, ETYPED_ELEMENT_PRIMITIVE_TYPE_RESULT__RESULT); - - eTypedElementEObjectResultEClass = createEClass(ETYPED_ELEMENT_EOBJECT_RESULT); - createEReference(eTypedElementEObjectResultEClass, ETYPED_ELEMENT_EOBJECT_RESULT__RESULT); - - eTypedElementPrimitiveTypeListResultEClass = createEClass(ETYPED_ELEMENT_PRIMITIVE_TYPE_LIST_RESULT); - createEAttribute(eTypedElementPrimitiveTypeListResultEClass, ETYPED_ELEMENT_PRIMITIVE_TYPE_LIST_RESULT__RESULT_LIST); - - eTypedElementEObjectListResultEClass = createEClass(ETYPED_ELEMENT_EOBJECT_LIST_RESULT); - createEReference(eTypedElementEObjectListResultEClass, ETYPED_ELEMENT_EOBJECT_LIST_RESULT__RESULT_LIST); - - eTypedElementResultEClass = createEClass(ETYPED_ELEMENT_RESULT); - createEReference(eTypedElementResultEClass, ETYPED_ELEMENT_RESULT__DERIVED_TYPED_ELEMENT); - createEReference(eTypedElementResultEClass, ETYPED_ELEMENT_RESULT__PARAMETER_VALUES); - createEReference(eTypedElementResultEClass, ETYPED_ELEMENT_RESULT__SOURCE); - createEAttribute(eTypedElementResultEClass, ETYPED_ELEMENT_RESULT__EXCEPTION); - - // Create data types - javaExceptionEDataType = createEDataType(JAVA_EXCEPTION); - } - - /** - * - * - * - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * - * - * - * @generated - */ - public void initializePackageContents() { - if (isInitialized) { - return; - } - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - EcorePackage theEcorePackage = (EcorePackage) EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); - EFacetPackage theEFacetPackage = (EFacetPackage) EPackage.Registry.INSTANCE.getEPackage(EFacetPackage.eNS_URI); - - // Create type parameters - ETypeParameter eTypedElementPrimitiveTypeResultEClass_T = addETypeParameter(eTypedElementPrimitiveTypeResultEClass, "T"); //$NON-NLS-1$ - ETypeParameter eTypedElementEObjectResultEClass_T = addETypeParameter(eTypedElementEObjectResultEClass, "T"); //$NON-NLS-1$ - ETypeParameter eTypedElementPrimitiveTypeListResultEClass_T = addETypeParameter(eTypedElementPrimitiveTypeListResultEClass, "T"); //$NON-NLS-1$ - ETypeParameter eTypedElementEObjectListResultEClass_T = addETypeParameter(eTypedElementEObjectListResultEClass, "T"); //$NON-NLS-1$ - - // Set bounds for type parameters - EGenericType g1 = createEGenericType(theEcorePackage.getEObject()); - eTypedElementEObjectResultEClass_T.getEBounds().add(g1); - g1 = createEGenericType(theEcorePackage.getEObject()); - eTypedElementEObjectListResultEClass_T.getEBounds().add(g1); - - // Add supertypes to classes - eTypedElementPrimitiveTypeResultEClass.getESuperTypes().add(this.getETypedElementResult()); - eTypedElementEObjectResultEClass.getESuperTypes().add(this.getETypedElementResult()); - eTypedElementPrimitiveTypeListResultEClass.getESuperTypes().add(this.getETypedElementResult()); - eTypedElementEObjectListResultEClass.getESuperTypes().add(this.getETypedElementResult()); - - // Initialize classes and features; add operations and parameters - initEClass(eTypedElementPrimitiveTypeResultEClass, ETypedElementPrimitiveTypeResult.class, "ETypedElementPrimitiveTypeResult", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - g1 = createEGenericType(eTypedElementPrimitiveTypeResultEClass_T); - initEAttribute(getETypedElementPrimitiveTypeResult_Result(), g1, "result", null, 0, 1, ETypedElementPrimitiveTypeResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(eTypedElementEObjectResultEClass, ETypedElementEObjectResult.class, "ETypedElementEObjectResult", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - g1 = createEGenericType(eTypedElementEObjectResultEClass_T); - initEReference(getETypedElementEObjectResult_Result(), g1, null, "result", null, 0, 1, ETypedElementEObjectResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(eTypedElementPrimitiveTypeListResultEClass, ETypedElementPrimitiveTypeListResult.class, "ETypedElementPrimitiveTypeListResult", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - g1 = createEGenericType(eTypedElementPrimitiveTypeListResultEClass_T); - initEAttribute(getETypedElementPrimitiveTypeListResult_ResultList(), g1, "resultList", null, 0, -1, ETypedElementPrimitiveTypeListResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(eTypedElementEObjectListResultEClass, ETypedElementEObjectListResult.class, "ETypedElementEObjectListResult", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - g1 = createEGenericType(eTypedElementEObjectListResultEClass_T); - initEReference(getETypedElementEObjectListResult_ResultList(), g1, null, "resultList", null, 0, -1, ETypedElementEObjectListResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, //$NON-NLS-1$ - !IS_DERIVED, IS_ORDERED); - - initEClass(eTypedElementResultEClass, ETypedElementResult.class, "ETypedElementResult", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEReference(getETypedElementResult_DerivedTypedElement(), theEcorePackage.getETypedElement(), null, "derivedTypedElement", null, 1, 1, ETypedElementResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, //$NON-NLS-1$ - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getETypedElementResult_ParameterValues(), theEFacetPackage.getParameterValue(), null, "parameterValues", null, 0, -1, ETypedElementResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, //$NON-NLS-1$ - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getETypedElementResult_Source(), theEcorePackage.getEObject(), null, "source", null, 1, 1, ETypedElementResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, //$NON-NLS-1$ - IS_ORDERED); - initEAttribute(getETypedElementResult_Exception(), this.getJavaException(), "exception", null, 0, 1, ETypedElementResult.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - // Initialize data types - initEDataType(javaExceptionEDataType, Throwable.class, "JavaException", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - } - -} // RuntimePackageImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/util/RuntimeAdapterFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/util/RuntimeAdapterFactory.java deleted file mode 100644 index 66a4ebfc687..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/util/RuntimeAdapterFactory.java +++ /dev/null @@ -1,230 +0,0 @@ -/** - * Copyright (c) 2011, 2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery - * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query - * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.util; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectListResult; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectResult; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeListResult; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeResult; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage; - -/** - * - * The Adapter Factory for the model. - * It provides an adapter createXXX method for each class of the model. - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage - * @generated - */ -public class RuntimeAdapterFactory extends AdapterFactoryImpl { - /** - * The cached model package. - * - * - * - * @generated - */ - protected static RuntimePackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * - * - * - * @generated - */ - public RuntimeAdapterFactory() { - if (modelPackage == null) { - modelPackage = RuntimePackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * - * This implementation returns true if the object is either the model's package or is an instance object of the model. - * - * - * @return whether this factory is applicable for the type of the object. - * @generated - */ - @Override - public boolean isFactoryForType(Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject) object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch that delegates to the createXXX methods. - * - * - * - * @generated - */ - protected RuntimeSwitch modelSwitch = new RuntimeSwitch() { - @Override - public Adapter caseETypedElementPrimitiveTypeResult(ETypedElementPrimitiveTypeResult object) { - return createETypedElementPrimitiveTypeResultAdapter(); - } - - @Override - public Adapter caseETypedElementEObjectResult(ETypedElementEObjectResult object) { - return createETypedElementEObjectResultAdapter(); - } - - @Override - public Adapter caseETypedElementPrimitiveTypeListResult(ETypedElementPrimitiveTypeListResult object) { - return createETypedElementPrimitiveTypeListResultAdapter(); - } - - @Override - public Adapter caseETypedElementEObjectListResult(ETypedElementEObjectListResult object) { - return createETypedElementEObjectListResultAdapter(); - } - - @Override - public Adapter caseETypedElementResult(ETypedElementResult object) { - return createETypedElementResultAdapter(); - } - - @Override - public Adapter defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the target. - * - * - * - * @param target - * the object to adapt. - * @return the adapter for the target. - * @generated - */ - @Override - public Adapter createAdapter(Notifier target) { - return modelSwitch.doSwitch((EObject) target); - } - - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeResult ETyped Element Primitive Type Result}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeResult - * @generated - */ - public Adapter createETypedElementPrimitiveTypeResultAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectResult ETyped Element EObject Result}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectResult - * @generated - */ - public Adapter createETypedElementEObjectResultAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeListResult ETyped Element Primitive Type List Result}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeListResult - * @generated - */ - public Adapter createETypedElementPrimitiveTypeListResultAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectListResult ETyped Element EObject List Result}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectListResult - * @generated - */ - public Adapter createETypedElementEObjectListResultAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult ETyped Element Result}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult - * @generated - */ - public Adapter createETypedElementResultAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * - * This default implementation returns null. - * - * - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} // RuntimeAdapterFactory diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/util/RuntimeSwitch.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/util/RuntimeSwitch.java deleted file mode 100644 index 4b9acec8fb3..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/runtime/util/RuntimeSwitch.java +++ /dev/null @@ -1,269 +0,0 @@ -/** - * Copyright (c) 2011, 2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery - * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query - * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - * Gregoire Dupe (Mia-software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.util; - -import java.util.List; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectListResult; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementEObjectResult; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeListResult; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementPrimitiveTypeResult; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.ETypedElementResult; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage; - -/** - * - * The Switch for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch(EObject) doSwitch(object)} to invoke the caseXXX method for each class of the model, - * starting with the actual class of the object - * and proceeding up the inheritance hierarchy - * until a non-null result is returned, - * which is the result of the switch. - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage - * @generated - */ -public class RuntimeSwitch { - /** - * The cached model package - * - * - * - * @generated - */ - protected static RuntimePackage modelPackage; - - /** - * Creates an instance of the switch. - * - * - * - * @generated - */ - public RuntimeSwitch() { - if (modelPackage == null) { - modelPackage = RuntimePackage.eINSTANCE; - } - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - public T1 doSwitch(EObject theEObject) { - return doSwitch(theEObject.eClass(), theEObject); - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - protected T1 doSwitch(EClass theEClass, EObject theEObject) { - if (theEClass.eContainer() == modelPackage) { - return doSwitch(theEClass.getClassifierID(), theEObject); - } else { - List eSuperTypes = theEClass.getESuperTypes(); - return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(eSuperTypes.get(0), theEObject); - } - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - protected T1 doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case RuntimePackage.ETYPED_ELEMENT_PRIMITIVE_TYPE_RESULT: { - ETypedElementPrimitiveTypeResult eTypedElementPrimitiveTypeResult = (ETypedElementPrimitiveTypeResult) theEObject; - T1 result = caseETypedElementPrimitiveTypeResult(eTypedElementPrimitiveTypeResult); - if (result == null) { - result = caseETypedElementResult(eTypedElementPrimitiveTypeResult); - } - if (result == null) { - result = defaultCase(theEObject); - } - return result; - } - case RuntimePackage.ETYPED_ELEMENT_EOBJECT_RESULT: { - ETypedElementEObjectResult eTypedElementEObjectResult = (ETypedElementEObjectResult) theEObject; - T1 result = caseETypedElementEObjectResult(eTypedElementEObjectResult); - if (result == null) { - result = caseETypedElementResult(eTypedElementEObjectResult); - } - if (result == null) { - result = defaultCase(theEObject); - } - return result; - } - case RuntimePackage.ETYPED_ELEMENT_PRIMITIVE_TYPE_LIST_RESULT: { - ETypedElementPrimitiveTypeListResult eTypedElementPrimitiveTypeListResult = (ETypedElementPrimitiveTypeListResult) theEObject; - T1 result = caseETypedElementPrimitiveTypeListResult(eTypedElementPrimitiveTypeListResult); - if (result == null) { - result = caseETypedElementResult(eTypedElementPrimitiveTypeListResult); - } - if (result == null) { - result = defaultCase(theEObject); - } - return result; - } - case RuntimePackage.ETYPED_ELEMENT_EOBJECT_LIST_RESULT: { - ETypedElementEObjectListResult eTypedElementEObjectListResult = (ETypedElementEObjectListResult) theEObject; - T1 result = caseETypedElementEObjectListResult(eTypedElementEObjectListResult); - if (result == null) { - result = caseETypedElementResult(eTypedElementEObjectListResult); - } - if (result == null) { - result = defaultCase(theEObject); - } - return result; - } - case RuntimePackage.ETYPED_ELEMENT_RESULT: { - ETypedElementResult eTypedElementResult = (ETypedElementResult) theEObject; - T1 result = caseETypedElementResult(eTypedElementResult); - if (result == null) { - result = defaultCase(theEObject); - } - return result; - } - default: - return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of 'ETyped Element Primitive Type Result'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'ETyped Element Primitive Type Result'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T1 caseETypedElementPrimitiveTypeResult(ETypedElementPrimitiveTypeResult object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'ETyped Element EObject Result'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'ETyped Element EObject Result'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T1 caseETypedElementEObjectResult(ETypedElementEObjectResult object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'ETyped Element Primitive Type List Result'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'ETyped Element Primitive Type List Result'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T1 caseETypedElementPrimitiveTypeListResult(ETypedElementPrimitiveTypeListResult object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'ETyped Element EObject List Result'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'ETyped Element EObject List Result'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T1 caseETypedElementEObjectListResult(ETypedElementEObjectListResult object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'ETyped Element Result'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'ETyped Element Result'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T1 caseETypedElementResult(ETypedElementResult object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EObject'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - public T1 defaultCase(EObject object) { - return null; - } - -} // RuntimeSwitch diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/AbstractAttributeInstance.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/AbstractAttributeInstance.java deleted file mode 100644 index b57d012e3da..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/AbstractAttributeInstance.java +++ /dev/null @@ -1,67 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Abstract Attribute Instance'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractAttributeInstance#getEAttribute EAttribute}
  • - *
- * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getAbstractAttributeInstance() - * @model - * @generated - */ -public interface AbstractAttributeInstance extends EObject { - /** - * Returns the value of the 'EAttribute' reference. - * - *

- * If the meaning of the 'EAttribute' reference isn't clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'EAttribute' reference. - * @see #setEAttribute(EAttribute) - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getAbstractAttributeInstance_EAttribute() - * @model required="true" - * @generated - */ - EAttribute getEAttribute(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractAttributeInstance#getEAttribute EAttribute}' reference. - * - * - * - * @param value - * the new value of the 'EAttribute' reference. - * @see #getEAttribute() - * @generated - */ - void setEAttribute(EAttribute value); - -} // AbstractAttributeInstance diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/AbstractReferenceInstance.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/AbstractReferenceInstance.java deleted file mode 100644 index c2fbdd44478..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/AbstractReferenceInstance.java +++ /dev/null @@ -1,67 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EReference; - -/** - * - * A representation of the model object 'Abstract Reference Instance'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractReferenceInstance#getEReference EReference}
  • - *
- * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getAbstractReferenceInstance() - * @model - * @generated - */ -public interface AbstractReferenceInstance extends EObject { - /** - * Returns the value of the 'EReference' reference. - * - *

- * If the meaning of the 'EReference' reference isn't clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'EReference' reference. - * @see #setEReference(EReference) - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getAbstractReferenceInstance_EReference() - * @model required="true" - * @generated - */ - EReference getEReference(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractReferenceInstance#getEReference EReference}' reference. - * - * - * - * @param value - * the new value of the 'EReference' reference. - * @see #getEReference() - * @generated - */ - void setEReference(EReference value); - -} // AbstractReferenceInstance diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/ExtendedEObjectReference.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/ExtendedEObjectReference.java deleted file mode 100644 index 20e92809511..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/ExtendedEObjectReference.java +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Extended EObject Reference'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.ExtendedEObjectReference#getExtendedEObject Extended EObject}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.ExtendedEObjectReference#getAttributeInstances Attribute Instances}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.ExtendedEObjectReference#getReferenceInstances Reference Instances}
  • - *
- * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getExtendedEObjectReference() - * @model - * @generated - */ -public interface ExtendedEObjectReference extends EObject { - /** - * Returns the value of the 'Extended EObject' reference. - * - *

- * If the meaning of the 'Extended EObject' reference isn't clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'Extended EObject' reference. - * @see #setExtendedEObject(EObject) - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getExtendedEObjectReference_ExtendedEObject() - * @model required="true" - * @generated - */ - EObject getExtendedEObject(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.ExtendedEObjectReference#getExtendedEObject Extended EObject}' reference. - * - * - * - * @param value - * the new value of the 'Extended EObject' reference. - * @see #getExtendedEObject() - * @generated - */ - void setExtendedEObject(EObject value); - - /** - * Returns the value of the 'Attribute Instances' containment reference list. - * The list contents are of type {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractAttributeInstance}. - * - *

- * If the meaning of the 'Attribute Instances' containment reference list isn't clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'Attribute Instances' containment reference list. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getExtendedEObjectReference_AttributeInstances() - * @model containment="true" - * @generated - */ - EList getAttributeInstances(); - - /** - * Returns the value of the 'Reference Instances' containment reference list. - * The list contents are of type {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractReferenceInstance}. - * - *

- * If the meaning of the 'Reference Instances' containment reference list isn't clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'Reference Instances' containment reference list. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getExtendedEObjectReference_ReferenceInstances() - * @model containment="true" - * @generated - */ - EList getReferenceInstances(); - -} // ExtendedEObjectReference diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/MultiValuedAttributeInstance.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/MultiValuedAttributeInstance.java deleted file mode 100644 index 07f4536fd28..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/MultiValuedAttributeInstance.java +++ /dev/null @@ -1,54 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization; - -import org.eclipse.emf.common.util.EList; - -/** - * - * A representation of the model object 'Multi Valued Attribute Instance'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedAttributeInstance#getValues Values}
  • - *
- * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getMultiValuedAttributeInstance() - * @model - * @generated - */ -public interface MultiValuedAttributeInstance extends AbstractAttributeInstance { - /** - * Returns the value of the 'Values' attribute list. - * The list contents are of type {@link java.lang.Object}. - * - *

- * If the meaning of the 'Values' attribute list isn't clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'Values' attribute list. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getMultiValuedAttributeInstance_Values() - * @model - * @generated - */ - EList getValues(); - -} // MultiValuedAttributeInstance diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/MultiValuedContainmentReferenceInstance.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/MultiValuedContainmentReferenceInstance.java deleted file mode 100644 index 96e91ec02e5..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/MultiValuedContainmentReferenceInstance.java +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Multi Valued Containment Reference Instance'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedContainmentReferenceInstance#getOwnedElements Owned Elements}
  • - *
- * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getMultiValuedContainmentReferenceInstance() - * @model - * @generated - */ -public interface MultiValuedContainmentReferenceInstance extends AbstractReferenceInstance { - /** - * Returns the value of the 'Owned Elements' containment reference list. - * The list contents are of type {@link org.eclipse.emf.ecore.EObject}. - * - *

- * If the meaning of the 'Owned Elements' containment reference list isn't clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'Owned Elements' containment reference list. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getMultiValuedContainmentReferenceInstance_OwnedElements() - * @model containment="true" - * @generated - */ - EList getOwnedElements(); - -} // MultiValuedContainmentReferenceInstance diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/MultiValuedReferenceInstance.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/MultiValuedReferenceInstance.java deleted file mode 100644 index e409635439a..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/MultiValuedReferenceInstance.java +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Multi Valued Reference Instance'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedReferenceInstance#getReferencedElements Referenced Elements}
  • - *
- * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getMultiValuedReferenceInstance() - * @model - * @generated - */ -public interface MultiValuedReferenceInstance extends AbstractReferenceInstance { - /** - * Returns the value of the 'Referenced Elements' reference list. - * The list contents are of type {@link org.eclipse.emf.ecore.EObject}. - * - *

- * If the meaning of the 'Referenced Elements' reference list isn't clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'Referenced Elements' reference list. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getMultiValuedReferenceInstance_ReferencedElements() - * @model - * @generated - */ - EList getReferencedElements(); - -} // MultiValuedReferenceInstance diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SerializationFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SerializationFactory.java deleted file mode 100644 index 0d446c2bc1b..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SerializationFactory.java +++ /dev/null @@ -1,141 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization; - -import org.eclipse.emf.ecore.EFactory; - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage - * @generated - */ -public interface SerializationFactory extends EFactory { - /** - * The singleton instance of the factory. - * - * - * - * @generated - */ - SerializationFactory eINSTANCE = org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationFactoryImpl.init(); - - /** - * Returns a new object of class 'Abstract Reference Instance'. - * - * - * - * @return a new object of class 'Abstract Reference Instance'. - * @generated - */ - AbstractReferenceInstance createAbstractReferenceInstance(); - - /** - * Returns a new object of class 'Multi Valued Containment Reference Instance'. - * - * - * - * @return a new object of class 'Multi Valued Containment Reference Instance'. - * @generated - */ - MultiValuedContainmentReferenceInstance createMultiValuedContainmentReferenceInstance(); - - /** - * Returns a new object of class 'Multi Valued Reference Instance'. - * - * - * - * @return a new object of class 'Multi Valued Reference Instance'. - * @generated - */ - MultiValuedReferenceInstance createMultiValuedReferenceInstance(); - - /** - * Returns a new object of class 'Single Valued Attribute Instance'. - * - * - * - * @return a new object of class 'Single Valued Attribute Instance'. - * @generated - */ - SingleValuedAttributeInstance createSingleValuedAttributeInstance(); - - /** - * Returns a new object of class 'Extended EObject Reference'. - * - * - * - * @return a new object of class 'Extended EObject Reference'. - * @generated - */ - ExtendedEObjectReference createExtendedEObjectReference(); - - /** - * Returns a new object of class 'Single Valued Containment Reference Instance'. - * - * - * - * @return a new object of class 'Single Valued Containment Reference Instance'. - * @generated - */ - SingleValuedContainmentReferenceInstance createSingleValuedContainmentReferenceInstance(); - - /** - * Returns a new object of class 'Single Valued Reference Instance'. - * - * - * - * @return a new object of class 'Single Valued Reference Instance'. - * @generated - */ - SingleValuedReferenceInstance createSingleValuedReferenceInstance(); - - /** - * Returns a new object of class 'Multi Valued Attribute Instance'. - * - * - * - * @return a new object of class 'Multi Valued Attribute Instance'. - * @generated - */ - MultiValuedAttributeInstance createMultiValuedAttributeInstance(); - - /** - * Returns a new object of class 'Abstract Attribute Instance'. - * - * - * - * @return a new object of class 'Abstract Attribute Instance'. - * @generated - */ - AbstractAttributeInstance createAbstractAttributeInstance(); - - /** - * Returns the package supported by this factory. - * - * - * - * @return the package supported by this factory. - * @generated - */ - SerializationPackage getSerializationPackage(); - -} // SerializationFactory diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SerializationPackage.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SerializationPackage.java deleted file mode 100644 index 3b406cfd479..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SerializationPackage.java +++ /dev/null @@ -1,893 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; - -/** - * - * The Package for the model. - * It contains accessors for the meta objects to represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationFactory - * @model kind="package" - * @generated - */ -public interface SerializationPackage extends EPackage { - /** - * The package name. - * - * - * - * @generated - */ - String eNAME = "serialization"; //$NON-NLS-1$ - - /** - * The package namespace URI. - * - * - * - * @generated - */ - String eNS_URI = "http://www.eclipse.org/papyrus/emf/facet/efacet/0.2.incubation/efacet/serialization"; //$NON-NLS-1$ - - /** - * The package namespace name. - * - * - * - * @generated - */ - String eNS_PREFIX = "serialization"; //$NON-NLS-1$ - - /** - * The singleton instance of the package. - * - * - * - * @generated - */ - SerializationPackage eINSTANCE = org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl.init(); - - /** - * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.AbstractReferenceInstanceImpl Abstract Reference Instance}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.AbstractReferenceInstanceImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl#getAbstractReferenceInstance() - * @generated - */ - int ABSTRACT_REFERENCE_INSTANCE = 0; - - /** - * The feature id for the 'EReference' reference. - * - * - * - * @generated - * @ordered - */ - int ABSTRACT_REFERENCE_INSTANCE__EREFERENCE = 0; - - /** - * The number of structural features of the 'Abstract Reference Instance' class. - * - * - * - * @generated - * @ordered - */ - int ABSTRACT_REFERENCE_INSTANCE_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.MultiValuedContainmentReferenceInstanceImpl Multi Valued Containment Reference Instance}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.MultiValuedContainmentReferenceInstanceImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl#getMultiValuedContainmentReferenceInstance() - * @generated - */ - int MULTI_VALUED_CONTAINMENT_REFERENCE_INSTANCE = 1; - - /** - * The feature id for the 'EReference' reference. - * - * - * - * @generated - * @ordered - */ - int MULTI_VALUED_CONTAINMENT_REFERENCE_INSTANCE__EREFERENCE = ABSTRACT_REFERENCE_INSTANCE__EREFERENCE; - - /** - * The feature id for the 'Owned Elements' containment reference list. - * - * - * - * @generated - * @ordered - */ - int MULTI_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENTS = ABSTRACT_REFERENCE_INSTANCE_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Multi Valued Containment Reference Instance' class. - * - * - * - * @generated - * @ordered - */ - int MULTI_VALUED_CONTAINMENT_REFERENCE_INSTANCE_FEATURE_COUNT = ABSTRACT_REFERENCE_INSTANCE_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.MultiValuedReferenceInstanceImpl Multi Valued Reference Instance}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.MultiValuedReferenceInstanceImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl#getMultiValuedReferenceInstance() - * @generated - */ - int MULTI_VALUED_REFERENCE_INSTANCE = 2; - - /** - * The feature id for the 'EReference' reference. - * - * - * - * @generated - * @ordered - */ - int MULTI_VALUED_REFERENCE_INSTANCE__EREFERENCE = ABSTRACT_REFERENCE_INSTANCE__EREFERENCE; - - /** - * The feature id for the 'Referenced Elements' reference list. - * - * - * - * @generated - * @ordered - */ - int MULTI_VALUED_REFERENCE_INSTANCE__REFERENCED_ELEMENTS = ABSTRACT_REFERENCE_INSTANCE_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Multi Valued Reference Instance' class. - * - * - * - * @generated - * @ordered - */ - int MULTI_VALUED_REFERENCE_INSTANCE_FEATURE_COUNT = ABSTRACT_REFERENCE_INSTANCE_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.AbstractAttributeInstanceImpl Abstract Attribute Instance}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.AbstractAttributeInstanceImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl#getAbstractAttributeInstance() - * @generated - */ - int ABSTRACT_ATTRIBUTE_INSTANCE = 8; - - /** - * The feature id for the 'EAttribute' reference. - * - * - * - * @generated - * @ordered - */ - int ABSTRACT_ATTRIBUTE_INSTANCE__EATTRIBUTE = 0; - - /** - * The number of structural features of the 'Abstract Attribute Instance' class. - * - * - * - * @generated - * @ordered - */ - int ABSTRACT_ATTRIBUTE_INSTANCE_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SingleValuedAttributeInstanceImpl Single Valued Attribute Instance}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SingleValuedAttributeInstanceImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl#getSingleValuedAttributeInstance() - * @generated - */ - int SINGLE_VALUED_ATTRIBUTE_INSTANCE = 3; - - /** - * The feature id for the 'EAttribute' reference. - * - * - * - * @generated - * @ordered - */ - int SINGLE_VALUED_ATTRIBUTE_INSTANCE__EATTRIBUTE = ABSTRACT_ATTRIBUTE_INSTANCE__EATTRIBUTE; - - /** - * The feature id for the 'Value' attribute. - * - * - * - * @generated - * @ordered - */ - int SINGLE_VALUED_ATTRIBUTE_INSTANCE__VALUE = ABSTRACT_ATTRIBUTE_INSTANCE_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Single Valued Attribute Instance' class. - * - * - * - * @generated - * @ordered - */ - int SINGLE_VALUED_ATTRIBUTE_INSTANCE_FEATURE_COUNT = ABSTRACT_ATTRIBUTE_INSTANCE_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.ExtendedEObjectReferenceImpl Extended EObject Reference}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.ExtendedEObjectReferenceImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl#getExtendedEObjectReference() - * @generated - */ - int EXTENDED_EOBJECT_REFERENCE = 4; - - /** - * The feature id for the 'Extended EObject' reference. - * - * - * - * @generated - * @ordered - */ - int EXTENDED_EOBJECT_REFERENCE__EXTENDED_EOBJECT = 0; - - /** - * The feature id for the 'Attribute Instances' containment reference list. - * - * - * - * @generated - * @ordered - */ - int EXTENDED_EOBJECT_REFERENCE__ATTRIBUTE_INSTANCES = 1; - - /** - * The feature id for the 'Reference Instances' containment reference list. - * - * - * - * @generated - * @ordered - */ - int EXTENDED_EOBJECT_REFERENCE__REFERENCE_INSTANCES = 2; - - /** - * The number of structural features of the 'Extended EObject Reference' class. - * - * - * - * @generated - * @ordered - */ - int EXTENDED_EOBJECT_REFERENCE_FEATURE_COUNT = 3; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SingleValuedContainmentReferenceInstanceImpl Single Valued Containment Reference Instance}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SingleValuedContainmentReferenceInstanceImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl#getSingleValuedContainmentReferenceInstance() - * @generated - */ - int SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE = 5; - - /** - * The feature id for the 'EReference' reference. - * - * - * - * @generated - * @ordered - */ - int SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE__EREFERENCE = ABSTRACT_REFERENCE_INSTANCE__EREFERENCE; - - /** - * The feature id for the 'Owned Element' containment reference. - * - * - * - * @generated - * @ordered - */ - int SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENT = ABSTRACT_REFERENCE_INSTANCE_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Single Valued Containment Reference Instance' class. - * - * - * - * @generated - * @ordered - */ - int SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE_FEATURE_COUNT = ABSTRACT_REFERENCE_INSTANCE_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SingleValuedReferenceInstanceImpl Single Valued Reference Instance}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SingleValuedReferenceInstanceImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl#getSingleValuedReferenceInstance() - * @generated - */ - int SINGLE_VALUED_REFERENCE_INSTANCE = 6; - - /** - * The feature id for the 'EReference' reference. - * - * - * - * @generated - * @ordered - */ - int SINGLE_VALUED_REFERENCE_INSTANCE__EREFERENCE = ABSTRACT_REFERENCE_INSTANCE__EREFERENCE; - - /** - * The feature id for the 'Referenced Element' reference. - * - * - * - * @generated - * @ordered - */ - int SINGLE_VALUED_REFERENCE_INSTANCE__REFERENCED_ELEMENT = ABSTRACT_REFERENCE_INSTANCE_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Single Valued Reference Instance' class. - * - * - * - * @generated - * @ordered - */ - int SINGLE_VALUED_REFERENCE_INSTANCE_FEATURE_COUNT = ABSTRACT_REFERENCE_INSTANCE_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.MultiValuedAttributeInstanceImpl Multi Valued Attribute Instance}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.MultiValuedAttributeInstanceImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl#getMultiValuedAttributeInstance() - * @generated - */ - int MULTI_VALUED_ATTRIBUTE_INSTANCE = 7; - - /** - * The feature id for the 'EAttribute' reference. - * - * - * - * @generated - * @ordered - */ - int MULTI_VALUED_ATTRIBUTE_INSTANCE__EATTRIBUTE = ABSTRACT_ATTRIBUTE_INSTANCE__EATTRIBUTE; - - /** - * The feature id for the 'Values' attribute list. - * - * - * - * @generated - * @ordered - */ - int MULTI_VALUED_ATTRIBUTE_INSTANCE__VALUES = ABSTRACT_ATTRIBUTE_INSTANCE_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Multi Valued Attribute Instance' class. - * - * - * - * @generated - * @ordered - */ - int MULTI_VALUED_ATTRIBUTE_INSTANCE_FEATURE_COUNT = ABSTRACT_ATTRIBUTE_INSTANCE_FEATURE_COUNT + 1; - - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractReferenceInstance Abstract Reference Instance}'. - * - * - * - * @return the meta object for class 'Abstract Reference Instance'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractReferenceInstance - * @generated - */ - EClass getAbstractReferenceInstance(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractReferenceInstance#getEReference EReference}'. - * - * - * - * @return the meta object for the reference 'EReference'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractReferenceInstance#getEReference() - * @see #getAbstractReferenceInstance() - * @generated - */ - EReference getAbstractReferenceInstance_EReference(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedContainmentReferenceInstance Multi Valued Containment Reference Instance}'. - * - * - * - * @return the meta object for class 'Multi Valued Containment Reference Instance'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedContainmentReferenceInstance - * @generated - */ - EClass getMultiValuedContainmentReferenceInstance(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedContainmentReferenceInstance#getOwnedElements Owned Elements}'. - * - * - * - * @return the meta object for the containment reference list 'Owned Elements'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedContainmentReferenceInstance#getOwnedElements() - * @see #getMultiValuedContainmentReferenceInstance() - * @generated - */ - EReference getMultiValuedContainmentReferenceInstance_OwnedElements(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedReferenceInstance Multi Valued Reference Instance}'. - * - * - * - * @return the meta object for class 'Multi Valued Reference Instance'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedReferenceInstance - * @generated - */ - EClass getMultiValuedReferenceInstance(); - - /** - * Returns the meta object for the reference list '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedReferenceInstance#getReferencedElements Referenced Elements}'. - * - * - * - * @return the meta object for the reference list 'Referenced Elements'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedReferenceInstance#getReferencedElements() - * @see #getMultiValuedReferenceInstance() - * @generated - */ - EReference getMultiValuedReferenceInstance_ReferencedElements(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedAttributeInstance Single Valued Attribute Instance}'. - * - * - * - * @return the meta object for class 'Single Valued Attribute Instance'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedAttributeInstance - * @generated - */ - EClass getSingleValuedAttributeInstance(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedAttributeInstance#getValue Value}'. - * - * - * - * @return the meta object for the attribute 'Value'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedAttributeInstance#getValue() - * @see #getSingleValuedAttributeInstance() - * @generated - */ - EAttribute getSingleValuedAttributeInstance_Value(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.ExtendedEObjectReference Extended EObject Reference}'. - * - * - * - * @return the meta object for class 'Extended EObject Reference'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.ExtendedEObjectReference - * @generated - */ - EClass getExtendedEObjectReference(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.ExtendedEObjectReference#getExtendedEObject Extended EObject}'. - * - * - * - * @return the meta object for the reference 'Extended EObject'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.ExtendedEObjectReference#getExtendedEObject() - * @see #getExtendedEObjectReference() - * @generated - */ - EReference getExtendedEObjectReference_ExtendedEObject(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.ExtendedEObjectReference#getAttributeInstances Attribute Instances}'. - * - * - * - * @return the meta object for the containment reference list 'Attribute Instances'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.ExtendedEObjectReference#getAttributeInstances() - * @see #getExtendedEObjectReference() - * @generated - */ - EReference getExtendedEObjectReference_AttributeInstances(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.ExtendedEObjectReference#getReferenceInstances Reference Instances}'. - * - * - * - * @return the meta object for the containment reference list 'Reference Instances'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.ExtendedEObjectReference#getReferenceInstances() - * @see #getExtendedEObjectReference() - * @generated - */ - EReference getExtendedEObjectReference_ReferenceInstances(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedContainmentReferenceInstance Single Valued Containment Reference Instance}'. - * - * - * - * @return the meta object for class 'Single Valued Containment Reference Instance'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedContainmentReferenceInstance - * @generated - */ - EClass getSingleValuedContainmentReferenceInstance(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedContainmentReferenceInstance#getOwnedElement Owned Element}'. - * - * - * - * @return the meta object for the containment reference 'Owned Element'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedContainmentReferenceInstance#getOwnedElement() - * @see #getSingleValuedContainmentReferenceInstance() - * @generated - */ - EReference getSingleValuedContainmentReferenceInstance_OwnedElement(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedReferenceInstance Single Valued Reference Instance}'. - * - * - * - * @return the meta object for class 'Single Valued Reference Instance'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedReferenceInstance - * @generated - */ - EClass getSingleValuedReferenceInstance(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedReferenceInstance#getReferencedElement Referenced Element}'. - * - * - * - * @return the meta object for the reference 'Referenced Element'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedReferenceInstance#getReferencedElement() - * @see #getSingleValuedReferenceInstance() - * @generated - */ - EReference getSingleValuedReferenceInstance_ReferencedElement(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedAttributeInstance Multi Valued Attribute Instance}'. - * - * - * - * @return the meta object for class 'Multi Valued Attribute Instance'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedAttributeInstance - * @generated - */ - EClass getMultiValuedAttributeInstance(); - - /** - * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedAttributeInstance#getValues Values}'. - * - * - * - * @return the meta object for the attribute list 'Values'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedAttributeInstance#getValues() - * @see #getMultiValuedAttributeInstance() - * @generated - */ - EAttribute getMultiValuedAttributeInstance_Values(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractAttributeInstance Abstract Attribute Instance}'. - * - * - * - * @return the meta object for class 'Abstract Attribute Instance'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractAttributeInstance - * @generated - */ - EClass getAbstractAttributeInstance(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractAttributeInstance#getEAttribute EAttribute}'. - * - * - * - * @return the meta object for the reference 'EAttribute'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractAttributeInstance#getEAttribute() - * @see #getAbstractAttributeInstance() - * @generated - */ - EReference getAbstractAttributeInstance_EAttribute(); - - /** - * Returns the factory that creates the instances of the model. - * - * - * - * @return the factory that creates the instances of the model. - * @generated - */ - SerializationFactory getSerializationFactory(); - - /** - * - * Defines literals for the meta objects that represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * - * @generated - */ - interface Literals { - /** - * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.AbstractReferenceInstanceImpl Abstract Reference Instance}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.AbstractReferenceInstanceImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl#getAbstractReferenceInstance() - * @generated - */ - EClass ABSTRACT_REFERENCE_INSTANCE = eINSTANCE.getAbstractReferenceInstance(); - - /** - * The meta object literal for the 'EReference' reference feature. - * - * - * - * @generated - */ - EReference ABSTRACT_REFERENCE_INSTANCE__EREFERENCE = eINSTANCE.getAbstractReferenceInstance_EReference(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.MultiValuedContainmentReferenceInstanceImpl Multi Valued Containment Reference Instance}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.MultiValuedContainmentReferenceInstanceImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl#getMultiValuedContainmentReferenceInstance() - * @generated - */ - EClass MULTI_VALUED_CONTAINMENT_REFERENCE_INSTANCE = eINSTANCE.getMultiValuedContainmentReferenceInstance(); - - /** - * The meta object literal for the 'Owned Elements' containment reference list feature. - * - * - * - * @generated - */ - EReference MULTI_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENTS = eINSTANCE.getMultiValuedContainmentReferenceInstance_OwnedElements(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.MultiValuedReferenceInstanceImpl Multi Valued Reference Instance}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.MultiValuedReferenceInstanceImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl#getMultiValuedReferenceInstance() - * @generated - */ - EClass MULTI_VALUED_REFERENCE_INSTANCE = eINSTANCE.getMultiValuedReferenceInstance(); - - /** - * The meta object literal for the 'Referenced Elements' reference list feature. - * - * - * - * @generated - */ - EReference MULTI_VALUED_REFERENCE_INSTANCE__REFERENCED_ELEMENTS = eINSTANCE.getMultiValuedReferenceInstance_ReferencedElements(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SingleValuedAttributeInstanceImpl Single Valued Attribute Instance}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SingleValuedAttributeInstanceImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl#getSingleValuedAttributeInstance() - * @generated - */ - EClass SINGLE_VALUED_ATTRIBUTE_INSTANCE = eINSTANCE.getSingleValuedAttributeInstance(); - - /** - * The meta object literal for the 'Value' attribute feature. - * - * - * - * @generated - */ - EAttribute SINGLE_VALUED_ATTRIBUTE_INSTANCE__VALUE = eINSTANCE.getSingleValuedAttributeInstance_Value(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.ExtendedEObjectReferenceImpl Extended EObject Reference}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.ExtendedEObjectReferenceImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl#getExtendedEObjectReference() - * @generated - */ - EClass EXTENDED_EOBJECT_REFERENCE = eINSTANCE.getExtendedEObjectReference(); - - /** - * The meta object literal for the 'Extended EObject' reference feature. - * - * - * - * @generated - */ - EReference EXTENDED_EOBJECT_REFERENCE__EXTENDED_EOBJECT = eINSTANCE.getExtendedEObjectReference_ExtendedEObject(); - - /** - * The meta object literal for the 'Attribute Instances' containment reference list feature. - * - * - * - * @generated - */ - EReference EXTENDED_EOBJECT_REFERENCE__ATTRIBUTE_INSTANCES = eINSTANCE.getExtendedEObjectReference_AttributeInstances(); - - /** - * The meta object literal for the 'Reference Instances' containment reference list feature. - * - * - * - * @generated - */ - EReference EXTENDED_EOBJECT_REFERENCE__REFERENCE_INSTANCES = eINSTANCE.getExtendedEObjectReference_ReferenceInstances(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SingleValuedContainmentReferenceInstanceImpl Single Valued Containment Reference Instance}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SingleValuedContainmentReferenceInstanceImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl#getSingleValuedContainmentReferenceInstance() - * @generated - */ - EClass SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE = eINSTANCE.getSingleValuedContainmentReferenceInstance(); - - /** - * The meta object literal for the 'Owned Element' containment reference feature. - * - * - * - * @generated - */ - EReference SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENT = eINSTANCE.getSingleValuedContainmentReferenceInstance_OwnedElement(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SingleValuedReferenceInstanceImpl Single Valued Reference Instance}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SingleValuedReferenceInstanceImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl#getSingleValuedReferenceInstance() - * @generated - */ - EClass SINGLE_VALUED_REFERENCE_INSTANCE = eINSTANCE.getSingleValuedReferenceInstance(); - - /** - * The meta object literal for the 'Referenced Element' reference feature. - * - * - * - * @generated - */ - EReference SINGLE_VALUED_REFERENCE_INSTANCE__REFERENCED_ELEMENT = eINSTANCE.getSingleValuedReferenceInstance_ReferencedElement(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.MultiValuedAttributeInstanceImpl Multi Valued Attribute Instance}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.MultiValuedAttributeInstanceImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl#getMultiValuedAttributeInstance() - * @generated - */ - EClass MULTI_VALUED_ATTRIBUTE_INSTANCE = eINSTANCE.getMultiValuedAttributeInstance(); - - /** - * The meta object literal for the 'Values' attribute list feature. - * - * - * - * @generated - */ - EAttribute MULTI_VALUED_ATTRIBUTE_INSTANCE__VALUES = eINSTANCE.getMultiValuedAttributeInstance_Values(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.AbstractAttributeInstanceImpl Abstract Attribute Instance}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.AbstractAttributeInstanceImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SerializationPackageImpl#getAbstractAttributeInstance() - * @generated - */ - EClass ABSTRACT_ATTRIBUTE_INSTANCE = eINSTANCE.getAbstractAttributeInstance(); - - /** - * The meta object literal for the 'EAttribute' reference feature. - * - * - * - * @generated - */ - EReference ABSTRACT_ATTRIBUTE_INSTANCE__EATTRIBUTE = eINSTANCE.getAbstractAttributeInstance_EAttribute(); - - } - -} // SerializationPackage diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SingleValuedAttributeInstance.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SingleValuedAttributeInstance.java deleted file mode 100644 index 01bfc660539..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SingleValuedAttributeInstance.java +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization; - - -/** - * - * A representation of the model object 'Single Valued Attribute Instance'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedAttributeInstance#getValue Value}
  • - *
- * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getSingleValuedAttributeInstance() - * @model - * @generated - */ -public interface SingleValuedAttributeInstance extends AbstractAttributeInstance { - /** - * Returns the value of the 'Value' attribute. - * - *

- * If the meaning of the 'Value' attribute isn't clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'Value' attribute. - * @see #setValue(Object) - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getSingleValuedAttributeInstance_Value() - * @model - * @generated - */ - Object getValue(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedAttributeInstance#getValue Value}' attribute. - * - * - * - * @param value - * the new value of the 'Value' attribute. - * @see #getValue() - * @generated - */ - void setValue(Object value); - -} // SingleValuedAttributeInstance diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SingleValuedContainmentReferenceInstance.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SingleValuedContainmentReferenceInstance.java deleted file mode 100644 index 2205021faa4..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SingleValuedContainmentReferenceInstance.java +++ /dev/null @@ -1,66 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Single Valued Containment Reference Instance'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedContainmentReferenceInstance#getOwnedElement Owned Element}
  • - *
- * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getSingleValuedContainmentReferenceInstance() - * @model - * @generated - */ -public interface SingleValuedContainmentReferenceInstance extends AbstractReferenceInstance { - /** - * Returns the value of the 'Owned Element' containment reference. - * - *

- * If the meaning of the 'Owned Element' containment reference isn't clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'Owned Element' containment reference. - * @see #setOwnedElement(EObject) - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getSingleValuedContainmentReferenceInstance_OwnedElement() - * @model containment="true" - * @generated - */ - EObject getOwnedElement(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedContainmentReferenceInstance#getOwnedElement Owned Element}' containment reference. - * - * - * - * @param value - * the new value of the 'Owned Element' containment reference. - * @see #getOwnedElement() - * @generated - */ - void setOwnedElement(EObject value); - -} // SingleValuedContainmentReferenceInstance diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SingleValuedReferenceInstance.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SingleValuedReferenceInstance.java deleted file mode 100644 index 95f80ffa06a..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/SingleValuedReferenceInstance.java +++ /dev/null @@ -1,66 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Single Valued Reference Instance'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedReferenceInstance#getReferencedElement Referenced Element}
  • - *
- * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getSingleValuedReferenceInstance() - * @model - * @generated - */ -public interface SingleValuedReferenceInstance extends AbstractReferenceInstance { - /** - * Returns the value of the 'Referenced Element' reference. - * - *

- * If the meaning of the 'Referenced Element' reference isn't clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'Referenced Element' reference. - * @see #setReferencedElement(EObject) - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#getSingleValuedReferenceInstance_ReferencedElement() - * @model - * @generated - */ - EObject getReferencedElement(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedReferenceInstance#getReferencedElement Referenced Element}' reference. - * - * - * - * @param value - * the new value of the 'Referenced Element' reference. - * @see #getReferencedElement() - * @generated - */ - void setReferencedElement(EObject value); - -} // SingleValuedReferenceInstance diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/AbstractAttributeInstanceImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/AbstractAttributeInstanceImpl.java deleted file mode 100644 index 30e4452e11b..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/AbstractAttributeInstanceImpl.java +++ /dev/null @@ -1,182 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractAttributeInstance; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage; - -/** - * - * An implementation of the model object 'Abstract Attribute Instance'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.AbstractAttributeInstanceImpl#getEAttribute EAttribute}
  • - *
- * - * @generated - */ -public class AbstractAttributeInstanceImpl extends EObjectImpl implements AbstractAttributeInstance { - /** - * The cached value of the '{@link #getEAttribute() EAttribute}' reference. - * - * - * - * @see #getEAttribute() - * @generated - * @ordered - */ - protected EAttribute eAttribute; - - /** - * - * - * - * @generated - */ - protected AbstractAttributeInstanceImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return SerializationPackage.Literals.ABSTRACT_ATTRIBUTE_INSTANCE; - } - - /** - * - * - * - * @generated - */ - public EAttribute getEAttribute() { - if (eAttribute != null && eAttribute.eIsProxy()) { - InternalEObject oldEAttribute = (InternalEObject) eAttribute; - eAttribute = (EAttribute) eResolveProxy(oldEAttribute); - if (eAttribute != oldEAttribute) { - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.RESOLVE, SerializationPackage.ABSTRACT_ATTRIBUTE_INSTANCE__EATTRIBUTE, oldEAttribute, eAttribute)); - } - } - } - return eAttribute; - } - - /** - * - * - * - * @generated - */ - public EAttribute basicGetEAttribute() { - return eAttribute; - } - - /** - * - * - * - * @generated - */ - public void setEAttribute(EAttribute newEAttribute) { - EAttribute oldEAttribute = eAttribute; - eAttribute = newEAttribute; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, SerializationPackage.ABSTRACT_ATTRIBUTE_INSTANCE__EATTRIBUTE, oldEAttribute, eAttribute)); - } - } - - /** - * - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case SerializationPackage.ABSTRACT_ATTRIBUTE_INSTANCE__EATTRIBUTE: - if (resolve) { - return getEAttribute(); - } - return basicGetEAttribute(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case SerializationPackage.ABSTRACT_ATTRIBUTE_INSTANCE__EATTRIBUTE: - setEAttribute((EAttribute) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case SerializationPackage.ABSTRACT_ATTRIBUTE_INSTANCE__EATTRIBUTE: - setEAttribute((EAttribute) null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case SerializationPackage.ABSTRACT_ATTRIBUTE_INSTANCE__EATTRIBUTE: - return eAttribute != null; - } - return super.eIsSet(featureID); - } - -} // AbstractAttributeInstanceImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/AbstractReferenceInstanceImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/AbstractReferenceInstanceImpl.java deleted file mode 100644 index 2246a2a74ac..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/AbstractReferenceInstanceImpl.java +++ /dev/null @@ -1,182 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractReferenceInstance; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage; - -/** - * - * An implementation of the model object 'Abstract Reference Instance'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.AbstractReferenceInstanceImpl#getEReference EReference}
  • - *
- * - * @generated - */ -public class AbstractReferenceInstanceImpl extends EObjectImpl implements AbstractReferenceInstance { - /** - * The cached value of the '{@link #getEReference() EReference}' reference. - * - * - * - * @see #getEReference() - * @generated - * @ordered - */ - protected EReference eReference; - - /** - * - * - * - * @generated - */ - protected AbstractReferenceInstanceImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return SerializationPackage.Literals.ABSTRACT_REFERENCE_INSTANCE; - } - - /** - * - * - * - * @generated - */ - public EReference getEReference() { - if (eReference != null && eReference.eIsProxy()) { - InternalEObject oldEReference = (InternalEObject) eReference; - eReference = (EReference) eResolveProxy(oldEReference); - if (eReference != oldEReference) { - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.RESOLVE, SerializationPackage.ABSTRACT_REFERENCE_INSTANCE__EREFERENCE, oldEReference, eReference)); - } - } - } - return eReference; - } - - /** - * - * - * - * @generated - */ - public EReference basicGetEReference() { - return eReference; - } - - /** - * - * - * - * @generated - */ - public void setEReference(EReference newEReference) { - EReference oldEReference = eReference; - eReference = newEReference; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, SerializationPackage.ABSTRACT_REFERENCE_INSTANCE__EREFERENCE, oldEReference, eReference)); - } - } - - /** - * - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case SerializationPackage.ABSTRACT_REFERENCE_INSTANCE__EREFERENCE: - if (resolve) { - return getEReference(); - } - return basicGetEReference(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case SerializationPackage.ABSTRACT_REFERENCE_INSTANCE__EREFERENCE: - setEReference((EReference) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case SerializationPackage.ABSTRACT_REFERENCE_INSTANCE__EREFERENCE: - setEReference((EReference) null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case SerializationPackage.ABSTRACT_REFERENCE_INSTANCE__EREFERENCE: - return eReference != null; - } - return super.eIsSet(featureID); - } - -} // AbstractReferenceInstanceImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/ExtendedEObjectReferenceImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/ExtendedEObjectReferenceImpl.java deleted file mode 100644 index 371ab5f7fb0..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/ExtendedEObjectReferenceImpl.java +++ /dev/null @@ -1,280 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractAttributeInstance; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractReferenceInstance; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.ExtendedEObjectReference; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage; - -/** - * - * An implementation of the model object 'Extended EObject Reference'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.ExtendedEObjectReferenceImpl#getExtendedEObject Extended EObject}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.ExtendedEObjectReferenceImpl#getAttributeInstances Attribute Instances}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.ExtendedEObjectReferenceImpl#getReferenceInstances Reference Instances}
  • - *
- * - * @generated - */ -public class ExtendedEObjectReferenceImpl extends EObjectImpl implements ExtendedEObjectReference { - /** - * The cached value of the '{@link #getExtendedEObject() Extended EObject}' reference. - * - * - * - * @see #getExtendedEObject() - * @generated - * @ordered - */ - protected EObject extendedEObject; - - /** - * The cached value of the '{@link #getAttributeInstances() Attribute Instances}' containment reference list. - * - * - * - * @see #getAttributeInstances() - * @generated - * @ordered - */ - protected EList attributeInstances; - - /** - * The cached value of the '{@link #getReferenceInstances() Reference Instances}' containment reference list. - * - * - * - * @see #getReferenceInstances() - * @generated - * @ordered - */ - protected EList referenceInstances; - - /** - * - * - * - * @generated - */ - protected ExtendedEObjectReferenceImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return SerializationPackage.Literals.EXTENDED_EOBJECT_REFERENCE; - } - - /** - * - * - * - * @generated - */ - public EObject getExtendedEObject() { - if (extendedEObject != null && extendedEObject.eIsProxy()) { - InternalEObject oldExtendedEObject = (InternalEObject) extendedEObject; - extendedEObject = eResolveProxy(oldExtendedEObject); - if (extendedEObject != oldExtendedEObject) { - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.RESOLVE, SerializationPackage.EXTENDED_EOBJECT_REFERENCE__EXTENDED_EOBJECT, oldExtendedEObject, extendedEObject)); - } - } - } - return extendedEObject; - } - - /** - * - * - * - * @generated - */ - public EObject basicGetExtendedEObject() { - return extendedEObject; - } - - /** - * - * - * - * @generated - */ - public void setExtendedEObject(EObject newExtendedEObject) { - EObject oldExtendedEObject = extendedEObject; - extendedEObject = newExtendedEObject; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, SerializationPackage.EXTENDED_EOBJECT_REFERENCE__EXTENDED_EOBJECT, oldExtendedEObject, extendedEObject)); - } - } - - /** - * - * - * - * @generated - */ - public EList getAttributeInstances() { - if (attributeInstances == null) { - attributeInstances = new EObjectContainmentEList(AbstractAttributeInstance.class, this, SerializationPackage.EXTENDED_EOBJECT_REFERENCE__ATTRIBUTE_INSTANCES); - } - return attributeInstances; - } - - /** - * - * - * - * @generated - */ - public EList getReferenceInstances() { - if (referenceInstances == null) { - referenceInstances = new EObjectContainmentEList(AbstractReferenceInstance.class, this, SerializationPackage.EXTENDED_EOBJECT_REFERENCE__REFERENCE_INSTANCES); - } - return referenceInstances; - } - - /** - * - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case SerializationPackage.EXTENDED_EOBJECT_REFERENCE__ATTRIBUTE_INSTANCES: - return ((InternalEList) getAttributeInstances()).basicRemove(otherEnd, msgs); - case SerializationPackage.EXTENDED_EOBJECT_REFERENCE__REFERENCE_INSTANCES: - return ((InternalEList) getReferenceInstances()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case SerializationPackage.EXTENDED_EOBJECT_REFERENCE__EXTENDED_EOBJECT: - if (resolve) { - return getExtendedEObject(); - } - return basicGetExtendedEObject(); - case SerializationPackage.EXTENDED_EOBJECT_REFERENCE__ATTRIBUTE_INSTANCES: - return getAttributeInstances(); - case SerializationPackage.EXTENDED_EOBJECT_REFERENCE__REFERENCE_INSTANCES: - return getReferenceInstances(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case SerializationPackage.EXTENDED_EOBJECT_REFERENCE__EXTENDED_EOBJECT: - setExtendedEObject((EObject) newValue); - return; - case SerializationPackage.EXTENDED_EOBJECT_REFERENCE__ATTRIBUTE_INSTANCES: - getAttributeInstances().clear(); - getAttributeInstances().addAll((Collection) newValue); - return; - case SerializationPackage.EXTENDED_EOBJECT_REFERENCE__REFERENCE_INSTANCES: - getReferenceInstances().clear(); - getReferenceInstances().addAll((Collection) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case SerializationPackage.EXTENDED_EOBJECT_REFERENCE__EXTENDED_EOBJECT: - setExtendedEObject((EObject) null); - return; - case SerializationPackage.EXTENDED_EOBJECT_REFERENCE__ATTRIBUTE_INSTANCES: - getAttributeInstances().clear(); - return; - case SerializationPackage.EXTENDED_EOBJECT_REFERENCE__REFERENCE_INSTANCES: - getReferenceInstances().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case SerializationPackage.EXTENDED_EOBJECT_REFERENCE__EXTENDED_EOBJECT: - return extendedEObject != null; - case SerializationPackage.EXTENDED_EOBJECT_REFERENCE__ATTRIBUTE_INSTANCES: - return attributeInstances != null && !attributeInstances.isEmpty(); - case SerializationPackage.EXTENDED_EOBJECT_REFERENCE__REFERENCE_INSTANCES: - return referenceInstances != null && !referenceInstances.isEmpty(); - } - return super.eIsSet(featureID); - } - -} // ExtendedEObjectReferenceImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/MultiValuedAttributeInstanceImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/MultiValuedAttributeInstanceImpl.java deleted file mode 100644 index 43393861ec8..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/MultiValuedAttributeInstanceImpl.java +++ /dev/null @@ -1,169 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedAttributeInstance; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage; - -/** - * - * An implementation of the model object 'Multi Valued Attribute Instance'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.MultiValuedAttributeInstanceImpl#getValues Values}
  • - *
- * - * @generated - */ -public class MultiValuedAttributeInstanceImpl extends AbstractAttributeInstanceImpl implements MultiValuedAttributeInstance { - /** - * The cached value of the '{@link #getValues() Values}' attribute list. - * - * - * - * @see #getValues() - * @generated - * @ordered - */ - protected EList values; - - /** - * - * - * - * @generated - */ - protected MultiValuedAttributeInstanceImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return SerializationPackage.Literals.MULTI_VALUED_ATTRIBUTE_INSTANCE; - } - - /** - * - * - * - * @generated - */ - public EList getValues() { - if (values == null) { - values = new EDataTypeUniqueEList(Object.class, this, SerializationPackage.MULTI_VALUED_ATTRIBUTE_INSTANCE__VALUES); - } - return values; - } - - /** - * - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case SerializationPackage.MULTI_VALUED_ATTRIBUTE_INSTANCE__VALUES: - return getValues(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case SerializationPackage.MULTI_VALUED_ATTRIBUTE_INSTANCE__VALUES: - getValues().clear(); - getValues().addAll((Collection) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case SerializationPackage.MULTI_VALUED_ATTRIBUTE_INSTANCE__VALUES: - getValues().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case SerializationPackage.MULTI_VALUED_ATTRIBUTE_INSTANCE__VALUES: - return values != null && !values.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) { - return super.toString(); - } - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (values: "); //$NON-NLS-1$ - result.append(values); - result.append(')'); - return result.toString(); - } - -} // MultiValuedAttributeInstanceImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/MultiValuedContainmentReferenceInstanceImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/MultiValuedContainmentReferenceInstanceImpl.java deleted file mode 100644 index 9c1c99025ca..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/MultiValuedContainmentReferenceInstanceImpl.java +++ /dev/null @@ -1,169 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedContainmentReferenceInstance; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage; - -/** - * - * An implementation of the model object 'Multi Valued Containment Reference Instance'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.MultiValuedContainmentReferenceInstanceImpl#getOwnedElements Owned Elements}
  • - *
- * - * @generated - */ -public class MultiValuedContainmentReferenceInstanceImpl extends AbstractReferenceInstanceImpl implements MultiValuedContainmentReferenceInstance { - /** - * The cached value of the '{@link #getOwnedElements() Owned Elements}' containment reference list. - * - * - * - * @see #getOwnedElements() - * @generated - * @ordered - */ - protected EList ownedElements; - - /** - * - * - * - * @generated - */ - protected MultiValuedContainmentReferenceInstanceImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return SerializationPackage.Literals.MULTI_VALUED_CONTAINMENT_REFERENCE_INSTANCE; - } - - /** - * - * - * - * @generated - */ - public EList getOwnedElements() { - if (ownedElements == null) { - ownedElements = new EObjectContainmentEList(EObject.class, this, SerializationPackage.MULTI_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENTS); - } - return ownedElements; - } - - /** - * - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case SerializationPackage.MULTI_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENTS: - return ((InternalEList) getOwnedElements()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case SerializationPackage.MULTI_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENTS: - return getOwnedElements(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case SerializationPackage.MULTI_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENTS: - getOwnedElements().clear(); - getOwnedElements().addAll((Collection) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case SerializationPackage.MULTI_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENTS: - getOwnedElements().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case SerializationPackage.MULTI_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENTS: - return ownedElements != null && !ownedElements.isEmpty(); - } - return super.eIsSet(featureID); - } - -} // MultiValuedContainmentReferenceInstanceImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/MultiValuedReferenceInstanceImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/MultiValuedReferenceInstanceImpl.java deleted file mode 100644 index fab2e3e119f..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/MultiValuedReferenceInstanceImpl.java +++ /dev/null @@ -1,151 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.util.EObjectResolvingEList; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedReferenceInstance; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage; - -/** - * - * An implementation of the model object 'Multi Valued Reference Instance'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.MultiValuedReferenceInstanceImpl#getReferencedElements Referenced Elements}
  • - *
- * - * @generated - */ -public class MultiValuedReferenceInstanceImpl extends AbstractReferenceInstanceImpl implements MultiValuedReferenceInstance { - /** - * The cached value of the '{@link #getReferencedElements() Referenced Elements}' reference list. - * - * - * - * @see #getReferencedElements() - * @generated - * @ordered - */ - protected EList referencedElements; - - /** - * - * - * - * @generated - */ - protected MultiValuedReferenceInstanceImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return SerializationPackage.Literals.MULTI_VALUED_REFERENCE_INSTANCE; - } - - /** - * - * - * - * @generated - */ - public EList getReferencedElements() { - if (referencedElements == null) { - referencedElements = new EObjectResolvingEList(EObject.class, this, SerializationPackage.MULTI_VALUED_REFERENCE_INSTANCE__REFERENCED_ELEMENTS); - } - return referencedElements; - } - - /** - * - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case SerializationPackage.MULTI_VALUED_REFERENCE_INSTANCE__REFERENCED_ELEMENTS: - return getReferencedElements(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case SerializationPackage.MULTI_VALUED_REFERENCE_INSTANCE__REFERENCED_ELEMENTS: - getReferencedElements().clear(); - getReferencedElements().addAll((Collection) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case SerializationPackage.MULTI_VALUED_REFERENCE_INSTANCE__REFERENCED_ELEMENTS: - getReferencedElements().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case SerializationPackage.MULTI_VALUED_REFERENCE_INSTANCE__REFERENCED_ELEMENTS: - return referencedElements != null && !referencedElements.isEmpty(); - } - return super.eIsSet(featureID); - } - -} // MultiValuedReferenceInstanceImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SerializationFactoryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SerializationFactoryImpl.java deleted file mode 100644 index ab1f36dca8d..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SerializationFactoryImpl.java +++ /dev/null @@ -1,227 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.emf.ecore.plugin.EcorePlugin; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractAttributeInstance; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractReferenceInstance; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.ExtendedEObjectReference; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedAttributeInstance; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedContainmentReferenceInstance; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedReferenceInstance; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationFactory; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedAttributeInstance; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedContainmentReferenceInstance; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedReferenceInstance; - -/** - * - * An implementation of the model Factory. - * - * - * @generated - */ -public class SerializationFactoryImpl extends EFactoryImpl implements SerializationFactory { - /** - * Creates the default factory implementation. - * - * - * - * @generated - */ - public static SerializationFactory init() { - try { - SerializationFactory theSerializationFactory = (SerializationFactory) EPackage.Registry.INSTANCE.getEFactory(SerializationPackage.eNS_URI); - if (theSerializationFactory != null) { - return theSerializationFactory; - } - } catch (Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new SerializationFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * - * - * @generated - */ - public SerializationFactoryImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case SerializationPackage.ABSTRACT_REFERENCE_INSTANCE: - return createAbstractReferenceInstance(); - case SerializationPackage.MULTI_VALUED_CONTAINMENT_REFERENCE_INSTANCE: - return createMultiValuedContainmentReferenceInstance(); - case SerializationPackage.MULTI_VALUED_REFERENCE_INSTANCE: - return createMultiValuedReferenceInstance(); - case SerializationPackage.SINGLE_VALUED_ATTRIBUTE_INSTANCE: - return createSingleValuedAttributeInstance(); - case SerializationPackage.EXTENDED_EOBJECT_REFERENCE: - return createExtendedEObjectReference(); - case SerializationPackage.SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE: - return createSingleValuedContainmentReferenceInstance(); - case SerializationPackage.SINGLE_VALUED_REFERENCE_INSTANCE: - return createSingleValuedReferenceInstance(); - case SerializationPackage.MULTI_VALUED_ATTRIBUTE_INSTANCE: - return createMultiValuedAttributeInstance(); - case SerializationPackage.ABSTRACT_ATTRIBUTE_INSTANCE: - return createAbstractAttributeInstance(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ - } - } - - /** - * - * - * - * @generated - */ - public AbstractReferenceInstance createAbstractReferenceInstance() { - AbstractReferenceInstanceImpl abstractReferenceInstance = new AbstractReferenceInstanceImpl(); - return abstractReferenceInstance; - } - - /** - * - * - * - * @generated - */ - public MultiValuedContainmentReferenceInstance createMultiValuedContainmentReferenceInstance() { - MultiValuedContainmentReferenceInstanceImpl multiValuedContainmentReferenceInstance = new MultiValuedContainmentReferenceInstanceImpl(); - return multiValuedContainmentReferenceInstance; - } - - /** - * - * - * - * @generated - */ - public MultiValuedReferenceInstance createMultiValuedReferenceInstance() { - MultiValuedReferenceInstanceImpl multiValuedReferenceInstance = new MultiValuedReferenceInstanceImpl(); - return multiValuedReferenceInstance; - } - - /** - * - * - * - * @generated - */ - public SingleValuedAttributeInstance createSingleValuedAttributeInstance() { - SingleValuedAttributeInstanceImpl singleValuedAttributeInstance = new SingleValuedAttributeInstanceImpl(); - return singleValuedAttributeInstance; - } - - /** - * - * - * - * @generated - */ - public ExtendedEObjectReference createExtendedEObjectReference() { - ExtendedEObjectReferenceImpl extendedEObjectReference = new ExtendedEObjectReferenceImpl(); - return extendedEObjectReference; - } - - /** - * - * - * - * @generated - */ - public SingleValuedContainmentReferenceInstance createSingleValuedContainmentReferenceInstance() { - SingleValuedContainmentReferenceInstanceImpl singleValuedContainmentReferenceInstance = new SingleValuedContainmentReferenceInstanceImpl(); - return singleValuedContainmentReferenceInstance; - } - - /** - * - * - * - * @generated - */ - public SingleValuedReferenceInstance createSingleValuedReferenceInstance() { - SingleValuedReferenceInstanceImpl singleValuedReferenceInstance = new SingleValuedReferenceInstanceImpl(); - return singleValuedReferenceInstance; - } - - /** - * - * - * - * @generated - */ - public MultiValuedAttributeInstance createMultiValuedAttributeInstance() { - MultiValuedAttributeInstanceImpl multiValuedAttributeInstance = new MultiValuedAttributeInstanceImpl(); - return multiValuedAttributeInstance; - } - - /** - * - * - * - * @generated - */ - public AbstractAttributeInstance createAbstractAttributeInstance() { - AbstractAttributeInstanceImpl abstractAttributeInstance = new AbstractAttributeInstanceImpl(); - return abstractAttributeInstance; - } - - /** - * - * - * - * @generated - */ - public SerializationPackage getSerializationPackage() { - return (SerializationPackage) getEPackage(); - } - - /** - * - * - * - * @deprecated - * @generated - */ - @Deprecated - public static SerializationPackage getPackage() { - return SerializationPackage.eINSTANCE; - } - -} // SerializationFactoryImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SerializationPackageImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SerializationPackageImpl.java deleted file mode 100644 index 4587ded753b..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SerializationPackageImpl.java +++ /dev/null @@ -1,560 +0,0 @@ -/** - * Copyright (c) 2011, 2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - * Gregoire Dupe (Mia-Software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.EcorePackage; -import org.eclipse.emf.ecore.impl.EPackageImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensiblePackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.impl.ExtensiblePackageImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.impl.EFacetPackageImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.QueryPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.query.impl.QueryPackageImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.RuntimePackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.runtime.impl.RuntimePackageImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractAttributeInstance; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractReferenceInstance; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.ExtendedEObjectReference; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedAttributeInstance; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedContainmentReferenceInstance; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedReferenceInstance; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationFactory; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedAttributeInstance; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedContainmentReferenceInstance; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedReferenceInstance; - -/** - * - * An implementation of the model Package. - * - * - * @generated - */ -public class SerializationPackageImpl extends EPackageImpl implements SerializationPackage { - /** - * - * - * - * @generated - */ - private EClass abstractReferenceInstanceEClass = null; - - /** - * - * - * - * @generated - */ - private EClass multiValuedContainmentReferenceInstanceEClass = null; - - /** - * - * - * - * @generated - */ - private EClass multiValuedReferenceInstanceEClass = null; - - /** - * - * - * - * @generated - */ - private EClass singleValuedAttributeInstanceEClass = null; - - /** - * - * - * - * @generated - */ - private EClass extendedEObjectReferenceEClass = null; - - /** - * - * - * - * @generated - */ - private EClass singleValuedContainmentReferenceInstanceEClass = null; - - /** - * - * - * - * @generated - */ - private EClass singleValuedReferenceInstanceEClass = null; - - /** - * - * - * - * @generated - */ - private EClass multiValuedAttributeInstanceEClass = null; - - /** - * - * - * - * @generated - */ - private EClass abstractAttributeInstanceEClass = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - *

- * Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage#eNS_URI - * @see #init() - * @generated - */ - private SerializationPackageImpl() { - super(eNS_URI, SerializationFactory.eINSTANCE); - } - - /** - * - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - * - *

- * This method is used to initialize {@link SerializationPackage#eINSTANCE} when that field is accessed. Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static SerializationPackage init() { - if (isInited) { - return (SerializationPackage) EPackage.Registry.INSTANCE.getEPackage(SerializationPackage.eNS_URI); - } - - // Obtain or create and register package - Object registeredSerializationPackage = EPackage.Registry.INSTANCE.get(eNS_URI); - SerializationPackageImpl theSerializationPackage = registeredSerializationPackage instanceof SerializationPackageImpl ? (SerializationPackageImpl) registeredSerializationPackage : new SerializationPackageImpl(); - - isInited = true; - - // Initialize simple dependencies - EcorePackage.eINSTANCE.eClass(); - - // Obtain or create and register interdependencies - Object registeredPackage = EPackage.Registry.INSTANCE.getEPackage(EFacetPackage.eNS_URI); - EFacetPackageImpl theEFacetPackage = (EFacetPackageImpl) (registeredPackage instanceof EFacetPackageImpl ? registeredPackage : EFacetPackage.eINSTANCE); - registeredPackage = EPackage.Registry.INSTANCE.getEPackage(ExtensiblePackage.eNS_URI); - ExtensiblePackageImpl theExtensiblePackage = (ExtensiblePackageImpl) (registeredPackage instanceof ExtensiblePackageImpl ? registeredPackage : ExtensiblePackage.eINSTANCE); - registeredPackage = EPackage.Registry.INSTANCE.getEPackage(QueryPackage.eNS_URI); - QueryPackageImpl theQueryPackage = (QueryPackageImpl) (registeredPackage instanceof QueryPackageImpl ? registeredPackage : QueryPackage.eINSTANCE); - registeredPackage = EPackage.Registry.INSTANCE.getEPackage(RuntimePackage.eNS_URI); - RuntimePackageImpl theRuntimePackage = (RuntimePackageImpl) (registeredPackage instanceof RuntimePackageImpl ? registeredPackage : RuntimePackage.eINSTANCE); - - // Create package meta-data objects - theSerializationPackage.createPackageContents(); - theEFacetPackage.createPackageContents(); - theExtensiblePackage.createPackageContents(); - theQueryPackage.createPackageContents(); - theRuntimePackage.createPackageContents(); - - // Initialize created meta-data - theSerializationPackage.initializePackageContents(); - theEFacetPackage.initializePackageContents(); - theExtensiblePackage.initializePackageContents(); - theQueryPackage.initializePackageContents(); - theRuntimePackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theSerializationPackage.freeze(); - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(SerializationPackage.eNS_URI, theSerializationPackage); - return theSerializationPackage; - } - - /** - * - * - * - * @generated - */ - public EClass getAbstractReferenceInstance() { - return abstractReferenceInstanceEClass; - } - - /** - * - * - * - * @generated - */ - public EReference getAbstractReferenceInstance_EReference() { - return (EReference) abstractReferenceInstanceEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * - * @generated - */ - public EClass getMultiValuedContainmentReferenceInstance() { - return multiValuedContainmentReferenceInstanceEClass; - } - - /** - * - * - * - * @generated - */ - public EReference getMultiValuedContainmentReferenceInstance_OwnedElements() { - return (EReference) multiValuedContainmentReferenceInstanceEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * - * @generated - */ - public EClass getMultiValuedReferenceInstance() { - return multiValuedReferenceInstanceEClass; - } - - /** - * - * - * - * @generated - */ - public EReference getMultiValuedReferenceInstance_ReferencedElements() { - return (EReference) multiValuedReferenceInstanceEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * - * @generated - */ - public EClass getSingleValuedAttributeInstance() { - return singleValuedAttributeInstanceEClass; - } - - /** - * - * - * - * @generated - */ - public EAttribute getSingleValuedAttributeInstance_Value() { - return (EAttribute) singleValuedAttributeInstanceEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * - * @generated - */ - public EClass getExtendedEObjectReference() { - return extendedEObjectReferenceEClass; - } - - /** - * - * - * - * @generated - */ - public EReference getExtendedEObjectReference_ExtendedEObject() { - return (EReference) extendedEObjectReferenceEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * - * @generated - */ - public EReference getExtendedEObjectReference_AttributeInstances() { - return (EReference) extendedEObjectReferenceEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * - * @generated - */ - public EReference getExtendedEObjectReference_ReferenceInstances() { - return (EReference) extendedEObjectReferenceEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * - * @generated - */ - public EClass getSingleValuedContainmentReferenceInstance() { - return singleValuedContainmentReferenceInstanceEClass; - } - - /** - * - * - * - * @generated - */ - public EReference getSingleValuedContainmentReferenceInstance_OwnedElement() { - return (EReference) singleValuedContainmentReferenceInstanceEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * - * @generated - */ - public EClass getSingleValuedReferenceInstance() { - return singleValuedReferenceInstanceEClass; - } - - /** - * - * - * - * @generated - */ - public EReference getSingleValuedReferenceInstance_ReferencedElement() { - return (EReference) singleValuedReferenceInstanceEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * - * @generated - */ - public EClass getMultiValuedAttributeInstance() { - return multiValuedAttributeInstanceEClass; - } - - /** - * - * - * - * @generated - */ - public EAttribute getMultiValuedAttributeInstance_Values() { - return (EAttribute) multiValuedAttributeInstanceEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * - * @generated - */ - public EClass getAbstractAttributeInstance() { - return abstractAttributeInstanceEClass; - } - - /** - * - * - * - * @generated - */ - public EReference getAbstractAttributeInstance_EAttribute() { - return (EReference) abstractAttributeInstanceEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * - * @generated - */ - public SerializationFactory getSerializationFactory() { - return (SerializationFactory) getEFactoryInstance(); - } - - /** - * - * - * - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * - * - * - * @generated - */ - public void createPackageContents() { - if (isCreated) { - return; - } - isCreated = true; - - // Create classes and their features - abstractReferenceInstanceEClass = createEClass(ABSTRACT_REFERENCE_INSTANCE); - createEReference(abstractReferenceInstanceEClass, ABSTRACT_REFERENCE_INSTANCE__EREFERENCE); - - multiValuedContainmentReferenceInstanceEClass = createEClass(MULTI_VALUED_CONTAINMENT_REFERENCE_INSTANCE); - createEReference(multiValuedContainmentReferenceInstanceEClass, MULTI_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENTS); - - multiValuedReferenceInstanceEClass = createEClass(MULTI_VALUED_REFERENCE_INSTANCE); - createEReference(multiValuedReferenceInstanceEClass, MULTI_VALUED_REFERENCE_INSTANCE__REFERENCED_ELEMENTS); - - singleValuedAttributeInstanceEClass = createEClass(SINGLE_VALUED_ATTRIBUTE_INSTANCE); - createEAttribute(singleValuedAttributeInstanceEClass, SINGLE_VALUED_ATTRIBUTE_INSTANCE__VALUE); - - extendedEObjectReferenceEClass = createEClass(EXTENDED_EOBJECT_REFERENCE); - createEReference(extendedEObjectReferenceEClass, EXTENDED_EOBJECT_REFERENCE__EXTENDED_EOBJECT); - createEReference(extendedEObjectReferenceEClass, EXTENDED_EOBJECT_REFERENCE__ATTRIBUTE_INSTANCES); - createEReference(extendedEObjectReferenceEClass, EXTENDED_EOBJECT_REFERENCE__REFERENCE_INSTANCES); - - singleValuedContainmentReferenceInstanceEClass = createEClass(SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE); - createEReference(singleValuedContainmentReferenceInstanceEClass, SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENT); - - singleValuedReferenceInstanceEClass = createEClass(SINGLE_VALUED_REFERENCE_INSTANCE); - createEReference(singleValuedReferenceInstanceEClass, SINGLE_VALUED_REFERENCE_INSTANCE__REFERENCED_ELEMENT); - - multiValuedAttributeInstanceEClass = createEClass(MULTI_VALUED_ATTRIBUTE_INSTANCE); - createEAttribute(multiValuedAttributeInstanceEClass, MULTI_VALUED_ATTRIBUTE_INSTANCE__VALUES); - - abstractAttributeInstanceEClass = createEClass(ABSTRACT_ATTRIBUTE_INSTANCE); - createEReference(abstractAttributeInstanceEClass, ABSTRACT_ATTRIBUTE_INSTANCE__EATTRIBUTE); - } - - /** - * - * - * - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * - * - * - * @generated - */ - public void initializePackageContents() { - if (isInitialized) { - return; - } - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - EcorePackage theEcorePackage = (EcorePackage) EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - multiValuedContainmentReferenceInstanceEClass.getESuperTypes().add(this.getAbstractReferenceInstance()); - multiValuedReferenceInstanceEClass.getESuperTypes().add(this.getAbstractReferenceInstance()); - singleValuedAttributeInstanceEClass.getESuperTypes().add(this.getAbstractAttributeInstance()); - singleValuedContainmentReferenceInstanceEClass.getESuperTypes().add(this.getAbstractReferenceInstance()); - singleValuedReferenceInstanceEClass.getESuperTypes().add(this.getAbstractReferenceInstance()); - multiValuedAttributeInstanceEClass.getESuperTypes().add(this.getAbstractAttributeInstance()); - - // Initialize classes and features; add operations and parameters - initEClass(abstractReferenceInstanceEClass, AbstractReferenceInstance.class, "AbstractReferenceInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEReference(getAbstractReferenceInstance_EReference(), theEcorePackage.getEReference(), null, "eReference", null, 1, 1, AbstractReferenceInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, //$NON-NLS-1$ - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(multiValuedContainmentReferenceInstanceEClass, MultiValuedContainmentReferenceInstance.class, "MultiValuedContainmentReferenceInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEReference(getMultiValuedContainmentReferenceInstance_OwnedElements(), theEcorePackage.getEObject(), null, "ownedElements", null, 0, -1, MultiValuedContainmentReferenceInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, //$NON-NLS-1$ - !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(multiValuedReferenceInstanceEClass, MultiValuedReferenceInstance.class, "MultiValuedReferenceInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEReference(getMultiValuedReferenceInstance_ReferencedElements(), theEcorePackage.getEObject(), null, "referencedElements", null, 0, -1, MultiValuedReferenceInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, //$NON-NLS-1$ - IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(singleValuedAttributeInstanceEClass, SingleValuedAttributeInstance.class, "SingleValuedAttributeInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getSingleValuedAttributeInstance_Value(), theEcorePackage.getEJavaObject(), "value", null, 0, 1, SingleValuedAttributeInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, //$NON-NLS-1$ - IS_ORDERED); - - initEClass(extendedEObjectReferenceEClass, ExtendedEObjectReference.class, "ExtendedEObjectReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEReference(getExtendedEObjectReference_ExtendedEObject(), theEcorePackage.getEObject(), null, "extendedEObject", null, 1, 1, ExtendedEObjectReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, //$NON-NLS-1$ - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getExtendedEObjectReference_AttributeInstances(), this.getAbstractAttributeInstance(), null, "attributeInstances", null, 0, -1, ExtendedEObjectReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, //$NON-NLS-1$ - !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getExtendedEObjectReference_ReferenceInstances(), this.getAbstractReferenceInstance(), null, "referenceInstances", null, 0, -1, ExtendedEObjectReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, //$NON-NLS-1$ - !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(singleValuedContainmentReferenceInstanceEClass, SingleValuedContainmentReferenceInstance.class, "SingleValuedContainmentReferenceInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEReference(getSingleValuedContainmentReferenceInstance_OwnedElement(), theEcorePackage.getEObject(), null, "ownedElement", null, 0, 1, SingleValuedContainmentReferenceInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, //$NON-NLS-1$ - !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(singleValuedReferenceInstanceEClass, SingleValuedReferenceInstance.class, "SingleValuedReferenceInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEReference(getSingleValuedReferenceInstance_ReferencedElement(), theEcorePackage.getEObject(), null, "referencedElement", null, 0, 1, SingleValuedReferenceInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, //$NON-NLS-1$ - IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(multiValuedAttributeInstanceEClass, MultiValuedAttributeInstance.class, "MultiValuedAttributeInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getMultiValuedAttributeInstance_Values(), theEcorePackage.getEJavaObject(), "values", null, 0, -1, MultiValuedAttributeInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, //$NON-NLS-1$ - IS_ORDERED); - - initEClass(abstractAttributeInstanceEClass, AbstractAttributeInstance.class, "AbstractAttributeInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEReference(getAbstractAttributeInstance_EAttribute(), theEcorePackage.getEAttribute(), null, "eAttribute", null, 1, 1, AbstractAttributeInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, //$NON-NLS-1$ - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - } - -} // SerializationPackageImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SingleValuedAttributeInstanceImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SingleValuedAttributeInstanceImpl.java deleted file mode 100644 index 82c3ffb707e..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SingleValuedAttributeInstanceImpl.java +++ /dev/null @@ -1,187 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedAttributeInstance; - -/** - * - * An implementation of the model object 'Single Valued Attribute Instance'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SingleValuedAttributeInstanceImpl#getValue Value}
  • - *
- * - * @generated - */ -public class SingleValuedAttributeInstanceImpl extends AbstractAttributeInstanceImpl implements SingleValuedAttributeInstance { - /** - * The default value of the '{@link #getValue() Value}' attribute. - * - * - * - * @see #getValue() - * @generated - * @ordered - */ - protected static final Object VALUE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getValue() Value}' attribute. - * - * - * - * @see #getValue() - * @generated - * @ordered - */ - protected Object value = VALUE_EDEFAULT; - - /** - * - * - * - * @generated - */ - protected SingleValuedAttributeInstanceImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return SerializationPackage.Literals.SINGLE_VALUED_ATTRIBUTE_INSTANCE; - } - - /** - * - * - * - * @generated - */ - public Object getValue() { - return value; - } - - /** - * - * - * - * @generated - */ - public void setValue(Object newValue) { - Object oldValue = value; - value = newValue; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, SerializationPackage.SINGLE_VALUED_ATTRIBUTE_INSTANCE__VALUE, oldValue, value)); - } - } - - /** - * - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case SerializationPackage.SINGLE_VALUED_ATTRIBUTE_INSTANCE__VALUE: - return getValue(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case SerializationPackage.SINGLE_VALUED_ATTRIBUTE_INSTANCE__VALUE: - setValue(newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case SerializationPackage.SINGLE_VALUED_ATTRIBUTE_INSTANCE__VALUE: - setValue(VALUE_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case SerializationPackage.SINGLE_VALUED_ATTRIBUTE_INSTANCE__VALUE: - return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); - } - return super.eIsSet(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) { - return super.toString(); - } - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (value: "); //$NON-NLS-1$ - result.append(value); - result.append(')'); - return result.toString(); - } - -} // SingleValuedAttributeInstanceImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SingleValuedContainmentReferenceInstanceImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SingleValuedContainmentReferenceInstanceImpl.java deleted file mode 100644 index 1489a47e190..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SingleValuedContainmentReferenceInstanceImpl.java +++ /dev/null @@ -1,205 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedContainmentReferenceInstance; - -/** - * - * An implementation of the model object 'Single Valued Containment Reference Instance'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SingleValuedContainmentReferenceInstanceImpl#getOwnedElement Owned Element}
  • - *
- * - * @generated - */ -public class SingleValuedContainmentReferenceInstanceImpl extends AbstractReferenceInstanceImpl implements SingleValuedContainmentReferenceInstance { - /** - * The cached value of the '{@link #getOwnedElement() Owned Element}' containment reference. - * - * - * - * @see #getOwnedElement() - * @generated - * @ordered - */ - protected EObject ownedElement; - - /** - * - * - * - * @generated - */ - protected SingleValuedContainmentReferenceInstanceImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return SerializationPackage.Literals.SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE; - } - - /** - * - * - * - * @generated - */ - public EObject getOwnedElement() { - return ownedElement; - } - - /** - * - * - * - * @generated - */ - public NotificationChain basicSetOwnedElement(EObject newOwnedElement, NotificationChain msgs) { - EObject oldOwnedElement = ownedElement; - ownedElement = newOwnedElement; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SerializationPackage.SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENT, oldOwnedElement, newOwnedElement); - if (msgs == null) { - msgs = notification; - } else { - msgs.add(notification); - } - } - return msgs; - } - - /** - * - * - * - * @generated - */ - public void setOwnedElement(EObject newOwnedElement) { - if (newOwnedElement != ownedElement) { - NotificationChain msgs = null; - if (ownedElement != null) { - msgs = ((InternalEObject) ownedElement).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SerializationPackage.SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENT, null, msgs); - } - if (newOwnedElement != null) { - msgs = ((InternalEObject) newOwnedElement).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SerializationPackage.SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENT, null, msgs); - } - msgs = basicSetOwnedElement(newOwnedElement, msgs); - if (msgs != null) { - msgs.dispatch(); - } - } else if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, SerializationPackage.SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENT, newOwnedElement, newOwnedElement)); - } - } - - /** - * - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case SerializationPackage.SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENT: - return basicSetOwnedElement(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case SerializationPackage.SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENT: - return getOwnedElement(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case SerializationPackage.SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENT: - setOwnedElement((EObject) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case SerializationPackage.SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENT: - setOwnedElement((EObject) null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case SerializationPackage.SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE__OWNED_ELEMENT: - return ownedElement != null; - } - return super.eIsSet(featureID); - } - -} // SingleValuedContainmentReferenceInstanceImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SingleValuedReferenceInstanceImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SingleValuedReferenceInstanceImpl.java deleted file mode 100644 index 7592368ad7d..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/impl/SingleValuedReferenceInstanceImpl.java +++ /dev/null @@ -1,181 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedReferenceInstance; - -/** - * - * An implementation of the model object 'Single Valued Reference Instance'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.impl.SingleValuedReferenceInstanceImpl#getReferencedElement Referenced Element}
  • - *
- * - * @generated - */ -public class SingleValuedReferenceInstanceImpl extends AbstractReferenceInstanceImpl implements SingleValuedReferenceInstance { - /** - * The cached value of the '{@link #getReferencedElement() Referenced Element}' reference. - * - * - * - * @see #getReferencedElement() - * @generated - * @ordered - */ - protected EObject referencedElement; - - /** - * - * - * - * @generated - */ - protected SingleValuedReferenceInstanceImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return SerializationPackage.Literals.SINGLE_VALUED_REFERENCE_INSTANCE; - } - - /** - * - * - * - * @generated - */ - public EObject getReferencedElement() { - if (referencedElement != null && referencedElement.eIsProxy()) { - InternalEObject oldReferencedElement = (InternalEObject) referencedElement; - referencedElement = eResolveProxy(oldReferencedElement); - if (referencedElement != oldReferencedElement) { - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.RESOLVE, SerializationPackage.SINGLE_VALUED_REFERENCE_INSTANCE__REFERENCED_ELEMENT, oldReferencedElement, referencedElement)); - } - } - } - return referencedElement; - } - - /** - * - * - * - * @generated - */ - public EObject basicGetReferencedElement() { - return referencedElement; - } - - /** - * - * - * - * @generated - */ - public void setReferencedElement(EObject newReferencedElement) { - EObject oldReferencedElement = referencedElement; - referencedElement = newReferencedElement; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, SerializationPackage.SINGLE_VALUED_REFERENCE_INSTANCE__REFERENCED_ELEMENT, oldReferencedElement, referencedElement)); - } - } - - /** - * - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case SerializationPackage.SINGLE_VALUED_REFERENCE_INSTANCE__REFERENCED_ELEMENT: - if (resolve) { - return getReferencedElement(); - } - return basicGetReferencedElement(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case SerializationPackage.SINGLE_VALUED_REFERENCE_INSTANCE__REFERENCED_ELEMENT: - setReferencedElement((EObject) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case SerializationPackage.SINGLE_VALUED_REFERENCE_INSTANCE__REFERENCED_ELEMENT: - setReferencedElement((EObject) null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case SerializationPackage.SINGLE_VALUED_REFERENCE_INSTANCE__REFERENCED_ELEMENT: - return referencedElement != null; - } - return super.eIsSet(featureID); - } - -} // SingleValuedReferenceInstanceImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/util/SerializationAdapterFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/util/SerializationAdapterFactory.java deleted file mode 100644 index 30f7d9c0141..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/util/SerializationAdapterFactory.java +++ /dev/null @@ -1,309 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.util; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractAttributeInstance; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractReferenceInstance; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.ExtendedEObjectReference; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedAttributeInstance; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedContainmentReferenceInstance; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedReferenceInstance; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedAttributeInstance; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedContainmentReferenceInstance; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedReferenceInstance; - -/** - * - * The Adapter Factory for the model. - * It provides an adapter createXXX method for each class of the model. - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage - * @generated - */ -public class SerializationAdapterFactory extends AdapterFactoryImpl { - /** - * The cached model package. - * - * - * - * @generated - */ - protected static SerializationPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * - * - * - * @generated - */ - public SerializationAdapterFactory() { - if (modelPackage == null) { - modelPackage = SerializationPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * - * This implementation returns true if the object is either the model's package or is an instance object of the model. - * - * - * @return whether this factory is applicable for the type of the object. - * @generated - */ - @Override - public boolean isFactoryForType(Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject) object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch that delegates to the createXXX methods. - * - * - * - * @generated - */ - protected SerializationSwitch modelSwitch = new SerializationSwitch() { - @Override - public Adapter caseAbstractReferenceInstance(AbstractReferenceInstance object) { - return createAbstractReferenceInstanceAdapter(); - } - - @Override - public Adapter caseMultiValuedContainmentReferenceInstance(MultiValuedContainmentReferenceInstance object) { - return createMultiValuedContainmentReferenceInstanceAdapter(); - } - - @Override - public Adapter caseMultiValuedReferenceInstance(MultiValuedReferenceInstance object) { - return createMultiValuedReferenceInstanceAdapter(); - } - - @Override - public Adapter caseSingleValuedAttributeInstance(SingleValuedAttributeInstance object) { - return createSingleValuedAttributeInstanceAdapter(); - } - - @Override - public Adapter caseExtendedEObjectReference(ExtendedEObjectReference object) { - return createExtendedEObjectReferenceAdapter(); - } - - @Override - public Adapter caseSingleValuedContainmentReferenceInstance(SingleValuedContainmentReferenceInstance object) { - return createSingleValuedContainmentReferenceInstanceAdapter(); - } - - @Override - public Adapter caseSingleValuedReferenceInstance(SingleValuedReferenceInstance object) { - return createSingleValuedReferenceInstanceAdapter(); - } - - @Override - public Adapter caseMultiValuedAttributeInstance(MultiValuedAttributeInstance object) { - return createMultiValuedAttributeInstanceAdapter(); - } - - @Override - public Adapter caseAbstractAttributeInstance(AbstractAttributeInstance object) { - return createAbstractAttributeInstanceAdapter(); - } - - @Override - public Adapter defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the target. - * - * - * - * @param target - * the object to adapt. - * @return the adapter for the target. - * @generated - */ - @Override - public Adapter createAdapter(Notifier target) { - return modelSwitch.doSwitch((EObject) target); - } - - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractReferenceInstance Abstract Reference Instance}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractReferenceInstance - * @generated - */ - public Adapter createAbstractReferenceInstanceAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedContainmentReferenceInstance Multi Valued Containment Reference Instance}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedContainmentReferenceInstance - * @generated - */ - public Adapter createMultiValuedContainmentReferenceInstanceAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedReferenceInstance Multi Valued Reference Instance}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedReferenceInstance - * @generated - */ - public Adapter createMultiValuedReferenceInstanceAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedAttributeInstance Single Valued Attribute Instance}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedAttributeInstance - * @generated - */ - public Adapter createSingleValuedAttributeInstanceAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.ExtendedEObjectReference Extended EObject Reference}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.ExtendedEObjectReference - * @generated - */ - public Adapter createExtendedEObjectReferenceAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedContainmentReferenceInstance Single Valued Containment Reference Instance}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedContainmentReferenceInstance - * @generated - */ - public Adapter createSingleValuedContainmentReferenceInstanceAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedReferenceInstance Single Valued Reference Instance}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedReferenceInstance - * @generated - */ - public Adapter createSingleValuedReferenceInstanceAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedAttributeInstance Multi Valued Attribute Instance}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedAttributeInstance - * @generated - */ - public Adapter createMultiValuedAttributeInstanceAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractAttributeInstance Abstract Attribute Instance}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractAttributeInstance - * @generated - */ - public Adapter createAbstractAttributeInstanceAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * - * This default implementation returns null. - * - * - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} // SerializationAdapterFactory diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/util/SerializationSwitch.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/util/SerializationSwitch.java deleted file mode 100644 index 89b305015be..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/serialization/util/SerializationSwitch.java +++ /dev/null @@ -1,378 +0,0 @@ -/** - * Copyright (c) 2011 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery - * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query - * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.util; - -import java.util.List; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractAttributeInstance; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.AbstractReferenceInstance; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.ExtendedEObjectReference; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedAttributeInstance; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedContainmentReferenceInstance; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.MultiValuedReferenceInstance; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedAttributeInstance; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedContainmentReferenceInstance; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SingleValuedReferenceInstance; - -/** - * - * The Switch for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch(EObject) doSwitch(object)} to invoke the caseXXX method for each class of the model, - * starting with the actual class of the object - * and proceeding up the inheritance hierarchy - * until a non-null result is returned, - * which is the result of the switch. - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.serialization.SerializationPackage - * @generated - */ -public class SerializationSwitch { - /** - * The cached model package - * - * - * - * @generated - */ - protected static SerializationPackage modelPackage; - - /** - * Creates an instance of the switch. - * - * - * - * @generated - */ - public SerializationSwitch() { - if (modelPackage == null) { - modelPackage = SerializationPackage.eINSTANCE; - } - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - public T doSwitch(EObject theEObject) { - return doSwitch(theEObject.eClass(), theEObject); - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - protected T doSwitch(EClass theEClass, EObject theEObject) { - if (theEClass.eContainer() == modelPackage) { - return doSwitch(theEClass.getClassifierID(), theEObject); - } else { - List eSuperTypes = theEClass.getESuperTypes(); - return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(eSuperTypes.get(0), theEObject); - } - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - protected T doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case SerializationPackage.ABSTRACT_REFERENCE_INSTANCE: { - AbstractReferenceInstance abstractReferenceInstance = (AbstractReferenceInstance) theEObject; - T result = caseAbstractReferenceInstance(abstractReferenceInstance); - if (result == null) { - result = defaultCase(theEObject); - } - return result; - } - case SerializationPackage.MULTI_VALUED_CONTAINMENT_REFERENCE_INSTANCE: { - MultiValuedContainmentReferenceInstance multiValuedContainmentReferenceInstance = (MultiValuedContainmentReferenceInstance) theEObject; - T result = caseMultiValuedContainmentReferenceInstance(multiValuedContainmentReferenceInstance); - if (result == null) { - result = caseAbstractReferenceInstance(multiValuedContainmentReferenceInstance); - } - if (result == null) { - result = defaultCase(theEObject); - } - return result; - } - case SerializationPackage.MULTI_VALUED_REFERENCE_INSTANCE: { - MultiValuedReferenceInstance multiValuedReferenceInstance = (MultiValuedReferenceInstance) theEObject; - T result = caseMultiValuedReferenceInstance(multiValuedReferenceInstance); - if (result == null) { - result = caseAbstractReferenceInstance(multiValuedReferenceInstance); - } - if (result == null) { - result = defaultCase(theEObject); - } - return result; - } - case SerializationPackage.SINGLE_VALUED_ATTRIBUTE_INSTANCE: { - SingleValuedAttributeInstance singleValuedAttributeInstance = (SingleValuedAttributeInstance) theEObject; - T result = caseSingleValuedAttributeInstance(singleValuedAttributeInstance); - if (result == null) { - result = caseAbstractAttributeInstance(singleValuedAttributeInstance); - } - if (result == null) { - result = defaultCase(theEObject); - } - return result; - } - case SerializationPackage.EXTENDED_EOBJECT_REFERENCE: { - ExtendedEObjectReference extendedEObjectReference = (ExtendedEObjectReference) theEObject; - T result = caseExtendedEObjectReference(extendedEObjectReference); - if (result == null) { - result = defaultCase(theEObject); - } - return result; - } - case SerializationPackage.SINGLE_VALUED_CONTAINMENT_REFERENCE_INSTANCE: { - SingleValuedContainmentReferenceInstance singleValuedContainmentReferenceInstance = (SingleValuedContainmentReferenceInstance) theEObject; - T result = caseSingleValuedContainmentReferenceInstance(singleValuedContainmentReferenceInstance); - if (result == null) { - result = caseAbstractReferenceInstance(singleValuedContainmentReferenceInstance); - } - if (result == null) { - result = defaultCase(theEObject); - } - return result; - } - case SerializationPackage.SINGLE_VALUED_REFERENCE_INSTANCE: { - SingleValuedReferenceInstance singleValuedReferenceInstance = (SingleValuedReferenceInstance) theEObject; - T result = caseSingleValuedReferenceInstance(singleValuedReferenceInstance); - if (result == null) { - result = caseAbstractReferenceInstance(singleValuedReferenceInstance); - } - if (result == null) { - result = defaultCase(theEObject); - } - return result; - } - case SerializationPackage.MULTI_VALUED_ATTRIBUTE_INSTANCE: { - MultiValuedAttributeInstance multiValuedAttributeInstance = (MultiValuedAttributeInstance) theEObject; - T result = caseMultiValuedAttributeInstance(multiValuedAttributeInstance); - if (result == null) { - result = caseAbstractAttributeInstance(multiValuedAttributeInstance); - } - if (result == null) { - result = defaultCase(theEObject); - } - return result; - } - case SerializationPackage.ABSTRACT_ATTRIBUTE_INSTANCE: { - AbstractAttributeInstance abstractAttributeInstance = (AbstractAttributeInstance) theEObject; - T result = caseAbstractAttributeInstance(abstractAttributeInstance); - if (result == null) { - result = defaultCase(theEObject); - } - return result; - } - default: - return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of 'Abstract Reference Instance'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Abstract Reference Instance'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAbstractReferenceInstance(AbstractReferenceInstance object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Multi Valued Containment Reference Instance'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Multi Valued Containment Reference Instance'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseMultiValuedContainmentReferenceInstance(MultiValuedContainmentReferenceInstance object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Multi Valued Reference Instance'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Multi Valued Reference Instance'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseMultiValuedReferenceInstance(MultiValuedReferenceInstance object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Single Valued Attribute Instance'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Single Valued Attribute Instance'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseSingleValuedAttributeInstance(SingleValuedAttributeInstance object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Extended EObject Reference'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Extended EObject Reference'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseExtendedEObjectReference(ExtendedEObjectReference object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Single Valued Containment Reference Instance'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Single Valued Containment Reference Instance'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseSingleValuedContainmentReferenceInstance(SingleValuedContainmentReferenceInstance object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Single Valued Reference Instance'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Single Valued Reference Instance'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseSingleValuedReferenceInstance(SingleValuedReferenceInstance object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Multi Valued Attribute Instance'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Multi Valued Attribute Instance'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseMultiValuedAttributeInstance(MultiValuedAttributeInstance object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Abstract Attribute Instance'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Abstract Attribute Instance'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAbstractAttributeInstance(AbstractAttributeInstance object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EObject'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - public T defaultCase(EObject object) { - return null; - } - -} // SerializationSwitch diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/util/EFacetAdapterFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/util/EFacetAdapterFactory.java deleted file mode 100644 index acdd785a98e..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/util/EFacetAdapterFactory.java +++ /dev/null @@ -1,520 +0,0 @@ -/** - * Copyright (c) 2011, 2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.util; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClassifier; -import org.eclipse.emf.ecore.EModelElement; -import org.eclipse.emf.ecore.ENamedElement; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EOperation; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.ETypedElement; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Category; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetAttribute; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetElement; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetOperation; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetReference; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetSet; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue; - -/** - * - * The Adapter Factory for the model. - * It provides an adapter createXXX method for each class of the model. - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage - * @generated - */ -public class EFacetAdapterFactory extends AdapterFactoryImpl { - /** - * The cached model package. - * - * - * - * @generated - */ - protected static EFacetPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * - * - * - * @generated - */ - public EFacetAdapterFactory() { - if (modelPackage == null) { - modelPackage = EFacetPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * - * This implementation returns true if the object is either the model's package or is an instance object of the model. - * - * - * @return whether this factory is applicable for the type of the object. - * @generated - */ - @Override - public boolean isFactoryForType(Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject) object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch that delegates to the createXXX methods. - * - * - * - * @generated - */ - protected EFacetSwitch modelSwitch = new EFacetSwitch() { - @Override - public Adapter caseFacetAttribute(FacetAttribute object) { - return createFacetAttributeAdapter(); - } - - @Override - public Adapter caseFacetReference(FacetReference object) { - return createFacetReferenceAdapter(); - } - - @Override - public Adapter caseFacetOperation(FacetOperation object) { - return createFacetOperationAdapter(); - } - - @Override - public Adapter caseFacetSet(FacetSet object) { - return createFacetSetAdapter(); - } - - @Override - public Adapter caseFacet(Facet object) { - return createFacetAdapter(); - } - - @Override - public Adapter caseCategory(Category object) { - return createCategoryAdapter(); - } - - @Override - public Adapter caseFacetElement(FacetElement object) { - return createFacetElementAdapter(); - } - - @Override - public Adapter caseDerivedTypedElement(DerivedTypedElement object) { - return createDerivedTypedElementAdapter(); - } - - @Override - public Adapter caseParameterValue(ParameterValue object) { - return createParameterValueAdapter(); - } - - @Override - public Adapter caseDocumentedElement(DocumentedElement object) { - return createDocumentedElementAdapter(); - } - - @Override - public Adapter caseEModelElement(EModelElement object) { - return createEModelElementAdapter(); - } - - @Override - public Adapter caseENamedElement(ENamedElement object) { - return createENamedElementAdapter(); - } - - @Override - public Adapter caseETypedElement(ETypedElement object) { - return createETypedElementAdapter(); - } - - @Override - public Adapter caseEStructuralFeature(EStructuralFeature object) { - return createEStructuralFeatureAdapter(); - } - - @Override - public Adapter caseEAttribute(EAttribute object) { - return createEAttributeAdapter(); - } - - @Override - public Adapter caseEReference(EReference object) { - return createEReferenceAdapter(); - } - - @Override - public Adapter caseEOperation(EOperation object) { - return createEOperationAdapter(); - } - - @Override - public Adapter caseEPackage(EPackage object) { - return createEPackageAdapter(); - } - - @Override - public Adapter caseEClassifier(EClassifier object) { - return createEClassifierAdapter(); - } - - @Override - public Adapter defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the target. - * - * - * - * @param target - * the object to adapt. - * @return the adapter for the target. - * @generated - */ - @Override - public Adapter createAdapter(Notifier target) { - return modelSwitch.doSwitch((EObject) target); - } - - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetAttribute Facet Attribute}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetAttribute - * @generated - */ - public Adapter createFacetAttributeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetReference Facet Reference}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetReference - * @generated - */ - public Adapter createFacetReferenceAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetOperation Facet Operation}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetOperation - * @generated - */ - public Adapter createFacetOperationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetSet Facet Set}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetSet - * @generated - */ - public Adapter createFacetSetAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet Facet}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet - * @generated - */ - public Adapter createFacetAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Category Category}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Category - * @generated - */ - public Adapter createCategoryAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetElement Facet Element}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetElement - * @generated - */ - public Adapter createFacetElementAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement Derived Typed Element}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement - * @generated - */ - public Adapter createDerivedTypedElementAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue Parameter Value}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue - * @generated - */ - public Adapter createParameterValueAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement Documented Element}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement - * @generated - */ - public Adapter createDocumentedElementAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecore.EModelElement EModel Element}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.emf.ecore.EModelElement - * @generated - */ - public Adapter createEModelElementAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecore.ENamedElement ENamed Element}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.emf.ecore.ENamedElement - * @generated - */ - public Adapter createENamedElementAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecore.ETypedElement ETyped Element}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.emf.ecore.ETypedElement - * @generated - */ - public Adapter createETypedElementAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecore.EStructuralFeature EStructural Feature}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.emf.ecore.EStructuralFeature - * @generated - */ - public Adapter createEStructuralFeatureAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecore.EAttribute EAttribute}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.emf.ecore.EAttribute - * @generated - */ - public Adapter createEAttributeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecore.EReference EReference}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.emf.ecore.EReference - * @generated - */ - public Adapter createEReferenceAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecore.EOperation EOperation}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.emf.ecore.EOperation - * @generated - */ - public Adapter createEOperationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecore.EPackage EPackage}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.emf.ecore.EPackage - * @generated - */ - public Adapter createEPackageAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecore.EClassifier EClassifier}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.emf.ecore.EClassifier - * @generated - */ - public Adapter createEClassifierAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * - * This default implementation returns null. - * - * - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} // EFacetAdapterFactory diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/util/EFacetSwitch.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/util/EFacetSwitch.java deleted file mode 100644 index 6e07ee8ef93..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/util/EFacetSwitch.java +++ /dev/null @@ -1,678 +0,0 @@ -/** - * Copyright (c) 2011, 2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values. - * Nicolas Bros (Mia-Software) - Bug 361823 - [Restructuring] eFacet2 meta-model - * Gregoire Dupe (Mia-Software) - Bug 366055 - NavigationQuery - * Gregoire Dupe (Mia-Software) - Bug 369673 - [Facet] IsOneOfQuery - * Olivier Remaud (Soft-Maint) - Bug 369824 - Add a simple way to return string literal constants from a customization query - * Gregoire Dupe (Mia-software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework - * Gregoire Dupe (Mia-Software) - Bug 364325 - [Restructuring] The user must be able to navigate into a model using the Facet. - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.util; - -import java.util.List; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EClassifier; -import org.eclipse.emf.ecore.EModelElement; -import org.eclipse.emf.ecore.ENamedElement; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EOperation; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.ETypedElement; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Category; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DerivedTypedElement; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetAttribute; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetElement; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetOperation; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetReference; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetSet; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.ParameterValue; - -/** - * - * The Switch for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch(EObject) doSwitch(object)} to invoke the caseXXX method for each class of the model, - * starting with the actual class of the object - * and proceeding up the inheritance hierarchy - * until a non-null result is returned, - * which is the result of the switch. - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage - * @generated - */ -public class EFacetSwitch { - /** - * The cached model package - * - * - * - * @generated - */ - protected static EFacetPackage modelPackage; - - /** - * Creates an instance of the switch. - * - * - * - * @generated - */ - public EFacetSwitch() { - if (modelPackage == null) { - modelPackage = EFacetPackage.eINSTANCE; - } - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - public T doSwitch(EObject theEObject) { - return doSwitch(theEObject.eClass(), theEObject); - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - protected T doSwitch(EClass theEClass, EObject theEObject) { - if (theEClass.eContainer() == modelPackage) { - return doSwitch(theEClass.getClassifierID(), theEObject); - } else { - List eSuperTypes = theEClass.getESuperTypes(); - return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(eSuperTypes.get(0), theEObject); - } - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - protected T doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case EFacetPackage.FACET_ATTRIBUTE: { - FacetAttribute facetAttribute = (FacetAttribute) theEObject; - T result = caseFacetAttribute(facetAttribute); - if (result == null) { - result = caseEAttribute(facetAttribute); - } - if (result == null) { - result = caseDerivedTypedElement(facetAttribute); - } - if (result == null) { - result = caseEStructuralFeature(facetAttribute); - } - if (result == null) { - result = caseFacetElement(facetAttribute); - } - if (result == null) { - result = caseETypedElement(facetAttribute); - } - if (result == null) { - result = caseDocumentedElement(facetAttribute); - } - if (result == null) { - result = caseENamedElement(facetAttribute); - } - if (result == null) { - result = caseEModelElement(facetAttribute); - } - if (result == null) { - result = defaultCase(theEObject); - } - return result; - } - case EFacetPackage.FACET_REFERENCE: { - FacetReference facetReference = (FacetReference) theEObject; - T result = caseFacetReference(facetReference); - if (result == null) { - result = caseEReference(facetReference); - } - if (result == null) { - result = caseDerivedTypedElement(facetReference); - } - if (result == null) { - result = caseEStructuralFeature(facetReference); - } - if (result == null) { - result = caseFacetElement(facetReference); - } - if (result == null) { - result = caseETypedElement(facetReference); - } - if (result == null) { - result = caseDocumentedElement(facetReference); - } - if (result == null) { - result = caseENamedElement(facetReference); - } - if (result == null) { - result = caseEModelElement(facetReference); - } - if (result == null) { - result = defaultCase(theEObject); - } - return result; - } - case EFacetPackage.FACET_OPERATION: { - FacetOperation facetOperation = (FacetOperation) theEObject; - T result = caseFacetOperation(facetOperation); - if (result == null) { - result = caseEOperation(facetOperation); - } - if (result == null) { - result = caseDerivedTypedElement(facetOperation); - } - if (result == null) { - result = caseFacetElement(facetOperation); - } - if (result == null) { - result = caseETypedElement(facetOperation); - } - if (result == null) { - result = caseENamedElement(facetOperation); - } - if (result == null) { - result = caseDocumentedElement(facetOperation); - } - if (result == null) { - result = caseEModelElement(facetOperation); - } - if (result == null) { - result = defaultCase(theEObject); - } - return result; - } - case EFacetPackage.FACET_SET: { - FacetSet facetSet = (FacetSet) theEObject; - T result = caseFacetSet(facetSet); - if (result == null) { - result = caseEPackage(facetSet); - } - if (result == null) { - result = caseDocumentedElement(facetSet); - } - if (result == null) { - result = caseENamedElement(facetSet); - } - if (result == null) { - result = caseEModelElement(facetSet); - } - if (result == null) { - result = defaultCase(theEObject); - } - return result; - } - case EFacetPackage.FACET: { - Facet facet = (Facet) theEObject; - T result = caseFacet(facet); - if (result == null) { - result = caseEClassifier(facet); - } - if (result == null) { - result = caseDocumentedElement(facet); - } - if (result == null) { - result = caseENamedElement(facet); - } - if (result == null) { - result = caseEModelElement(facet); - } - if (result == null) { - result = defaultCase(theEObject); - } - return result; - } - case EFacetPackage.CATEGORY: { - Category category = (Category) theEObject; - T result = caseCategory(category); - if (result == null) { - result = caseENamedElement(category); - } - if (result == null) { - result = caseDocumentedElement(category); - } - if (result == null) { - result = caseEModelElement(category); - } - if (result == null) { - result = defaultCase(theEObject); - } - return result; - } - case EFacetPackage.FACET_ELEMENT: { - FacetElement facetElement = (FacetElement) theEObject; - T result = caseFacetElement(facetElement); - if (result == null) { - result = caseETypedElement(facetElement); - } - if (result == null) { - result = caseDocumentedElement(facetElement); - } - if (result == null) { - result = caseENamedElement(facetElement); - } - if (result == null) { - result = caseEModelElement(facetElement); - } - if (result == null) { - result = defaultCase(theEObject); - } - return result; - } - case EFacetPackage.DERIVED_TYPED_ELEMENT: { - DerivedTypedElement derivedTypedElement = (DerivedTypedElement) theEObject; - T result = caseDerivedTypedElement(derivedTypedElement); - if (result == null) { - result = caseFacetElement(derivedTypedElement); - } - if (result == null) { - result = caseETypedElement(derivedTypedElement); - } - if (result == null) { - result = caseDocumentedElement(derivedTypedElement); - } - if (result == null) { - result = caseENamedElement(derivedTypedElement); - } - if (result == null) { - result = caseEModelElement(derivedTypedElement); - } - if (result == null) { - result = defaultCase(theEObject); - } - return result; - } - case EFacetPackage.PARAMETER_VALUE: { - ParameterValue parameterValue = (ParameterValue) theEObject; - T result = caseParameterValue(parameterValue); - if (result == null) { - result = defaultCase(theEObject); - } - return result; - } - case EFacetPackage.DOCUMENTED_ELEMENT: { - DocumentedElement documentedElement = (DocumentedElement) theEObject; - T result = caseDocumentedElement(documentedElement); - if (result == null) { - result = defaultCase(theEObject); - } - return result; - } - default: - return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of 'Facet Attribute'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Facet Attribute'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseFacetAttribute(FacetAttribute object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Facet Reference'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Facet Reference'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseFacetReference(FacetReference object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Facet Operation'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Facet Operation'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseFacetOperation(FacetOperation object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Facet Set'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Facet Set'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseFacetSet(FacetSet object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Facet'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Facet'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseFacet(Facet object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Category'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Category'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseCategory(Category object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Facet Element'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Facet Element'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseFacetElement(FacetElement object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Derived Typed Element'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Derived Typed Element'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseDerivedTypedElement(DerivedTypedElement object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Parameter Value'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Parameter Value'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseParameterValue(ParameterValue object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Documented Element'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Documented Element'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseDocumentedElement(DocumentedElement object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EModel Element'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'EModel Element'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseEModelElement(EModelElement object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'ENamed Element'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'ENamed Element'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseENamedElement(ENamedElement object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'ETyped Element'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'ETyped Element'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseETypedElement(ETypedElement object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EStructural Feature'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'EStructural Feature'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseEStructuralFeature(EStructuralFeature object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EAttribute'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'EAttribute'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseEAttribute(EAttribute object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EReference'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'EReference'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseEReference(EReference object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EOperation'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'EOperation'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseEOperation(EOperation object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EPackage'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'EPackage'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseEPackage(EPackage object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EClassifier'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'EClassifier'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseEClassifier(EClassifier object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EObject'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - public T defaultCase(EObject object) { - return null; - } - -} // EFacetSwitch diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/EfacetcatalogFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/EfacetcatalogFactory.java deleted file mode 100644 index 37528132b4b..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/EfacetcatalogFactory.java +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Copyright (c) 2011,2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non-derived facet structural features and save their values. - * Nicolas Bros (Mia-Software) - Bug 370110 - Rename efacetcatalog2.ecore - * Grégoire Dupé (Mia-Software) - Bug 361817 - [Restructuring] Dynamic load to the facet catalog - * - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog; - -import org.eclipse.emf.ecore.EFactory; - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.EfacetcatalogPackage - * @generated - */ -public interface EfacetcatalogFactory extends EFactory { - /** - * The singleton instance of the factory. - * - * - * - * @generated - */ - EfacetcatalogFactory eINSTANCE = org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.impl.EfacetcatalogFactoryImpl.init(); - - /** - * Returns a new object of class 'Facet Set Catalog'. - * - * - * - * @return a new object of class 'Facet Set Catalog'. - * @generated - */ - FacetSetCatalog createFacetSetCatalog(); - - /** - * Returns the package supported by this factory. - * - * - * - * @return the package supported by this factory. - * @generated - */ - EfacetcatalogPackage getEfacetcatalogPackage(); - -} // EfacetcatalogFactory diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/EfacetcatalogPackage.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/EfacetcatalogPackage.java deleted file mode 100644 index a5b7b5415a3..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/EfacetcatalogPackage.java +++ /dev/null @@ -1,168 +0,0 @@ -/** - * Copyright (c) 2011,2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non-derived facet structural features and save their values. - * Nicolas Bros (Mia-Software) - Bug 370110 - Rename efacetcatalog2.ecore - * Grégoire Dupé (Mia-Software) - Bug 361817 - [Restructuring] Dynamic load to the facet catalog - * - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.papyrus.emf.facet.util.emf.catalog.CatalogPackage; - -/** - * - * The Package for the model. - * It contains accessors for the meta objects to represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.EfacetcatalogFactory - * @model kind="package" - * @generated - */ -public interface EfacetcatalogPackage extends EPackage { - /** - * The package name. - * - * - * - * @generated - */ - String eNAME = "efacetcatalog"; //$NON-NLS-1$ - - /** - * The package namespace URI. - * - * - * - * @generated - */ - String eNS_URI = "http://www.eclipse.org/papyrus/emf/facet/efacet/0.2.incubation/efacetcatalog"; //$NON-NLS-1$ - - /** - * The package namespace name. - * - * - * - * @generated - */ - String eNS_PREFIX = "efacetcatalog"; //$NON-NLS-1$ - - /** - * The singleton instance of the package. - * - * - * - * @generated - */ - EfacetcatalogPackage eINSTANCE = org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.impl.EfacetcatalogPackageImpl.init(); - - /** - * The meta object id for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.impl.FacetSetCatalogImpl Facet Set Catalog}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.impl.FacetSetCatalogImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.impl.EfacetcatalogPackageImpl#getFacetSetCatalog() - * @generated - */ - int FACET_SET_CATALOG = 0; - - /** - * The feature id for the 'Installed Entries' reference list. - * - * - * - * @generated - * @ordered - */ - int FACET_SET_CATALOG__INSTALLED_ENTRIES = CatalogPackage.CATALOG__INSTALLED_ENTRIES; - - /** - * The feature id for the 'Name' attribute. - * - * - * - * @generated - * @ordered - */ - int FACET_SET_CATALOG__NAME = CatalogPackage.CATALOG__NAME; - - /** - * The number of structural features of the 'Facet Set Catalog' class. - * - * - * - * @generated - * @ordered - */ - int FACET_SET_CATALOG_FEATURE_COUNT = CatalogPackage.CATALOG_FEATURE_COUNT + 0; - - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.FacetSetCatalog Facet Set Catalog}'. - * - * - * - * @return the meta object for class 'Facet Set Catalog'. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.FacetSetCatalog - * @generated - */ - EClass getFacetSetCatalog(); - - /** - * Returns the factory that creates the instances of the model. - * - * - * - * @return the factory that creates the instances of the model. - * @generated - */ - EfacetcatalogFactory getEfacetcatalogFactory(); - - /** - * - * Defines literals for the meta objects that represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * - * @generated - */ - interface Literals { - /** - * The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.impl.FacetSetCatalogImpl Facet Set Catalog}' class. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.impl.FacetSetCatalogImpl - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.impl.EfacetcatalogPackageImpl#getFacetSetCatalog() - * @generated - */ - EClass FACET_SET_CATALOG = eINSTANCE.getFacetSetCatalog(); - - } - -} // EfacetcatalogPackage diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/FacetSetCatalog.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/FacetSetCatalog.java deleted file mode 100644 index 028d0fc74de..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/FacetSetCatalog.java +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Copyright (c) 2011,2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non-derived facet structural features and save their values. - * Nicolas Bros (Mia-Software) - Bug 370110 - Rename efacetcatalog2.ecore - * Grégoire Dupé (Mia-Software) - Bug 361817 - [Restructuring] Dynamic load to the facet catalog - * - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog; - -import org.eclipse.papyrus.emf.facet.util.emf.catalog.Catalog; - -/** - * - * A representation of the model object 'Facet Set Catalog'. - * - * - * - * A FacetSetCatalog aims at referencing EMF Facet FacetSet. - * - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.EfacetcatalogPackage#getFacetSetCatalog() - * @model - * @generated - */ -public interface FacetSetCatalog extends Catalog { - -} // FacetSetCatalog diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/impl/EfacetcatalogFactoryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/impl/EfacetcatalogFactoryImpl.java deleted file mode 100644 index 8ab2c9b6373..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/impl/EfacetcatalogFactoryImpl.java +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Copyright (c) 2011,2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non-derived facet structural features and save their values. - * Nicolas Bros (Mia-Software) - Bug 370110 - Rename efacetcatalog2.ecore - * Grégoire Dupé (Mia-Software) - Bug 361817 - [Restructuring] Dynamic load to the facet catalog - * - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.emf.ecore.plugin.EcorePlugin; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.EfacetcatalogFactory; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.EfacetcatalogPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.FacetSetCatalog; - -/** - * - * An implementation of the model Factory. - * - * - * @generated - */ -public class EfacetcatalogFactoryImpl extends EFactoryImpl implements EfacetcatalogFactory { - /** - * Creates the default factory implementation. - * - * - * - * @generated - */ - public static EfacetcatalogFactory init() { - try { - EfacetcatalogFactory theEfacetcatalogFactory = (EfacetcatalogFactory) EPackage.Registry.INSTANCE.getEFactory(EfacetcatalogPackage.eNS_URI); - if (theEfacetcatalogFactory != null) { - return theEfacetcatalogFactory; - } - } catch (Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new EfacetcatalogFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * - * - * @generated - */ - public EfacetcatalogFactoryImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case EfacetcatalogPackage.FACET_SET_CATALOG: - return createFacetSetCatalog(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ - } - } - - /** - * - * - * - * @generated - */ - public FacetSetCatalog createFacetSetCatalog() { - FacetSetCatalogImpl facetSetCatalog = new FacetSetCatalogImpl(); - return facetSetCatalog; - } - - /** - * - * - * - * @generated - */ - public EfacetcatalogPackage getEfacetcatalogPackage() { - return (EfacetcatalogPackage) getEPackage(); - } - - /** - * - * - * - * @deprecated - * @generated - */ - @Deprecated - public static EfacetcatalogPackage getPackage() { - return EfacetcatalogPackage.eINSTANCE; - } - -} // EfacetcatalogFactoryImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/impl/EfacetcatalogPackageImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/impl/EfacetcatalogPackageImpl.java deleted file mode 100644 index 6a7b350b816..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/impl/EfacetcatalogPackageImpl.java +++ /dev/null @@ -1,203 +0,0 @@ -/** - * Copyright (c) 2011,2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non-derived facet structural features and save their values. - * Nicolas Bros (Mia-Software) - Bug 370110 - Rename efacetcatalog2.ecore - * Grégoire Dupé (Mia-Software) - Bug 361817 - [Restructuring] Dynamic load to the facet catalog - * - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.impl.EPackageImpl; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.EfacetcatalogFactory; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.EfacetcatalogPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.FacetSetCatalog; -import org.eclipse.papyrus.emf.facet.util.emf.catalog.CatalogPackage; - -/** - * - * An implementation of the model Package. - * - * - * @generated - */ -public class EfacetcatalogPackageImpl extends EPackageImpl implements EfacetcatalogPackage { - /** - * - * - * - * @generated - */ - private EClass facetSetCatalogEClass = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - *

- * Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.EfacetcatalogPackage#eNS_URI - * @see #init() - * @generated - */ - private EfacetcatalogPackageImpl() { - super(eNS_URI, EfacetcatalogFactory.eINSTANCE); - } - - /** - * - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - * - *

- * This method is used to initialize {@link EfacetcatalogPackage#eINSTANCE} when that field is accessed. Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static EfacetcatalogPackage init() { - if (isInited) { - return (EfacetcatalogPackage) EPackage.Registry.INSTANCE.getEPackage(EfacetcatalogPackage.eNS_URI); - } - - // Obtain or create and register package - EfacetcatalogPackageImpl theEfacetcatalogPackage = (EfacetcatalogPackageImpl) (EPackage.Registry.INSTANCE.get(eNS_URI) instanceof EfacetcatalogPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new EfacetcatalogPackageImpl()); - - isInited = true; - - // Initialize simple dependencies - CatalogPackage.eINSTANCE.eClass(); - - // Create package meta-data objects - theEfacetcatalogPackage.createPackageContents(); - - // Initialize created meta-data - theEfacetcatalogPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theEfacetcatalogPackage.freeze(); - - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(EfacetcatalogPackage.eNS_URI, theEfacetcatalogPackage); - return theEfacetcatalogPackage; - } - - /** - * - * - * - * @generated - */ - public EClass getFacetSetCatalog() { - return facetSetCatalogEClass; - } - - /** - * - * - * - * @generated - */ - public EfacetcatalogFactory getEfacetcatalogFactory() { - return (EfacetcatalogFactory) getEFactoryInstance(); - } - - /** - * - * - * - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * - * - * - * @generated - */ - public void createPackageContents() { - if (isCreated) { - return; - } - isCreated = true; - - // Create classes and their features - facetSetCatalogEClass = createEClass(FACET_SET_CATALOG); - } - - /** - * - * - * - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * - * - * - * @generated - */ - public void initializePackageContents() { - if (isInitialized) { - return; - } - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - CatalogPackage theCatalogPackage = (CatalogPackage) EPackage.Registry.INSTANCE.getEPackage(CatalogPackage.eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - facetSetCatalogEClass.getESuperTypes().add(theCatalogPackage.getCatalog()); - - // Initialize classes and features; add operations and parameters - initEClass(facetSetCatalogEClass, FacetSetCatalog.class, "FacetSetCatalog", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - - // Create resource - createResource(eNS_URI); - } - -} // EfacetcatalogPackageImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/impl/FacetSetCatalogImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/impl/FacetSetCatalogImpl.java deleted file mode 100644 index 561b91f822d..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/impl/FacetSetCatalogImpl.java +++ /dev/null @@ -1,232 +0,0 @@ -/** - * Copyright (c) 2011,2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non-derived facet structural features and save their values. - * Nicolas Bros (Mia-Software) - Bug 370110 - Rename efacetcatalog2.ecore - * Grégoire Dupé (Mia-Software) - Bug 361817 - [Restructuring] Dynamic load to the facet catalog - * - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectResolvingEList; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.EfacetcatalogPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.FacetSetCatalog; - -/** - * - * An implementation of the model object 'Facet Set Catalog'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.impl.FacetSetCatalogImpl#getInstalledEntries Installed Entries}
  • - *
  • {@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.impl.FacetSetCatalogImpl#getName Name}
  • - *
- * - * @generated - */ -public class FacetSetCatalogImpl extends EObjectImpl implements FacetSetCatalog { - /** - * The cached value of the '{@link #getInstalledEntries() Installed Entries}' reference list. - * - * - * - * @see #getInstalledEntries() - * @generated - * @ordered - */ - protected EList installedEntries; - - /** - * The default value of the '{@link #getName() Name}' attribute. - * - * - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() Name}' attribute. - * - * - * - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * - * - * - * @generated - */ - protected FacetSetCatalogImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return EfacetcatalogPackage.Literals.FACET_SET_CATALOG; - } - - /** - * - * - * - * @generated - */ - public EList getInstalledEntries() { - if (installedEntries == null) { - installedEntries = new EObjectResolvingEList(EObject.class, this, EfacetcatalogPackage.FACET_SET_CATALOG__INSTALLED_ENTRIES); - } - return installedEntries; - } - - /** - * - * - * - * @generated - */ - public String getName() { - return name; - } - - /** - * - * - * - * @generated - */ - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, EfacetcatalogPackage.FACET_SET_CATALOG__NAME, oldName, name)); - } - } - - /** - * - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case EfacetcatalogPackage.FACET_SET_CATALOG__INSTALLED_ENTRIES: - return getInstalledEntries(); - case EfacetcatalogPackage.FACET_SET_CATALOG__NAME: - return getName(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case EfacetcatalogPackage.FACET_SET_CATALOG__INSTALLED_ENTRIES: - getInstalledEntries().clear(); - getInstalledEntries().addAll((Collection) newValue); - return; - case EfacetcatalogPackage.FACET_SET_CATALOG__NAME: - setName((String) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case EfacetcatalogPackage.FACET_SET_CATALOG__INSTALLED_ENTRIES: - getInstalledEntries().clear(); - return; - case EfacetcatalogPackage.FACET_SET_CATALOG__NAME: - setName(NAME_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case EfacetcatalogPackage.FACET_SET_CATALOG__INSTALLED_ENTRIES: - return installedEntries != null && !installedEntries.isEmpty(); - case EfacetcatalogPackage.FACET_SET_CATALOG__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - } - return super.eIsSet(featureID); - } - - /** - * - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) { - return super.toString(); - } - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (name: "); //$NON-NLS-1$ - result.append(name); - result.append(')'); - return result.toString(); - } - -} // FacetSetCatalogImpl diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/util/EfacetcatalogAdapterFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/util/EfacetcatalogAdapterFactory.java deleted file mode 100644 index b24c46f1bd0..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/util/EfacetcatalogAdapterFactory.java +++ /dev/null @@ -1,164 +0,0 @@ -/** - * Copyright (c) 2011,2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non-derived facet structural features and save their values. - * Nicolas Bros (Mia-Software) - Bug 370110 - Rename efacetcatalog2.ecore - * Grégoire Dupé (Mia-Software) - Bug 361817 - [Restructuring] Dynamic load to the facet catalog - * - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.util; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.EfacetcatalogPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.FacetSetCatalog; -import org.eclipse.papyrus.emf.facet.util.emf.catalog.Catalog; - -/** - * - * The Adapter Factory for the model. - * It provides an adapter createXXX method for each class of the model. - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.EfacetcatalogPackage - * @generated - */ -public class EfacetcatalogAdapterFactory extends AdapterFactoryImpl { - /** - * The cached model package. - * - * - * - * @generated - */ - protected static EfacetcatalogPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * - * - * - * @generated - */ - public EfacetcatalogAdapterFactory() { - if (modelPackage == null) { - modelPackage = EfacetcatalogPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * - * This implementation returns true if the object is either the model's package or is an instance object of the model. - * - * - * @return whether this factory is applicable for the type of the object. - * @generated - */ - @Override - public boolean isFactoryForType(Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject) object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch that delegates to the createXXX methods. - * - * - * - * @generated - */ - protected EfacetcatalogSwitch modelSwitch = new EfacetcatalogSwitch() { - @Override - public Adapter caseFacetSetCatalog(FacetSetCatalog object) { - return createFacetSetCatalogAdapter(); - } - - @Override - public Adapter caseCatalog(Catalog object) { - return createCatalogAdapter(); - } - - @Override - public Adapter defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the target. - * - * - * - * @param target - * the object to adapt. - * @return the adapter for the target. - * @generated - */ - @Override - public Adapter createAdapter(Notifier target) { - return modelSwitch.doSwitch((EObject) target); - } - - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.FacetSetCatalog Facet Set Catalog}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.FacetSetCatalog - * @generated - */ - public Adapter createFacetSetCatalogAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.util.emf.catalog.Catalog Catalog}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * - * @return the new adapter. - * @see org.eclipse.papyrus.emf.facet.util.emf.catalog.Catalog - * @generated - */ - public Adapter createCatalogAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * - * This default implementation returns null. - * - * - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} // EfacetcatalogAdapterFactory diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/util/EfacetcatalogSwitch.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/util/EfacetcatalogSwitch.java deleted file mode 100644 index 28f1a724cf5..00000000000 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacetcatalog/util/EfacetcatalogSwitch.java +++ /dev/null @@ -1,171 +0,0 @@ -/** - * Copyright (c) 2011,2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Gregoire Dupe (Mia-Software) - Design - * Nicolas Guyomar (Mia-Software) - Implementation - * Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non-derived facet structural features and save their values. - * Nicolas Bros (Mia-Software) - Bug 370110 - Rename efacetcatalog2.ecore - * Grégoire Dupé (Mia-Software) - Bug 361817 - [Restructuring] Dynamic load to the facet catalog - * - */ -package org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.util; - -import java.util.List; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.EfacetcatalogPackage; -import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.FacetSetCatalog; -import org.eclipse.papyrus.emf.facet.util.emf.catalog.Catalog; - -/** - * - * The Switch for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch(EObject) doSwitch(object)} to invoke the caseXXX method for each class of the model, - * starting with the actual class of the object - * and proceeding up the inheritance hierarchy - * until a non-null result is returned, - * which is the result of the switch. - * - * - * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacetcatalog.EfacetcatalogPackage - * @generated - */ -public class EfacetcatalogSwitch { - /** - * The cached model package - * - * - * - * @generated - */ - protected static EfacetcatalogPackage modelPackage; - - /** - * Creates an instance of the switch. - * - * - * - * @generated - */ - public EfacetcatalogSwitch() { - if (modelPackage == null) { - modelPackage = EfacetcatalogPackage.eINSTANCE; - } - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - public T doSwitch(EObject theEObject) { - return doSwitch(theEObject.eClass(), theEObject); - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - protected T doSwitch(EClass theEClass, EObject theEObject) { - if (theEClass.eContainer() == modelPackage) { - return doSwitch(theEClass.getClassifierID(), theEObject); - } else { - List eSuperTypes = theEClass.getESuperTypes(); - return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(eSuperTypes.get(0), theEObject); - } - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - protected T doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case EfacetcatalogPackage.FACET_SET_CATALOG: { - FacetSetCatalog facetSetCatalog = (FacetSetCatalog) theEObject; - T result = caseFacetSetCatalog(facetSetCatalog); - if (result == null) { - result = caseCatalog(facetSetCatalog); - } - if (result == null) { - result = defaultCase(theEObject); - } - return result; - } - default: - return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of 'Facet Set Catalog'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Facet Set Catalog'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseFacetSetCatalog(FacetSetCatalog object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Catalog'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Catalog'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseCatalog(Catalog object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EObject'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - public T defaultCase(EObject object) { - return null; - } - -} // EfacetcatalogSwitch -- cgit v1.2.3