From 564f0a68ed016870e0cda2acd4e8455bd4b62837 Mon Sep 17 00:00:00 2001 From: Etienne Brosse Date: Wed, 15 Jun 2022 14:48:56 +0200 Subject: [PATCH] update version 1.0.11 --- pom.xml | 1084 ++++++++--------- src/main/conf/module.properties | 2 - src/main/conf/module.xml | 182 +-- .../res/generated/patterns/framework.umlt | Bin 5950 -> 5949 bytes .../java/fr/softeam/cameldesigner/Main.java | 93 +- .../api/CamelDesignerProxyFactory.java | 459 ++++--- .../infrastructure/dependency/Annotation.java | 25 +- .../dependency/PropertyDependency.java | 25 +- .../modelelement/CamelAttribute.java | 13 +- .../modelelement/CamelElement.java | 13 +- .../modelelement/ExpendableElement.java | 16 +- .../infrastructure/modelelement/Feature.java | 13 +- .../modelelement/NamedElement.java | 13 +- .../standard/artifact/FeatureArtifact.java | 25 +- .../attribute/AttributeAttribute.java | 31 +- .../MeasurableAttributeAttribute.java | 28 +- .../attribute/QualityAttributeAttribute.java | 25 +- .../standard/class_/Application.java | 25 +- .../standard/class_/AttributeClass.java | 31 +- .../standard/class_/FeatureClass.java | 25 +- .../class_/MeasurableAttributeClass.java | 28 +- .../class_/QualityAttributeClass.java | 25 +- .../classifier/FeatureClassifier.java | 397 +++--- .../standard/connector/FeatureConnector.java | 25 +- .../standard/datatype/FeatureDataType.java | 25 +- .../enumeration/FeatureEnumeration.java | 25 +- .../standard/instance/FeatureInstance.java | 25 +- .../camelcore/standard/namespace/Action.java | 13 +- .../standard/package_/CamelModel.java | 157 +-- .../standard/package_/FeaturePackage.java | 109 +- .../camelcore/standard/package_/SubModel.java | 13 +- .../camelcore/standard/port/FeaturePort.java | 25 +- .../abstractdiagram/AbstractCamelDiagram.java | 13 +- .../classdiagram/CamelModelDiagram.java | 25 +- .../standard/classdiagram/CamelViewPoint.java | 25 +- .../classdiagram/ConstraintModelDiagram.java | 25 +- .../DataInstanceModelDiagram.java | 25 +- .../classdiagram/DataTypeModelDiagram.java | 25 +- .../DeploymentInstanceModelDiagram.java | 25 +- .../DeploymentTypeModelDiagram.java | 25 +- .../classdiagram/ExecutionModelDiagram.java | 27 +- .../classdiagram/LocationModelDiagram.java | 25 +- .../classdiagram/MetadataModelDiagram.java | 25 +- .../MetricInstanceModelDiagram.java | 25 +- .../classdiagram/MetricTypeModelDiagram.java | 25 +- .../OrganisationModelDiagram.java | 25 +- .../classdiagram/RequirementModelDiagram.java | 25 +- .../classdiagram/ScalabilityModelDiagram.java | 25 +- .../classdiagram/SecurityModelDiagram.java | 25 +- .../classdiagram/TypeModelDiagram.java | 25 +- .../classdiagram/UnitModelDiagram.java | 25 +- .../constraint/AttributeConstraint.java | 37 +- .../standard/constraint/CamelConstraint.java | 13 +- .../constraint/CompositeConstraint.java | 13 +- .../standard/constraint/IfThenConstraint.java | 32 +- .../constraint/LogicalConstraint.java | 29 +- .../standard/constraint/MetricConstraint.java | 37 +- .../constraint/MetricVariableConstraint.java | 37 +- .../standard/constraint/UnaryConstraint.java | 13 +- .../standard/package_/ConstraintModel.java | 25 +- .../DataInstanceBindableInstance.java | 27 +- .../api/datamodel/standard/class_/Data.java | 39 +- .../datamodel/standard/class_/DataSource.java | 27 +- .../standard/instance/DataInstance.java | 41 +- .../standard/instance/DataSourceInstance.java | 31 +- .../standard/package_/DataInstanceModel.java | 50 +- .../standard/package_/DataModel.java | 13 +- .../standard/package_/DataTypeModel.java | 43 +- .../connector/CommunicationInstance.java | 29 +- .../connector/ComponentRelationInstance.java | 13 +- .../standard/connector/HostingInstance.java | 27 +- .../standard/instance/ComponentInstance.java | 33 +- .../standard/instance/ContainerInstance.java | 48 +- .../standard/instance/PaaSInstance.java | 27 +- .../instance/SoftwareComponentInstance.java | 57 +- .../standard/instance/VMInstance.java | 31 +- .../package_/DeploymentInstanceModel.java | 66 +- .../port/CommunicationPortInstance.java | 27 +- .../standard/port/HostingPortInstance.java | 27 +- .../standard/artifact/BuildConfiguration.java | 25 +- .../artifact/ClusterConfiguration.java | 42 +- .../standard/artifact/Configuration.java | 13 +- .../standard/artifact/EventConfiguration.java | 29 +- .../standard/artifact/PaaSConfiguration.java | 25 +- .../artifact/ScriptConfiguration.java | 25 +- .../artifact/ServerlessConfiguration.java | 68 +- .../standard/class_/RequirementSet.java | 43 +- .../standard/component/CamelComponent.java | 52 +- .../standard/component/Container.java | 40 +- .../standard/component/PaaS.java | 25 +- .../standard/component/SoftwareComponent.java | 57 +- .../standard/component/VM.java | 25 +- .../standard/connector/Communication.java | 29 +- .../standard/connector/ComponentRelation.java | 13 +- .../standard/connector/Hosting.java | 30 +- .../standard/connector/LocationCoupling.java | 28 +- .../standard/package_/DeploymentModel.java | 15 +- .../package_/DeploymentTypeModel.java | 85 +- .../standard/port/CommunicationPort.java | 25 +- .../standard/port/HostingPort.java | 25 +- .../class_/ApplicationMeasurement.java | 25 +- .../executionmodel/standard/class_/Cause.java | 38 +- .../class_/CommunicationMeasurement.java | 33 +- .../standard/class_/ContainerMeasurement.java | 29 +- .../standard/class_/DataMeasurement.java | 29 +- .../standard/class_/HistoryInfo.java | 31 +- .../standard/class_/HistoryRecord.java | 48 +- .../standard/class_/Measurement.java | 17 +- .../standard/class_/PaaSMeasurement.java | 29 +- .../standard/class_/RuleTrigger.java | 27 +- .../standard/class_/SLOViolation.java | 30 +- .../class_/SoftwareComponentMeasurement.java | 29 +- .../standard/class_/VMMeasurement.java | 29 +- .../standard/instance/ActionInstance.java | 25 +- .../standard/package_/ExecutionModel.java | 104 +- .../standard/enumeration/CloudLocation.java | 39 +- .../enumeration/GeographicalRegion.java | 28 +- .../standard/enumeration/Location.java | 13 +- .../standard/package_/LocationModel.java | 45 +- .../modelelement/MmsObject.java | 13 +- .../standard/attribute/MmsProperty.java | 41 +- .../attributelink/MmsPropertyInstance.java | 29 +- .../standard/class_/MmsConcept.java | 54 +- .../standard/instance/MmsConceptInstance.java | 34 +- .../standard/package_/MetaDataModel.java | 45 +- .../standard/class_/AttributeContext.java | 39 +- .../standard/class_/CompositeMetric.java | 29 +- .../class_/CompositeMetricContext.java | 29 +- .../metricmodel/standard/class_/Function.java | 25 +- .../metricmodel/standard/class_/Metric.java | 16 +- .../standard/class_/MetricContext.java | 34 +- .../standard/class_/MetricObjectBinding.java | 31 +- .../standard/class_/MetricTemplate.java | 31 +- .../standard/class_/MetricVariable.java | 40 +- .../standard/class_/ObjectContext.java | 31 +- .../standard/class_/RawMetric.java | 25 +- .../standard/class_/RawMetricContext.java | 27 +- .../metricmodel/standard/class_/Schedule.java | 27 +- .../metricmodel/standard/class_/Window.java | 27 +- .../standard/component/Sensor.java | 25 +- .../standard/instance/MetricInstance.java | 32 +- .../package_/MetricInstanceModel.java | 50 +- .../standard/package_/MetricModel.java | 13 +- .../standard/package_/MetricTypeModel.java | 126 +- .../standard/class_/CloudCredentials.java | 25 +- .../standard/class_/CloudProvider.java | 25 +- .../standard/class_/Credentials.java | 13 +- .../standard/class_/DataResourceFilter.java | 34 +- .../standard/class_/Entity.java | 25 +- .../standard/class_/ExternalIdentifier.java | 25 +- .../standard/class_/ModelResourceFilter.java | 25 +- .../standard/class_/Organisation.java | 35 +- .../standard/class_/Permission.java | 31 +- .../standard/class_/PlatformCredentials.java | 25 +- .../standard/class_/ResourceFilter.java | 13 +- .../standard/class_/Role.java | 25 +- .../standard/class_/RoleAssignment.java | 34 +- .../class_/ServiceResourceFilter.java | 25 +- .../SoftwareComponentResourceFilter.java | 30 +- .../standard/class_/User.java | 60 +- .../standard/class_/UserGroup.java | 29 +- .../standard/package_/OrganisationModel.java | 114 +- .../class_/HorizontalScaleRequirement.java | 25 +- .../standard/class_/LocationRequirement.java | 28 +- .../standard/class_/OSRequirement.java | 25 +- .../class_/OptimisationRequirement.java | 29 +- .../standard/class_/PaaSRequirement.java | 25 +- .../standard/class_/ProviderRequirement.java | 25 +- .../standard/class_/ResourceRequirement.java | 25 +- .../standard/class_/SecurityRequirement.java | 28 +- .../class_/ServiceLevelObjective.java | 29 +- .../class_/VerticalScaleRequirement.java | 25 +- .../enumeration/ImageRequirement.java | 25 +- .../generalclass/HardRequirement.java | 13 +- .../standard/generalclass/Requirement.java | 13 +- .../generalclass/ScaleRequirement.java | 13 +- .../generalclass/SoftRequirement.java | 13 +- .../standard/package_/RequirementModel.java | 80 +- .../standard/class_/BinaryEventPattern.java | 30 +- .../standard/class_/Event.java | 13 +- .../standard/class_/EventPattern.java | 16 +- .../standard/class_/FunctionalEvent.java | 29 +- .../class_/HorizontalScalingAction.java | 25 +- .../standard/class_/NonFunctionalEvent.java | 27 +- .../standard/class_/ScalabilityRule.java | 31 +- .../standard/class_/SingleEvent.java | 13 +- .../standard/class_/Timer.java | 27 +- .../standard/class_/UnaryEventPattern.java | 28 +- .../class_/VerticalScalingAction.java | 25 +- .../standard/instance/EventInstance.java | 15 +- .../instance/FunctionalEventInstance.java | 27 +- .../instance/NonFunctionalEventInstance.java | 27 +- .../standard/namespace/ScalingAction.java | 15 +- .../standard/package_/ScalabilityModel.java | 97 +- .../standard/class_/Certifiable.java | 25 +- .../class_/CompositeSecurityMetric.java | 28 +- .../standard/class_/RawSecurityMetric.java | 28 +- .../standard/class_/SecurityAttribute.java | 28 +- .../standard/class_/SecurityControl.java | 42 +- .../standard/class_/SecurityDomain.java | 28 +- .../standard/class_/SecuritySLO.java | 25 +- .../instance/SecurityMetricInstance.java | 25 +- .../standard/package_/SecurityModel.java | 103 +- .../standard/class_/BooleanValue.java | 25 +- .../standard/class_/DoubleValue.java | 25 +- .../typemodel/standard/class_/FloatValue.java | 25 +- .../typemodel/standard/class_/IntValue.java | 25 +- .../api/typemodel/standard/class_/Limit.java | 25 +- .../standard/class_/NumericValue.java | 13 +- .../standard/class_/StringValue.java | 25 +- .../api/typemodel/standard/class_/Value.java | 13 +- .../standard/datatype/BooleanValueType.java | 25 +- .../standard/datatype/CamelList.java | 25 +- .../typemodel/standard/datatype/Range.java | 25 +- .../standard/datatype/RangeUnion.java | 25 +- .../standard/datatype/StringValueType.java | 25 +- .../standard/datatype/ValueType.java | 13 +- .../standard/package_/TypeModel.java | 27 +- .../standard/datatype/CompositeUnit.java | 29 +- .../standard/datatype/DimensionedUnit.java | 16 +- .../standard/datatype/Dimensionless.java | 25 +- .../standard/datatype/SingleUnit.java | 25 +- .../api/unitmodel/standard/datatype/Unit.java | 16 +- .../standard/datatype/UnitDimension.java | 25 +- .../standard/package_/UnitModel.java | 53 +- .../reverse/AbstractReverseProcess.java | 28 +- .../process/reverse/ReverseProcess.java | 7 +- .../reverse/ReverseProcessConstraint.java | 3 +- .../reverse/ReverseProcessDataInstance.java | 3 +- .../reverse/ReverseProcessDataType.java | 11 +- .../ReverseProcessDeploymentInstance.java | 3 +- .../reverse/ReverseProcessDeploymentType.java | 87 +- .../reverse/ReverseProcessExecution.java | 3 +- .../reverse/ReverseProcessLocation.java | 3 +- .../reverse/ReverseProcessMetaData.java | 7 +- .../reverse/ReverseProcessMetricInstance.java | 3 +- .../reverse/ReverseProcessMetricType.java | 41 +- .../reverse/ReverseProcessOrganisation.java | 3 +- .../reverse/ReverseProcessRequirement.java | 9 +- .../reverse/ReverseProcessScalability.java | 3 +- .../reverse/ReverseProcessSecurity.java | 3 +- .../process/reverse/ReverseProcessType.java | 3 +- .../process/reverse/ReverseProcessUnit.java | 3 +- .../importer/ImporterService.java | 24 +- .../exchange/exporter/ExporterFactory.java | 46 +- .../exchange/exporter/GenerateProcess.java | 12 +- .../execution/ExecutionModelExporter.java | 4 +- .../importer/AbstractImporterService.java | 73 +- .../exchange/importer/CamelContainment.java | 35 +- .../importer/CamelImporterService.java | 9 +- .../importer/ICamelImporterVisitor.java | 32 +- .../exchange/importer/ICamelVisitor.java | 18 +- .../importer/IDefaultCamelVisitor.java | 33 +- .../exchange/importer/IImporter.java | 14 +- .../exchange/importer/ImportMap.java | 8 +- .../exchange/importer/ImportProcess.java | 12 +- .../exchange/importer/ImporterFactory.java | 37 +- .../exchange/importer/XMIImporterService.java | 11 +- .../importer/core/CamelElementImporter.java | 36 +- .../importer/core/CamelModelImporter.java | 20 +- .../importer/core/FeatureImporter.java | 20 +- .../importer/core/NamedElementImporter.java | 28 +- .../importer/core/SubModelImporter.java | 19 +- .../metadata/MetaDataModelImporter.java | 21 +- .../importer/metadata/MmsConceptImporter.java | 20 +- .../importer/metadata/MmsObjectImporter.java | 31 +- .../exchange/walker/CamelWalker.java | 16 +- .../handlers/commands/ExportModelCommand.java | 5 +- .../handlers/commands/ImportModelCommand.java | 4 +- .../core/CamelModelPropertyPage.java | 12 +- .../core/FeaturePackagePropertyPage.java | 12 +- .../core/CreateMeasurableAttributeTool.java | 17 +- .../impl/CamelDesignerModule.java | 9 +- .../profiler/ProfilerDaemon.java | 8 +- .../cameldesigner/profiler/data/Category.java | 41 +- .../profiler/data/ProvidingInfo.java | 58 +- .../profiler/data/ProvidingInfoResponse.java | 27 +- .../profiler/data/RequestResultResponse.java | 20 +- .../profiler/data/SuggestedCategory.java | 41 +- .../cameldesigner/ui/WizardImport.java | 56 +- 280 files changed, 4889 insertions(+), 5136 deletions(-) diff --git a/pom.xml b/pom.xml index eaa8cc69..40f83d5d 100644 --- a/pom.xml +++ b/pom.xml @@ -1,545 +1,541 @@ - - 4.0.0 - - - fr.softeam - cameldesigner - 1.0.10 - CamelDesigner - - - modelio - https://repository.modelio.org - - - - - - modelio-plugins - https://repository.modelio.org - - - - - - UTF-8 - - - - - - com.google.code.gson - gson - 2.7 - - - - - org.modelio - MDAKit - [4.1.0,4.1.1) - pom - provided - - - - com.google - inject - 3.0.0 - jar - - - - org.eclipse.equinox - registry - 3.7.0 - jar - - - - org.eclipse - xtext - 2.12.0 - jar - - - - javax - inject - 1.0.0 - jar - - - - org.eclipse.orbit.bundles - com.google.guava - 21.0.0-SNAPSHOT - jar - - - - org.eclipse.ocl.xtext - oclstdlib - 1.3.0 - jar - - - - org.eclipse.osgi.compatibility - state - 1.1.0 - jar - - - - lpg.runtime - java - 2.0.17 - jar - - - - org.eclipse - net4j - 4.6.0 - jar - - - - org.eclipse - osgi - 3.12.100 - jar - - - - org.eclipse.equinox - common - 3.9.0 - - - - org.eclipse.emf - ecore - 2.13.0 - - - - org.eclipse.ocl - uml - 5.2.200 - jar - - - - org.apache - log4j - 1.2.15 - jar - - - - org.eclipse.core - runtime - 3.13.0 - jar - - - - org.eclipse.emf - edit - 2.12.0 - jar - - - - org.eclipse.emf.cdo - net4j - 4.1.500 - - - - com.google.inject - multibindings - 3.0.0 - jar - - - - org.eclipse.equinox - app - 1.3.400 - jar - - - - org.eclipse.ocl - pivot - 1.3.0 - jar - - - - org.eclipse.core - jobs - 3.9.3 - jar - - - - org.eclipse.ocl.xtext - completeocl - 1.3.0 - jar - - - - org.eclipse.emf - common - 2.13.0 - jar - - - - org.eclipse.ocl.xtext - oclinecore - 1.3.0 - jar - - - - org.eclipse.emf - org.eclipse.emf.mwe.core - 1.3.21-SNAPSHOT - - - - org.eclipse.ocl.xtext - base - 1.3.0 - jar - - - - org.eclipse.emf.cdo - security - 4.3.200 - - - - org.apache.commons - cli - 1.2.0 - jar - - - - org.eclipse.emf.cdo - expressions - 4.3.200 - - - - org.eclipse.ocl - common - 1.4.200 - jar - - - - org.eclipse.emf.ecore - xmi - 2.13.0 - jar - - - - org.eclipse.equinox - preferences - 3.7.0 - jar - - - - org.eclipse.emf.cdo - common - 4.6.0 - - - - org.slf4j - api - 1.7.2 - jar - - - - org.eclipse.emf - org.eclipse.emf.mwe2.runtime - 2.9.1-SNAPSHOT - - - - org.eclipse.net4j - tcp - 4.1.500 - jar - - - - org.antlr - runtime - 3.2.0 - jar - - - - org.eclipse.ocl.xtext - essentialocl - 1.3.0 - jar - - - - org.eclipse.emf - org.eclipse.emf.mwe.utils - 1.3.21-SNAPSHOT - - - - org.eclipse.net4j - util - 3.7.0 - jar - - - - org.eclipse.xtext - CamelDSLExporter - 3.0.0-SNAPSHOT - jar - - - - org.eclipse.core - contenttype - 3.6.0 - jar - - - - org.eclipse - ocl - 3.6.200 - jar - - - - org.eclipse.ocl - ecore - 3.6.200 - jar - - - - org.eclipse.jdt - annotation - 2.1.150 - jar - - - - org.eclipse.emf.ecore - change - 2.11.0 - jar - - - - org.eclipse.emf - cdo - 4.6.0 - jar - - - - org.eclipse.xtext - util - 2.12.0 - jar - - - - - - - src/main/java - - - - org.apache.maven.plugins - maven-compiler-plugin - 2.3.2 - - 1.8 - 1.8 - ${project.build.sourceEncoding} - - - - - org.modelio - modelio-maven-plugin - 4.1.0.00 - - - ModuleValidation - validate - - module-validation - - - - ResourceManagement - generate-resources - - module-configuration - - - - - ${project.basedir}/src/main/conf/module.xml - src/main/java - - - - - - org.apache.maven.plugins - maven-dependency-plugin - 2.4 - - ${project.basedir}/target/lib - false - false - true - provided - - - - copy-dependencies - package - - copy-dependencies - - - - - - - - org.apache.maven.plugins - maven-assembly-plugin - 2.3 - - ${project.build.sourceEncoding} - - assembly.xml - - ${project.name}_${project.version} - false - false - - - - make-assembly - package - - single - - - - - - - - org.apache.maven.plugins - maven-antrun-plugin - 1.7 - - - rename - package - - - - - - - - run - - - - - - - - - - - org.eclipse.m2e - lifecycle-mapping - 1.0.0 - - - - - - org.apache.maven.plugins - maven-dependency-plugin - [1.0.0,) - - copy-dependencies - - - - - - - - - org.modelio - - modelio-maven-plugin - - - [4.1.0.00,) - - - - module-validation - - - module-configuration - - - - - - - - - - - - - - - Modelio Module for designing the Cloud Application Modelling and Execution Language (CAMEL). For more information about CAMEL see http://camel-dsl.org/ - + + 4.0.0 + + + fr.softeam + cameldesigner + 1.0.11 + CamelDesigner + + + modelio + https://repository.modelio.org + + + + + + modelio-plugins + https://repository.modelio.org + + + + + + UTF-8 + + + + + + org.modelio + MDAKit + [4.1.0,4.1.1) + pom + provided + + + + org.eclipse.xtext + CamelDSLExporter + 3.0.0-SNAPSHOT + jar + + + + org.eclipse.jdt + annotation + 2.1.150 + jar + + + + org.slf4j + api + 1.7.2 + jar + + + + org.eclipse.equinox + app + 1.3.400 + jar + + + + org.eclipse.ocl.xtext + base + 1.3.0 + jar + + + + org.eclipse.emf + cdo + 4.6.0 + jar + + + + org.eclipse.emf.ecore + change + 2.11.0 + jar + + + + org.apache.commons + cli + 1.2.0 + jar + + + + org.eclipse.orbit.bundles + com.google.guava + 21.0.0-SNAPSHOT + jar + + + + org.eclipse.ocl + common + 1.4.200 + jar + + + + org.eclipse.emf + common + 2.13.0 + jar + + + + org.eclipse.equinox + common + 3.9.0 + + + + org.eclipse.emf.cdo + common + 4.6.0 + + + + org.eclipse.ocl.xtext + completeocl + 1.3.0 + jar + + + + org.eclipse.core + contenttype + 3.6.0 + jar + + + + org.eclipse.emf + ecore + 2.13.0 + + + + org.eclipse.ocl + ecore + 3.6.200 + jar + + + + org.eclipse.emf + edit + 2.12.0 + jar + + + + org.eclipse.ocl.xtext + essentialocl + 1.3.0 + jar + + + + org.eclipse.emf.cdo + expressions + 4.3.200 + + + + com.google.code.gson + gson + 2.7 + jar + + + + javax + inject + 1.0.0 + jar + + + + com.google + inject + 3.0.0 + jar + + + + lpg.runtime + java + 2.0.17 + jar + + + + org.eclipse.core + jobs + 3.9.3 + jar + + + + org.apache + log4j + 1.2.15 + jar + + + + com.google.inject + multibindings + 3.0.0 + jar + + + + org.eclipse.emf.cdo + net4j + 4.1.500 + + + + org.eclipse + net4j + 4.6.0 + jar + + + + org.eclipse + ocl + 3.6.200 + jar + + + + org.eclipse.ocl.xtext + oclinecore + 1.3.0 + jar + + + + org.eclipse.ocl.xtext + oclstdlib + 1.3.0 + jar + + + + org.eclipse.emf + org.eclipse.emf.mwe.core + 1.3.21-SNAPSHOT + + + + org.eclipse.emf + org.eclipse.emf.mwe.utils + 1.3.21-SNAPSHOT + + + + org.eclipse.emf + org.eclipse.emf.mwe2.runtime + 2.9.1-SNAPSHOT + + + + org.eclipse + osgi + 3.12.100 + jar + + + + org.eclipse.ocl + pivot + 1.3.0 + jar + + + + org.eclipse.equinox + preferences + 3.7.0 + jar + + + + org.eclipse.equinox + registry + 3.7.0 + jar + + + + org.eclipse.core + runtime + 3.13.0 + jar + + + + org.antlr + runtime + 3.2.0 + jar + + + + org.eclipse.emf.cdo + security + 4.3.200 + + + + org.eclipse.osgi.compatibility + state + 1.1.0 + jar + + + + org.eclipse.net4j + tcp + 4.1.500 + jar + + + + org.eclipse.ocl + uml + 5.2.200 + jar + + + + org.eclipse.xtext + util + 2.12.0 + jar + + + + org.eclipse.net4j + util + 3.7.0 + jar + + + + org.eclipse.emf.ecore + xmi + 2.13.0 + jar + + + + org.eclipse + xtext + 2.12.0 + jar + + + + + + + src/main/java + + + + org.apache.maven.plugins + maven-compiler-plugin + 2.3.2 + + 1.8 + 1.8 + ${project.build.sourceEncoding} + + + + + org.modelio + modelio-maven-plugin + 4.1.0.00 + + + ModuleValidation + validate + + module-validation + + + + ResourceManagement + generate-resources + + module-configuration + + + + + ${project.basedir}/src/main/conf/module.xml + src/main/java + + + + + + org.apache.maven.plugins + maven-dependency-plugin + 2.4 + + ${project.basedir}/target/lib + false + false + true + provided + + + + copy-dependencies + package + + copy-dependencies + + + + + + + + org.apache.maven.plugins + maven-assembly-plugin + 2.3 + + ${project.build.sourceEncoding} + + assembly.xml + + ${project.name}_${project.version} + false + false + + + + make-assembly + package + + single + + + + + + + + org.apache.maven.plugins + maven-antrun-plugin + 1.7 + + + rename + package + + + + + + + + run + + + + + + + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + org.apache.maven.plugins + maven-dependency-plugin + [1.0.0,) + + copy-dependencies + + + + + + + + + org.modelio + + modelio-maven-plugin + + + [4.1.0.00,) + + + + module-validation + + + module-configuration + + + + + + + + + + + + + + + Modelio Module for designing the Cloud Application Modelling and Execution Language (CAMEL). For more information about CAMEL see http://camel-dsl.org/ + diff --git a/src/main/conf/module.properties b/src/main/conf/module.properties index 25524aa0..b6f297f5 100644 --- a/src/main/conf/module.properties +++ b/src/main/conf/module.properties @@ -59,8 +59,6 @@ command.Scalability_Model.label=Scalability Model command.Scalability_Model.tooltip=Create a Scalability Model command.Scalability_Model_diagram.label=Scalability Model diagram command.Scalability_Model_diagram.tooltip=Create a Scalabilty Model diagram -command.Schedule.label=Schedule -command.Schedule.tooltip=Create a Schedule command.Security_Model.label=Security Model command.Security_Model.tooltip=Create a Security Model command.Security_Model_diagram.label=Security Model diagram diff --git a/src/main/conf/module.xml b/src/main/conf/module.xml index 449edc43..ffeb0257 100644 --- a/src/main/conf/module.xml +++ b/src/main/conf/module.xml @@ -2,160 +2,55 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + - - - - + + + + + + + + + + + - - - - - - + - - - - - + - - - - - - - - + + + + - - - - - - - - - + - + + + + + - - - - - - - - - - + + + + + + + @@ -193,7 +88,7 @@ - + @@ -2980,6 +2875,7 @@ + diff --git a/src/main/conf/res/generated/patterns/framework.umlt b/src/main/conf/res/generated/patterns/framework.umlt index 2089b54512af3c26451a6fa2dc97d12a151b8c76..4fb52dc1b75336b0807eb954fb212576e480947b 100644 GIT binary patch delta 3810 zcmV<84ju8nF1;=dP)h>@6aWYa2mr=(&#?_C0RzT#&yzR-9)DLn8;;k;QEIi65_{LG zRjX)YwpK%}5VN%jF(dXYjnPoV-aEBtji9AskJ{Uhid}nai+_Kg_u~D(m+x~f&Uw!H zJXh!Hs|&hAOh-UQMn=%%^&L#`UlJl9CUEm~5OZ;}wSz(3#N4gCyzD$(;bKr1cQ?V&GyD_;r>n7s%>w21u#yTTEfHazu+q#xXbpj2 zVkNF?zXmlsSl`MCyNX!@MZ-C~$0uFkpVXbU}!9)$b49x(R|G={g_iNo~gl*EvmUqaJj0m|ahmqgU)&2f~J&-n6 zpEU=vLULcs--BLZuZJVxi2u?+MgiXmx~wn_oQqY2cleUH>GLhQxmL zz`HG7zJFtR>xDl6UIqkeb}2R=*~#4KiC@KV-;}YuJz4#EiDX#Dowx>qx|-xKslJqV zTr6IG!Ol=GUgoph7X8Rw^6icdIa+;t#3Ocd|F%j^(HqbI<`3!3#EZ_`!4J1RI`o(6 z$lQPj9b!^{^t-C%w`hG;aqG#ng6kgo8_Awybbs#7`uXR;4BvLf2kj~;eflIRf;Hx0 z^z5ga#RX=ix?<%kUZq5XQw?P*M*ZvTEh>Qxapv2}th=uZJDXj8q3tE0-8R8O8Bv!PY2p)&?^~R zB7c9i=L_WhB>0k%O?)qn=}0{`V*TJBMc<)&B^m{GauholJ;93p+LKdKY&KMQF*Tpl zLv>P%$pp&6@F*9zgaF$0&_zBnX`UFoD^iCg-u?2BRWPr5-hJV6D zEsf%g)Z6}UK&)|}TuERieZBrde?E4DGYE?&euXz0+SODi)oxv8M7gU{&zB@fuvNqI zg1p(NGsqDkPD7bZ{A3UYmu)|l*ZCyRS|qk_B?FbnTZ_c(h}C7`wqWsC2I&?}G$I2m zdGchNjQ#fZ0Y-xqtO6m9)p){||9^$}{*)>U>Mj$PJSc`wdMF8nt4XIgE$-p5?@43B z%cB@O|Jj-QHpI4z-h4#Q6Qc0-skRez>x=I^RYt2wFS&m#-3y6EJ+?f&c-FLSyC_T1 z>(toQ84m`S_6`CXul+1hW4q3TS$eJjgqHfLVFRwIQ}P@YN8;bn8<+*eu75qDFUPZI zje2nG&m0l3PkPW|ynqpr2;e()#LG@|)9jEI^TbohnIluR0p_ENaUE1mDNkGkpBVz0 zU}Q0Gn<*+onH^%0AX+deQum@pD*hg>?^#NnM9xeVDAG&9F%qSbc#@6XOPJcp7urHOVrt@fwajAzk5q1}C*0S(?bc}v$vIyj{V{d7X zG7~QvUo~E2=ZeFco7&YQQ#O7Ln=za1uw<|_NlEMB?bhr|2bnDO1n;hvVVk+Va^f~m>|U( z=vwEwzAsIaj~J)BMNPA5!bh;Ws;Qs zYXM4C%9z^Kx*5%JR%oiGsnxnHfnnywQV%uSiE{ja!i9>Ld1Jm?cnkWzL*rPI#)++YV zny5Xi1x#}%F|lC+EnY^#Zu__yN0JH1J@oQJx0#@uwvLVF)WRc& zxOmvCT>U9@D5p0hvrxoSOg%1C*Cy-w!;&WoAYbKiSY|R$g~*p*HK*D_itjeAqSFJd zHM_PUi8o5OlYd&ea@~ST%J-f&!H^$5n@=wh&kU<3Y}-I-s>>j+r@@!y<(pNSCbZuC z$wld7WD^Z1@gs9UH*;2!1trAkE}!Wr7H`#TYG<4+6C_0+oVY$ zi#HzoAbzk9*OsyFFFDG<6w-9J+hvax5lQk8(~D6HSRWlc@fRx%O1%(3Ekvods_8#X z%NN8OrhS)B9v}1P4t%d3owWfo-PlTC7|SbbI?z(#p*-J4oPeiUE4lTz+KjZv`qK5M zGJmfDh9(xAlFgOoxs6WqH@3GW3Q|-o{p=^c16NgDJI2g#zEnd7Ev_Bw);(E+!wqZE z6vF}b1&w=VoiM~+6vl?@%tCxHKh4eD`GX4G;S>RFo&m~)tC(AFueS#JJ~9~tCM6od zlouhIwih8*Wg0QhIn3+%P7E1tsxTTebbqkXhY4P@G1}heZKj$tH}X3Rc&Xi}1m>6p zy-2rlj_Am1n??!U@#UYRKHXPuDz)maWH|AvS_?)gMuPVC-`g2&?4l?=PIhIuKO64tl0$zgb`L>+;EdINp8vP^+WT=&_U7H~1y6%^@G&9MM(mP+MU% zV%crAvAA-sUTV52l1xDa*;xBafW_fL-A`3%Ut3OS%Ga#&Wx-;9xk4VO&ZJ(%&Va)(7SMRNiJ7dD#XMfO5?LtVk zc_5J>3}X^Nwm-Kphq8856Rv5f79m z#atY}2c<$dTOIMv$K-71N{WkMft9L^JuOcZf%3yE$*2DXu!D_}KfYh03amx4xbn2X3n1yIV z$}49kgF#o0hh#!w)u+6yXUXlvxu&y1vf(+?o^R8u|FE8CE33OAgnuA|W-T`=xItn*mMYAT~>*9iC|dIo8$PC$}Ht{X;L+H3CRWKdu-w zv*mW{wIxs91*ZCXwSOR+puVk0A4gvd(g*4*6VbuKIXk$_YdT>;AQ)*J9Ic&w=F~@Reu^IvBYya3K4@Lc+LB24Mk@N8l}hk1qpmMo+kaL1Sw#npbY*kYmoCHo zvY3SDqx!w^JMSvAx%`p+0;~n35iOEK<1V#i z95$t~HEC)`%71{fk2OU)?wfWgr((6ALQ;9J=~GTPtiZ%Jt3A!W9!g?|jdtJJ&8hscV=>(t<`%Hj5HGgf!xb%mQz)Hs3_`YsSecVAWuY!D>&J9I%!DZ@V_MZ-?x8B@c-)n$%VQglDq%L2>+JF-%dvLulo;BO9u!& zdJ48%4if+Xdkz2qP)h>@6aWYa2mr=(&$G=Bx&{NrbkCED7B>mTbk9^hdJ48%lgbt_ Y1IBdEll>MO0l$+O7as@6aWYa2mr!fo3RZj0RzHbo0B*J9)DF_6OPx$2ZEG>AdGG) zDG3F1q*4x~2BW26IC6|m!4VDwMt4s-B?c(S=#XxHAR`3nMg{)2woT;Cm-RGzA1`j+fS`p$5hWEWI%1+a5v7@d&>DbH zVkN$7uLeCkSl`M8zl>P}MfIg|?9hQnzCJAcAyR-aR5m3Bz{$zlBRK~c9* z5mHDKa7Y^n(N-+^&P)Tk2+aVMe0^T3B<>SH%xfUH>GLg~WdG zAh<1EynkhV?M2uJT?7Pbb}2R=+RI$)NnFP8T$i!FK3@HKfnr?7AG-#EyPD)Ls6Ur? zoG)H{#?8@>_%h#N>s}8>=y^;6KHs4QS70g@w z*zc@8?Nn!^3yh5%it1QqXzB`fwCTPo>}+=Vg>jICb=w9DXGC3`r%6mSzHN=Qdg%J0 ziGSkdt}lr1qtFW`c8T3I=0o+^i1qz{6n%&8lxP&#%TaD)^@J+=YmZOJaM>`C#ngN* z57kL6W)m1I{|g#@D1%o)q`+I`pKm z6XelMo&RjleH~)o!E8QY;0;mu@)xb`*@7O(v@QDdvlgyr#E0T?6wQ^OWgQ>WxPDuE)rWiT)ch<{ys#86J) z$Qt$F+?zQBa7=p8VZA^Rkx0;6b>xdqbJOgQ7W2dtshLAlwE>pH^Kl(?O(}0&1iu*) zmSAKtZ`6WPX2Ut zr6vnUQL`jSe;}%^3qha0O0{g!PQ5kW`!K%GSg{{q;Qw>RE|hMa5`S%l7{i_>BrrpZ zH89~X%Okz~V%dNdFlYFqMrj$h%7uBGhRMg$5vXlbQ`yRDH>bshQjaK%gGF55u9its z`mY5TbtzklQ2G0o>W6NiT7}=x&Cp@(@aM>utu;=tPk;zeC!L$0X?@Da$rF+~Gw{=^ z#o*35-41OQ4@^)~ntyqcPmr7aLpfLJbT=MmfpYhk1Y{lTa5fTb2i|#63?4L8n!laG z+h}GB2iHG2B&*AxbDS?U8a2mcZ#0jB9mKc7m|PZ_B@%}aXh-JhwKOqay0HgkV69c$ zgEcV+HVe4sc4A_~3W}5}QLIpse^wXn`SUwYtoI#}dz09CAAg0#p5clD>7GEI6U~pK zyf({JjAY56ke>!766yDXV`@#p;?-b{m|MJzr2W=WGoCaPn0w&mhiNmxH2pX-no|pp z9OC9>w|4cX)S;T*kjg@nOfmPkP+ys>>kmsED}a5K$KjdDycMFKf7P653oE|exQtE@ zw9)L^f+k)o-G5AK>B@BrDJkE1(ga7n|71SBL^3n1ny_UHqpdE3zM6(yl$UQ-X`0Y^ z3nUk%kC9I_9LJB$f!xg5NEeilCp-M6qY(VzyUhLmLGo$wAzLmMkN5=#2-Z(m>gh&> z;>0Q=VgQ19-SqLCGbLARM&QvgE44s6{Z0{OqxpM3zki1kD%_3oQ}xfvGk6!*r>0!< z9L^NVlg8V5S#MS1q70u_z^-nPCB(qELy_FJH|Cs!hIsW`7U*=o=jeN0_{W| z)VZ)sY2WdtrfP+#USl%gVPR4kOuT?L=jrFrL>l0T9>P7ZVp5|7UsX|+zRn|(?$<4r z5_eQt6@SV*9H6fHBwG&(>PfL0CdTO*7n!LL`D9Q?0VQoaJ=C9ni5@O7mL2$~FewO3 zJ1|mMo_?j^Z@{f6zBUiWVn#H&4divtCuhPN=VB~hXoz6v&k{iQY}=V6Ay3?dS8G5BCpa-CuH4fhlC^Za2#wE22^qA*Sb}7VtiLMB*e@DDLGY&u_z=<*EECfvn5db_KkSO^*M z2)4Wk*|fC?wJy_$dB$m8&wp&lcwL3nn17*%kKRx4nvK!+K5H}8oVk|YULZ*CL?y7q zEa*kLjdMmvUfDKE>W(k}9QEnGw5-&syOiM~sA?@3r5Fi0IDBhovbB$%#7>bf_4(~; zI*8<6);(H!T$c~pMe^6H4QKik$7;~YtT3r@MJYvsgQAHp(7fM4`)_wa7!A2^(tm2% zn@n*ShehV);bnQ*gv{l^<)G$eX2no4#Lw!@{Rgk)2$2Uh$AKgtj!e|DdfhV)?q;>q z@Uao8zxnpuS-b;D&F83RYWAD$rGPHK?E9mg7x%R~DvcgGi+@F2fZ81M5zP@@#g4TV zMk6*Y#KQC+Ay&o2sq$2(ervH2tbgD67DM$XZG~9e8J^@*XVx;r{=frwRPW=)(6`Lx zB7l@vvZ_cSJ@8pVOaU%f#l!2m>>-raGME~g6}}&DDk2vt{2FiQ*F|AIoa8=CQiaSv z!cjE`6U!u7DJ-%whPC?BHopOewN7_t+xij9c(m;imocsxVC3q(mGP&{_n zHKe?J!)!3<%6Xq$IIQ}FkL@(Mog~+ER#-MXXWH|1di5W+vutH`SAV21bkMBjTBW=s zYWkIc>C`rV!UFe^9W-d3%CV;6(+Llb`uEFkg}>i9>cw#xxY84ytUS7Jvr#I2Ns{w* z-!nK7r+e(u9QuATaxmScSMuvsM0+!^NdnAnWwgyZ4Ul77-FbBLA>KdqLR}+(tn|Z* zK{I=9w_aQFN#?Wl?@Gl+DKOAi`n1%Jh#p8n(+}Z~G^Pcs^sbJwQG!N>;S=_b|kyQP0jL16h z^izt(701c_rd+0mF091CgZZF!aT_aQk!$JbGd60WgN(YqY=3Rn$4@IdXdhQLM}6)x z+$)PYZf^fnF#;{A>t)Wu`Ok0p)ZCEE@3J9IZjRF4Ox9KJ$h8@T&8)lSc=o4*g{P&C z7q<%Ti^4>&Wbbg=x*wQCi6lR4;n^fAY(^ct8gWv;Gk)uBg*LZ8s$Y<;fGna#YG~Z0 zmYmbJG`1#9?SD`ic>1BHNXLECKIKHb_G3sY-xWj3F{d?z#CEl(+1H~lNtK zvW4!vKUU=X0HR90yL^b8B^ccGJNR7ick&d)v-q)5$Qn=vl^?jyL8@jAY*+e#n5-^-^UAE$FoSzWLi0?-AM zk=rS7_mtlS04R6>e?1W~J>Y*y@V{^WlHmW<|C0-K!KAnUjS>AVi@%+m`d{}SP)i30 zy8~~5Toeuf0DBGq08mQ<1QY-W2nYbeUYoPb54r{e!d{z`i552r!d{zHy8~~5T$9Nb ZFayF~o0I$&8v($R7#AM~dlmoy0029{ZThe model element must be stereotyped by a 'CamelDesigner' module stereotype. *
In the other case the method will return null. * - * * @param e A model element * @return the right proxy or null. */ @@ -248,7 +247,6 @@ public static final Object instantiate(final ModelElement e) { * The stereotype must be one of the 'CamelDesigner' module stereotypes. * In the other case the method will return null. * - * * @param e A model element. * @param stName A stereotype name. * @return the right proxy or null. @@ -273,10 +271,9 @@ public final void setStereotype(final String stName) { @Override public final Object visitGeneralClass(GeneralClass obj) { switch (this.stName) { - default: - break; + default: + break; } - return IDefaultModelVisitor.super.visitGeneralClass(obj); } @@ -284,10 +281,9 @@ public final Object visitGeneralClass(GeneralClass obj) { @Override public final Object visitAbstractDiagram(AbstractDiagram obj) { switch (this.stName) { - default: - break; + default: + break; } - return IDefaultInfrastructureVisitor.super.visitAbstractDiagram(obj); } @@ -295,12 +291,11 @@ public final Object visitAbstractDiagram(AbstractDiagram obj) { @Override public final Object visitDependency(Dependency obj) { switch (this.stName) { - case fr.softeam.cameldesigner.api.camelcore.infrastructure.dependency.Annotation.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.camelcore.infrastructure.dependency.Annotation.instantiate(obj); - case fr.softeam.cameldesigner.api.camelcore.infrastructure.dependency.PropertyDependency.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.camelcore.infrastructure.dependency.PropertyDependency.instantiate(obj); - default: - break; + case fr.softeam.cameldesigner.api.camelcore.infrastructure.dependency.Annotation.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.camelcore.infrastructure.dependency.Annotation.instantiate(obj); + case fr.softeam.cameldesigner.api.camelcore.infrastructure.dependency.PropertyDependency.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.camelcore.infrastructure.dependency.PropertyDependency.instantiate(obj); + default: + break; } - return IDefaultInfrastructureVisitor.super.visitDependency(obj); } @@ -308,15 +303,14 @@ public final Object visitDependency(Dependency obj) { @Override public final Object visitComponent(Component obj) { switch (this.stName) { - case fr.softeam.cameldesigner.api.deploymentmodel.standard.component.Container.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentmodel.standard.component.Container.instantiate(obj); - case fr.softeam.cameldesigner.api.deploymentmodel.standard.component.PaaS.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentmodel.standard.component.PaaS.instantiate(obj); - case fr.softeam.cameldesigner.api.deploymentmodel.standard.component.SoftwareComponent.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentmodel.standard.component.SoftwareComponent.instantiate(obj); - case fr.softeam.cameldesigner.api.deploymentmodel.standard.component.VM.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentmodel.standard.component.VM.instantiate(obj); - case fr.softeam.cameldesigner.api.metricmodel.standard.component.Sensor.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metricmodel.standard.component.Sensor.instantiate(obj); - default: - break; + case fr.softeam.cameldesigner.api.deploymentmodel.standard.component.Container.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentmodel.standard.component.Container.instantiate(obj); + case fr.softeam.cameldesigner.api.deploymentmodel.standard.component.PaaS.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentmodel.standard.component.PaaS.instantiate(obj); + case fr.softeam.cameldesigner.api.deploymentmodel.standard.component.SoftwareComponent.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentmodel.standard.component.SoftwareComponent.instantiate(obj); + case fr.softeam.cameldesigner.api.deploymentmodel.standard.component.VM.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentmodel.standard.component.VM.instantiate(obj); + case fr.softeam.cameldesigner.api.metricmodel.standard.component.Sensor.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metricmodel.standard.component.Sensor.instantiate(obj); + default: + break; } - return IDefaultModelVisitor.super.visitComponent(obj); } @@ -324,23 +318,22 @@ public final Object visitComponent(Component obj) { @Override public final Object visitInstance(Instance obj) { switch (this.stName) { - case fr.softeam.cameldesigner.api.camelcore.standard.instance.FeatureInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.camelcore.standard.instance.FeatureInstance.instantiate(obj); - case fr.softeam.cameldesigner.api.datamodel.standard.instance.DataInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.datamodel.standard.instance.DataInstance.instantiate(obj); - case fr.softeam.cameldesigner.api.datamodel.standard.instance.DataSourceInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.datamodel.standard.instance.DataSourceInstance.instantiate(obj); - case fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.instance.ContainerInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.instance.ContainerInstance.instantiate(obj); - case fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.instance.PaaSInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.instance.PaaSInstance.instantiate(obj); - case fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.instance.SoftwareComponentInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.instance.SoftwareComponentInstance.instantiate(obj); - case fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.instance.VMInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.instance.VMInstance.instantiate(obj); - case fr.softeam.cameldesigner.api.executionmodel.standard.instance.ActionInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.executionmodel.standard.instance.ActionInstance.instantiate(obj); - case fr.softeam.cameldesigner.api.metadatamodel.standard.instance.MmsConceptInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metadatamodel.standard.instance.MmsConceptInstance.instantiate(obj); - case fr.softeam.cameldesigner.api.metricmodel.standard.instance.MetricInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metricmodel.standard.instance.MetricInstance.instantiate(obj); - case fr.softeam.cameldesigner.api.scalabilitymodel.standard.instance.FunctionalEventInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.scalabilitymodel.standard.instance.FunctionalEventInstance.instantiate(obj); - case fr.softeam.cameldesigner.api.scalabilitymodel.standard.instance.NonFunctionalEventInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.scalabilitymodel.standard.instance.NonFunctionalEventInstance.instantiate(obj); - case fr.softeam.cameldesigner.api.securitymodel.standard.instance.SecurityMetricInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.securitymodel.standard.instance.SecurityMetricInstance.instantiate(obj); - default: - break; + case fr.softeam.cameldesigner.api.camelcore.standard.instance.FeatureInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.camelcore.standard.instance.FeatureInstance.instantiate(obj); + case fr.softeam.cameldesigner.api.datamodel.standard.instance.DataInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.datamodel.standard.instance.DataInstance.instantiate(obj); + case fr.softeam.cameldesigner.api.datamodel.standard.instance.DataSourceInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.datamodel.standard.instance.DataSourceInstance.instantiate(obj); + case fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.instance.ContainerInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.instance.ContainerInstance.instantiate(obj); + case fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.instance.PaaSInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.instance.PaaSInstance.instantiate(obj); + case fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.instance.SoftwareComponentInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.instance.SoftwareComponentInstance.instantiate(obj); + case fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.instance.VMInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.instance.VMInstance.instantiate(obj); + case fr.softeam.cameldesigner.api.executionmodel.standard.instance.ActionInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.executionmodel.standard.instance.ActionInstance.instantiate(obj); + case fr.softeam.cameldesigner.api.metadatamodel.standard.instance.MmsConceptInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metadatamodel.standard.instance.MmsConceptInstance.instantiate(obj); + case fr.softeam.cameldesigner.api.metricmodel.standard.instance.MetricInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metricmodel.standard.instance.MetricInstance.instantiate(obj); + case fr.softeam.cameldesigner.api.scalabilitymodel.standard.instance.FunctionalEventInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.scalabilitymodel.standard.instance.FunctionalEventInstance.instantiate(obj); + case fr.softeam.cameldesigner.api.scalabilitymodel.standard.instance.NonFunctionalEventInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.scalabilitymodel.standard.instance.NonFunctionalEventInstance.instantiate(obj); + case fr.softeam.cameldesigner.api.securitymodel.standard.instance.SecurityMetricInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.securitymodel.standard.instance.SecurityMetricInstance.instantiate(obj); + default: + break; } - return IDefaultModelVisitor.super.visitInstance(obj); } @@ -348,11 +341,10 @@ public final Object visitInstance(Instance obj) { @Override public final Object visitBindableInstance(BindableInstance obj) { switch (this.stName) { - case fr.softeam.cameldesigner.api.datamodel.standard.bindableinstance.DataInstanceBindableInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.datamodel.standard.bindableinstance.DataInstanceBindableInstance.instantiate(obj); - default: - break; + case fr.softeam.cameldesigner.api.datamodel.standard.bindableinstance.DataInstanceBindableInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.datamodel.standard.bindableinstance.DataInstanceBindableInstance.instantiate(obj); + default: + break; } - return IDefaultModelVisitor.super.visitBindableInstance(obj); } @@ -360,10 +352,9 @@ public final Object visitBindableInstance(BindableInstance obj) { @Override public final Object visitClassifier(Classifier obj) { switch (this.stName) { - default: - break; + default: + break; } - return IDefaultModelVisitor.super.visitClassifier(obj); } @@ -371,89 +362,88 @@ public final Object visitClassifier(Classifier obj) { @Override public final Object visitClass(Class obj) { switch (this.stName) { - case fr.softeam.cameldesigner.api.camelcore.standard.class_.Application.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.camelcore.standard.class_.Application.instantiate(obj); - case fr.softeam.cameldesigner.api.camelcore.standard.class_.AttributeClass.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.camelcore.standard.class_.AttributeClass.instantiate(obj); - case fr.softeam.cameldesigner.api.camelcore.standard.class_.FeatureClass.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.camelcore.standard.class_.FeatureClass.instantiate(obj); - case fr.softeam.cameldesigner.api.camelcore.standard.class_.MeasurableAttributeClass.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.camelcore.standard.class_.MeasurableAttributeClass.instantiate(obj); - case fr.softeam.cameldesigner.api.camelcore.standard.class_.QualityAttributeClass.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.camelcore.standard.class_.QualityAttributeClass.instantiate(obj); - case fr.softeam.cameldesigner.api.datamodel.standard.class_.Data.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.datamodel.standard.class_.Data.instantiate(obj); - case fr.softeam.cameldesigner.api.datamodel.standard.class_.DataSource.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.datamodel.standard.class_.DataSource.instantiate(obj); - case fr.softeam.cameldesigner.api.deploymentmodel.standard.class_.RequirementSet.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentmodel.standard.class_.RequirementSet.instantiate(obj); - case fr.softeam.cameldesigner.api.executionmodel.standard.class_.ApplicationMeasurement.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.executionmodel.standard.class_.ApplicationMeasurement.instantiate(obj); - case fr.softeam.cameldesigner.api.executionmodel.standard.class_.Cause.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.executionmodel.standard.class_.Cause.instantiate(obj); - case fr.softeam.cameldesigner.api.executionmodel.standard.class_.CommunicationMeasurement.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.executionmodel.standard.class_.CommunicationMeasurement.instantiate(obj); - case fr.softeam.cameldesigner.api.executionmodel.standard.class_.ContainerMeasurement.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.executionmodel.standard.class_.ContainerMeasurement.instantiate(obj); - case fr.softeam.cameldesigner.api.executionmodel.standard.class_.DataMeasurement.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.executionmodel.standard.class_.DataMeasurement.instantiate(obj); - case fr.softeam.cameldesigner.api.executionmodel.standard.class_.HistoryInfo.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.executionmodel.standard.class_.HistoryInfo.instantiate(obj); - case fr.softeam.cameldesigner.api.executionmodel.standard.class_.HistoryRecord.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.executionmodel.standard.class_.HistoryRecord.instantiate(obj); - case fr.softeam.cameldesigner.api.executionmodel.standard.class_.PaaSMeasurement.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.executionmodel.standard.class_.PaaSMeasurement.instantiate(obj); - case fr.softeam.cameldesigner.api.executionmodel.standard.class_.RuleTrigger.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.executionmodel.standard.class_.RuleTrigger.instantiate(obj); - case fr.softeam.cameldesigner.api.executionmodel.standard.class_.SLOViolation.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.executionmodel.standard.class_.SLOViolation.instantiate(obj); - case fr.softeam.cameldesigner.api.executionmodel.standard.class_.SoftwareComponentMeasurement.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.executionmodel.standard.class_.SoftwareComponentMeasurement.instantiate(obj); - case fr.softeam.cameldesigner.api.executionmodel.standard.class_.VMMeasurement.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.executionmodel.standard.class_.VMMeasurement.instantiate(obj); - case fr.softeam.cameldesigner.api.metadatamodel.standard.class_.MmsConcept.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metadatamodel.standard.class_.MmsConcept.instantiate(obj); - case fr.softeam.cameldesigner.api.metricmodel.standard.class_.AttributeContext.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metricmodel.standard.class_.AttributeContext.instantiate(obj); - case fr.softeam.cameldesigner.api.metricmodel.standard.class_.CompositeMetric.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metricmodel.standard.class_.CompositeMetric.instantiate(obj); - case fr.softeam.cameldesigner.api.metricmodel.standard.class_.CompositeMetricContext.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metricmodel.standard.class_.CompositeMetricContext.instantiate(obj); - case fr.softeam.cameldesigner.api.metricmodel.standard.class_.Function.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metricmodel.standard.class_.Function.instantiate(obj); - case fr.softeam.cameldesigner.api.metricmodel.standard.class_.MetricObjectBinding.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metricmodel.standard.class_.MetricObjectBinding.instantiate(obj); - case fr.softeam.cameldesigner.api.metricmodel.standard.class_.MetricTemplate.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metricmodel.standard.class_.MetricTemplate.instantiate(obj); - case fr.softeam.cameldesigner.api.metricmodel.standard.class_.MetricVariable.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metricmodel.standard.class_.MetricVariable.instantiate(obj); - case fr.softeam.cameldesigner.api.metricmodel.standard.class_.ObjectContext.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metricmodel.standard.class_.ObjectContext.instantiate(obj); - case fr.softeam.cameldesigner.api.metricmodel.standard.class_.RawMetric.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metricmodel.standard.class_.RawMetric.instantiate(obj); - case fr.softeam.cameldesigner.api.metricmodel.standard.class_.RawMetricContext.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metricmodel.standard.class_.RawMetricContext.instantiate(obj); - case fr.softeam.cameldesigner.api.metricmodel.standard.class_.Schedule.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metricmodel.standard.class_.Schedule.instantiate(obj); - case fr.softeam.cameldesigner.api.metricmodel.standard.class_.Window.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metricmodel.standard.class_.Window.instantiate(obj); - case fr.softeam.cameldesigner.api.organisationmodel.standard.class_.CloudCredentials.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.organisationmodel.standard.class_.CloudCredentials.instantiate(obj); - case fr.softeam.cameldesigner.api.organisationmodel.standard.class_.CloudProvider.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.organisationmodel.standard.class_.CloudProvider.instantiate(obj); - case fr.softeam.cameldesigner.api.organisationmodel.standard.class_.DataResourceFilter.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.organisationmodel.standard.class_.DataResourceFilter.instantiate(obj); - case fr.softeam.cameldesigner.api.organisationmodel.standard.class_.Entity.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.organisationmodel.standard.class_.Entity.instantiate(obj); - case fr.softeam.cameldesigner.api.organisationmodel.standard.class_.ExternalIdentifier.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.organisationmodel.standard.class_.ExternalIdentifier.instantiate(obj); - case fr.softeam.cameldesigner.api.organisationmodel.standard.class_.ModelResourceFilter.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.organisationmodel.standard.class_.ModelResourceFilter.instantiate(obj); - case fr.softeam.cameldesigner.api.organisationmodel.standard.class_.Organisation.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.organisationmodel.standard.class_.Organisation.instantiate(obj); - case fr.softeam.cameldesigner.api.organisationmodel.standard.class_.Permission.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.organisationmodel.standard.class_.Permission.instantiate(obj); - case fr.softeam.cameldesigner.api.organisationmodel.standard.class_.PlatformCredentials.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.organisationmodel.standard.class_.PlatformCredentials.instantiate(obj); - case fr.softeam.cameldesigner.api.organisationmodel.standard.class_.Role.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.organisationmodel.standard.class_.Role.instantiate(obj); - case fr.softeam.cameldesigner.api.organisationmodel.standard.class_.RoleAssignment.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.organisationmodel.standard.class_.RoleAssignment.instantiate(obj); - case fr.softeam.cameldesigner.api.organisationmodel.standard.class_.ServiceResourceFilter.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.organisationmodel.standard.class_.ServiceResourceFilter.instantiate(obj); - case fr.softeam.cameldesigner.api.organisationmodel.standard.class_.SoftwareComponentResourceFilter.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.organisationmodel.standard.class_.SoftwareComponentResourceFilter.instantiate(obj); - case fr.softeam.cameldesigner.api.organisationmodel.standard.class_.User.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.organisationmodel.standard.class_.User.instantiate(obj); - case fr.softeam.cameldesigner.api.organisationmodel.standard.class_.UserGroup.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.organisationmodel.standard.class_.UserGroup.instantiate(obj); - case fr.softeam.cameldesigner.api.requirementmodel.standard.class_.HorizontalScaleRequirement.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.requirementmodel.standard.class_.HorizontalScaleRequirement.instantiate(obj); - case fr.softeam.cameldesigner.api.requirementmodel.standard.class_.LocationRequirement.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.requirementmodel.standard.class_.LocationRequirement.instantiate(obj); - case fr.softeam.cameldesigner.api.requirementmodel.standard.class_.OSRequirement.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.requirementmodel.standard.class_.OSRequirement.instantiate(obj); - case fr.softeam.cameldesigner.api.requirementmodel.standard.class_.OptimisationRequirement.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.requirementmodel.standard.class_.OptimisationRequirement.instantiate(obj); - case fr.softeam.cameldesigner.api.requirementmodel.standard.class_.PaaSRequirement.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.requirementmodel.standard.class_.PaaSRequirement.instantiate(obj); - case fr.softeam.cameldesigner.api.requirementmodel.standard.class_.ProviderRequirement.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.requirementmodel.standard.class_.ProviderRequirement.instantiate(obj); - case fr.softeam.cameldesigner.api.requirementmodel.standard.class_.ResourceRequirement.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.requirementmodel.standard.class_.ResourceRequirement.instantiate(obj); - case fr.softeam.cameldesigner.api.requirementmodel.standard.class_.SecurityRequirement.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.requirementmodel.standard.class_.SecurityRequirement.instantiate(obj); - case fr.softeam.cameldesigner.api.requirementmodel.standard.class_.ServiceLevelObjective.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.requirementmodel.standard.class_.ServiceLevelObjective.instantiate(obj); - case fr.softeam.cameldesigner.api.requirementmodel.standard.class_.VerticalScaleRequirement.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.requirementmodel.standard.class_.VerticalScaleRequirement.instantiate(obj); - case fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.BinaryEventPattern.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.BinaryEventPattern.instantiate(obj); - case fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.FunctionalEvent.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.FunctionalEvent.instantiate(obj); - case fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.HorizontalScalingAction.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.HorizontalScalingAction.instantiate(obj); - case fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.NonFunctionalEvent.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.NonFunctionalEvent.instantiate(obj); - case fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.ScalabilityRule.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.ScalabilityRule.instantiate(obj); - case fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.Timer.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.Timer.instantiate(obj); - case fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.UnaryEventPattern.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.UnaryEventPattern.instantiate(obj); - case fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.VerticalScalingAction.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.VerticalScalingAction.instantiate(obj); - case fr.softeam.cameldesigner.api.securitymodel.standard.class_.Certifiable.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.securitymodel.standard.class_.Certifiable.instantiate(obj); - case fr.softeam.cameldesigner.api.securitymodel.standard.class_.CompositeSecurityMetric.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.securitymodel.standard.class_.CompositeSecurityMetric.instantiate(obj); - case fr.softeam.cameldesigner.api.securitymodel.standard.class_.RawSecurityMetric.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.securitymodel.standard.class_.RawSecurityMetric.instantiate(obj); - case fr.softeam.cameldesigner.api.securitymodel.standard.class_.SecurityAttribute.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.securitymodel.standard.class_.SecurityAttribute.instantiate(obj); - case fr.softeam.cameldesigner.api.securitymodel.standard.class_.SecurityControl.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.securitymodel.standard.class_.SecurityControl.instantiate(obj); - case fr.softeam.cameldesigner.api.securitymodel.standard.class_.SecurityDomain.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.securitymodel.standard.class_.SecurityDomain.instantiate(obj); - case fr.softeam.cameldesigner.api.securitymodel.standard.class_.SecuritySLO.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.securitymodel.standard.class_.SecuritySLO.instantiate(obj); - case fr.softeam.cameldesigner.api.typemodel.standard.class_.Limit.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.typemodel.standard.class_.Limit.instantiate(obj); - case fr.softeam.cameldesigner.api.typemodel.standard.class_.StringValue.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.typemodel.standard.class_.StringValue.instantiate(obj); - case fr.softeam.cameldesigner.api.typemodel.standard.class_.BooleanValue.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.typemodel.standard.class_.BooleanValue.instantiate(obj); - case fr.softeam.cameldesigner.api.typemodel.standard.class_.IntValue.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.typemodel.standard.class_.IntValue.instantiate(obj); - case fr.softeam.cameldesigner.api.typemodel.standard.class_.FloatValue.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.typemodel.standard.class_.FloatValue.instantiate(obj); - case fr.softeam.cameldesigner.api.typemodel.standard.class_.DoubleValue.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.typemodel.standard.class_.DoubleValue.instantiate(obj); - default: - break; + case fr.softeam.cameldesigner.api.camelcore.standard.class_.Application.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.camelcore.standard.class_.Application.instantiate(obj); + case fr.softeam.cameldesigner.api.camelcore.standard.class_.AttributeClass.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.camelcore.standard.class_.AttributeClass.instantiate(obj); + case fr.softeam.cameldesigner.api.camelcore.standard.class_.FeatureClass.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.camelcore.standard.class_.FeatureClass.instantiate(obj); + case fr.softeam.cameldesigner.api.camelcore.standard.class_.MeasurableAttributeClass.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.camelcore.standard.class_.MeasurableAttributeClass.instantiate(obj); + case fr.softeam.cameldesigner.api.camelcore.standard.class_.QualityAttributeClass.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.camelcore.standard.class_.QualityAttributeClass.instantiate(obj); + case fr.softeam.cameldesigner.api.datamodel.standard.class_.Data.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.datamodel.standard.class_.Data.instantiate(obj); + case fr.softeam.cameldesigner.api.datamodel.standard.class_.DataSource.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.datamodel.standard.class_.DataSource.instantiate(obj); + case fr.softeam.cameldesigner.api.deploymentmodel.standard.class_.RequirementSet.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentmodel.standard.class_.RequirementSet.instantiate(obj); + case fr.softeam.cameldesigner.api.executionmodel.standard.class_.ApplicationMeasurement.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.executionmodel.standard.class_.ApplicationMeasurement.instantiate(obj); + case fr.softeam.cameldesigner.api.executionmodel.standard.class_.Cause.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.executionmodel.standard.class_.Cause.instantiate(obj); + case fr.softeam.cameldesigner.api.executionmodel.standard.class_.CommunicationMeasurement.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.executionmodel.standard.class_.CommunicationMeasurement.instantiate(obj); + case fr.softeam.cameldesigner.api.executionmodel.standard.class_.ContainerMeasurement.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.executionmodel.standard.class_.ContainerMeasurement.instantiate(obj); + case fr.softeam.cameldesigner.api.executionmodel.standard.class_.DataMeasurement.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.executionmodel.standard.class_.DataMeasurement.instantiate(obj); + case fr.softeam.cameldesigner.api.executionmodel.standard.class_.HistoryInfo.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.executionmodel.standard.class_.HistoryInfo.instantiate(obj); + case fr.softeam.cameldesigner.api.executionmodel.standard.class_.HistoryRecord.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.executionmodel.standard.class_.HistoryRecord.instantiate(obj); + case fr.softeam.cameldesigner.api.executionmodel.standard.class_.PaaSMeasurement.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.executionmodel.standard.class_.PaaSMeasurement.instantiate(obj); + case fr.softeam.cameldesigner.api.executionmodel.standard.class_.RuleTrigger.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.executionmodel.standard.class_.RuleTrigger.instantiate(obj); + case fr.softeam.cameldesigner.api.executionmodel.standard.class_.SLOViolation.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.executionmodel.standard.class_.SLOViolation.instantiate(obj); + case fr.softeam.cameldesigner.api.executionmodel.standard.class_.SoftwareComponentMeasurement.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.executionmodel.standard.class_.SoftwareComponentMeasurement.instantiate(obj); + case fr.softeam.cameldesigner.api.executionmodel.standard.class_.VMMeasurement.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.executionmodel.standard.class_.VMMeasurement.instantiate(obj); + case fr.softeam.cameldesigner.api.metadatamodel.standard.class_.MmsConcept.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metadatamodel.standard.class_.MmsConcept.instantiate(obj); + case fr.softeam.cameldesigner.api.metricmodel.standard.class_.AttributeContext.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metricmodel.standard.class_.AttributeContext.instantiate(obj); + case fr.softeam.cameldesigner.api.metricmodel.standard.class_.CompositeMetric.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metricmodel.standard.class_.CompositeMetric.instantiate(obj); + case fr.softeam.cameldesigner.api.metricmodel.standard.class_.CompositeMetricContext.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metricmodel.standard.class_.CompositeMetricContext.instantiate(obj); + case fr.softeam.cameldesigner.api.metricmodel.standard.class_.Function.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metricmodel.standard.class_.Function.instantiate(obj); + case fr.softeam.cameldesigner.api.metricmodel.standard.class_.MetricObjectBinding.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metricmodel.standard.class_.MetricObjectBinding.instantiate(obj); + case fr.softeam.cameldesigner.api.metricmodel.standard.class_.MetricTemplate.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metricmodel.standard.class_.MetricTemplate.instantiate(obj); + case fr.softeam.cameldesigner.api.metricmodel.standard.class_.MetricVariable.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metricmodel.standard.class_.MetricVariable.instantiate(obj); + case fr.softeam.cameldesigner.api.metricmodel.standard.class_.ObjectContext.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metricmodel.standard.class_.ObjectContext.instantiate(obj); + case fr.softeam.cameldesigner.api.metricmodel.standard.class_.RawMetric.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metricmodel.standard.class_.RawMetric.instantiate(obj); + case fr.softeam.cameldesigner.api.metricmodel.standard.class_.RawMetricContext.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metricmodel.standard.class_.RawMetricContext.instantiate(obj); + case fr.softeam.cameldesigner.api.metricmodel.standard.class_.Schedule.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metricmodel.standard.class_.Schedule.instantiate(obj); + case fr.softeam.cameldesigner.api.metricmodel.standard.class_.Window.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metricmodel.standard.class_.Window.instantiate(obj); + case fr.softeam.cameldesigner.api.organisationmodel.standard.class_.CloudCredentials.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.organisationmodel.standard.class_.CloudCredentials.instantiate(obj); + case fr.softeam.cameldesigner.api.organisationmodel.standard.class_.CloudProvider.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.organisationmodel.standard.class_.CloudProvider.instantiate(obj); + case fr.softeam.cameldesigner.api.organisationmodel.standard.class_.DataResourceFilter.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.organisationmodel.standard.class_.DataResourceFilter.instantiate(obj); + case fr.softeam.cameldesigner.api.organisationmodel.standard.class_.Entity.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.organisationmodel.standard.class_.Entity.instantiate(obj); + case fr.softeam.cameldesigner.api.organisationmodel.standard.class_.ExternalIdentifier.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.organisationmodel.standard.class_.ExternalIdentifier.instantiate(obj); + case fr.softeam.cameldesigner.api.organisationmodel.standard.class_.ModelResourceFilter.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.organisationmodel.standard.class_.ModelResourceFilter.instantiate(obj); + case fr.softeam.cameldesigner.api.organisationmodel.standard.class_.Organisation.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.organisationmodel.standard.class_.Organisation.instantiate(obj); + case fr.softeam.cameldesigner.api.organisationmodel.standard.class_.Permission.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.organisationmodel.standard.class_.Permission.instantiate(obj); + case fr.softeam.cameldesigner.api.organisationmodel.standard.class_.PlatformCredentials.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.organisationmodel.standard.class_.PlatformCredentials.instantiate(obj); + case fr.softeam.cameldesigner.api.organisationmodel.standard.class_.Role.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.organisationmodel.standard.class_.Role.instantiate(obj); + case fr.softeam.cameldesigner.api.organisationmodel.standard.class_.RoleAssignment.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.organisationmodel.standard.class_.RoleAssignment.instantiate(obj); + case fr.softeam.cameldesigner.api.organisationmodel.standard.class_.ServiceResourceFilter.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.organisationmodel.standard.class_.ServiceResourceFilter.instantiate(obj); + case fr.softeam.cameldesigner.api.organisationmodel.standard.class_.SoftwareComponentResourceFilter.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.organisationmodel.standard.class_.SoftwareComponentResourceFilter.instantiate(obj); + case fr.softeam.cameldesigner.api.organisationmodel.standard.class_.User.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.organisationmodel.standard.class_.User.instantiate(obj); + case fr.softeam.cameldesigner.api.organisationmodel.standard.class_.UserGroup.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.organisationmodel.standard.class_.UserGroup.instantiate(obj); + case fr.softeam.cameldesigner.api.requirementmodel.standard.class_.HorizontalScaleRequirement.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.requirementmodel.standard.class_.HorizontalScaleRequirement.instantiate(obj); + case fr.softeam.cameldesigner.api.requirementmodel.standard.class_.LocationRequirement.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.requirementmodel.standard.class_.LocationRequirement.instantiate(obj); + case fr.softeam.cameldesigner.api.requirementmodel.standard.class_.OSRequirement.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.requirementmodel.standard.class_.OSRequirement.instantiate(obj); + case fr.softeam.cameldesigner.api.requirementmodel.standard.class_.OptimisationRequirement.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.requirementmodel.standard.class_.OptimisationRequirement.instantiate(obj); + case fr.softeam.cameldesigner.api.requirementmodel.standard.class_.PaaSRequirement.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.requirementmodel.standard.class_.PaaSRequirement.instantiate(obj); + case fr.softeam.cameldesigner.api.requirementmodel.standard.class_.ProviderRequirement.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.requirementmodel.standard.class_.ProviderRequirement.instantiate(obj); + case fr.softeam.cameldesigner.api.requirementmodel.standard.class_.ResourceRequirement.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.requirementmodel.standard.class_.ResourceRequirement.instantiate(obj); + case fr.softeam.cameldesigner.api.requirementmodel.standard.class_.SecurityRequirement.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.requirementmodel.standard.class_.SecurityRequirement.instantiate(obj); + case fr.softeam.cameldesigner.api.requirementmodel.standard.class_.ServiceLevelObjective.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.requirementmodel.standard.class_.ServiceLevelObjective.instantiate(obj); + case fr.softeam.cameldesigner.api.requirementmodel.standard.class_.VerticalScaleRequirement.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.requirementmodel.standard.class_.VerticalScaleRequirement.instantiate(obj); + case fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.BinaryEventPattern.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.BinaryEventPattern.instantiate(obj); + case fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.FunctionalEvent.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.FunctionalEvent.instantiate(obj); + case fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.HorizontalScalingAction.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.HorizontalScalingAction.instantiate(obj); + case fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.NonFunctionalEvent.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.NonFunctionalEvent.instantiate(obj); + case fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.ScalabilityRule.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.ScalabilityRule.instantiate(obj); + case fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.Timer.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.Timer.instantiate(obj); + case fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.UnaryEventPattern.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.UnaryEventPattern.instantiate(obj); + case fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.VerticalScalingAction.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.VerticalScalingAction.instantiate(obj); + case fr.softeam.cameldesigner.api.securitymodel.standard.class_.Certifiable.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.securitymodel.standard.class_.Certifiable.instantiate(obj); + case fr.softeam.cameldesigner.api.securitymodel.standard.class_.CompositeSecurityMetric.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.securitymodel.standard.class_.CompositeSecurityMetric.instantiate(obj); + case fr.softeam.cameldesigner.api.securitymodel.standard.class_.RawSecurityMetric.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.securitymodel.standard.class_.RawSecurityMetric.instantiate(obj); + case fr.softeam.cameldesigner.api.securitymodel.standard.class_.SecurityAttribute.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.securitymodel.standard.class_.SecurityAttribute.instantiate(obj); + case fr.softeam.cameldesigner.api.securitymodel.standard.class_.SecurityControl.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.securitymodel.standard.class_.SecurityControl.instantiate(obj); + case fr.softeam.cameldesigner.api.securitymodel.standard.class_.SecurityDomain.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.securitymodel.standard.class_.SecurityDomain.instantiate(obj); + case fr.softeam.cameldesigner.api.securitymodel.standard.class_.SecuritySLO.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.securitymodel.standard.class_.SecuritySLO.instantiate(obj); + case fr.softeam.cameldesigner.api.typemodel.standard.class_.Limit.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.typemodel.standard.class_.Limit.instantiate(obj); + case fr.softeam.cameldesigner.api.typemodel.standard.class_.StringValue.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.typemodel.standard.class_.StringValue.instantiate(obj); + case fr.softeam.cameldesigner.api.typemodel.standard.class_.BooleanValue.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.typemodel.standard.class_.BooleanValue.instantiate(obj); + case fr.softeam.cameldesigner.api.typemodel.standard.class_.IntValue.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.typemodel.standard.class_.IntValue.instantiate(obj); + case fr.softeam.cameldesigner.api.typemodel.standard.class_.FloatValue.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.typemodel.standard.class_.FloatValue.instantiate(obj); + case fr.softeam.cameldesigner.api.typemodel.standard.class_.DoubleValue.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.typemodel.standard.class_.DoubleValue.instantiate(obj); + default: + break; } - return IDefaultModelVisitor.super.visitClass(obj); } @@ -461,14 +451,13 @@ public final Object visitClass(Class obj) { @Override public final Object visitEnumeration(Enumeration obj) { switch (this.stName) { - case fr.softeam.cameldesigner.api.camelcore.standard.enumeration.FeatureEnumeration.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.camelcore.standard.enumeration.FeatureEnumeration.instantiate(obj); - case fr.softeam.cameldesigner.api.locationmodel.standard.enumeration.CloudLocation.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.locationmodel.standard.enumeration.CloudLocation.instantiate(obj); - case fr.softeam.cameldesigner.api.locationmodel.standard.enumeration.GeographicalRegion.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.locationmodel.standard.enumeration.GeographicalRegion.instantiate(obj); - case fr.softeam.cameldesigner.api.requirementmodel.standard.enumeration.ImageRequirement.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.requirementmodel.standard.enumeration.ImageRequirement.instantiate(obj); - default: - break; + case fr.softeam.cameldesigner.api.camelcore.standard.enumeration.FeatureEnumeration.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.camelcore.standard.enumeration.FeatureEnumeration.instantiate(obj); + case fr.softeam.cameldesigner.api.locationmodel.standard.enumeration.CloudLocation.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.locationmodel.standard.enumeration.CloudLocation.instantiate(obj); + case fr.softeam.cameldesigner.api.locationmodel.standard.enumeration.GeographicalRegion.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.locationmodel.standard.enumeration.GeographicalRegion.instantiate(obj); + case fr.softeam.cameldesigner.api.requirementmodel.standard.enumeration.ImageRequirement.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.requirementmodel.standard.enumeration.ImageRequirement.instantiate(obj); + default: + break; } - return IDefaultModelVisitor.super.visitEnumeration(obj); } @@ -476,10 +465,9 @@ public final Object visitEnumeration(Enumeration obj) { @Override public final Object visitModelElement(ModelElement obj) { switch (this.stName) { - default: - break; + default: + break; } - return IDefaultInfrastructureVisitor.super.visitModelElement(obj); } @@ -487,17 +475,16 @@ public final Object visitModelElement(ModelElement obj) { @Override public final Object visitArtifact(Artifact obj) { switch (this.stName) { - case fr.softeam.cameldesigner.api.camelcore.standard.artifact.FeatureArtifact.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.camelcore.standard.artifact.FeatureArtifact.instantiate(obj); - case fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.BuildConfiguration.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.BuildConfiguration.instantiate(obj); - case fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.ClusterConfiguration.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.ClusterConfiguration.instantiate(obj); - case fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.EventConfiguration.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.EventConfiguration.instantiate(obj); - case fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.PaaSConfiguration.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.PaaSConfiguration.instantiate(obj); - case fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.ScriptConfiguration.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.ScriptConfiguration.instantiate(obj); - case fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.ServerlessConfiguration.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.ServerlessConfiguration.instantiate(obj); - default: - break; + case fr.softeam.cameldesigner.api.camelcore.standard.artifact.FeatureArtifact.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.camelcore.standard.artifact.FeatureArtifact.instantiate(obj); + case fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.BuildConfiguration.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.BuildConfiguration.instantiate(obj); + case fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.ClusterConfiguration.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.ClusterConfiguration.instantiate(obj); + case fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.EventConfiguration.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.EventConfiguration.instantiate(obj); + case fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.PaaSConfiguration.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.PaaSConfiguration.instantiate(obj); + case fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.ScriptConfiguration.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.ScriptConfiguration.instantiate(obj); + case fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.ServerlessConfiguration.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.ServerlessConfiguration.instantiate(obj); + default: + break; } - return IDefaultModelVisitor.super.visitArtifact(obj); } @@ -505,14 +492,13 @@ public final Object visitArtifact(Artifact obj) { @Override public final Object visitAttribute(Attribute obj) { switch (this.stName) { - case fr.softeam.cameldesigner.api.camelcore.standard.attribute.AttributeAttribute.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.camelcore.standard.attribute.AttributeAttribute.instantiate(obj); - case fr.softeam.cameldesigner.api.camelcore.standard.attribute.MeasurableAttributeAttribute.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.camelcore.standard.attribute.MeasurableAttributeAttribute.instantiate(obj); - case fr.softeam.cameldesigner.api.camelcore.standard.attribute.QualityAttributeAttribute.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.camelcore.standard.attribute.QualityAttributeAttribute.instantiate(obj); - case fr.softeam.cameldesigner.api.metadatamodel.standard.attribute.MmsProperty.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metadatamodel.standard.attribute.MmsProperty.instantiate(obj); - default: - break; + case fr.softeam.cameldesigner.api.camelcore.standard.attribute.AttributeAttribute.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.camelcore.standard.attribute.AttributeAttribute.instantiate(obj); + case fr.softeam.cameldesigner.api.camelcore.standard.attribute.MeasurableAttributeAttribute.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.camelcore.standard.attribute.MeasurableAttributeAttribute.instantiate(obj); + case fr.softeam.cameldesigner.api.camelcore.standard.attribute.QualityAttributeAttribute.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.camelcore.standard.attribute.QualityAttributeAttribute.instantiate(obj); + case fr.softeam.cameldesigner.api.metadatamodel.standard.attribute.MmsProperty.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metadatamodel.standard.attribute.MmsProperty.instantiate(obj); + default: + break; } - return IDefaultModelVisitor.super.visitAttribute(obj); } @@ -520,11 +506,10 @@ public final Object visitAttribute(Attribute obj) { @Override public final Object visitAttributeLink(AttributeLink obj) { switch (this.stName) { - case fr.softeam.cameldesigner.api.metadatamodel.standard.attributelink.MmsPropertyInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metadatamodel.standard.attributelink.MmsPropertyInstance.instantiate(obj); - default: - break; + case fr.softeam.cameldesigner.api.metadatamodel.standard.attributelink.MmsPropertyInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metadatamodel.standard.attributelink.MmsPropertyInstance.instantiate(obj); + default: + break; } - return IDefaultModelVisitor.super.visitAttributeLink(obj); } @@ -532,28 +517,27 @@ public final Object visitAttributeLink(AttributeLink obj) { @Override public final Object visitClassDiagram(ClassDiagram obj) { switch (this.stName) { - case fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.CamelModelDiagram.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.CamelModelDiagram.instantiate(obj); - case fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.CamelViewPoint.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.CamelViewPoint.instantiate(obj); - case fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.ConstraintModelDiagram.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.ConstraintModelDiagram.instantiate(obj); - case fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.DataInstanceModelDiagram.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.DataInstanceModelDiagram.instantiate(obj); - case fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.DataTypeModelDiagram.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.DataTypeModelDiagram.instantiate(obj); - case fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.DeploymentInstanceModelDiagram.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.DeploymentInstanceModelDiagram.instantiate(obj); - case fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.DeploymentTypeModelDiagram.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.DeploymentTypeModelDiagram.instantiate(obj); - case fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.ExecutionModelDiagram.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.ExecutionModelDiagram.instantiate(obj); - case fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.LocationModelDiagram.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.LocationModelDiagram.instantiate(obj); - case fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.MetadataModelDiagram.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.MetadataModelDiagram.instantiate(obj); - case fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.MetricInstanceModelDiagram.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.MetricInstanceModelDiagram.instantiate(obj); - case fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.MetricTypeModelDiagram.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.MetricTypeModelDiagram.instantiate(obj); - case fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.OrganisationModelDiagram.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.OrganisationModelDiagram.instantiate(obj); - case fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.RequirementModelDiagram.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.RequirementModelDiagram.instantiate(obj); - case fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.ScalabilityModelDiagram.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.ScalabilityModelDiagram.instantiate(obj); - case fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.SecurityModelDiagram.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.SecurityModelDiagram.instantiate(obj); - case fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.TypeModelDiagram.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.TypeModelDiagram.instantiate(obj); - case fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.UnitModelDiagram.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.UnitModelDiagram.instantiate(obj); - default: - break; + case fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.CamelModelDiagram.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.CamelModelDiagram.instantiate(obj); + case fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.CamelViewPoint.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.CamelViewPoint.instantiate(obj); + case fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.ConstraintModelDiagram.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.ConstraintModelDiagram.instantiate(obj); + case fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.DataInstanceModelDiagram.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.DataInstanceModelDiagram.instantiate(obj); + case fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.DataTypeModelDiagram.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.DataTypeModelDiagram.instantiate(obj); + case fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.DeploymentInstanceModelDiagram.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.DeploymentInstanceModelDiagram.instantiate(obj); + case fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.DeploymentTypeModelDiagram.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.DeploymentTypeModelDiagram.instantiate(obj); + case fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.ExecutionModelDiagram.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.ExecutionModelDiagram.instantiate(obj); + case fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.LocationModelDiagram.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.LocationModelDiagram.instantiate(obj); + case fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.MetadataModelDiagram.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.MetadataModelDiagram.instantiate(obj); + case fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.MetricInstanceModelDiagram.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.MetricInstanceModelDiagram.instantiate(obj); + case fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.MetricTypeModelDiagram.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.MetricTypeModelDiagram.instantiate(obj); + case fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.OrganisationModelDiagram.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.OrganisationModelDiagram.instantiate(obj); + case fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.RequirementModelDiagram.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.RequirementModelDiagram.instantiate(obj); + case fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.ScalabilityModelDiagram.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.ScalabilityModelDiagram.instantiate(obj); + case fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.SecurityModelDiagram.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.SecurityModelDiagram.instantiate(obj); + case fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.TypeModelDiagram.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.TypeModelDiagram.instantiate(obj); + case fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.UnitModelDiagram.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram.UnitModelDiagram.instantiate(obj); + default: + break; } - return IDefaultModelVisitor.super.visitClassDiagram(obj); } @@ -561,27 +545,26 @@ public final Object visitClassDiagram(ClassDiagram obj) { @Override public final Object visitPackage(Package obj) { switch (this.stName) { - case fr.softeam.cameldesigner.api.camelcore.standard.package_.CamelModel.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.camelcore.standard.package_.CamelModel.instantiate(obj); - case fr.softeam.cameldesigner.api.constraintmodel.standard.package_.ConstraintModel.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.constraintmodel.standard.package_.ConstraintModel.instantiate(obj); - case fr.softeam.cameldesigner.api.datamodel.standard.package_.DataTypeModel.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.datamodel.standard.package_.DataTypeModel.instantiate(obj); - case fr.softeam.cameldesigner.api.datamodel.standard.package_.DataInstanceModel.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.datamodel.standard.package_.DataInstanceModel.instantiate(obj); - case fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.package_.DeploymentInstanceModel.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.package_.DeploymentInstanceModel.instantiate(obj); - case fr.softeam.cameldesigner.api.deploymentmodel.standard.package_.DeploymentTypeModel.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentmodel.standard.package_.DeploymentTypeModel.instantiate(obj); - case fr.softeam.cameldesigner.api.executionmodel.standard.package_.ExecutionModel.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.executionmodel.standard.package_.ExecutionModel.instantiate(obj); - case fr.softeam.cameldesigner.api.locationmodel.standard.package_.LocationModel.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.locationmodel.standard.package_.LocationModel.instantiate(obj); - case fr.softeam.cameldesigner.api.metadatamodel.standard.package_.MetaDataModel.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metadatamodel.standard.package_.MetaDataModel.instantiate(obj); - case fr.softeam.cameldesigner.api.metricmodel.standard.package_.MetricInstanceModel.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metricmodel.standard.package_.MetricInstanceModel.instantiate(obj); - case fr.softeam.cameldesigner.api.metricmodel.standard.package_.MetricTypeModel.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metricmodel.standard.package_.MetricTypeModel.instantiate(obj); - case fr.softeam.cameldesigner.api.organisationmodel.standard.package_.OrganisationModel.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.organisationmodel.standard.package_.OrganisationModel.instantiate(obj); - case fr.softeam.cameldesigner.api.requirementmodel.standard.package_.RequirementModel.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.requirementmodel.standard.package_.RequirementModel.instantiate(obj); - case fr.softeam.cameldesigner.api.scalabilitymodel.standard.package_.ScalabilityModel.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.scalabilitymodel.standard.package_.ScalabilityModel.instantiate(obj); - case fr.softeam.cameldesigner.api.securitymodel.standard.package_.SecurityModel.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.securitymodel.standard.package_.SecurityModel.instantiate(obj); - case fr.softeam.cameldesigner.api.typemodel.standard.package_.TypeModel.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.typemodel.standard.package_.TypeModel.instantiate(obj); - case fr.softeam.cameldesigner.api.unitmodel.standard.package_.UnitModel.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.unitmodel.standard.package_.UnitModel.instantiate(obj); - default: - break; + case fr.softeam.cameldesigner.api.camelcore.standard.package_.CamelModel.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.camelcore.standard.package_.CamelModel.instantiate(obj); + case fr.softeam.cameldesigner.api.constraintmodel.standard.package_.ConstraintModel.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.constraintmodel.standard.package_.ConstraintModel.instantiate(obj); + case fr.softeam.cameldesigner.api.datamodel.standard.package_.DataTypeModel.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.datamodel.standard.package_.DataTypeModel.instantiate(obj); + case fr.softeam.cameldesigner.api.datamodel.standard.package_.DataInstanceModel.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.datamodel.standard.package_.DataInstanceModel.instantiate(obj); + case fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.package_.DeploymentInstanceModel.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.package_.DeploymentInstanceModel.instantiate(obj); + case fr.softeam.cameldesigner.api.deploymentmodel.standard.package_.DeploymentTypeModel.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentmodel.standard.package_.DeploymentTypeModel.instantiate(obj); + case fr.softeam.cameldesigner.api.executionmodel.standard.package_.ExecutionModel.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.executionmodel.standard.package_.ExecutionModel.instantiate(obj); + case fr.softeam.cameldesigner.api.locationmodel.standard.package_.LocationModel.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.locationmodel.standard.package_.LocationModel.instantiate(obj); + case fr.softeam.cameldesigner.api.metadatamodel.standard.package_.MetaDataModel.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metadatamodel.standard.package_.MetaDataModel.instantiate(obj); + case fr.softeam.cameldesigner.api.metricmodel.standard.package_.MetricInstanceModel.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metricmodel.standard.package_.MetricInstanceModel.instantiate(obj); + case fr.softeam.cameldesigner.api.metricmodel.standard.package_.MetricTypeModel.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metricmodel.standard.package_.MetricTypeModel.instantiate(obj); + case fr.softeam.cameldesigner.api.organisationmodel.standard.package_.OrganisationModel.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.organisationmodel.standard.package_.OrganisationModel.instantiate(obj); + case fr.softeam.cameldesigner.api.requirementmodel.standard.package_.RequirementModel.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.requirementmodel.standard.package_.RequirementModel.instantiate(obj); + case fr.softeam.cameldesigner.api.scalabilitymodel.standard.package_.ScalabilityModel.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.scalabilitymodel.standard.package_.ScalabilityModel.instantiate(obj); + case fr.softeam.cameldesigner.api.securitymodel.standard.package_.SecurityModel.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.securitymodel.standard.package_.SecurityModel.instantiate(obj); + case fr.softeam.cameldesigner.api.typemodel.standard.package_.TypeModel.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.typemodel.standard.package_.TypeModel.instantiate(obj); + case fr.softeam.cameldesigner.api.unitmodel.standard.package_.UnitModel.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.unitmodel.standard.package_.UnitModel.instantiate(obj); + default: + break; } - return IDefaultModelVisitor.super.visitPackage(obj); } @@ -589,16 +572,15 @@ public final Object visitPackage(Package obj) { @Override public final Object visitConnector(Connector obj) { switch (this.stName) { - case fr.softeam.cameldesigner.api.camelcore.standard.connector.FeatureConnector.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.camelcore.standard.connector.FeatureConnector.instantiate(obj); - case fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.connector.CommunicationInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.connector.CommunicationInstance.instantiate(obj); - case fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.connector.HostingInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.connector.HostingInstance.instantiate(obj); - case fr.softeam.cameldesigner.api.deploymentmodel.standard.connector.Communication.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentmodel.standard.connector.Communication.instantiate(obj); - case fr.softeam.cameldesigner.api.deploymentmodel.standard.connector.Hosting.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentmodel.standard.connector.Hosting.instantiate(obj); - case fr.softeam.cameldesigner.api.deploymentmodel.standard.connector.LocationCoupling.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentmodel.standard.connector.LocationCoupling.instantiate(obj); - default: - break; + case fr.softeam.cameldesigner.api.camelcore.standard.connector.FeatureConnector.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.camelcore.standard.connector.FeatureConnector.instantiate(obj); + case fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.connector.CommunicationInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.connector.CommunicationInstance.instantiate(obj); + case fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.connector.HostingInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.connector.HostingInstance.instantiate(obj); + case fr.softeam.cameldesigner.api.deploymentmodel.standard.connector.Communication.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentmodel.standard.connector.Communication.instantiate(obj); + case fr.softeam.cameldesigner.api.deploymentmodel.standard.connector.Hosting.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentmodel.standard.connector.Hosting.instantiate(obj); + case fr.softeam.cameldesigner.api.deploymentmodel.standard.connector.LocationCoupling.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentmodel.standard.connector.LocationCoupling.instantiate(obj); + default: + break; } - return IDefaultModelVisitor.super.visitConnector(obj); } @@ -606,20 +588,19 @@ public final Object visitConnector(Connector obj) { @Override public final Object visitDataType(DataType obj) { switch (this.stName) { - case fr.softeam.cameldesigner.api.camelcore.standard.datatype.FeatureDataType.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.camelcore.standard.datatype.FeatureDataType.instantiate(obj); - case fr.softeam.cameldesigner.api.typemodel.standard.datatype.CamelList.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.typemodel.standard.datatype.CamelList.instantiate(obj); - case fr.softeam.cameldesigner.api.typemodel.standard.datatype.BooleanValueType.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.typemodel.standard.datatype.BooleanValueType.instantiate(obj); - case fr.softeam.cameldesigner.api.typemodel.standard.datatype.StringValueType.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.typemodel.standard.datatype.StringValueType.instantiate(obj); - case fr.softeam.cameldesigner.api.typemodel.standard.datatype.RangeUnion.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.typemodel.standard.datatype.RangeUnion.instantiate(obj); - case fr.softeam.cameldesigner.api.typemodel.standard.datatype.Range.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.typemodel.standard.datatype.Range.instantiate(obj); - case fr.softeam.cameldesigner.api.unitmodel.standard.datatype.UnitDimension.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.unitmodel.standard.datatype.UnitDimension.instantiate(obj); - case fr.softeam.cameldesigner.api.unitmodel.standard.datatype.Dimensionless.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.unitmodel.standard.datatype.Dimensionless.instantiate(obj); - case fr.softeam.cameldesigner.api.unitmodel.standard.datatype.SingleUnit.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.unitmodel.standard.datatype.SingleUnit.instantiate(obj); - case fr.softeam.cameldesigner.api.unitmodel.standard.datatype.CompositeUnit.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.unitmodel.standard.datatype.CompositeUnit.instantiate(obj); - default: - break; + case fr.softeam.cameldesigner.api.camelcore.standard.datatype.FeatureDataType.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.camelcore.standard.datatype.FeatureDataType.instantiate(obj); + case fr.softeam.cameldesigner.api.typemodel.standard.datatype.CamelList.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.typemodel.standard.datatype.CamelList.instantiate(obj); + case fr.softeam.cameldesigner.api.typemodel.standard.datatype.BooleanValueType.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.typemodel.standard.datatype.BooleanValueType.instantiate(obj); + case fr.softeam.cameldesigner.api.typemodel.standard.datatype.StringValueType.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.typemodel.standard.datatype.StringValueType.instantiate(obj); + case fr.softeam.cameldesigner.api.typemodel.standard.datatype.RangeUnion.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.typemodel.standard.datatype.RangeUnion.instantiate(obj); + case fr.softeam.cameldesigner.api.typemodel.standard.datatype.Range.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.typemodel.standard.datatype.Range.instantiate(obj); + case fr.softeam.cameldesigner.api.unitmodel.standard.datatype.UnitDimension.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.unitmodel.standard.datatype.UnitDimension.instantiate(obj); + case fr.softeam.cameldesigner.api.unitmodel.standard.datatype.Dimensionless.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.unitmodel.standard.datatype.Dimensionless.instantiate(obj); + case fr.softeam.cameldesigner.api.unitmodel.standard.datatype.SingleUnit.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.unitmodel.standard.datatype.SingleUnit.instantiate(obj); + case fr.softeam.cameldesigner.api.unitmodel.standard.datatype.CompositeUnit.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.unitmodel.standard.datatype.CompositeUnit.instantiate(obj); + default: + break; } - return IDefaultModelVisitor.super.visitDataType(obj); } @@ -627,15 +608,14 @@ public final Object visitDataType(DataType obj) { @Override public final Object visitPort(Port obj) { switch (this.stName) { - case fr.softeam.cameldesigner.api.camelcore.standard.port.FeaturePort.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.camelcore.standard.port.FeaturePort.instantiate(obj); - case fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.port.CommunicationPortInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.port.CommunicationPortInstance.instantiate(obj); - case fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.port.HostingPortInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.port.HostingPortInstance.instantiate(obj); - case fr.softeam.cameldesigner.api.deploymentmodel.standard.port.CommunicationPort.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentmodel.standard.port.CommunicationPort.instantiate(obj); - case fr.softeam.cameldesigner.api.deploymentmodel.standard.port.HostingPort.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentmodel.standard.port.HostingPort.instantiate(obj); - default: - break; + case fr.softeam.cameldesigner.api.camelcore.standard.port.FeaturePort.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.camelcore.standard.port.FeaturePort.instantiate(obj); + case fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.port.CommunicationPortInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.port.CommunicationPortInstance.instantiate(obj); + case fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.port.HostingPortInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.port.HostingPortInstance.instantiate(obj); + case fr.softeam.cameldesigner.api.deploymentmodel.standard.port.CommunicationPort.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentmodel.standard.port.CommunicationPort.instantiate(obj); + case fr.softeam.cameldesigner.api.deploymentmodel.standard.port.HostingPort.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.deploymentmodel.standard.port.HostingPort.instantiate(obj); + default: + break; } - return IDefaultModelVisitor.super.visitPort(obj); } @@ -643,15 +623,14 @@ public final Object visitPort(Port obj) { @Override public final Object visitConstraint(Constraint obj) { switch (this.stName) { - case fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.MetricConstraint.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.MetricConstraint.instantiate(obj); - case fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.AttributeConstraint.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.AttributeConstraint.instantiate(obj); - case fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.IfThenConstraint.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.IfThenConstraint.instantiate(obj); - case fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.MetricVariableConstraint.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.MetricVariableConstraint.instantiate(obj); - case fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.LogicalConstraint.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.LogicalConstraint.instantiate(obj); - default: - break; + case fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.MetricConstraint.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.MetricConstraint.instantiate(obj); + case fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.AttributeConstraint.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.AttributeConstraint.instantiate(obj); + case fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.IfThenConstraint.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.IfThenConstraint.instantiate(obj); + case fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.MetricVariableConstraint.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.MetricVariableConstraint.instantiate(obj); + case fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.LogicalConstraint.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.LogicalConstraint.instantiate(obj); + default: + break; } - return IDefaultModelVisitor.super.visitConstraint(obj); } @@ -659,16 +638,16 @@ public final Object visitConstraint(Constraint obj) { @Override public final Object visitNameSpace(NameSpace obj) { switch (this.stName) { - default: - break; + default: + break; } - return IDefaultModelVisitor.super.visitNameSpace(obj); } /** * Get the visitor to delegate to when a {@link IInfrastructureVisitor} is needed. *

If null is returned the caller will return null. + * * @return the {@link IInfrastructureVisitor} visitor or null. */ @objid ("45c558cb-7b1b-4b6c-85fb-a05db29170cf") diff --git a/src/main/java/fr/softeam/cameldesigner/api/camelcore/infrastructure/dependency/Annotation.java b/src/main/java/fr/softeam/cameldesigner/api/camelcore/infrastructure/dependency/Annotation.java index 6d23a0ab..2a654a0c 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/camelcore/infrastructure/dependency/Annotation.java +++ b/src/main/java/fr/softeam/cameldesigner/api/camelcore/infrastructure/dependency/Annotation.java @@ -63,9 +63,10 @@ public static Annotation create() { } /** - * Tries to instantiate a {@link Annotation} proxy from a {@link Dependency} stereotyped << Annotation >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Annotation} proxy from a {@link Dependency} stereotyped << Annotation >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Dependency * @return a {@link Annotation} proxy or null. */ @@ -75,19 +76,20 @@ public static Annotation instantiate(final Dependency obj) { } /** - * Tries to instantiate a {@link Annotation} proxy from a {@link Dependency} stereotyped << Annotation >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Annotation} proxy from a {@link Dependency} stereotyped << Annotation >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Dependency} * @return a {@link Annotation} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("daed0cb2-8cc9-47f8-8287-142c6e0631da") public static Annotation safeInstantiate(final Dependency obj) throws IllegalArgumentException { if (Annotation.canInstantiate(obj)) - return new Annotation(obj); + return new Annotation(obj); else - throw new IllegalArgumentException("Annotation: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("Annotation: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("643eaa87-3286-4140-b323-5d3afa9c3326") @@ -107,7 +109,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Dependency}. + * Get the underlying {@link Dependency}. + * * @return the Dependency represented by this proxy, never null. */ @objid ("f1cc67dd-10e7-4f6b-90a3-246d08281d66") @@ -153,11 +156,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/camelcore/infrastructure/dependency/PropertyDependency.java b/src/main/java/fr/softeam/cameldesigner/api/camelcore/infrastructure/dependency/PropertyDependency.java index 57279418..eb9c600e 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/camelcore/infrastructure/dependency/PropertyDependency.java +++ b/src/main/java/fr/softeam/cameldesigner/api/camelcore/infrastructure/dependency/PropertyDependency.java @@ -63,9 +63,10 @@ public static PropertyDependency create() { } /** - * Tries to instantiate a {@link PropertyDependency} proxy from a {@link Dependency} stereotyped << PropertyDependency >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link PropertyDependency} proxy from a {@link Dependency} stereotyped << PropertyDependency >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Dependency * @return a {@link PropertyDependency} proxy or null. */ @@ -75,19 +76,20 @@ public static PropertyDependency instantiate(final Dependency obj) { } /** - * Tries to instantiate a {@link PropertyDependency} proxy from a {@link Dependency} stereotyped << PropertyDependency >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link PropertyDependency} proxy from a {@link Dependency} stereotyped << PropertyDependency >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Dependency} * @return a {@link PropertyDependency} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("f0686d3f-a07b-4196-8bfa-f84d4c56545d") public static PropertyDependency safeInstantiate(final Dependency obj) throws IllegalArgumentException { if (PropertyDependency.canInstantiate(obj)) - return new PropertyDependency(obj); + return new PropertyDependency(obj); else - throw new IllegalArgumentException("PropertyDependency: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("PropertyDependency: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("6461dcd1-ce42-4574-8f35-97590fae78c1") @@ -107,7 +109,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Dependency}. + * Get the underlying {@link Dependency}. + * * @return the Dependency represented by this proxy, never null. */ @objid ("80725605-334f-4011-8ca9-120185e22641") @@ -153,11 +156,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/camelcore/infrastructure/modelelement/CamelAttribute.java b/src/main/java/fr/softeam/cameldesigner/api/camelcore/infrastructure/modelelement/CamelAttribute.java index e90e6ffa..2366f6f3 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/camelcore/infrastructure/modelelement/CamelAttribute.java +++ b/src/main/java/fr/softeam/cameldesigner/api/camelcore/infrastructure/modelelement/CamelAttribute.java @@ -75,7 +75,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link ModelElement}. + * Get the underlying {@link ModelElement}. + * * @return the ModelElement represented by this proxy, never null. */ @objid ("0410a071-8416-4516-a0f1-ca603789e35a") @@ -132,11 +133,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/camelcore/infrastructure/modelelement/CamelElement.java b/src/main/java/fr/softeam/cameldesigner/api/camelcore/infrastructure/modelelement/CamelElement.java index 07b6ef4b..e9abf5de 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/camelcore/infrastructure/modelelement/CamelElement.java +++ b/src/main/java/fr/softeam/cameldesigner/api/camelcore/infrastructure/modelelement/CamelElement.java @@ -81,7 +81,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link ModelElement}. + * Get the underlying {@link ModelElement}. + * * @return the ModelElement represented by this proxy, never null. */ @objid ("bff718df-e64e-4551-bd8b-555e284e9217") @@ -124,11 +125,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/camelcore/infrastructure/modelelement/ExpendableElement.java b/src/main/java/fr/softeam/cameldesigner/api/camelcore/infrastructure/modelelement/ExpendableElement.java index 2b8ee359..cc3df05f 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/camelcore/infrastructure/modelelement/ExpendableElement.java +++ b/src/main/java/fr/softeam/cameldesigner/api/camelcore/infrastructure/modelelement/ExpendableElement.java @@ -58,7 +58,6 @@ public static boolean canInstantiate(final MObject elt) { * Add a value to the 'annotations' role.

* Role description: * null - * */ @objid ("ebedd58c-4784-451d-ba35-0572d76bf606") public void addAnnotations(final MmsObject obj) { @@ -90,7 +89,6 @@ public boolean equals(final Object obj) { * Get the values of the 'annotations' role.

* Role description: * null - * */ @objid ("893d38be-6aa1-4cbb-9c25-3ec46ae8a483") public List getAnnotations() { @@ -112,7 +110,8 @@ public List getAnnotations() { } /** - * Get the underlying {@link ModelElement}. + * Get the underlying {@link ModelElement}. + * * @return the ModelElement represented by this proxy, never null. */ @objid ("fdcc72e5-dc75-427d-a62a-f0600094e153") @@ -131,7 +130,6 @@ public int hashCode() { * Remove a value from the 'annotations' role.

* Role description: * null - * */ @objid ("480711a9-5558-4c25-86b6-bf7f21a948a6") public boolean removeAnnotations(final MmsObject obj) { @@ -171,11 +169,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/camelcore/infrastructure/modelelement/Feature.java b/src/main/java/fr/softeam/cameldesigner/api/camelcore/infrastructure/modelelement/Feature.java index 16b0b30b..09f5de81 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/camelcore/infrastructure/modelelement/Feature.java +++ b/src/main/java/fr/softeam/cameldesigner/api/camelcore/infrastructure/modelelement/Feature.java @@ -108,7 +108,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link ModelElement}. + * Get the underlying {@link ModelElement}. + * * @return the ModelElement represented by this proxy, never null. */ @objid ("2e951837-7a0a-48ec-8de6-dd5062c94936") @@ -147,11 +148,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/camelcore/infrastructure/modelelement/NamedElement.java b/src/main/java/fr/softeam/cameldesigner/api/camelcore/infrastructure/modelelement/NamedElement.java index 65df95f7..f34ee103 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/camelcore/infrastructure/modelelement/NamedElement.java +++ b/src/main/java/fr/softeam/cameldesigner/api/camelcore/infrastructure/modelelement/NamedElement.java @@ -67,7 +67,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link ModelElement}. + * Get the underlying {@link ModelElement}. + * * @return the ModelElement represented by this proxy, never null. */ @objid ("7451c674-096c-44b5-bcf9-3795aa539eca") @@ -140,11 +141,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/artifact/FeatureArtifact.java b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/artifact/FeatureArtifact.java index 86458263..5d492257 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/artifact/FeatureArtifact.java +++ b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/artifact/FeatureArtifact.java @@ -65,9 +65,10 @@ public static FeatureArtifact create() { } /** - * Tries to instantiate a {@link FeatureArtifact} proxy from a {@link Artifact} stereotyped << Feature_Artifact >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link FeatureArtifact} proxy from a {@link Artifact} stereotyped << Feature_Artifact >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Artifact * @return a {@link FeatureArtifact} proxy or null. */ @@ -77,19 +78,20 @@ public static FeatureArtifact instantiate(final Artifact obj) { } /** - * Tries to instantiate a {@link FeatureArtifact} proxy from a {@link Artifact} stereotyped << Feature_Artifact >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link FeatureArtifact} proxy from a {@link Artifact} stereotyped << Feature_Artifact >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Artifact} * @return a {@link FeatureArtifact} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("e98c53e9-29d9-4141-b9b4-16e2626a3f7a") public static FeatureArtifact safeInstantiate(final Artifact obj) throws IllegalArgumentException { if (FeatureArtifact.canInstantiate(obj)) - return new FeatureArtifact(obj); + return new FeatureArtifact(obj); else - throw new IllegalArgumentException("FeatureArtifact: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("FeatureArtifact: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("85d82d92-6858-4263-8374-6358f158561d") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Artifact}. + * Get the underlying {@link Artifact}. + * * @return the Artifact represented by this proxy, never null. */ @objid ("1fbda3ca-9f5c-46e7-9454-3938b400cd2e") @@ -156,11 +159,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/attribute/AttributeAttribute.java b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/attribute/AttributeAttribute.java index 959758b1..7a3ccc5a 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/attribute/AttributeAttribute.java +++ b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/attribute/AttributeAttribute.java @@ -71,9 +71,10 @@ public static AttributeAttribute create() { } /** - * Tries to instantiate a {@link AttributeAttribute} proxy from a {@link Attribute} stereotyped << Attribute_Attribute >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link AttributeAttribute} proxy from a {@link Attribute} stereotyped << Attribute_Attribute >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Attribute * @return a {@link AttributeAttribute} proxy or null. */ @@ -83,19 +84,20 @@ public static AttributeAttribute instantiate(final Attribute obj) { } /** - * Tries to instantiate a {@link AttributeAttribute} proxy from a {@link Attribute} stereotyped << Attribute_Attribute >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link AttributeAttribute} proxy from a {@link Attribute} stereotyped << Attribute_Attribute >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Attribute} * @return a {@link AttributeAttribute} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("23d1a1de-0f78-44b3-b933-ed89031810ba") public static AttributeAttribute safeInstantiate(final Attribute obj) throws IllegalArgumentException { if (AttributeAttribute.canInstantiate(obj)) - return new AttributeAttribute(obj); + return new AttributeAttribute(obj); else - throw new IllegalArgumentException("AttributeAttribute: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("AttributeAttribute: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("37495426-2558-4117-af5e-0aa9990c5722") @@ -115,7 +117,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Attribute}. + * Get the underlying {@link Attribute}. + * * @return the Attribute represented by this proxy, never null. */ @objid ("b59f3a2f-9f93-4a08-8ce7-c1af0c430489") @@ -128,7 +131,6 @@ public Attribute getElement() { * Get the value to the 'parent' role.

* Role description: * null - * */ @objid ("0025f78f-e5cc-476f-a817-cfb9475670cd") public FeatureClassifier getParent() { @@ -139,7 +141,6 @@ public FeatureClassifier getParent() { * Get the value of the 'unit' role.

* Role description: * null - * */ @objid ("706a5d61-cc82-4140-af58-0b5559147cef") public Unit getUnit() { @@ -161,7 +162,6 @@ public Unit getUnit() { * Get the value to the 'valueType' role.

* Role description: * null - * */ @objid ("07077616-ed50-4935-b509-f5c382abd6e3") public ValueType getValueType() { @@ -178,7 +178,6 @@ public int hashCode() { * Set the value of the 'parent' role.

* Role description: * null - * */ @objid ("6281e48f-4c2a-4bc0-b247-23d123166a3b") public void setParent(final FeatureClassifier obj) { @@ -189,7 +188,6 @@ public void setParent(final FeatureClassifier obj) { * Set the value of the 'unit' role.

* Role description: * null - * */ @objid ("5018a8df-0937-45f9-b656-6b539efd0803") public void setUnit(final Unit obj) { @@ -215,7 +213,6 @@ public void setUnit(final Unit obj) { * Set the value of the 'valueType' role.

* Role description: * null - * */ @objid ("10356fc0-54a0-4c74-9fed-217fc772193f") public void setValueType(final ValueType obj) { @@ -265,11 +262,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/attribute/MeasurableAttributeAttribute.java b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/attribute/MeasurableAttributeAttribute.java index f4e87f5f..a1e59ae3 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/attribute/MeasurableAttributeAttribute.java +++ b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/attribute/MeasurableAttributeAttribute.java @@ -64,9 +64,10 @@ public static MeasurableAttributeAttribute create() { } /** - * Tries to instantiate a {@link MeasurableAttributeAttribute} proxy from a {@link Attribute} stereotyped << MeasurableAttribute_Attribute >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link MeasurableAttributeAttribute} proxy from a {@link Attribute} stereotyped << MeasurableAttribute_Attribute >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Attribute * @return a {@link MeasurableAttributeAttribute} proxy or null. */ @@ -76,26 +77,26 @@ public static MeasurableAttributeAttribute instantiate(final Attribute obj) { } /** - * Tries to instantiate a {@link MeasurableAttributeAttribute} proxy from a {@link Attribute} stereotyped << MeasurableAttribute_Attribute >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link MeasurableAttributeAttribute} proxy from a {@link Attribute} stereotyped << MeasurableAttribute_Attribute >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Attribute} * @return a {@link MeasurableAttributeAttribute} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("903e9f6e-12b5-494a-a6d1-051a04c82297") public static MeasurableAttributeAttribute safeInstantiate(final Attribute obj) throws IllegalArgumentException { if (MeasurableAttributeAttribute.canInstantiate(obj)) - return new MeasurableAttributeAttribute(obj); + return new MeasurableAttributeAttribute(obj); else - throw new IllegalArgumentException("MeasurableAttributeAttribute: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("MeasurableAttributeAttribute: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'sensors' role.

* Role description: * null - * */ @objid ("a64e2631-c9a5-40fe-8b43-ad99b802c5f0") public void addSensors(final Sensor obj) { @@ -124,7 +125,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Attribute}. + * Get the underlying {@link Attribute}. + * * @return the Attribute represented by this proxy, never null. */ @objid ("312a468a-a1b7-48ac-8a75-6dc1fa0a89a5") @@ -137,7 +139,6 @@ public Attribute getElement() { * Get the values of the 'sensors' role.

* Role description: * null - * */ @objid ("5454852d-431a-4601-a431-dcf95e50adf8") public List getSensors() { @@ -162,7 +163,6 @@ public int hashCode() { * Remove a value from the 'sensors' role.

* Role description: * null - * */ @objid ("3f87b7a9-0dbb-44cb-a1a8-adcdee6806dc") public boolean removeSensors(final Sensor obj) { @@ -202,11 +202,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/attribute/QualityAttributeAttribute.java b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/attribute/QualityAttributeAttribute.java index 93478af2..656e4806 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/attribute/QualityAttributeAttribute.java +++ b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/attribute/QualityAttributeAttribute.java @@ -62,9 +62,10 @@ public static QualityAttributeAttribute create() { } /** - * Tries to instantiate a {@link QualityAttributeAttribute} proxy from a {@link Attribute} stereotyped << QualityAttribute_Attribute >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link QualityAttributeAttribute} proxy from a {@link Attribute} stereotyped << QualityAttribute_Attribute >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Attribute * @return a {@link QualityAttributeAttribute} proxy or null. */ @@ -74,19 +75,20 @@ public static QualityAttributeAttribute instantiate(final Attribute obj) { } /** - * Tries to instantiate a {@link QualityAttributeAttribute} proxy from a {@link Attribute} stereotyped << QualityAttribute_Attribute >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link QualityAttributeAttribute} proxy from a {@link Attribute} stereotyped << QualityAttribute_Attribute >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Attribute} * @return a {@link QualityAttributeAttribute} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("f4f63d05-695b-4533-a636-502aee0ae50e") public static QualityAttributeAttribute safeInstantiate(final Attribute obj) throws IllegalArgumentException { if (QualityAttributeAttribute.canInstantiate(obj)) - return new QualityAttributeAttribute(obj); + return new QualityAttributeAttribute(obj); else - throw new IllegalArgumentException("QualityAttributeAttribute: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("QualityAttributeAttribute: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("f6dcd382-cb14-446a-8a02-629f10f167f1") @@ -106,7 +108,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Attribute}. + * Get the underlying {@link Attribute}. + * * @return the Attribute represented by this proxy, never null. */ @objid ("f648f9eb-282c-429d-b94f-9aeeaad41416") @@ -145,11 +148,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/class_/Application.java b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/class_/Application.java index 864c0c66..aec195ba 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/class_/Application.java +++ b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/class_/Application.java @@ -67,9 +67,10 @@ public static Application create() { } /** - * Tries to instantiate a {@link Application} proxy from a {@link Class} stereotyped << Application >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Application} proxy from a {@link Class} stereotyped << Application >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link Application} proxy or null. */ @@ -79,19 +80,20 @@ public static Application instantiate(final Class obj) { } /** - * Tries to instantiate a {@link Application} proxy from a {@link Class} stereotyped << Application >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Application} proxy from a {@link Class} stereotyped << Application >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link Application} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("de2ea04b-90ea-4e52-819d-d86edae50d45") public static Application safeInstantiate(final Class obj) throws IllegalArgumentException { if (Application.canInstantiate(obj)) - return new Application(obj); + return new Application(obj); else - throw new IllegalArgumentException("Application: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("Application: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("f8f5e3c8-af3e-4025-8cc4-66a280109cae") @@ -111,7 +113,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("1b6d533f-e663-4bd1-a6b5-ca2260dbcd3a") @@ -181,11 +184,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/class_/AttributeClass.java b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/class_/AttributeClass.java index 14a904c5..5279f467 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/class_/AttributeClass.java +++ b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/class_/AttributeClass.java @@ -80,9 +80,10 @@ public static AttributeClass create() { } /** - * Tries to instantiate a {@link AttributeClass} proxy from a {@link Class} stereotyped << Attribute_Class >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link AttributeClass} proxy from a {@link Class} stereotyped << Attribute_Class >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link AttributeClass} proxy or null. */ @@ -92,19 +93,20 @@ public static AttributeClass instantiate(final Class obj) { } /** - * Tries to instantiate a {@link AttributeClass} proxy from a {@link Class} stereotyped << Attribute_Class >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link AttributeClass} proxy from a {@link Class} stereotyped << Attribute_Class >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link AttributeClass} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("34842a44-dafd-4f09-a152-e0b5aca70b0b") public static AttributeClass safeInstantiate(final Class obj) throws IllegalArgumentException { if (AttributeClass.canInstantiate(obj)) - return new AttributeClass(obj); + return new AttributeClass(obj); else - throw new IllegalArgumentException("AttributeClass: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("AttributeClass: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("f6f70581-1b88-4392-a70f-f90e3a7eed69") @@ -124,7 +126,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("9bcef4ab-c7c8-4c39-a12a-9b01be43a4b7") @@ -137,7 +140,6 @@ public Class getElement() { * Get the value to the 'parent' role.

* Role description: * null - * */ @objid ("fcb908ac-e18c-4268-982c-99d54f1d3044") public FeaturePackage getParent() { @@ -148,7 +150,6 @@ public FeaturePackage getParent() { * Get the value of the 'unit' role.

* Role description: * null - * */ @objid ("8e73f9e5-abbd-45b5-8f35-c33203cde311") public Unit getUnit() { @@ -180,7 +181,6 @@ public String getValue() { * Get the value of the 'valueType' role.

* Role description: * null - * */ @objid ("d52aad47-d66b-4af3-9173-e4ab2c907caa") public ValueType getValueType() { @@ -212,7 +212,6 @@ public int hashCode() { * Set the value of the 'parent' role.

* Role description: * null - * */ @objid ("1db10af8-144c-456d-8396-4750913a3251") public void setParent(final FeaturePackage obj) { @@ -223,7 +222,6 @@ public void setParent(final FeaturePackage obj) { * Set the value of the 'unit' role.

* Role description: * null - * */ @objid ("3e4887e5-7cc9-46b5-8093-a0bc8ebe6775") public void setUnit(final Unit obj) { @@ -259,7 +257,6 @@ public void setValue(final String value) { * Set the value of the 'valueType' role.

* Role description: * null - * */ @objid ("0e57e240-af8d-4fcd-8562-0946f76ef297") public void setValueType(final ValueType obj) { @@ -351,11 +348,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/class_/FeatureClass.java b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/class_/FeatureClass.java index d921f94d..86881f25 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/class_/FeatureClass.java +++ b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/class_/FeatureClass.java @@ -65,9 +65,10 @@ public static FeatureClass create() { } /** - * Tries to instantiate a {@link FeatureClass} proxy from a {@link Class} stereotyped << Feature_Class >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link FeatureClass} proxy from a {@link Class} stereotyped << Feature_Class >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link FeatureClass} proxy or null. */ @@ -77,19 +78,20 @@ public static FeatureClass instantiate(final Class obj) { } /** - * Tries to instantiate a {@link FeatureClass} proxy from a {@link Class} stereotyped << Feature_Class >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link FeatureClass} proxy from a {@link Class} stereotyped << Feature_Class >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link FeatureClass} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("a8b0cbc7-e54e-49f5-a01d-87f8d0f32906") public static FeatureClass safeInstantiate(final Class obj) throws IllegalArgumentException { if (FeatureClass.canInstantiate(obj)) - return new FeatureClass(obj); + return new FeatureClass(obj); else - throw new IllegalArgumentException("FeatureClass: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("FeatureClass: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("6bcd4750-4874-470e-8572-406938b76370") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("5835fa4e-afe1-410a-b5e1-d98e0fe849b5") @@ -156,11 +159,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/class_/MeasurableAttributeClass.java b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/class_/MeasurableAttributeClass.java index e2d5e702..18338222 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/class_/MeasurableAttributeClass.java +++ b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/class_/MeasurableAttributeClass.java @@ -64,9 +64,10 @@ public static MeasurableAttributeClass create() { } /** - * Tries to instantiate a {@link MeasurableAttributeClass} proxy from a {@link Class} stereotyped << MeasurableAttribute_Class >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link MeasurableAttributeClass} proxy from a {@link Class} stereotyped << MeasurableAttribute_Class >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link MeasurableAttributeClass} proxy or null. */ @@ -76,26 +77,26 @@ public static MeasurableAttributeClass instantiate(final Class obj) { } /** - * Tries to instantiate a {@link MeasurableAttributeClass} proxy from a {@link Class} stereotyped << MeasurableAttribute_Class >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link MeasurableAttributeClass} proxy from a {@link Class} stereotyped << MeasurableAttribute_Class >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link MeasurableAttributeClass} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("1773b725-3c4f-47d0-916d-f9db8882e7ae") public static MeasurableAttributeClass safeInstantiate(final Class obj) throws IllegalArgumentException { if (MeasurableAttributeClass.canInstantiate(obj)) - return new MeasurableAttributeClass(obj); + return new MeasurableAttributeClass(obj); else - throw new IllegalArgumentException("MeasurableAttributeClass: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("MeasurableAttributeClass: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'sensors' role.

* Role description: * null - * */ @objid ("5905fc62-3ce4-48c9-aa05-1921f6fa198f") public void addSensors(final Sensor obj) { @@ -124,7 +125,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("f6c3f506-4edd-42c6-87ce-f06275b39e86") @@ -137,7 +139,6 @@ public Class getElement() { * Get the values of the 'sensors' role.

* Role description: * null - * */ @objid ("4d074097-10b6-4e69-a730-3e1e5b565ff5") public List getSensors() { @@ -162,7 +163,6 @@ public int hashCode() { * Remove a value from the 'sensors' role.

* Role description: * null - * */ @objid ("43e760a4-16c8-40ec-a7a2-221adeb0e95d") public boolean removeSensors(final Sensor obj) { @@ -202,11 +202,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/class_/QualityAttributeClass.java b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/class_/QualityAttributeClass.java index 0aacc032..71d21e6c 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/class_/QualityAttributeClass.java +++ b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/class_/QualityAttributeClass.java @@ -62,9 +62,10 @@ public static QualityAttributeClass create() { } /** - * Tries to instantiate a {@link QualityAttributeClass} proxy from a {@link Class} stereotyped << QualityAttribute_Class >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link QualityAttributeClass} proxy from a {@link Class} stereotyped << QualityAttribute_Class >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link QualityAttributeClass} proxy or null. */ @@ -74,19 +75,20 @@ public static QualityAttributeClass instantiate(final Class obj) { } /** - * Tries to instantiate a {@link QualityAttributeClass} proxy from a {@link Class} stereotyped << QualityAttribute_Class >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link QualityAttributeClass} proxy from a {@link Class} stereotyped << QualityAttribute_Class >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link QualityAttributeClass} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("70068ebf-dc0e-4934-badd-21039f5bcbfc") public static QualityAttributeClass safeInstantiate(final Class obj) throws IllegalArgumentException { if (QualityAttributeClass.canInstantiate(obj)) - return new QualityAttributeClass(obj); + return new QualityAttributeClass(obj); else - throw new IllegalArgumentException("QualityAttributeClass: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("QualityAttributeClass: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("bba0f998-7a31-441a-8f25-bba963da5d5d") @@ -106,7 +108,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("72e7f24f-e7e0-432d-8b42-8729a5c50116") @@ -145,11 +148,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/classifier/FeatureClassifier.java b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/classifier/FeatureClassifier.java index 93005109..52eed019 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/classifier/FeatureClassifier.java +++ b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/classifier/FeatureClassifier.java @@ -10,13 +10,6 @@ import java.util.Collections; import java.util.List; import com.modeliosoft.modelio.javadesigner.annotations.objid; -import org.modelio.api.module.context.IModuleContext; -import org.modelio.metamodel.uml.infrastructure.ModelTree; -import org.modelio.metamodel.uml.infrastructure.Stereotype; -import org.modelio.metamodel.uml.infrastructure.TagType; -import org.modelio.metamodel.uml.statik.Attribute; -import org.modelio.metamodel.uml.statik.Classifier; -import org.modelio.vcore.smkernel.mapi.MObject; import fr.softeam.cameldesigner.api.CamelDesignerProxyFactory; import fr.softeam.cameldesigner.api.ICamelDesignerPeerModule; import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelAttribute; @@ -115,6 +108,13 @@ import fr.softeam.cameldesigner.api.unitmodel.standard.datatype.SingleUnit; import fr.softeam.cameldesigner.api.unitmodel.standard.datatype.UnitDimension; import fr.softeam.cameldesigner.impl.CamelDesignerModule; +import org.modelio.api.module.context.IModuleContext; +import org.modelio.metamodel.uml.infrastructure.ModelTree; +import org.modelio.metamodel.uml.infrastructure.Stereotype; +import org.modelio.metamodel.uml.infrastructure.TagType; +import org.modelio.metamodel.uml.statik.Attribute; +import org.modelio.metamodel.uml.statik.Classifier; +import org.modelio.vcore.smkernel.mapi.MObject; /** * Proxy class to handle a {@link Classifier} with << Feature_Classifier >> stereotype. @@ -130,7 +130,7 @@ public abstract class FeatureClassifier extends Feature { * Tells whether a {@link FeatureClassifier proxy} can be instantiated from a {@link MObject} checking it is a {@link Classifier} stereotyped << Feature_Classifier >>. *

* The method returns false if the instantiation cannot be carried out. - * + * * @param elt a model object * @return true if the instantiation can be carried out else false. */ @@ -143,7 +143,6 @@ public static boolean canInstantiate(final MObject elt) { * Add a value to the 'attributes' role.

* Role description: * null - * */ @objid ("a31b6058-3ce2-49bf-8e71-f4f3b0750b6d") public void addAttributes(final AttributeAttribute obj) { @@ -155,7 +154,6 @@ public void addAttributes(final AttributeAttribute obj) { * Add a value to the 'subFeatures' role.

* Role description: * null - * */ @objid ("8ed0e17f-e890-481a-a292-db17da038acf") public void addSubFeatures(final FeatureClassifier obj) { @@ -183,20 +181,19 @@ public boolean equals(final Object obj) { * Get the values of the 'attributes' role.

* Role description: * null - * */ @objid ("7197c7fa-ec9c-4b62-b621-b71fdee1d02f") public List getAttributes() { List results = new ArrayList<>(); for (Attribute mObj : getElement().getOwnedAttribute()){ - if (MeasurableAttributeAttribute.canInstantiate(mObj)) - results.add((MeasurableAttributeAttribute)CamelDesignerProxyFactory.instantiate(mObj, MeasurableAttributeAttribute.STEREOTYPE_NAME)); - if (QualityAttributeAttribute.canInstantiate(mObj)) - results.add((QualityAttributeAttribute)CamelDesignerProxyFactory.instantiate(mObj, QualityAttributeAttribute.STEREOTYPE_NAME)); - if (AttributeAttribute.canInstantiate(mObj)) - results.add((AttributeAttribute)CamelDesignerProxyFactory.instantiate(mObj, AttributeAttribute.STEREOTYPE_NAME)); - } - + if (MeasurableAttributeAttribute.canInstantiate(mObj)) + results.add((MeasurableAttributeAttribute)CamelDesignerProxyFactory.instantiate(mObj, MeasurableAttributeAttribute.STEREOTYPE_NAME)); + if (QualityAttributeAttribute.canInstantiate(mObj)) + results.add((QualityAttributeAttribute)CamelDesignerProxyFactory.instantiate(mObj, QualityAttributeAttribute.STEREOTYPE_NAME)); + if (AttributeAttribute.canInstantiate(mObj)) + results.add((AttributeAttribute)CamelDesignerProxyFactory.instantiate(mObj, AttributeAttribute.STEREOTYPE_NAME)); + } + for (ModelTree mObj : getElement().getOwnedElement()){ if (MeasurableAttributeClass.canInstantiate(mObj)) results.add((MeasurableAttributeClass) CamelDesignerProxyFactory.instantiate(mObj, MeasurableAttributeClass.STEREOTYPE_NAME)); @@ -210,6 +207,7 @@ public List getAttributes() { /** * Get the underlying {@link Classifier}. + * * @return the Classifier represented by this proxy, never null. */ @objid ("4f5ef67d-dcb7-44a8-aa15-cbfbb071466b") @@ -222,7 +220,6 @@ public Classifier getElement() { * Get the value to the 'parent' role.

* Role description: * null - * */ @objid ("c7d9c595-2d79-4d2a-b185-7e02f2cf78c2") public FeatureClassifier getParent() { @@ -233,185 +230,184 @@ public FeatureClassifier getParent() { * Get the values of the 'subFeatures' role.

* Role description: * null - * */ @objid ("7329a7c9-b9ef-454d-b918-588a04b7323d") public List getSubFeatures() { List results = new ArrayList<>(); for (ModelTree mObj : ((Classifier) this.elt).getOwnedElement()){ - if (BuildConfiguration.canInstantiate(mObj)) - results.add((BuildConfiguration)CamelDesignerProxyFactory.instantiate(mObj, BuildConfiguration.STEREOTYPE_NAME)); - if (ClusterConfiguration.canInstantiate(mObj)) - results.add((ClusterConfiguration)CamelDesignerProxyFactory.instantiate(mObj, ClusterConfiguration.STEREOTYPE_NAME)); - if (PaaSConfiguration.canInstantiate(mObj)) - results.add((PaaSConfiguration)CamelDesignerProxyFactory.instantiate(mObj, PaaSConfiguration.STEREOTYPE_NAME)); - if (ScriptConfiguration.canInstantiate(mObj)) - results.add((ScriptConfiguration)CamelDesignerProxyFactory.instantiate(mObj, ScriptConfiguration.STEREOTYPE_NAME)); - if (ServerlessConfiguration.canInstantiate(mObj)) - results.add((ServerlessConfiguration)CamelDesignerProxyFactory.instantiate(mObj, ServerlessConfiguration.STEREOTYPE_NAME)); - if (EventConfiguration.canInstantiate(mObj)) - results.add((EventConfiguration)CamelDesignerProxyFactory.instantiate(mObj, EventConfiguration.STEREOTYPE_NAME)); - if (FeatureArtifact.canInstantiate(mObj)) - results.add((FeatureArtifact)CamelDesignerProxyFactory.instantiate(mObj, FeatureArtifact.STEREOTYPE_NAME)); - if (Application.canInstantiate(mObj)) - results.add((Application)CamelDesignerProxyFactory.instantiate(mObj, Application.STEREOTYPE_NAME)); - if (Data.canInstantiate(mObj)) - results.add((Data)CamelDesignerProxyFactory.instantiate(mObj, Data.STEREOTYPE_NAME)); - if (DataSource.canInstantiate(mObj)) - results.add((DataSource)CamelDesignerProxyFactory.instantiate(mObj, DataSource.STEREOTYPE_NAME)); - if (Container.canInstantiate(mObj)) - results.add((Container)CamelDesignerProxyFactory.instantiate(mObj, Container.STEREOTYPE_NAME)); - if (PaaS.canInstantiate(mObj)) - results.add((PaaS)CamelDesignerProxyFactory.instantiate(mObj, PaaS.STEREOTYPE_NAME)); - if (Sensor.canInstantiate(mObj)) - results.add((Sensor)CamelDesignerProxyFactory.instantiate(mObj, Sensor.STEREOTYPE_NAME)); - if (SoftwareComponent.canInstantiate(mObj)) - results.add((SoftwareComponent)CamelDesignerProxyFactory.instantiate(mObj, SoftwareComponent.STEREOTYPE_NAME)); - if (VM.canInstantiate(mObj)) - results.add((VM)CamelDesignerProxyFactory.instantiate(mObj, VM.STEREOTYPE_NAME)); - if (RequirementSet.canInstantiate(mObj)) - results.add((RequirementSet)CamelDesignerProxyFactory.instantiate(mObj, RequirementSet.STEREOTYPE_NAME)); - if (RuleTrigger.canInstantiate(mObj)) - results.add((RuleTrigger)CamelDesignerProxyFactory.instantiate(mObj, RuleTrigger.STEREOTYPE_NAME)); - if (SLOViolation.canInstantiate(mObj)) - results.add((SLOViolation)CamelDesignerProxyFactory.instantiate(mObj, SLOViolation.STEREOTYPE_NAME)); - if (Cause.canInstantiate(mObj)) - results.add((Cause)CamelDesignerProxyFactory.instantiate(mObj, Cause.STEREOTYPE_NAME)); - if (HistoryInfo.canInstantiate(mObj)) - results.add((HistoryInfo)CamelDesignerProxyFactory.instantiate(mObj, HistoryInfo.STEREOTYPE_NAME)); - if (HistoryRecord.canInstantiate(mObj)) - results.add((HistoryRecord)CamelDesignerProxyFactory.instantiate(mObj, HistoryRecord.STEREOTYPE_NAME)); - if (ApplicationMeasurement.canInstantiate(mObj)) - results.add((ApplicationMeasurement)CamelDesignerProxyFactory.instantiate(mObj, ApplicationMeasurement.STEREOTYPE_NAME)); - if (CommunicationMeasurement.canInstantiate(mObj)) - results.add((CommunicationMeasurement)CamelDesignerProxyFactory.instantiate(mObj, CommunicationMeasurement.STEREOTYPE_NAME)); - if (ContainerMeasurement.canInstantiate(mObj)) - results.add((ContainerMeasurement)CamelDesignerProxyFactory.instantiate(mObj, ContainerMeasurement.STEREOTYPE_NAME)); - if (DataMeasurement.canInstantiate(mObj)) - results.add((DataMeasurement)CamelDesignerProxyFactory.instantiate(mObj, DataMeasurement.STEREOTYPE_NAME)); - if (PaaSMeasurement.canInstantiate(mObj)) - results.add((PaaSMeasurement)CamelDesignerProxyFactory.instantiate(mObj, PaaSMeasurement.STEREOTYPE_NAME)); - if (SoftwareComponentMeasurement.canInstantiate(mObj)) - results.add((SoftwareComponentMeasurement)CamelDesignerProxyFactory.instantiate(mObj, SoftwareComponentMeasurement.STEREOTYPE_NAME)); - if (VMMeasurement.canInstantiate(mObj)) - results.add((VMMeasurement)CamelDesignerProxyFactory.instantiate(mObj, VMMeasurement.STEREOTYPE_NAME)); - if (AttributeContext.canInstantiate(mObj)) - results.add((AttributeContext)CamelDesignerProxyFactory.instantiate(mObj, AttributeContext.STEREOTYPE_NAME)); - if (Function.canInstantiate(mObj)) - results.add((Function)CamelDesignerProxyFactory.instantiate(mObj, Function.STEREOTYPE_NAME)); - if (CompositeSecurityMetric.canInstantiate(mObj)) - results.add((CompositeSecurityMetric)CamelDesignerProxyFactory.instantiate(mObj, CompositeSecurityMetric.STEREOTYPE_NAME)); - if (CompositeMetric.canInstantiate(mObj)) - results.add((CompositeMetric)CamelDesignerProxyFactory.instantiate(mObj, CompositeMetric.STEREOTYPE_NAME)); - if (MetricVariable.canInstantiate(mObj)) - results.add((MetricVariable)CamelDesignerProxyFactory.instantiate(mObj, MetricVariable.STEREOTYPE_NAME)); - if (RawSecurityMetric.canInstantiate(mObj)) - results.add((RawSecurityMetric)CamelDesignerProxyFactory.instantiate(mObj, RawSecurityMetric.STEREOTYPE_NAME)); - if (RawMetric.canInstantiate(mObj)) - results.add((RawMetric)CamelDesignerProxyFactory.instantiate(mObj, RawMetric.STEREOTYPE_NAME)); - if (CompositeMetricContext.canInstantiate(mObj)) - results.add((CompositeMetricContext)CamelDesignerProxyFactory.instantiate(mObj, CompositeMetricContext.STEREOTYPE_NAME)); - if (RawMetricContext.canInstantiate(mObj)) - results.add((RawMetricContext)CamelDesignerProxyFactory.instantiate(mObj, RawMetricContext.STEREOTYPE_NAME)); - if (MetricObjectBinding.canInstantiate(mObj)) - results.add((MetricObjectBinding)CamelDesignerProxyFactory.instantiate(mObj, MetricObjectBinding.STEREOTYPE_NAME)); - if (MetricTemplate.canInstantiate(mObj)) - results.add((MetricTemplate)CamelDesignerProxyFactory.instantiate(mObj, MetricTemplate.STEREOTYPE_NAME)); - if (ObjectContext.canInstantiate(mObj)) - results.add((ObjectContext)CamelDesignerProxyFactory.instantiate(mObj, ObjectContext.STEREOTYPE_NAME)); - if (Schedule.canInstantiate(mObj)) - results.add((Schedule)CamelDesignerProxyFactory.instantiate(mObj, Schedule.STEREOTYPE_NAME)); - if (Window.canInstantiate(mObj)) - results.add((Window)CamelDesignerProxyFactory.instantiate(mObj, Window.STEREOTYPE_NAME)); - if (CloudCredentials.canInstantiate(mObj)) - results.add((CloudCredentials)CamelDesignerProxyFactory.instantiate(mObj, CloudCredentials.STEREOTYPE_NAME)); - if (PlatformCredentials.canInstantiate(mObj)) - results.add((PlatformCredentials)CamelDesignerProxyFactory.instantiate(mObj, PlatformCredentials.STEREOTYPE_NAME)); - if (CloudProvider.canInstantiate(mObj)) - results.add((CloudProvider)CamelDesignerProxyFactory.instantiate(mObj, CloudProvider.STEREOTYPE_NAME)); - if (Organisation.canInstantiate(mObj)) - results.add((Organisation)CamelDesignerProxyFactory.instantiate(mObj, Organisation.STEREOTYPE_NAME)); - if (User.canInstantiate(mObj)) - results.add((User)CamelDesignerProxyFactory.instantiate(mObj, User.STEREOTYPE_NAME)); - if (Entity.canInstantiate(mObj)) - results.add((Entity)CamelDesignerProxyFactory.instantiate(mObj, Entity.STEREOTYPE_NAME)); - if (ExternalIdentifier.canInstantiate(mObj)) - results.add((ExternalIdentifier)CamelDesignerProxyFactory.instantiate(mObj, ExternalIdentifier.STEREOTYPE_NAME)); - if (Permission.canInstantiate(mObj)) - results.add((Permission)CamelDesignerProxyFactory.instantiate(mObj, Permission.STEREOTYPE_NAME)); - if (DataResourceFilter.canInstantiate(mObj)) - results.add((DataResourceFilter)CamelDesignerProxyFactory.instantiate(mObj, DataResourceFilter.STEREOTYPE_NAME)); - if (ModelResourceFilter.canInstantiate(mObj)) - results.add((ModelResourceFilter)CamelDesignerProxyFactory.instantiate(mObj, ModelResourceFilter.STEREOTYPE_NAME)); - if (ServiceResourceFilter.canInstantiate(mObj)) - results.add((ServiceResourceFilter)CamelDesignerProxyFactory.instantiate(mObj, ServiceResourceFilter.STEREOTYPE_NAME)); - if (SoftwareComponentResourceFilter.canInstantiate(mObj)) - results.add((SoftwareComponentResourceFilter)CamelDesignerProxyFactory.instantiate(mObj, SoftwareComponentResourceFilter.STEREOTYPE_NAME)); - if (Role.canInstantiate(mObj)) - results.add((Role)CamelDesignerProxyFactory.instantiate(mObj, Role.STEREOTYPE_NAME)); - if (RoleAssignment.canInstantiate(mObj)) - results.add((RoleAssignment)CamelDesignerProxyFactory.instantiate(mObj, RoleAssignment.STEREOTYPE_NAME)); - if (UserGroup.canInstantiate(mObj)) - results.add((UserGroup)CamelDesignerProxyFactory.instantiate(mObj, UserGroup.STEREOTYPE_NAME)); - if (BinaryEventPattern.canInstantiate(mObj)) - results.add((BinaryEventPattern)CamelDesignerProxyFactory.instantiate(mObj, BinaryEventPattern.STEREOTYPE_NAME)); - if (UnaryEventPattern.canInstantiate(mObj)) - results.add((UnaryEventPattern)CamelDesignerProxyFactory.instantiate(mObj, UnaryEventPattern.STEREOTYPE_NAME)); - if (FunctionalEvent.canInstantiate(mObj)) - results.add((FunctionalEvent)CamelDesignerProxyFactory.instantiate(mObj, FunctionalEvent.STEREOTYPE_NAME)); - if (NonFunctionalEvent.canInstantiate(mObj)) - results.add((NonFunctionalEvent)CamelDesignerProxyFactory.instantiate(mObj, NonFunctionalEvent.STEREOTYPE_NAME)); - if (ScalabilityRule.canInstantiate(mObj)) - results.add((ScalabilityRule)CamelDesignerProxyFactory.instantiate(mObj, ScalabilityRule.STEREOTYPE_NAME)); - if (Timer.canInstantiate(mObj)) - results.add((Timer)CamelDesignerProxyFactory.instantiate(mObj, Timer.STEREOTYPE_NAME)); - if (SecurityControl.canInstantiate(mObj)) - results.add((SecurityControl)CamelDesignerProxyFactory.instantiate(mObj, SecurityControl.STEREOTYPE_NAME)); - if (SecurityDomain.canInstantiate(mObj)) - results.add((SecurityDomain)CamelDesignerProxyFactory.instantiate(mObj, SecurityDomain.STEREOTYPE_NAME)); - if (FeatureClass.canInstantiate(mObj)) - results.add((FeatureClass)CamelDesignerProxyFactory.instantiate(mObj, FeatureClass.STEREOTYPE_NAME)); - if (SingleUnit.canInstantiate(mObj)) - results.add((SingleUnit)CamelDesignerProxyFactory.instantiate(mObj, SingleUnit.STEREOTYPE_NAME)); - if (CompositeUnit.canInstantiate(mObj)) - results.add((CompositeUnit)CamelDesignerProxyFactory.instantiate(mObj, CompositeUnit.STEREOTYPE_NAME)); - if (Dimensionless.canInstantiate(mObj)) - results.add((Dimensionless)CamelDesignerProxyFactory.instantiate(mObj, Dimensionless.STEREOTYPE_NAME)); - if (UnitDimension.canInstantiate(mObj)) - results.add((UnitDimension)CamelDesignerProxyFactory.instantiate(mObj, UnitDimension.STEREOTYPE_NAME)); - if (FeatureDataType.canInstantiate(mObj)) - results.add((FeatureDataType)CamelDesignerProxyFactory.instantiate(mObj, FeatureDataType.STEREOTYPE_NAME)); - if (CloudLocation.canInstantiate(mObj)) - results.add((CloudLocation)CamelDesignerProxyFactory.instantiate(mObj, CloudLocation.STEREOTYPE_NAME)); - if (GeographicalRegion.canInstantiate(mObj)) - results.add((GeographicalRegion)CamelDesignerProxyFactory.instantiate(mObj, GeographicalRegion.STEREOTYPE_NAME)); - if (FeatureEnumeration.canInstantiate(mObj)) - results.add((FeatureEnumeration)CamelDesignerProxyFactory.instantiate(mObj, FeatureEnumeration.STEREOTYPE_NAME)); - if (ImageRequirement.canInstantiate(mObj)) - results.add((ImageRequirement)CamelDesignerProxyFactory.instantiate(mObj, ImageRequirement.STEREOTYPE_NAME)); - if (LocationRequirement.canInstantiate(mObj)) - results.add((LocationRequirement)CamelDesignerProxyFactory.instantiate(mObj, LocationRequirement.STEREOTYPE_NAME)); - if (OSRequirement.canInstantiate(mObj)) - results.add((OSRequirement)CamelDesignerProxyFactory.instantiate(mObj, OSRequirement.STEREOTYPE_NAME)); - if (PaaSRequirement.canInstantiate(mObj)) - results.add((PaaSRequirement)CamelDesignerProxyFactory.instantiate(mObj, PaaSRequirement.STEREOTYPE_NAME)); - if (ProviderRequirement.canInstantiate(mObj)) - results.add((ProviderRequirement)CamelDesignerProxyFactory.instantiate(mObj, ProviderRequirement.STEREOTYPE_NAME)); - if (ResourceRequirement.canInstantiate(mObj)) - results.add((ResourceRequirement)CamelDesignerProxyFactory.instantiate(mObj, ResourceRequirement.STEREOTYPE_NAME)); - if (HorizontalScaleRequirement.canInstantiate(mObj)) - results.add((HorizontalScaleRequirement)CamelDesignerProxyFactory.instantiate(mObj, HorizontalScaleRequirement.STEREOTYPE_NAME)); - if (VerticalScaleRequirement.canInstantiate(mObj)) - results.add((VerticalScaleRequirement)CamelDesignerProxyFactory.instantiate(mObj, VerticalScaleRequirement.STEREOTYPE_NAME)); - if (SecurityRequirement.canInstantiate(mObj)) - results.add((SecurityRequirement)CamelDesignerProxyFactory.instantiate(mObj, SecurityRequirement.STEREOTYPE_NAME)); - if (SecuritySLO.canInstantiate(mObj)) - results.add((SecuritySLO)CamelDesignerProxyFactory.instantiate(mObj, SecuritySLO.STEREOTYPE_NAME)); - if (ServiceLevelObjective.canInstantiate(mObj)) - results.add((ServiceLevelObjective)CamelDesignerProxyFactory.instantiate(mObj, ServiceLevelObjective.STEREOTYPE_NAME)); - if (OptimisationRequirement.canInstantiate(mObj)) - results.add((OptimisationRequirement)CamelDesignerProxyFactory.instantiate(mObj, OptimisationRequirement.STEREOTYPE_NAME)); - } + if (BuildConfiguration.canInstantiate(mObj)) + results.add((BuildConfiguration)CamelDesignerProxyFactory.instantiate(mObj, BuildConfiguration.STEREOTYPE_NAME)); + if (ClusterConfiguration.canInstantiate(mObj)) + results.add((ClusterConfiguration)CamelDesignerProxyFactory.instantiate(mObj, ClusterConfiguration.STEREOTYPE_NAME)); + if (PaaSConfiguration.canInstantiate(mObj)) + results.add((PaaSConfiguration)CamelDesignerProxyFactory.instantiate(mObj, PaaSConfiguration.STEREOTYPE_NAME)); + if (ScriptConfiguration.canInstantiate(mObj)) + results.add((ScriptConfiguration)CamelDesignerProxyFactory.instantiate(mObj, ScriptConfiguration.STEREOTYPE_NAME)); + if (ServerlessConfiguration.canInstantiate(mObj)) + results.add((ServerlessConfiguration)CamelDesignerProxyFactory.instantiate(mObj, ServerlessConfiguration.STEREOTYPE_NAME)); + if (EventConfiguration.canInstantiate(mObj)) + results.add((EventConfiguration)CamelDesignerProxyFactory.instantiate(mObj, EventConfiguration.STEREOTYPE_NAME)); + if (FeatureArtifact.canInstantiate(mObj)) + results.add((FeatureArtifact)CamelDesignerProxyFactory.instantiate(mObj, FeatureArtifact.STEREOTYPE_NAME)); + if (Application.canInstantiate(mObj)) + results.add((Application)CamelDesignerProxyFactory.instantiate(mObj, Application.STEREOTYPE_NAME)); + if (Data.canInstantiate(mObj)) + results.add((Data)CamelDesignerProxyFactory.instantiate(mObj, Data.STEREOTYPE_NAME)); + if (DataSource.canInstantiate(mObj)) + results.add((DataSource)CamelDesignerProxyFactory.instantiate(mObj, DataSource.STEREOTYPE_NAME)); + if (Container.canInstantiate(mObj)) + results.add((Container)CamelDesignerProxyFactory.instantiate(mObj, Container.STEREOTYPE_NAME)); + if (PaaS.canInstantiate(mObj)) + results.add((PaaS)CamelDesignerProxyFactory.instantiate(mObj, PaaS.STEREOTYPE_NAME)); + if (Sensor.canInstantiate(mObj)) + results.add((Sensor)CamelDesignerProxyFactory.instantiate(mObj, Sensor.STEREOTYPE_NAME)); + if (SoftwareComponent.canInstantiate(mObj)) + results.add((SoftwareComponent)CamelDesignerProxyFactory.instantiate(mObj, SoftwareComponent.STEREOTYPE_NAME)); + if (VM.canInstantiate(mObj)) + results.add((VM)CamelDesignerProxyFactory.instantiate(mObj, VM.STEREOTYPE_NAME)); + if (RequirementSet.canInstantiate(mObj)) + results.add((RequirementSet)CamelDesignerProxyFactory.instantiate(mObj, RequirementSet.STEREOTYPE_NAME)); + if (RuleTrigger.canInstantiate(mObj)) + results.add((RuleTrigger)CamelDesignerProxyFactory.instantiate(mObj, RuleTrigger.STEREOTYPE_NAME)); + if (SLOViolation.canInstantiate(mObj)) + results.add((SLOViolation)CamelDesignerProxyFactory.instantiate(mObj, SLOViolation.STEREOTYPE_NAME)); + if (Cause.canInstantiate(mObj)) + results.add((Cause)CamelDesignerProxyFactory.instantiate(mObj, Cause.STEREOTYPE_NAME)); + if (HistoryInfo.canInstantiate(mObj)) + results.add((HistoryInfo)CamelDesignerProxyFactory.instantiate(mObj, HistoryInfo.STEREOTYPE_NAME)); + if (HistoryRecord.canInstantiate(mObj)) + results.add((HistoryRecord)CamelDesignerProxyFactory.instantiate(mObj, HistoryRecord.STEREOTYPE_NAME)); + if (ApplicationMeasurement.canInstantiate(mObj)) + results.add((ApplicationMeasurement)CamelDesignerProxyFactory.instantiate(mObj, ApplicationMeasurement.STEREOTYPE_NAME)); + if (CommunicationMeasurement.canInstantiate(mObj)) + results.add((CommunicationMeasurement)CamelDesignerProxyFactory.instantiate(mObj, CommunicationMeasurement.STEREOTYPE_NAME)); + if (ContainerMeasurement.canInstantiate(mObj)) + results.add((ContainerMeasurement)CamelDesignerProxyFactory.instantiate(mObj, ContainerMeasurement.STEREOTYPE_NAME)); + if (DataMeasurement.canInstantiate(mObj)) + results.add((DataMeasurement)CamelDesignerProxyFactory.instantiate(mObj, DataMeasurement.STEREOTYPE_NAME)); + if (PaaSMeasurement.canInstantiate(mObj)) + results.add((PaaSMeasurement)CamelDesignerProxyFactory.instantiate(mObj, PaaSMeasurement.STEREOTYPE_NAME)); + if (SoftwareComponentMeasurement.canInstantiate(mObj)) + results.add((SoftwareComponentMeasurement)CamelDesignerProxyFactory.instantiate(mObj, SoftwareComponentMeasurement.STEREOTYPE_NAME)); + if (VMMeasurement.canInstantiate(mObj)) + results.add((VMMeasurement)CamelDesignerProxyFactory.instantiate(mObj, VMMeasurement.STEREOTYPE_NAME)); + if (AttributeContext.canInstantiate(mObj)) + results.add((AttributeContext)CamelDesignerProxyFactory.instantiate(mObj, AttributeContext.STEREOTYPE_NAME)); + if (Function.canInstantiate(mObj)) + results.add((Function)CamelDesignerProxyFactory.instantiate(mObj, Function.STEREOTYPE_NAME)); + if (CompositeSecurityMetric.canInstantiate(mObj)) + results.add((CompositeSecurityMetric)CamelDesignerProxyFactory.instantiate(mObj, CompositeSecurityMetric.STEREOTYPE_NAME)); + if (CompositeMetric.canInstantiate(mObj)) + results.add((CompositeMetric)CamelDesignerProxyFactory.instantiate(mObj, CompositeMetric.STEREOTYPE_NAME)); + if (MetricVariable.canInstantiate(mObj)) + results.add((MetricVariable)CamelDesignerProxyFactory.instantiate(mObj, MetricVariable.STEREOTYPE_NAME)); + if (RawSecurityMetric.canInstantiate(mObj)) + results.add((RawSecurityMetric)CamelDesignerProxyFactory.instantiate(mObj, RawSecurityMetric.STEREOTYPE_NAME)); + if (RawMetric.canInstantiate(mObj)) + results.add((RawMetric)CamelDesignerProxyFactory.instantiate(mObj, RawMetric.STEREOTYPE_NAME)); + if (CompositeMetricContext.canInstantiate(mObj)) + results.add((CompositeMetricContext)CamelDesignerProxyFactory.instantiate(mObj, CompositeMetricContext.STEREOTYPE_NAME)); + if (RawMetricContext.canInstantiate(mObj)) + results.add((RawMetricContext)CamelDesignerProxyFactory.instantiate(mObj, RawMetricContext.STEREOTYPE_NAME)); + if (MetricObjectBinding.canInstantiate(mObj)) + results.add((MetricObjectBinding)CamelDesignerProxyFactory.instantiate(mObj, MetricObjectBinding.STEREOTYPE_NAME)); + if (MetricTemplate.canInstantiate(mObj)) + results.add((MetricTemplate)CamelDesignerProxyFactory.instantiate(mObj, MetricTemplate.STEREOTYPE_NAME)); + if (ObjectContext.canInstantiate(mObj)) + results.add((ObjectContext)CamelDesignerProxyFactory.instantiate(mObj, ObjectContext.STEREOTYPE_NAME)); + if (Schedule.canInstantiate(mObj)) + results.add((Schedule)CamelDesignerProxyFactory.instantiate(mObj, Schedule.STEREOTYPE_NAME)); + if (Window.canInstantiate(mObj)) + results.add((Window)CamelDesignerProxyFactory.instantiate(mObj, Window.STEREOTYPE_NAME)); + if (CloudCredentials.canInstantiate(mObj)) + results.add((CloudCredentials)CamelDesignerProxyFactory.instantiate(mObj, CloudCredentials.STEREOTYPE_NAME)); + if (PlatformCredentials.canInstantiate(mObj)) + results.add((PlatformCredentials)CamelDesignerProxyFactory.instantiate(mObj, PlatformCredentials.STEREOTYPE_NAME)); + if (CloudProvider.canInstantiate(mObj)) + results.add((CloudProvider)CamelDesignerProxyFactory.instantiate(mObj, CloudProvider.STEREOTYPE_NAME)); + if (Organisation.canInstantiate(mObj)) + results.add((Organisation)CamelDesignerProxyFactory.instantiate(mObj, Organisation.STEREOTYPE_NAME)); + if (User.canInstantiate(mObj)) + results.add((User)CamelDesignerProxyFactory.instantiate(mObj, User.STEREOTYPE_NAME)); + if (Entity.canInstantiate(mObj)) + results.add((Entity)CamelDesignerProxyFactory.instantiate(mObj, Entity.STEREOTYPE_NAME)); + if (ExternalIdentifier.canInstantiate(mObj)) + results.add((ExternalIdentifier)CamelDesignerProxyFactory.instantiate(mObj, ExternalIdentifier.STEREOTYPE_NAME)); + if (Permission.canInstantiate(mObj)) + results.add((Permission)CamelDesignerProxyFactory.instantiate(mObj, Permission.STEREOTYPE_NAME)); + if (DataResourceFilter.canInstantiate(mObj)) + results.add((DataResourceFilter)CamelDesignerProxyFactory.instantiate(mObj, DataResourceFilter.STEREOTYPE_NAME)); + if (ModelResourceFilter.canInstantiate(mObj)) + results.add((ModelResourceFilter)CamelDesignerProxyFactory.instantiate(mObj, ModelResourceFilter.STEREOTYPE_NAME)); + if (ServiceResourceFilter.canInstantiate(mObj)) + results.add((ServiceResourceFilter)CamelDesignerProxyFactory.instantiate(mObj, ServiceResourceFilter.STEREOTYPE_NAME)); + if (SoftwareComponentResourceFilter.canInstantiate(mObj)) + results.add((SoftwareComponentResourceFilter)CamelDesignerProxyFactory.instantiate(mObj, SoftwareComponentResourceFilter.STEREOTYPE_NAME)); + if (Role.canInstantiate(mObj)) + results.add((Role)CamelDesignerProxyFactory.instantiate(mObj, Role.STEREOTYPE_NAME)); + if (RoleAssignment.canInstantiate(mObj)) + results.add((RoleAssignment)CamelDesignerProxyFactory.instantiate(mObj, RoleAssignment.STEREOTYPE_NAME)); + if (UserGroup.canInstantiate(mObj)) + results.add((UserGroup)CamelDesignerProxyFactory.instantiate(mObj, UserGroup.STEREOTYPE_NAME)); + if (BinaryEventPattern.canInstantiate(mObj)) + results.add((BinaryEventPattern)CamelDesignerProxyFactory.instantiate(mObj, BinaryEventPattern.STEREOTYPE_NAME)); + if (UnaryEventPattern.canInstantiate(mObj)) + results.add((UnaryEventPattern)CamelDesignerProxyFactory.instantiate(mObj, UnaryEventPattern.STEREOTYPE_NAME)); + if (FunctionalEvent.canInstantiate(mObj)) + results.add((FunctionalEvent)CamelDesignerProxyFactory.instantiate(mObj, FunctionalEvent.STEREOTYPE_NAME)); + if (NonFunctionalEvent.canInstantiate(mObj)) + results.add((NonFunctionalEvent)CamelDesignerProxyFactory.instantiate(mObj, NonFunctionalEvent.STEREOTYPE_NAME)); + if (ScalabilityRule.canInstantiate(mObj)) + results.add((ScalabilityRule)CamelDesignerProxyFactory.instantiate(mObj, ScalabilityRule.STEREOTYPE_NAME)); + if (Timer.canInstantiate(mObj)) + results.add((Timer)CamelDesignerProxyFactory.instantiate(mObj, Timer.STEREOTYPE_NAME)); + if (SecurityControl.canInstantiate(mObj)) + results.add((SecurityControl)CamelDesignerProxyFactory.instantiate(mObj, SecurityControl.STEREOTYPE_NAME)); + if (SecurityDomain.canInstantiate(mObj)) + results.add((SecurityDomain)CamelDesignerProxyFactory.instantiate(mObj, SecurityDomain.STEREOTYPE_NAME)); + if (FeatureClass.canInstantiate(mObj)) + results.add((FeatureClass)CamelDesignerProxyFactory.instantiate(mObj, FeatureClass.STEREOTYPE_NAME)); + if (SingleUnit.canInstantiate(mObj)) + results.add((SingleUnit)CamelDesignerProxyFactory.instantiate(mObj, SingleUnit.STEREOTYPE_NAME)); + if (CompositeUnit.canInstantiate(mObj)) + results.add((CompositeUnit)CamelDesignerProxyFactory.instantiate(mObj, CompositeUnit.STEREOTYPE_NAME)); + if (Dimensionless.canInstantiate(mObj)) + results.add((Dimensionless)CamelDesignerProxyFactory.instantiate(mObj, Dimensionless.STEREOTYPE_NAME)); + if (UnitDimension.canInstantiate(mObj)) + results.add((UnitDimension)CamelDesignerProxyFactory.instantiate(mObj, UnitDimension.STEREOTYPE_NAME)); + if (FeatureDataType.canInstantiate(mObj)) + results.add((FeatureDataType)CamelDesignerProxyFactory.instantiate(mObj, FeatureDataType.STEREOTYPE_NAME)); + if (CloudLocation.canInstantiate(mObj)) + results.add((CloudLocation)CamelDesignerProxyFactory.instantiate(mObj, CloudLocation.STEREOTYPE_NAME)); + if (GeographicalRegion.canInstantiate(mObj)) + results.add((GeographicalRegion)CamelDesignerProxyFactory.instantiate(mObj, GeographicalRegion.STEREOTYPE_NAME)); + if (FeatureEnumeration.canInstantiate(mObj)) + results.add((FeatureEnumeration)CamelDesignerProxyFactory.instantiate(mObj, FeatureEnumeration.STEREOTYPE_NAME)); + if (ImageRequirement.canInstantiate(mObj)) + results.add((ImageRequirement)CamelDesignerProxyFactory.instantiate(mObj, ImageRequirement.STEREOTYPE_NAME)); + if (LocationRequirement.canInstantiate(mObj)) + results.add((LocationRequirement)CamelDesignerProxyFactory.instantiate(mObj, LocationRequirement.STEREOTYPE_NAME)); + if (OSRequirement.canInstantiate(mObj)) + results.add((OSRequirement)CamelDesignerProxyFactory.instantiate(mObj, OSRequirement.STEREOTYPE_NAME)); + if (PaaSRequirement.canInstantiate(mObj)) + results.add((PaaSRequirement)CamelDesignerProxyFactory.instantiate(mObj, PaaSRequirement.STEREOTYPE_NAME)); + if (ProviderRequirement.canInstantiate(mObj)) + results.add((ProviderRequirement)CamelDesignerProxyFactory.instantiate(mObj, ProviderRequirement.STEREOTYPE_NAME)); + if (ResourceRequirement.canInstantiate(mObj)) + results.add((ResourceRequirement)CamelDesignerProxyFactory.instantiate(mObj, ResourceRequirement.STEREOTYPE_NAME)); + if (HorizontalScaleRequirement.canInstantiate(mObj)) + results.add((HorizontalScaleRequirement)CamelDesignerProxyFactory.instantiate(mObj, HorizontalScaleRequirement.STEREOTYPE_NAME)); + if (VerticalScaleRequirement.canInstantiate(mObj)) + results.add((VerticalScaleRequirement)CamelDesignerProxyFactory.instantiate(mObj, VerticalScaleRequirement.STEREOTYPE_NAME)); + if (SecurityRequirement.canInstantiate(mObj)) + results.add((SecurityRequirement)CamelDesignerProxyFactory.instantiate(mObj, SecurityRequirement.STEREOTYPE_NAME)); + if (SecuritySLO.canInstantiate(mObj)) + results.add((SecuritySLO)CamelDesignerProxyFactory.instantiate(mObj, SecuritySLO.STEREOTYPE_NAME)); + if (ServiceLevelObjective.canInstantiate(mObj)) + results.add((ServiceLevelObjective)CamelDesignerProxyFactory.instantiate(mObj, ServiceLevelObjective.STEREOTYPE_NAME)); + if (OptimisationRequirement.canInstantiate(mObj)) + results.add((OptimisationRequirement)CamelDesignerProxyFactory.instantiate(mObj, OptimisationRequirement.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -425,7 +421,6 @@ public int hashCode() { * Remove a value from the 'attributes' role.

* Role description: * null - * */ @objid ("96f894b6-d9bc-464b-a0da-3a009daee695") public boolean removeAttributes(final AttributeAttribute obj) { @@ -436,7 +431,6 @@ public boolean removeAttributes(final AttributeAttribute obj) { * Remove a value from the 'subFeatures' role.

* Role description: * null - * */ @objid ("0a902189-1932-4827-b0f1-69da308f9b84") public boolean removeSubFeatures(final FeatureClassifier obj) { @@ -447,7 +441,6 @@ public boolean removeSubFeatures(final FeatureClassifier obj) { * Set the value of the 'parent' role.

* Role description: * null - * */ @objid ("9c4e7b93-7214-4352-b2ce-856269c41cc9") public void setParent(final FeatureClassifier obj) { @@ -488,11 +481,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/connector/FeatureConnector.java b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/connector/FeatureConnector.java index 68cd4ac9..b3092894 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/connector/FeatureConnector.java +++ b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/connector/FeatureConnector.java @@ -65,9 +65,10 @@ public static FeatureConnector create() { } /** - * Tries to instantiate a {@link FeatureConnector} proxy from a {@link Connector} stereotyped << Feature_Connector >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link FeatureConnector} proxy from a {@link Connector} stereotyped << Feature_Connector >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Connector * @return a {@link FeatureConnector} proxy or null. */ @@ -77,19 +78,20 @@ public static FeatureConnector instantiate(final Connector obj) { } /** - * Tries to instantiate a {@link FeatureConnector} proxy from a {@link Connector} stereotyped << Feature_Connector >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link FeatureConnector} proxy from a {@link Connector} stereotyped << Feature_Connector >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Connector} * @return a {@link FeatureConnector} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("81c56b01-fdfa-456b-abaa-12738db0bf16") public static FeatureConnector safeInstantiate(final Connector obj) throws IllegalArgumentException { if (FeatureConnector.canInstantiate(obj)) - return new FeatureConnector(obj); + return new FeatureConnector(obj); else - throw new IllegalArgumentException("FeatureConnector: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("FeatureConnector: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("5629473d-2254-4389-bae7-e1de17a1fec6") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Connector}. + * Get the underlying {@link Connector}. + * * @return the Connector represented by this proxy, never null. */ @objid ("0ffc9279-343b-4a5c-a84d-fe934cf018c7") @@ -156,11 +159,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/datatype/FeatureDataType.java b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/datatype/FeatureDataType.java index 4cf3609b..04688f66 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/datatype/FeatureDataType.java +++ b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/datatype/FeatureDataType.java @@ -65,9 +65,10 @@ public static FeatureDataType create() { } /** - * Tries to instantiate a {@link FeatureDataType} proxy from a {@link DataType} stereotyped << Feature_DataType >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link FeatureDataType} proxy from a {@link DataType} stereotyped << Feature_DataType >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a DataType * @return a {@link FeatureDataType} proxy or null. */ @@ -77,19 +78,20 @@ public static FeatureDataType instantiate(final DataType obj) { } /** - * Tries to instantiate a {@link FeatureDataType} proxy from a {@link DataType} stereotyped << Feature_DataType >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link FeatureDataType} proxy from a {@link DataType} stereotyped << Feature_DataType >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link DataType} * @return a {@link FeatureDataType} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("119803e4-6b93-42c5-aec3-58798151a085") public static FeatureDataType safeInstantiate(final DataType obj) throws IllegalArgumentException { if (FeatureDataType.canInstantiate(obj)) - return new FeatureDataType(obj); + return new FeatureDataType(obj); else - throw new IllegalArgumentException("FeatureDataType: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("FeatureDataType: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("1396632a-dfbf-426a-90a9-09182b20c81f") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link DataType}. + * Get the underlying {@link DataType}. + * * @return the DataType represented by this proxy, never null. */ @objid ("2a9371cf-7c62-413e-97bf-b4fe313f4b60") @@ -156,11 +159,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/enumeration/FeatureEnumeration.java b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/enumeration/FeatureEnumeration.java index 3b8eb865..64d06efc 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/enumeration/FeatureEnumeration.java +++ b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/enumeration/FeatureEnumeration.java @@ -63,9 +63,10 @@ public static FeatureEnumeration create() { } /** - * Tries to instantiate a {@link FeatureEnumeration} proxy from a {@link Enumeration} stereotyped << Feature_Enumeration >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link FeatureEnumeration} proxy from a {@link Enumeration} stereotyped << Feature_Enumeration >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Enumeration * @return a {@link FeatureEnumeration} proxy or null. */ @@ -75,19 +76,20 @@ public static FeatureEnumeration instantiate(final Enumeration obj) { } /** - * Tries to instantiate a {@link FeatureEnumeration} proxy from a {@link Enumeration} stereotyped << Feature_Enumeration >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link FeatureEnumeration} proxy from a {@link Enumeration} stereotyped << Feature_Enumeration >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Enumeration} * @return a {@link FeatureEnumeration} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("cfb9d1eb-92ee-485e-89ec-6a771ed629dd") public static FeatureEnumeration safeInstantiate(final Enumeration obj) throws IllegalArgumentException { if (FeatureEnumeration.canInstantiate(obj)) - return new FeatureEnumeration(obj); + return new FeatureEnumeration(obj); else - throw new IllegalArgumentException("FeatureEnumeration: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("FeatureEnumeration: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("3fd673ba-541f-411e-abef-cd68f1f9d9e7") @@ -107,7 +109,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Enumeration}. + * Get the underlying {@link Enumeration}. + * * @return the Enumeration represented by this proxy, never null. */ @objid ("bb59d25c-4ba1-4023-96fb-9b1e4103f453") @@ -146,11 +149,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/instance/FeatureInstance.java b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/instance/FeatureInstance.java index 5fb8423f..a5f6ef90 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/instance/FeatureInstance.java +++ b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/instance/FeatureInstance.java @@ -65,9 +65,10 @@ public static FeatureInstance create() { } /** - * Tries to instantiate a {@link FeatureInstance} proxy from a {@link Instance} stereotyped << Feature_Instance >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link FeatureInstance} proxy from a {@link Instance} stereotyped << Feature_Instance >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Instance * @return a {@link FeatureInstance} proxy or null. */ @@ -77,19 +78,20 @@ public static FeatureInstance instantiate(final Instance obj) { } /** - * Tries to instantiate a {@link FeatureInstance} proxy from a {@link Instance} stereotyped << Feature_Instance >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link FeatureInstance} proxy from a {@link Instance} stereotyped << Feature_Instance >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Instance} * @return a {@link FeatureInstance} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("3549f71f-6529-4fa0-8d34-3070de0f880f") public static FeatureInstance safeInstantiate(final Instance obj) throws IllegalArgumentException { if (FeatureInstance.canInstantiate(obj)) - return new FeatureInstance(obj); + return new FeatureInstance(obj); else - throw new IllegalArgumentException("FeatureInstance: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("FeatureInstance: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("22ce77d9-1f60-460b-959e-e3e712f5ab4b") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Instance}. + * Get the underlying {@link Instance}. + * * @return the Instance represented by this proxy, never null. */ @objid ("191ec980-0577-41ee-9b9f-d55684e68a2d") @@ -155,11 +158,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/namespace/Action.java b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/namespace/Action.java index 667c9f8c..010c9323 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/namespace/Action.java +++ b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/namespace/Action.java @@ -76,7 +76,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link NameSpace}. + * Get the underlying {@link NameSpace}. + * * @return the NameSpace represented by this proxy, never null. */ @objid ("973d6595-d0cb-473a-985c-16084a450aa2") @@ -115,11 +116,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/package_/CamelModel.java b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/package_/CamelModel.java index 0879f610..4262ebdb 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/package_/CamelModel.java +++ b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/package_/CamelModel.java @@ -10,13 +10,6 @@ import java.util.Collections; import java.util.List; import com.modeliosoft.modelio.javadesigner.annotations.objid; -import org.modelio.api.module.context.IModuleContext; -import org.modelio.metamodel.uml.infrastructure.ModelElement; -import org.modelio.metamodel.uml.infrastructure.ModelTree; -import org.modelio.metamodel.uml.infrastructure.Stereotype; -import org.modelio.metamodel.uml.infrastructure.TagType; -import org.modelio.metamodel.uml.statik.Package; -import org.modelio.vcore.smkernel.mapi.MObject; import fr.softeam.cameldesigner.api.CamelDesignerProxyFactory; import fr.softeam.cameldesigner.api.ICamelDesignerPeerModule; import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; @@ -39,6 +32,13 @@ import fr.softeam.cameldesigner.api.typemodel.standard.package_.TypeModel; import fr.softeam.cameldesigner.api.unitmodel.standard.package_.UnitModel; import fr.softeam.cameldesigner.impl.CamelDesignerModule; +import org.modelio.api.module.context.IModuleContext; +import org.modelio.metamodel.uml.infrastructure.ModelElement; +import org.modelio.metamodel.uml.infrastructure.ModelTree; +import org.modelio.metamodel.uml.infrastructure.Stereotype; +import org.modelio.metamodel.uml.infrastructure.TagType; +import org.modelio.metamodel.uml.statik.Package; +import org.modelio.vcore.smkernel.mapi.MObject; /** * Proxy class to handle a {@link Package} with << CamelModel >> stereotype. @@ -60,7 +60,7 @@ public class CamelModel extends FeaturePackage { * Tells whether a {@link CamelModel proxy} can be instantiated from a {@link MObject} checking it is a {@link Package} stereotyped << CamelModel >>. *

* The method returns false if the instantiation cannot be carried out. - * + * * @param elt a model object * @return true if the instantiation can be carried out else false. */ @@ -71,7 +71,7 @@ public static boolean canInstantiate(final MObject elt) { /** * Create a new {@link Package} stereotyped << CamelModel >> then instantiate a {@link CamelModel} proxy. - * + * * @return a {@link CamelModel} proxy on the created {@link Package}. */ @objid ("eb818cdf-a8bd-4e58-bb8a-5c58bd0b57a4") @@ -85,6 +85,7 @@ public static CamelModel create() { * Tries to instantiate a {@link CamelModel} proxy from a {@link Package} stereotyped << CamelModel >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Package * @return a {@link CamelModel} proxy or null. */ @@ -97,23 +98,23 @@ public static CamelModel instantiate(final Package obj) { * Tries to instantiate a {@link CamelModel} proxy from a {@link Package} stereotyped << CamelModel >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Package} * @return a {@link CamelModel} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("56338ba1-b6db-4d2b-828e-e551ebf3bd9e") public static CamelModel safeInstantiate(final Package obj) throws IllegalArgumentException { if (CamelModel.canInstantiate(obj)) - return new CamelModel(obj); + return new CamelModel(obj); else - throw new IllegalArgumentException("CamelModel: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("CamelModel: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'dataModels' role.

* Role description: * null - * */ @objid ("794f4fd6-a1d5-4c51-a68b-157c1489f8b2") public void addDataModels(final DataModel obj) { @@ -125,7 +126,6 @@ public void addDataModels(final DataModel obj) { * Add a value to the 'deploymentModels' role.

* Role description: * null - * */ @objid ("46eaf10c-ec91-4a65-8cfb-e3fca6aac0fd") public void addDeploymentModels(final DeploymentModel obj) { @@ -137,7 +137,6 @@ public void addDeploymentModels(final DeploymentModel obj) { * Add a value to the 'executionModels' role.

* Role description: * null - * */ @objid ("16007382-c157-4719-aa76-6f44ff557841") public void addExecutionModels(final ExecutionModel obj) { @@ -149,7 +148,6 @@ public void addExecutionModels(final ExecutionModel obj) { * Add a value to the 'locationModels' role.

* Role description: * null - * */ @objid ("b8c2e985-d952-45ab-bc79-e9a5336b7ac7") public void addLocationModels(final LocationModel obj) { @@ -161,7 +159,6 @@ public void addLocationModels(final LocationModel obj) { * Add a value to the 'metaDataModels' role.

* Role description: * null - * */ @objid ("c410814f-0edf-4a0b-86ff-db75b4edb70c") public void addMetaDataModels(final MetaDataModel obj) { @@ -173,7 +170,6 @@ public void addMetaDataModels(final MetaDataModel obj) { * Add a value to the 'metricModels' role.

* Role description: * null - * */ @objid ("56d929ae-170f-4eed-9290-8df38d7c100b") public void addMetricModels(final MetricModel obj) { @@ -185,7 +181,6 @@ public void addMetricModels(final MetricModel obj) { * Add a value to the 'organisationModels' role.

* Role description: * null - * */ @objid ("dc9fe35c-9ffb-430d-b161-dc961809bb99") public void addOrganisationModels(final OrganisationModel obj) { @@ -197,7 +192,6 @@ public void addOrganisationModels(final OrganisationModel obj) { * Add a value to the 'requirementModels' role.

* Role description: * null - * */ @objid ("698fbc58-3d0c-4e32-839a-0bd845a7a5f5") public void addRequirementModels(final RequirementModel obj) { @@ -209,7 +203,6 @@ public void addRequirementModels(final RequirementModel obj) { * Add a value to the 'scalabilityModels' role.

* Role description: * null - * */ @objid ("57390f06-1803-4e78-b400-9ff2a79c1d1a") public void addScalabilityModels(final ScalabilityModel obj) { @@ -221,7 +214,6 @@ public void addScalabilityModels(final ScalabilityModel obj) { * Add a value to the 'securityModels' role.

* Role description: * null - * */ @objid ("dddc7450-6a87-4a26-8fb6-9616a2ae9ea2") public void addSecurityModels(final SecurityModel obj) { @@ -233,7 +225,6 @@ public void addSecurityModels(final SecurityModel obj) { * Add a value to the 'typeModels' role.

* Role description: * null - * */ @objid ("330cee9d-a8e5-4259-9c86-895d5402298c") public void addTypeModels(final TypeModel obj) { @@ -245,7 +236,6 @@ public void addTypeModels(final TypeModel obj) { * Add a value to the 'unitModels' role.

* Role description: * null - * */ @objid ("d760a823-30ad-4ef6-8095-95a62a78a3ad") public void addUnitModels(final UnitModel obj) { @@ -293,17 +283,16 @@ public String getApplicationVersion() { * Get the values of the 'dataModels' role.

* Role description: * null - * */ @objid ("bf2d0609-3319-408e-8e8f-53303409acb6") public List getDataModels() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (DataTypeModel.canInstantiate(mObj)) - results.add((DataTypeModel)CamelDesignerProxyFactory.instantiate(mObj, DataTypeModel.STEREOTYPE_NAME)); - if (DataInstanceModel.canInstantiate(mObj)) - results.add((DataInstanceModel)CamelDesignerProxyFactory.instantiate(mObj, DataInstanceModel.STEREOTYPE_NAME)); - } + if (DataTypeModel.canInstantiate(mObj)) + results.add((DataTypeModel)CamelDesignerProxyFactory.instantiate(mObj, DataTypeModel.STEREOTYPE_NAME)); + if (DataInstanceModel.canInstantiate(mObj)) + results.add((DataInstanceModel)CamelDesignerProxyFactory.instantiate(mObj, DataInstanceModel.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -311,22 +300,22 @@ public List getDataModels() { * Get the values of the 'deploymentModels' role.

* Role description: * null - * */ @objid ("25574f2b-607e-4a69-8259-b8ae2ffa320b") public List getDeploymentModels() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (DeploymentInstanceModel.canInstantiate(mObj)) - results.add((DeploymentInstanceModel)CamelDesignerProxyFactory.instantiate(mObj, DeploymentInstanceModel.STEREOTYPE_NAME)); - if (DeploymentTypeModel.canInstantiate(mObj)) - results.add((DeploymentTypeModel)CamelDesignerProxyFactory.instantiate(mObj, DeploymentTypeModel.STEREOTYPE_NAME)); - } + if (DeploymentInstanceModel.canInstantiate(mObj)) + results.add((DeploymentInstanceModel)CamelDesignerProxyFactory.instantiate(mObj, DeploymentInstanceModel.STEREOTYPE_NAME)); + if (DeploymentTypeModel.canInstantiate(mObj)) + results.add((DeploymentTypeModel)CamelDesignerProxyFactory.instantiate(mObj, DeploymentTypeModel.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } /** * Get the underlying {@link Package}. + * * @return the Package represented by this proxy, never null. */ @objid ("a6603f99-9c6e-4ec7-a4f6-36ec09ba66cd") @@ -339,15 +328,14 @@ public Package getElement() { * Get the values of the 'executionModels' role.

* Role description: * null - * */ @objid ("f8a034e0-7a02-4cab-a3ed-5d2edf9cce94") public List getExecutionModels() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (ExecutionModel.canInstantiate(mObj)) - results.add((ExecutionModel)CamelDesignerProxyFactory.instantiate(mObj, ExecutionModel.STEREOTYPE_NAME)); - } + if (ExecutionModel.canInstantiate(mObj)) + results.add((ExecutionModel)CamelDesignerProxyFactory.instantiate(mObj, ExecutionModel.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -355,15 +343,14 @@ public List getExecutionModels() { * Get the values of the 'locationModels' role.

* Role description: * null - * */ @objid ("0734b4b5-1fff-448e-9bf9-40f8791575cf") public List getLocationModels() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (LocationModel.canInstantiate(mObj)) - results.add((LocationModel)CamelDesignerProxyFactory.instantiate(mObj, LocationModel.STEREOTYPE_NAME)); - } + if (LocationModel.canInstantiate(mObj)) + results.add((LocationModel)CamelDesignerProxyFactory.instantiate(mObj, LocationModel.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -371,15 +358,14 @@ public List getLocationModels() { * Get the values of the 'metaDataModels' role.

* Role description: * null - * */ @objid ("1a161c22-c30c-43fe-8347-eae708d7d4dc") public List getMetaDataModels() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (MetaDataModel.canInstantiate(mObj)) - results.add((MetaDataModel)CamelDesignerProxyFactory.instantiate(mObj, MetaDataModel.STEREOTYPE_NAME)); - } + if (MetaDataModel.canInstantiate(mObj)) + results.add((MetaDataModel)CamelDesignerProxyFactory.instantiate(mObj, MetaDataModel.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -387,17 +373,16 @@ public List getMetaDataModels() { * Get the values of the 'metricModels' role.

* Role description: * null - * */ @objid ("df996def-fffd-456a-9941-0d494f203170") public List getMetricModels() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (MetricInstanceModel.canInstantiate(mObj)) - results.add((MetricInstanceModel)CamelDesignerProxyFactory.instantiate(mObj, MetricInstanceModel.STEREOTYPE_NAME)); - if (MetricTypeModel.canInstantiate(mObj)) - results.add((MetricTypeModel)CamelDesignerProxyFactory.instantiate(mObj, MetricTypeModel.STEREOTYPE_NAME)); - } + if (MetricInstanceModel.canInstantiate(mObj)) + results.add((MetricInstanceModel)CamelDesignerProxyFactory.instantiate(mObj, MetricInstanceModel.STEREOTYPE_NAME)); + if (MetricTypeModel.canInstantiate(mObj)) + results.add((MetricTypeModel)CamelDesignerProxyFactory.instantiate(mObj, MetricTypeModel.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -405,15 +390,14 @@ public List getMetricModels() { * Get the values of the 'organisationModels' role.

* Role description: * null - * */ @objid ("2e9c20d0-c7d3-437c-bcd1-611703d16901") public List getOrganisationModels() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (OrganisationModel.canInstantiate(mObj)) - results.add((OrganisationModel)CamelDesignerProxyFactory.instantiate(mObj, OrganisationModel.STEREOTYPE_NAME)); - } + if (OrganisationModel.canInstantiate(mObj)) + results.add((OrganisationModel)CamelDesignerProxyFactory.instantiate(mObj, OrganisationModel.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -421,15 +405,14 @@ public List getOrganisationModels() { * Get the values of the 'requirementModels' role.

* Role description: * null - * */ @objid ("ba728418-ea2c-4309-b95f-d5129e03d2d1") public List getRequirementModels() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (RequirementModel.canInstantiate(mObj)) - results.add((RequirementModel)CamelDesignerProxyFactory.instantiate(mObj, RequirementModel.STEREOTYPE_NAME)); - } + if (RequirementModel.canInstantiate(mObj)) + results.add((RequirementModel)CamelDesignerProxyFactory.instantiate(mObj, RequirementModel.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -437,15 +420,14 @@ public List getRequirementModels() { * Get the values of the 'scalabilityModels' role.

* Role description: * null - * */ @objid ("5392d708-5feb-40c4-8f1d-34d1b0b2ab43") public List getScalabilityModels() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (ScalabilityModel.canInstantiate(mObj)) - results.add((ScalabilityModel)CamelDesignerProxyFactory.instantiate(mObj, ScalabilityModel.STEREOTYPE_NAME)); - } + if (ScalabilityModel.canInstantiate(mObj)) + results.add((ScalabilityModel)CamelDesignerProxyFactory.instantiate(mObj, ScalabilityModel.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -453,15 +435,14 @@ public List getScalabilityModels() { * Get the values of the 'securityModels' role.

* Role description: * null - * */ @objid ("a288f015-ca47-4945-abe2-d36509f63c47") public List getSecurityModels() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (SecurityModel.canInstantiate(mObj)) - results.add((SecurityModel)CamelDesignerProxyFactory.instantiate(mObj, SecurityModel.STEREOTYPE_NAME)); - } + if (SecurityModel.canInstantiate(mObj)) + results.add((SecurityModel)CamelDesignerProxyFactory.instantiate(mObj, SecurityModel.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -469,15 +450,14 @@ public List getSecurityModels() { * Get the values of the 'typeModels' role.

* Role description: * null - * */ @objid ("91418030-c563-41c1-8caf-ec118be3774a") public List getTypeModels() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (TypeModel.canInstantiate(mObj)) - results.add((TypeModel)CamelDesignerProxyFactory.instantiate(mObj, TypeModel.STEREOTYPE_NAME)); - } + if (TypeModel.canInstantiate(mObj)) + results.add((TypeModel)CamelDesignerProxyFactory.instantiate(mObj, TypeModel.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -485,15 +465,14 @@ public List getTypeModels() { * Get the values of the 'unitModels' role.

* Role description: * null - * */ @objid ("4bc517fd-5b9e-40df-a342-a5f73aa93ab4") public List getUnitModels() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (UnitModel.canInstantiate(mObj)) - results.add((UnitModel)CamelDesignerProxyFactory.instantiate(mObj, UnitModel.STEREOTYPE_NAME)); - } + if (UnitModel.canInstantiate(mObj)) + results.add((UnitModel)CamelDesignerProxyFactory.instantiate(mObj, UnitModel.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -507,7 +486,6 @@ public int hashCode() { * Remove a value from the 'dataModels' role.

* Role description: * null - * */ @objid ("4c5d1f3e-2010-4b75-9016-5936e26cadee") public boolean removeDataModels(final DataModel obj) { @@ -518,7 +496,6 @@ public boolean removeDataModels(final DataModel obj) { * Remove a value from the 'deploymentModels' role.

* Role description: * null - * */ @objid ("4c0bce36-8735-49bd-a9d2-f32111376ef8") public boolean removeDeploymentModels(final DeploymentModel obj) { @@ -529,7 +506,6 @@ public boolean removeDeploymentModels(final DeploymentModel obj) { * Remove a value from the 'executionModels' role.

* Role description: * null - * */ @objid ("3cdee868-a430-4bfa-ae57-4c1bb2a65550") public boolean removeExecutionModels(final ExecutionModel obj) { @@ -540,7 +516,6 @@ public boolean removeExecutionModels(final ExecutionModel obj) { * Remove a value from the 'locationModels' role.

* Role description: * null - * */ @objid ("1dd94ef6-da55-4617-8980-90a6e11b737c") public boolean removeLocationModels(final LocationModel obj) { @@ -551,7 +526,6 @@ public boolean removeLocationModels(final LocationModel obj) { * Remove a value from the 'metaDataModels' role.

* Role description: * null - * */ @objid ("a561aed1-5c6e-4ea1-ad5f-10c976bc7725") public boolean removeMetaDataModels(final MetaDataModel obj) { @@ -562,7 +536,6 @@ public boolean removeMetaDataModels(final MetaDataModel obj) { * Remove a value from the 'metricModels' role.

* Role description: * null - * */ @objid ("fcfeb6dd-9777-4c7a-a17c-83a179f3e645") public boolean removeMetricModels(final MetricModel obj) { @@ -573,7 +546,6 @@ public boolean removeMetricModels(final MetricModel obj) { * Remove a value from the 'organisationModels' role.

* Role description: * null - * */ @objid ("10550734-926c-4b2b-ae6f-06655baac95e") public boolean removeOrganisationModels(final OrganisationModel obj) { @@ -584,7 +556,6 @@ public boolean removeOrganisationModels(final OrganisationModel obj) { * Remove a value from the 'requirementModels' role.

* Role description: * null - * */ @objid ("586a708e-e38f-4aa6-876e-1d6d684f3ffe") public boolean removeRequirementModels(final RequirementModel obj) { @@ -595,7 +566,6 @@ public boolean removeRequirementModels(final RequirementModel obj) { * Remove a value from the 'scalabilityModels' role.

* Role description: * null - * */ @objid ("c6f044c6-3393-4ad1-81f2-e6afc3cdddd8") public boolean removeScalabilityModels(final ScalabilityModel obj) { @@ -606,7 +576,6 @@ public boolean removeScalabilityModels(final ScalabilityModel obj) { * Remove a value from the 'securityModels' role.

* Role description: * null - * */ @objid ("a43ae54c-34f6-4f80-a42c-9c8a1d6a974c") public boolean removeSecurityModels(final SecurityModel obj) { @@ -617,7 +586,6 @@ public boolean removeSecurityModels(final SecurityModel obj) { * Remove a value from the 'typeModels' role.

* Role description: * null - * */ @objid ("d8204252-0b78-4550-a857-e2b0fb60ee0d") public boolean removeTypeModels(final TypeModel obj) { @@ -628,7 +596,6 @@ public boolean removeTypeModels(final TypeModel obj) { * Remove a value from the 'unitModels' role.

* Role description: * null - * */ @objid ("1854ee33-fc3a-44b8-a8aa-f228383cc9e8") public boolean removeUnitModels(final UnitModel obj) { @@ -706,11 +673,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/package_/FeaturePackage.java b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/package_/FeaturePackage.java index b0490d9e..5519c629 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/package_/FeaturePackage.java +++ b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/package_/FeaturePackage.java @@ -77,7 +77,6 @@ public static boolean canInstantiate(final MObject elt) { * Add a value to the 'attributes' role.

* Role description: * null - * */ @objid ("1156b729-fe02-4c83-94ee-58215d982775") public void addAttributes(final AttributeClass obj) { @@ -89,7 +88,6 @@ public void addAttributes(final AttributeClass obj) { * Add a value to the 'subFeatures' role.

* Role description: * null - * */ @objid ("de19bfd5-6c4c-420b-9cc6-265d780b7389") public void addSubFeatures(final FeaturePackage obj) { @@ -117,28 +115,28 @@ public boolean equals(final Object obj) { * Get the values of the 'attributes' role.

* Role description: * null - * */ @objid ("6c63b35c-a586-4a7d-a04c-943ae464de18") public List getAttributes() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (MeasurableAttributeClass.canInstantiate(mObj)) - results.add((MeasurableAttributeClass)CamelDesignerProxyFactory.instantiate(mObj, MeasurableAttributeClass.STEREOTYPE_NAME)); - if (Certifiable.canInstantiate(mObj)) - results.add((Certifiable)CamelDesignerProxyFactory.instantiate(mObj, Certifiable.STEREOTYPE_NAME)); - if (SecurityAttribute.canInstantiate(mObj)) - results.add((SecurityAttribute)CamelDesignerProxyFactory.instantiate(mObj, SecurityAttribute.STEREOTYPE_NAME)); - if (QualityAttributeClass.canInstantiate(mObj)) - results.add((QualityAttributeClass)CamelDesignerProxyFactory.instantiate(mObj, QualityAttributeClass.STEREOTYPE_NAME)); - if (AttributeClass.canInstantiate(mObj)) - results.add((AttributeClass)CamelDesignerProxyFactory.instantiate(mObj, AttributeClass.STEREOTYPE_NAME)); - } + if (MeasurableAttributeClass.canInstantiate(mObj)) + results.add((MeasurableAttributeClass)CamelDesignerProxyFactory.instantiate(mObj, MeasurableAttributeClass.STEREOTYPE_NAME)); + if (Certifiable.canInstantiate(mObj)) + results.add((Certifiable)CamelDesignerProxyFactory.instantiate(mObj, Certifiable.STEREOTYPE_NAME)); + if (SecurityAttribute.canInstantiate(mObj)) + results.add((SecurityAttribute)CamelDesignerProxyFactory.instantiate(mObj, SecurityAttribute.STEREOTYPE_NAME)); + if (QualityAttributeClass.canInstantiate(mObj)) + results.add((QualityAttributeClass)CamelDesignerProxyFactory.instantiate(mObj, QualityAttributeClass.STEREOTYPE_NAME)); + if (AttributeClass.canInstantiate(mObj)) + results.add((AttributeClass)CamelDesignerProxyFactory.instantiate(mObj, AttributeClass.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } /** - * Get the underlying {@link Package}. + * Get the underlying {@link Package}. + * * @return the Package represented by this proxy, never null. */ @objid ("0b81f507-37b5-46fa-b2e5-a9d803ce88c5") @@ -151,7 +149,6 @@ public Package getElement() { * Get the value to the 'parent' role.

* Role description: * null - * */ @objid ("fe9df3d1-85f1-4bf6-aa1e-6e8f9443db48") public FeaturePackage getParent() { @@ -162,45 +159,44 @@ public FeaturePackage getParent() { * Get the values of the 'subFeatures' role.

* Role description: * null - * */ @objid ("ac8eb06d-383d-43b0-82c9-d0d669a6faf5") public List getSubFeatures() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (ConstraintModel.canInstantiate(mObj)) - results.add((ConstraintModel)CamelDesignerProxyFactory.instantiate(mObj, ConstraintModel.STEREOTYPE_NAME)); - if (DataTypeModel.canInstantiate(mObj)) - results.add((DataTypeModel)CamelDesignerProxyFactory.instantiate(mObj, DataTypeModel.STEREOTYPE_NAME)); - if (DataInstanceModel.canInstantiate(mObj)) - results.add((DataInstanceModel)CamelDesignerProxyFactory.instantiate(mObj, DataInstanceModel.STEREOTYPE_NAME)); - if (DeploymentInstanceModel.canInstantiate(mObj)) - results.add((DeploymentInstanceModel)CamelDesignerProxyFactory.instantiate(mObj, DeploymentInstanceModel.STEREOTYPE_NAME)); - if (DeploymentTypeModel.canInstantiate(mObj)) - results.add((DeploymentTypeModel)CamelDesignerProxyFactory.instantiate(mObj, DeploymentTypeModel.STEREOTYPE_NAME)); - if (ExecutionModel.canInstantiate(mObj)) - results.add((ExecutionModel)CamelDesignerProxyFactory.instantiate(mObj, ExecutionModel.STEREOTYPE_NAME)); - if (LocationModel.canInstantiate(mObj)) - results.add((LocationModel)CamelDesignerProxyFactory.instantiate(mObj, LocationModel.STEREOTYPE_NAME)); - if (MetaDataModel.canInstantiate(mObj)) - results.add((MetaDataModel)CamelDesignerProxyFactory.instantiate(mObj, MetaDataModel.STEREOTYPE_NAME)); - if (MetricInstanceModel.canInstantiate(mObj)) - results.add((MetricInstanceModel)CamelDesignerProxyFactory.instantiate(mObj, MetricInstanceModel.STEREOTYPE_NAME)); - if (MetricTypeModel.canInstantiate(mObj)) - results.add((MetricTypeModel)CamelDesignerProxyFactory.instantiate(mObj, MetricTypeModel.STEREOTYPE_NAME)); - if (OrganisationModel.canInstantiate(mObj)) - results.add((OrganisationModel)CamelDesignerProxyFactory.instantiate(mObj, OrganisationModel.STEREOTYPE_NAME)); - if (RequirementModel.canInstantiate(mObj)) - results.add((RequirementModel)CamelDesignerProxyFactory.instantiate(mObj, RequirementModel.STEREOTYPE_NAME)); - if (ScalabilityModel.canInstantiate(mObj)) - results.add((ScalabilityModel)CamelDesignerProxyFactory.instantiate(mObj, ScalabilityModel.STEREOTYPE_NAME)); - if (SecurityModel.canInstantiate(mObj)) - results.add((SecurityModel)CamelDesignerProxyFactory.instantiate(mObj, SecurityModel.STEREOTYPE_NAME)); - if (TypeModel.canInstantiate(mObj)) - results.add((TypeModel)CamelDesignerProxyFactory.instantiate(mObj, TypeModel.STEREOTYPE_NAME)); - if (UnitModel.canInstantiate(mObj)) - results.add((UnitModel)CamelDesignerProxyFactory.instantiate(mObj, UnitModel.STEREOTYPE_NAME)); - } + if (ConstraintModel.canInstantiate(mObj)) + results.add((ConstraintModel)CamelDesignerProxyFactory.instantiate(mObj, ConstraintModel.STEREOTYPE_NAME)); + if (DataTypeModel.canInstantiate(mObj)) + results.add((DataTypeModel)CamelDesignerProxyFactory.instantiate(mObj, DataTypeModel.STEREOTYPE_NAME)); + if (DataInstanceModel.canInstantiate(mObj)) + results.add((DataInstanceModel)CamelDesignerProxyFactory.instantiate(mObj, DataInstanceModel.STEREOTYPE_NAME)); + if (DeploymentInstanceModel.canInstantiate(mObj)) + results.add((DeploymentInstanceModel)CamelDesignerProxyFactory.instantiate(mObj, DeploymentInstanceModel.STEREOTYPE_NAME)); + if (DeploymentTypeModel.canInstantiate(mObj)) + results.add((DeploymentTypeModel)CamelDesignerProxyFactory.instantiate(mObj, DeploymentTypeModel.STEREOTYPE_NAME)); + if (ExecutionModel.canInstantiate(mObj)) + results.add((ExecutionModel)CamelDesignerProxyFactory.instantiate(mObj, ExecutionModel.STEREOTYPE_NAME)); + if (LocationModel.canInstantiate(mObj)) + results.add((LocationModel)CamelDesignerProxyFactory.instantiate(mObj, LocationModel.STEREOTYPE_NAME)); + if (MetaDataModel.canInstantiate(mObj)) + results.add((MetaDataModel)CamelDesignerProxyFactory.instantiate(mObj, MetaDataModel.STEREOTYPE_NAME)); + if (MetricInstanceModel.canInstantiate(mObj)) + results.add((MetricInstanceModel)CamelDesignerProxyFactory.instantiate(mObj, MetricInstanceModel.STEREOTYPE_NAME)); + if (MetricTypeModel.canInstantiate(mObj)) + results.add((MetricTypeModel)CamelDesignerProxyFactory.instantiate(mObj, MetricTypeModel.STEREOTYPE_NAME)); + if (OrganisationModel.canInstantiate(mObj)) + results.add((OrganisationModel)CamelDesignerProxyFactory.instantiate(mObj, OrganisationModel.STEREOTYPE_NAME)); + if (RequirementModel.canInstantiate(mObj)) + results.add((RequirementModel)CamelDesignerProxyFactory.instantiate(mObj, RequirementModel.STEREOTYPE_NAME)); + if (ScalabilityModel.canInstantiate(mObj)) + results.add((ScalabilityModel)CamelDesignerProxyFactory.instantiate(mObj, ScalabilityModel.STEREOTYPE_NAME)); + if (SecurityModel.canInstantiate(mObj)) + results.add((SecurityModel)CamelDesignerProxyFactory.instantiate(mObj, SecurityModel.STEREOTYPE_NAME)); + if (TypeModel.canInstantiate(mObj)) + results.add((TypeModel)CamelDesignerProxyFactory.instantiate(mObj, TypeModel.STEREOTYPE_NAME)); + if (UnitModel.canInstantiate(mObj)) + results.add((UnitModel)CamelDesignerProxyFactory.instantiate(mObj, UnitModel.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -214,7 +210,6 @@ public int hashCode() { * Remove a value from the 'attributes' role.

* Role description: * null - * */ @objid ("e4cac05b-bdc0-4054-918d-6c387e566a47") public boolean removeAttributes(final AttributeClass obj) { @@ -225,7 +220,6 @@ public boolean removeAttributes(final AttributeClass obj) { * Remove a value from the 'subFeatures' role.

* Role description: * null - * */ @objid ("d9a3638a-5942-47a7-b8da-aadb41c22b7a") public boolean removeSubFeatures(final FeaturePackage obj) { @@ -236,7 +230,6 @@ public boolean removeSubFeatures(final FeaturePackage obj) { * Set the value of the 'parent' role.

* Role description: * null - * */ @objid ("9a2be274-afc9-429a-b70c-c5c9e2f7fe3e") public void setParent(final FeaturePackage obj) { @@ -267,11 +260,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/package_/SubModel.java b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/package_/SubModel.java index a1d1a08c..19d8e73e 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/package_/SubModel.java +++ b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/package_/SubModel.java @@ -96,7 +96,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Package}. + * Get the underlying {@link Package}. + * * @return the Package represented by this proxy, never null. */ @objid ("242cf6b2-23de-449a-9949-54747c35031d") @@ -135,11 +136,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/port/FeaturePort.java b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/port/FeaturePort.java index 504eac7c..7f111fa5 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/port/FeaturePort.java +++ b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/port/FeaturePort.java @@ -63,9 +63,10 @@ public static FeaturePort create() { } /** - * Tries to instantiate a {@link FeaturePort} proxy from a {@link Port} stereotyped << Feature_Port >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link FeaturePort} proxy from a {@link Port} stereotyped << Feature_Port >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Port * @return a {@link FeaturePort} proxy or null. */ @@ -75,19 +76,20 @@ public static FeaturePort instantiate(final Port obj) { } /** - * Tries to instantiate a {@link FeaturePort} proxy from a {@link Port} stereotyped << Feature_Port >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link FeaturePort} proxy from a {@link Port} stereotyped << Feature_Port >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Port} * @return a {@link FeaturePort} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("0cabf9f7-6e64-42bf-84bd-5701aae3b507") public static FeaturePort safeInstantiate(final Port obj) throws IllegalArgumentException { if (FeaturePort.canInstantiate(obj)) - return new FeaturePort(obj); + return new FeaturePort(obj); else - throw new IllegalArgumentException("FeaturePort: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("FeaturePort: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("ecb5d057-aa85-42c2-ae74-0febf65cec18") @@ -107,7 +109,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Port}. + * Get the underlying {@link Port}. + * * @return the Port represented by this proxy, never null. */ @objid ("7f514945-012e-474b-b2ef-48c6cc4052cb") @@ -146,11 +149,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/infrastructure/abstractdiagram/AbstractCamelDiagram.java b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/infrastructure/abstractdiagram/AbstractCamelDiagram.java index 2a2e7d06..5c50820d 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/infrastructure/abstractdiagram/AbstractCamelDiagram.java +++ b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/infrastructure/abstractdiagram/AbstractCamelDiagram.java @@ -67,7 +67,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link AbstractDiagram}. + * Get the underlying {@link AbstractDiagram}. + * * @return the AbstractDiagram represented by this proxy, never null. */ @objid ("c7433740-76b7-4e0a-ba9e-22f607f7f025") @@ -106,11 +107,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/CamelModelDiagram.java b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/CamelModelDiagram.java index b2c6c710..b0a7fecc 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/CamelModelDiagram.java +++ b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/CamelModelDiagram.java @@ -65,9 +65,10 @@ public static CamelModelDiagram create() { } /** - * Tries to instantiate a {@link CamelModelDiagram} proxy from a {@link ClassDiagram} stereotyped << CamelModelDiagram >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link CamelModelDiagram} proxy from a {@link ClassDiagram} stereotyped << CamelModelDiagram >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a ClassDiagram * @return a {@link CamelModelDiagram} proxy or null. */ @@ -77,19 +78,20 @@ public static CamelModelDiagram instantiate(final ClassDiagram obj) { } /** - * Tries to instantiate a {@link CamelModelDiagram} proxy from a {@link ClassDiagram} stereotyped << CamelModelDiagram >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link CamelModelDiagram} proxy from a {@link ClassDiagram} stereotyped << CamelModelDiagram >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link ClassDiagram} * @return a {@link CamelModelDiagram} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("e5209472-b0ac-4610-9b3b-bd4536f88cb5") public static CamelModelDiagram safeInstantiate(final ClassDiagram obj) throws IllegalArgumentException { if (CamelModelDiagram.canInstantiate(obj)) - return new CamelModelDiagram(obj); + return new CamelModelDiagram(obj); else - throw new IllegalArgumentException("CamelModelDiagram: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("CamelModelDiagram: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("87cf292c-0463-4853-bb8e-58f413bf176b") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link ClassDiagram}. + * Get the underlying {@link ClassDiagram}. + * * @return the ClassDiagram represented by this proxy, never null. */ @objid ("ad5f2988-ed9c-49e7-885c-3ce165f9d539") @@ -155,11 +158,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/CamelViewPoint.java b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/CamelViewPoint.java index a5a2624c..8dd20a68 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/CamelViewPoint.java +++ b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/CamelViewPoint.java @@ -68,9 +68,10 @@ public static CamelViewPoint create() { } /** - * Tries to instantiate a {@link CamelViewPoint} proxy from a {@link ClassDiagram} stereotyped << CamelViewPoint >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link CamelViewPoint} proxy from a {@link ClassDiagram} stereotyped << CamelViewPoint >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a ClassDiagram * @return a {@link CamelViewPoint} proxy or null. */ @@ -80,19 +81,20 @@ public static CamelViewPoint instantiate(final ClassDiagram obj) { } /** - * Tries to instantiate a {@link CamelViewPoint} proxy from a {@link ClassDiagram} stereotyped << CamelViewPoint >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link CamelViewPoint} proxy from a {@link ClassDiagram} stereotyped << CamelViewPoint >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link ClassDiagram} * @return a {@link CamelViewPoint} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("7d7fe8dd-572d-4ca3-be75-435b4e08b872") public static CamelViewPoint safeInstantiate(final ClassDiagram obj) throws IllegalArgumentException { if (CamelViewPoint.canInstantiate(obj)) - return new CamelViewPoint(obj); + return new CamelViewPoint(obj); else - throw new IllegalArgumentException("CamelViewPoint: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("CamelViewPoint: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("7f39697e-03f9-4361-9a74-8dafd29119a1") @@ -112,7 +114,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link ClassDiagram}. + * Get the underlying {@link ClassDiagram}. + * * @return the ClassDiagram represented by this proxy, never null. */ @objid ("2f0e31b6-ea8e-4d59-99bb-1a182220ba23") @@ -150,11 +153,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/ConstraintModelDiagram.java b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/ConstraintModelDiagram.java index ac7179cb..ed3a1e3d 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/ConstraintModelDiagram.java +++ b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/ConstraintModelDiagram.java @@ -65,9 +65,10 @@ public static ConstraintModelDiagram create() { } /** - * Tries to instantiate a {@link ConstraintModelDiagram} proxy from a {@link ClassDiagram} stereotyped << ConstraintModelDiagram >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ConstraintModelDiagram} proxy from a {@link ClassDiagram} stereotyped << ConstraintModelDiagram >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a ClassDiagram * @return a {@link ConstraintModelDiagram} proxy or null. */ @@ -77,19 +78,20 @@ public static ConstraintModelDiagram instantiate(final ClassDiagram obj) { } /** - * Tries to instantiate a {@link ConstraintModelDiagram} proxy from a {@link ClassDiagram} stereotyped << ConstraintModelDiagram >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ConstraintModelDiagram} proxy from a {@link ClassDiagram} stereotyped << ConstraintModelDiagram >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link ClassDiagram} * @return a {@link ConstraintModelDiagram} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("7977573b-48e8-4420-9705-1582b40aae62") public static ConstraintModelDiagram safeInstantiate(final ClassDiagram obj) throws IllegalArgumentException { if (ConstraintModelDiagram.canInstantiate(obj)) - return new ConstraintModelDiagram(obj); + return new ConstraintModelDiagram(obj); else - throw new IllegalArgumentException("ConstraintModelDiagram: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("ConstraintModelDiagram: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("9b55bd55-4e35-48d7-9bbe-b8406c4c9ee7") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link ClassDiagram}. + * Get the underlying {@link ClassDiagram}. + * * @return the ClassDiagram represented by this proxy, never null. */ @objid ("addb9757-f31d-460e-bbef-9c4c1e346810") @@ -155,11 +158,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/DataInstanceModelDiagram.java b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/DataInstanceModelDiagram.java index 5962592c..0b75428b 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/DataInstanceModelDiagram.java +++ b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/DataInstanceModelDiagram.java @@ -63,9 +63,10 @@ public static DataInstanceModelDiagram create() { } /** - * Tries to instantiate a {@link DataInstanceModelDiagram} proxy from a {@link ClassDiagram} stereotyped << DataInstanceModelDiagram >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link DataInstanceModelDiagram} proxy from a {@link ClassDiagram} stereotyped << DataInstanceModelDiagram >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a ClassDiagram * @return a {@link DataInstanceModelDiagram} proxy or null. */ @@ -75,19 +76,20 @@ public static DataInstanceModelDiagram instantiate(final ClassDiagram obj) { } /** - * Tries to instantiate a {@link DataInstanceModelDiagram} proxy from a {@link ClassDiagram} stereotyped << DataInstanceModelDiagram >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link DataInstanceModelDiagram} proxy from a {@link ClassDiagram} stereotyped << DataInstanceModelDiagram >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link ClassDiagram} * @return a {@link DataInstanceModelDiagram} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("6434a89f-6b93-4868-8838-4eb4d5f1bfdb") public static DataInstanceModelDiagram safeInstantiate(final ClassDiagram obj) throws IllegalArgumentException { if (DataInstanceModelDiagram.canInstantiate(obj)) - return new DataInstanceModelDiagram(obj); + return new DataInstanceModelDiagram(obj); else - throw new IllegalArgumentException("DataInstanceModelDiagram: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("DataInstanceModelDiagram: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("ff819468-aab5-434f-bbe0-4ece82233673") @@ -107,7 +109,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link ClassDiagram}. + * Get the underlying {@link ClassDiagram}. + * * @return the ClassDiagram represented by this proxy, never null. */ @objid ("5d65cdb3-846f-49ea-a8f8-7ce3ef3d42c1") @@ -146,11 +149,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/DataTypeModelDiagram.java b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/DataTypeModelDiagram.java index 3d16c2f6..649e0990 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/DataTypeModelDiagram.java +++ b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/DataTypeModelDiagram.java @@ -65,9 +65,10 @@ public static DataTypeModelDiagram create() { } /** - * Tries to instantiate a {@link DataTypeModelDiagram} proxy from a {@link ClassDiagram} stereotyped << DataTypeModelDiagram >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link DataTypeModelDiagram} proxy from a {@link ClassDiagram} stereotyped << DataTypeModelDiagram >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a ClassDiagram * @return a {@link DataTypeModelDiagram} proxy or null. */ @@ -77,19 +78,20 @@ public static DataTypeModelDiagram instantiate(final ClassDiagram obj) { } /** - * Tries to instantiate a {@link DataTypeModelDiagram} proxy from a {@link ClassDiagram} stereotyped << DataTypeModelDiagram >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link DataTypeModelDiagram} proxy from a {@link ClassDiagram} stereotyped << DataTypeModelDiagram >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link ClassDiagram} * @return a {@link DataTypeModelDiagram} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("a3277080-35dd-43eb-b680-b695e6c217bc") public static DataTypeModelDiagram safeInstantiate(final ClassDiagram obj) throws IllegalArgumentException { if (DataTypeModelDiagram.canInstantiate(obj)) - return new DataTypeModelDiagram(obj); + return new DataTypeModelDiagram(obj); else - throw new IllegalArgumentException("DataTypeModelDiagram: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("DataTypeModelDiagram: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("1561faea-6a93-4dcc-a85d-ce1799fc42ce") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link ClassDiagram}. + * Get the underlying {@link ClassDiagram}. + * * @return the ClassDiagram represented by this proxy, never null. */ @objid ("ddcfdefc-f9a0-4619-9387-b40643ada889") @@ -155,11 +158,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/DeploymentInstanceModelDiagram.java b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/DeploymentInstanceModelDiagram.java index 751e7237..48fc787b 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/DeploymentInstanceModelDiagram.java +++ b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/DeploymentInstanceModelDiagram.java @@ -63,9 +63,10 @@ public static DeploymentInstanceModelDiagram create() { } /** - * Tries to instantiate a {@link DeploymentInstanceModelDiagram} proxy from a {@link ClassDiagram} stereotyped << DeploymentInstanceModelDiagram >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link DeploymentInstanceModelDiagram} proxy from a {@link ClassDiagram} stereotyped << DeploymentInstanceModelDiagram >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a ClassDiagram * @return a {@link DeploymentInstanceModelDiagram} proxy or null. */ @@ -75,19 +76,20 @@ public static DeploymentInstanceModelDiagram instantiate(final ClassDiagram obj) } /** - * Tries to instantiate a {@link DeploymentInstanceModelDiagram} proxy from a {@link ClassDiagram} stereotyped << DeploymentInstanceModelDiagram >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link DeploymentInstanceModelDiagram} proxy from a {@link ClassDiagram} stereotyped << DeploymentInstanceModelDiagram >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link ClassDiagram} * @return a {@link DeploymentInstanceModelDiagram} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("85ff34b5-08c6-4252-883b-2e3af24df06a") public static DeploymentInstanceModelDiagram safeInstantiate(final ClassDiagram obj) throws IllegalArgumentException { if (DeploymentInstanceModelDiagram.canInstantiate(obj)) - return new DeploymentInstanceModelDiagram(obj); + return new DeploymentInstanceModelDiagram(obj); else - throw new IllegalArgumentException("DeploymentInstanceModelDiagram: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("DeploymentInstanceModelDiagram: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("8ee303ed-9374-4735-b251-2a840dec6cf7") @@ -107,7 +109,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link ClassDiagram}. + * Get the underlying {@link ClassDiagram}. + * * @return the ClassDiagram represented by this proxy, never null. */ @objid ("c700735e-ea2e-4ceb-8928-bfc1bee7cbd8") @@ -146,11 +149,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/DeploymentTypeModelDiagram.java b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/DeploymentTypeModelDiagram.java index 1d028669..9a1ed2b6 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/DeploymentTypeModelDiagram.java +++ b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/DeploymentTypeModelDiagram.java @@ -65,9 +65,10 @@ public static DeploymentTypeModelDiagram create() { } /** - * Tries to instantiate a {@link DeploymentTypeModelDiagram} proxy from a {@link ClassDiagram} stereotyped << DeploymentTypeModelDiagram >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link DeploymentTypeModelDiagram} proxy from a {@link ClassDiagram} stereotyped << DeploymentTypeModelDiagram >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a ClassDiagram * @return a {@link DeploymentTypeModelDiagram} proxy or null. */ @@ -77,19 +78,20 @@ public static DeploymentTypeModelDiagram instantiate(final ClassDiagram obj) { } /** - * Tries to instantiate a {@link DeploymentTypeModelDiagram} proxy from a {@link ClassDiagram} stereotyped << DeploymentTypeModelDiagram >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link DeploymentTypeModelDiagram} proxy from a {@link ClassDiagram} stereotyped << DeploymentTypeModelDiagram >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link ClassDiagram} * @return a {@link DeploymentTypeModelDiagram} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("b60eee63-84fa-4052-bb33-2b4999f1744d") public static DeploymentTypeModelDiagram safeInstantiate(final ClassDiagram obj) throws IllegalArgumentException { if (DeploymentTypeModelDiagram.canInstantiate(obj)) - return new DeploymentTypeModelDiagram(obj); + return new DeploymentTypeModelDiagram(obj); else - throw new IllegalArgumentException("DeploymentTypeModelDiagram: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("DeploymentTypeModelDiagram: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("832d9d00-d458-4d1f-b7e2-752f5dc9bfbf") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link ClassDiagram}. + * Get the underlying {@link ClassDiagram}. + * * @return the ClassDiagram represented by this proxy, never null. */ @objid ("6998cf93-6e97-47d2-adc4-f4e28adf1900") @@ -156,11 +159,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/ExecutionModelDiagram.java b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/ExecutionModelDiagram.java index 1375281f..b1ac213d 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/ExecutionModelDiagram.java +++ b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/ExecutionModelDiagram.java @@ -66,9 +66,10 @@ public static ExecutionModelDiagram create() { } /** - * Tries to instantiate a {@link ExecutionModelDiagram} proxy from a {@link ClassDiagram} stereotyped << ExecutionModelDiagram >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ExecutionModelDiagram} proxy from a {@link ClassDiagram} stereotyped << ExecutionModelDiagram >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a ClassDiagram * @return a {@link ExecutionModelDiagram} proxy or null. */ @@ -78,19 +79,20 @@ public static ExecutionModelDiagram instantiate(final ClassDiagram obj) { } /** - * Tries to instantiate a {@link ExecutionModelDiagram} proxy from a {@link ClassDiagram} stereotyped << ExecutionModelDiagram >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ExecutionModelDiagram} proxy from a {@link ClassDiagram} stereotyped << ExecutionModelDiagram >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link ClassDiagram} * @return a {@link ExecutionModelDiagram} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("b450f0c0-e148-4d53-a53a-c2468fd4943c") public static ExecutionModelDiagram safeInstantiate(final ClassDiagram obj) throws IllegalArgumentException { if (ExecutionModelDiagram.canInstantiate(obj)) - return new ExecutionModelDiagram(obj); + return new ExecutionModelDiagram(obj); else - throw new IllegalArgumentException("ExecutionModelDiagram: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("ExecutionModelDiagram: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("8ee75272-8b1d-4fff-9679-78a02ad2142a") @@ -110,7 +112,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link ClassDiagram}. + * Get the underlying {@link ClassDiagram}. + * * @return the ClassDiagram represented by this proxy, never null. */ @objid ("8979a025-5a4d-4da9-9204-bfbe050bbaeb") @@ -123,7 +126,6 @@ public ClassDiagram getElement() { * Get the value to the 'Origin' role.

* Role description: * null - * */ @objid ("b311784e-7fc0-41b0-8404-f19dcc86b50b") public ExecutionModel getOrigin() { @@ -140,7 +142,6 @@ public int hashCode() { * Set the value of the 'Origin' role.

* Role description: * null - * */ @objid ("1c740b3f-3c54-4cfd-a58b-ff6fd16c9f7d") public void setOrigin(final ExecutionModel obj) { @@ -178,11 +179,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/LocationModelDiagram.java b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/LocationModelDiagram.java index f0a09155..c27758f0 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/LocationModelDiagram.java +++ b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/LocationModelDiagram.java @@ -65,9 +65,10 @@ public static LocationModelDiagram create() { } /** - * Tries to instantiate a {@link LocationModelDiagram} proxy from a {@link ClassDiagram} stereotyped << LocationModelDiagram >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link LocationModelDiagram} proxy from a {@link ClassDiagram} stereotyped << LocationModelDiagram >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a ClassDiagram * @return a {@link LocationModelDiagram} proxy or null. */ @@ -77,19 +78,20 @@ public static LocationModelDiagram instantiate(final ClassDiagram obj) { } /** - * Tries to instantiate a {@link LocationModelDiagram} proxy from a {@link ClassDiagram} stereotyped << LocationModelDiagram >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link LocationModelDiagram} proxy from a {@link ClassDiagram} stereotyped << LocationModelDiagram >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link ClassDiagram} * @return a {@link LocationModelDiagram} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("f26ed4d0-b0d7-4ac3-9e10-02aee25f7085") public static LocationModelDiagram safeInstantiate(final ClassDiagram obj) throws IllegalArgumentException { if (LocationModelDiagram.canInstantiate(obj)) - return new LocationModelDiagram(obj); + return new LocationModelDiagram(obj); else - throw new IllegalArgumentException("LocationModelDiagram: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("LocationModelDiagram: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("d0284bd8-b2a5-4782-8040-33ce2575945a") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link ClassDiagram}. + * Get the underlying {@link ClassDiagram}. + * * @return the ClassDiagram represented by this proxy, never null. */ @objid ("e597712a-9268-4856-b0c6-4af9ac377a48") @@ -155,11 +158,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/MetadataModelDiagram.java b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/MetadataModelDiagram.java index b6018e5d..f52b95b8 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/MetadataModelDiagram.java +++ b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/MetadataModelDiagram.java @@ -65,9 +65,10 @@ public static MetadataModelDiagram create() { } /** - * Tries to instantiate a {@link MetadataModelDiagram} proxy from a {@link ClassDiagram} stereotyped << MetadataModelDiagram >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link MetadataModelDiagram} proxy from a {@link ClassDiagram} stereotyped << MetadataModelDiagram >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a ClassDiagram * @return a {@link MetadataModelDiagram} proxy or null. */ @@ -77,19 +78,20 @@ public static MetadataModelDiagram instantiate(final ClassDiagram obj) { } /** - * Tries to instantiate a {@link MetadataModelDiagram} proxy from a {@link ClassDiagram} stereotyped << MetadataModelDiagram >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link MetadataModelDiagram} proxy from a {@link ClassDiagram} stereotyped << MetadataModelDiagram >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link ClassDiagram} * @return a {@link MetadataModelDiagram} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("6bb47b72-7a71-4de5-83e6-f3feefbe0969") public static MetadataModelDiagram safeInstantiate(final ClassDiagram obj) throws IllegalArgumentException { if (MetadataModelDiagram.canInstantiate(obj)) - return new MetadataModelDiagram(obj); + return new MetadataModelDiagram(obj); else - throw new IllegalArgumentException("MetadataModelDiagram: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("MetadataModelDiagram: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("4164f84a-3221-41af-8b46-d6262e6d25a4") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link ClassDiagram}. + * Get the underlying {@link ClassDiagram}. + * * @return the ClassDiagram represented by this proxy, never null. */ @objid ("b0cfd043-6f2a-49d3-afe0-63fd730f0dbd") @@ -155,11 +158,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/MetricInstanceModelDiagram.java b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/MetricInstanceModelDiagram.java index bc63cce3..acfebe7a 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/MetricInstanceModelDiagram.java +++ b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/MetricInstanceModelDiagram.java @@ -65,9 +65,10 @@ public static MetricInstanceModelDiagram create() { } /** - * Tries to instantiate a {@link MetricInstanceModelDiagram} proxy from a {@link ClassDiagram} stereotyped << MetricInstanceModelDiagram >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link MetricInstanceModelDiagram} proxy from a {@link ClassDiagram} stereotyped << MetricInstanceModelDiagram >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a ClassDiagram * @return a {@link MetricInstanceModelDiagram} proxy or null. */ @@ -77,19 +78,20 @@ public static MetricInstanceModelDiagram instantiate(final ClassDiagram obj) { } /** - * Tries to instantiate a {@link MetricInstanceModelDiagram} proxy from a {@link ClassDiagram} stereotyped << MetricInstanceModelDiagram >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link MetricInstanceModelDiagram} proxy from a {@link ClassDiagram} stereotyped << MetricInstanceModelDiagram >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link ClassDiagram} * @return a {@link MetricInstanceModelDiagram} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("49df840c-7237-4a0c-b369-a851871f0696") public static MetricInstanceModelDiagram safeInstantiate(final ClassDiagram obj) throws IllegalArgumentException { if (MetricInstanceModelDiagram.canInstantiate(obj)) - return new MetricInstanceModelDiagram(obj); + return new MetricInstanceModelDiagram(obj); else - throw new IllegalArgumentException("MetricInstanceModelDiagram: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("MetricInstanceModelDiagram: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("a9950576-5590-4066-a005-37bc2d28cd0b") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link ClassDiagram}. + * Get the underlying {@link ClassDiagram}. + * * @return the ClassDiagram represented by this proxy, never null. */ @objid ("2b998220-c501-45e0-93bd-4845dd0d1b5b") @@ -155,11 +158,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/MetricTypeModelDiagram.java b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/MetricTypeModelDiagram.java index 5386a49e..dceb31b8 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/MetricTypeModelDiagram.java +++ b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/MetricTypeModelDiagram.java @@ -65,9 +65,10 @@ public static MetricTypeModelDiagram create() { } /** - * Tries to instantiate a {@link MetricTypeModelDiagram} proxy from a {@link ClassDiagram} stereotyped << MetricTypeModelDiagram >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link MetricTypeModelDiagram} proxy from a {@link ClassDiagram} stereotyped << MetricTypeModelDiagram >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a ClassDiagram * @return a {@link MetricTypeModelDiagram} proxy or null. */ @@ -77,19 +78,20 @@ public static MetricTypeModelDiagram instantiate(final ClassDiagram obj) { } /** - * Tries to instantiate a {@link MetricTypeModelDiagram} proxy from a {@link ClassDiagram} stereotyped << MetricTypeModelDiagram >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link MetricTypeModelDiagram} proxy from a {@link ClassDiagram} stereotyped << MetricTypeModelDiagram >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link ClassDiagram} * @return a {@link MetricTypeModelDiagram} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("0f9d7944-204f-4c8f-9958-321af67ed9fd") public static MetricTypeModelDiagram safeInstantiate(final ClassDiagram obj) throws IllegalArgumentException { if (MetricTypeModelDiagram.canInstantiate(obj)) - return new MetricTypeModelDiagram(obj); + return new MetricTypeModelDiagram(obj); else - throw new IllegalArgumentException("MetricTypeModelDiagram: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("MetricTypeModelDiagram: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("e7dcf399-e8ae-4cc2-a49a-4c744b2d72de") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link ClassDiagram}. + * Get the underlying {@link ClassDiagram}. + * * @return the ClassDiagram represented by this proxy, never null. */ @objid ("80188149-d60f-434a-9317-369deb29ea6d") @@ -155,11 +158,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/OrganisationModelDiagram.java b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/OrganisationModelDiagram.java index aee5ceab..fa0140a1 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/OrganisationModelDiagram.java +++ b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/OrganisationModelDiagram.java @@ -65,9 +65,10 @@ public static OrganisationModelDiagram create() { } /** - * Tries to instantiate a {@link OrganisationModelDiagram} proxy from a {@link ClassDiagram} stereotyped << OrganisationModelDiagram >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link OrganisationModelDiagram} proxy from a {@link ClassDiagram} stereotyped << OrganisationModelDiagram >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a ClassDiagram * @return a {@link OrganisationModelDiagram} proxy or null. */ @@ -77,19 +78,20 @@ public static OrganisationModelDiagram instantiate(final ClassDiagram obj) { } /** - * Tries to instantiate a {@link OrganisationModelDiagram} proxy from a {@link ClassDiagram} stereotyped << OrganisationModelDiagram >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link OrganisationModelDiagram} proxy from a {@link ClassDiagram} stereotyped << OrganisationModelDiagram >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link ClassDiagram} * @return a {@link OrganisationModelDiagram} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("7c66cf5d-8766-4fb4-952c-60b585d388d7") public static OrganisationModelDiagram safeInstantiate(final ClassDiagram obj) throws IllegalArgumentException { if (OrganisationModelDiagram.canInstantiate(obj)) - return new OrganisationModelDiagram(obj); + return new OrganisationModelDiagram(obj); else - throw new IllegalArgumentException("OrganisationModelDiagram: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("OrganisationModelDiagram: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("4f57d44c-2a8b-4af2-ab72-20f373878bef") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link ClassDiagram}. + * Get the underlying {@link ClassDiagram}. + * * @return the ClassDiagram represented by this proxy, never null. */ @objid ("bcf68fa9-d3db-4efa-affa-c52a13507f4e") @@ -155,11 +158,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/RequirementModelDiagram.java b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/RequirementModelDiagram.java index e020fee5..3a4052bf 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/RequirementModelDiagram.java +++ b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/RequirementModelDiagram.java @@ -65,9 +65,10 @@ public static RequirementModelDiagram create() { } /** - * Tries to instantiate a {@link RequirementModelDiagram} proxy from a {@link ClassDiagram} stereotyped << RequirementModelDiagram >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link RequirementModelDiagram} proxy from a {@link ClassDiagram} stereotyped << RequirementModelDiagram >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a ClassDiagram * @return a {@link RequirementModelDiagram} proxy or null. */ @@ -77,19 +78,20 @@ public static RequirementModelDiagram instantiate(final ClassDiagram obj) { } /** - * Tries to instantiate a {@link RequirementModelDiagram} proxy from a {@link ClassDiagram} stereotyped << RequirementModelDiagram >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link RequirementModelDiagram} proxy from a {@link ClassDiagram} stereotyped << RequirementModelDiagram >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link ClassDiagram} * @return a {@link RequirementModelDiagram} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("c23c351d-6c2b-4645-a0d3-de3613af80d8") public static RequirementModelDiagram safeInstantiate(final ClassDiagram obj) throws IllegalArgumentException { if (RequirementModelDiagram.canInstantiate(obj)) - return new RequirementModelDiagram(obj); + return new RequirementModelDiagram(obj); else - throw new IllegalArgumentException("RequirementModelDiagram: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("RequirementModelDiagram: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("015f2498-539a-437d-b43d-a46f38bdb769") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link ClassDiagram}. + * Get the underlying {@link ClassDiagram}. + * * @return the ClassDiagram represented by this proxy, never null. */ @objid ("e14b8396-ee2e-4879-b7e6-94219757a748") @@ -155,11 +158,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/ScalabilityModelDiagram.java b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/ScalabilityModelDiagram.java index 871f5b2a..870e8457 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/ScalabilityModelDiagram.java +++ b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/ScalabilityModelDiagram.java @@ -65,9 +65,10 @@ public static ScalabilityModelDiagram create() { } /** - * Tries to instantiate a {@link ScalabilityModelDiagram} proxy from a {@link ClassDiagram} stereotyped << ScalabilityModelDiagram >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ScalabilityModelDiagram} proxy from a {@link ClassDiagram} stereotyped << ScalabilityModelDiagram >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a ClassDiagram * @return a {@link ScalabilityModelDiagram} proxy or null. */ @@ -77,19 +78,20 @@ public static ScalabilityModelDiagram instantiate(final ClassDiagram obj) { } /** - * Tries to instantiate a {@link ScalabilityModelDiagram} proxy from a {@link ClassDiagram} stereotyped << ScalabilityModelDiagram >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ScalabilityModelDiagram} proxy from a {@link ClassDiagram} stereotyped << ScalabilityModelDiagram >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link ClassDiagram} * @return a {@link ScalabilityModelDiagram} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("746c4aac-028c-4cdc-9987-dec23141809f") public static ScalabilityModelDiagram safeInstantiate(final ClassDiagram obj) throws IllegalArgumentException { if (ScalabilityModelDiagram.canInstantiate(obj)) - return new ScalabilityModelDiagram(obj); + return new ScalabilityModelDiagram(obj); else - throw new IllegalArgumentException("ScalabilityModelDiagram: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("ScalabilityModelDiagram: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("e6d27f41-24ef-4a8d-8155-41ac56f0b3e2") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link ClassDiagram}. + * Get the underlying {@link ClassDiagram}. + * * @return the ClassDiagram represented by this proxy, never null. */ @objid ("47cba9b1-8ba3-41a7-954a-8001930de0cd") @@ -155,11 +158,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/SecurityModelDiagram.java b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/SecurityModelDiagram.java index 1f17ef25..07983a4a 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/SecurityModelDiagram.java +++ b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/SecurityModelDiagram.java @@ -65,9 +65,10 @@ public static SecurityModelDiagram create() { } /** - * Tries to instantiate a {@link SecurityModelDiagram} proxy from a {@link ClassDiagram} stereotyped << SecurityModelDiagram >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link SecurityModelDiagram} proxy from a {@link ClassDiagram} stereotyped << SecurityModelDiagram >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a ClassDiagram * @return a {@link SecurityModelDiagram} proxy or null. */ @@ -77,19 +78,20 @@ public static SecurityModelDiagram instantiate(final ClassDiagram obj) { } /** - * Tries to instantiate a {@link SecurityModelDiagram} proxy from a {@link ClassDiagram} stereotyped << SecurityModelDiagram >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link SecurityModelDiagram} proxy from a {@link ClassDiagram} stereotyped << SecurityModelDiagram >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link ClassDiagram} * @return a {@link SecurityModelDiagram} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("52fcb69b-ceeb-4df1-a2b2-f4db2cb2572a") public static SecurityModelDiagram safeInstantiate(final ClassDiagram obj) throws IllegalArgumentException { if (SecurityModelDiagram.canInstantiate(obj)) - return new SecurityModelDiagram(obj); + return new SecurityModelDiagram(obj); else - throw new IllegalArgumentException("SecurityModelDiagram: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("SecurityModelDiagram: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("3926f54d-9625-461b-815b-60c1a7d72eb2") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link ClassDiagram}. + * Get the underlying {@link ClassDiagram}. + * * @return the ClassDiagram represented by this proxy, never null. */ @objid ("cdfe5970-efc5-4975-8dcd-9c49bbfb2a39") @@ -155,11 +158,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/TypeModelDiagram.java b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/TypeModelDiagram.java index 32bdc2c9..e0eb63d4 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/TypeModelDiagram.java +++ b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/TypeModelDiagram.java @@ -65,9 +65,10 @@ public static TypeModelDiagram create() { } /** - * Tries to instantiate a {@link TypeModelDiagram} proxy from a {@link ClassDiagram} stereotyped << TypeModelDiagram >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link TypeModelDiagram} proxy from a {@link ClassDiagram} stereotyped << TypeModelDiagram >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a ClassDiagram * @return a {@link TypeModelDiagram} proxy or null. */ @@ -77,19 +78,20 @@ public static TypeModelDiagram instantiate(final ClassDiagram obj) { } /** - * Tries to instantiate a {@link TypeModelDiagram} proxy from a {@link ClassDiagram} stereotyped << TypeModelDiagram >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link TypeModelDiagram} proxy from a {@link ClassDiagram} stereotyped << TypeModelDiagram >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link ClassDiagram} * @return a {@link TypeModelDiagram} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("52072867-7b04-45fe-856b-d89a50f52675") public static TypeModelDiagram safeInstantiate(final ClassDiagram obj) throws IllegalArgumentException { if (TypeModelDiagram.canInstantiate(obj)) - return new TypeModelDiagram(obj); + return new TypeModelDiagram(obj); else - throw new IllegalArgumentException("TypeModelDiagram: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("TypeModelDiagram: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("eddbae5b-c3ca-4ced-b952-1418944036f7") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link ClassDiagram}. + * Get the underlying {@link ClassDiagram}. + * * @return the ClassDiagram represented by this proxy, never null. */ @objid ("57cafd81-e4ff-4674-9a92-fd25f2335828") @@ -155,11 +158,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/UnitModelDiagram.java b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/UnitModelDiagram.java index 09a9cde8..2f945698 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/UnitModelDiagram.java +++ b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/UnitModelDiagram.java @@ -65,9 +65,10 @@ public static UnitModelDiagram create() { } /** - * Tries to instantiate a {@link UnitModelDiagram} proxy from a {@link ClassDiagram} stereotyped << UnitModelDiagram >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link UnitModelDiagram} proxy from a {@link ClassDiagram} stereotyped << UnitModelDiagram >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a ClassDiagram * @return a {@link UnitModelDiagram} proxy or null. */ @@ -77,19 +78,20 @@ public static UnitModelDiagram instantiate(final ClassDiagram obj) { } /** - * Tries to instantiate a {@link UnitModelDiagram} proxy from a {@link ClassDiagram} stereotyped << UnitModelDiagram >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link UnitModelDiagram} proxy from a {@link ClassDiagram} stereotyped << UnitModelDiagram >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link ClassDiagram} * @return a {@link UnitModelDiagram} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("5cc812e0-0930-42ef-a1d3-270477e80857") public static UnitModelDiagram safeInstantiate(final ClassDiagram obj) throws IllegalArgumentException { if (UnitModelDiagram.canInstantiate(obj)) - return new UnitModelDiagram(obj); + return new UnitModelDiagram(obj); else - throw new IllegalArgumentException("UnitModelDiagram: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("UnitModelDiagram: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("e02b2bff-bd93-4407-9b06-d6f88897c4db") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link ClassDiagram}. + * Get the underlying {@link ClassDiagram}. + * * @return the ClassDiagram represented by this proxy, never null. */ @objid ("cba87d76-0a91-4bbd-9375-c19866797b9c") @@ -155,11 +158,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/constraint/AttributeConstraint.java b/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/constraint/AttributeConstraint.java index 7d0fb63d..ca9217e4 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/constraint/AttributeConstraint.java +++ b/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/constraint/AttributeConstraint.java @@ -66,9 +66,10 @@ public static AttributeConstraint create() { } /** - * Tries to instantiate a {@link AttributeConstraint} proxy from a {@link Constraint} stereotyped << AttributeConstraint >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link AttributeConstraint} proxy from a {@link Constraint} stereotyped << AttributeConstraint >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Constraint * @return a {@link AttributeConstraint} proxy or null. */ @@ -78,19 +79,20 @@ public static AttributeConstraint instantiate(final Constraint obj) { } /** - * Tries to instantiate a {@link AttributeConstraint} proxy from a {@link Constraint} stereotyped << AttributeConstraint >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link AttributeConstraint} proxy from a {@link Constraint} stereotyped << AttributeConstraint >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Constraint} * @return a {@link AttributeConstraint} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("387c46a9-b3f2-4dea-a5ed-11a2f28439a6") public static AttributeConstraint safeInstantiate(final Constraint obj) throws IllegalArgumentException { if (AttributeConstraint.canInstantiate(obj)) - return new AttributeConstraint(obj); + return new AttributeConstraint(obj); else - throw new IllegalArgumentException("AttributeConstraint: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("AttributeConstraint: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("a075a0f2-637d-4cb1-b8f7-3cde103fa61c") @@ -113,19 +115,19 @@ public boolean equals(final Object obj) { * Get the value to the 'attributeContext' role.

* Role description: * null - * */ @objid ("a6862511-b0f3-4e19-a174-d9d7d417880f") public AttributeContext getAttributeContext() { - for (Class obj : ((Constraint) this.elt).getConstrainedElement(Class.class)) { - if (AttributeContext.canInstantiate(obj)) - return (AttributeContext)CamelDesignerProxyFactory.instantiate(obj, AttributeContext.STEREOTYPE_NAME); - } - return null; + for (Class obj : ((Constraint) this.elt).getConstrainedElement(Class.class)) { + if (AttributeContext.canInstantiate(obj)) + return (AttributeContext)CamelDesignerProxyFactory.instantiate(obj, AttributeContext.STEREOTYPE_NAME); + } + return null; } /** - * Get the underlying {@link Constraint}. + * Get the underlying {@link Constraint}. + * * @return the Constraint represented by this proxy, never null. */ @objid ("08a72d99-8601-445f-ab50-68fbfe7fa466") @@ -144,7 +146,6 @@ public int hashCode() { * Set the value of the 'attributeContext' role.

* Role description: * null - * */ @objid ("74ec3d89-608a-489b-9f28-8710b0ddd02c") public void setAttributeContext(final AttributeContext obj) { @@ -191,11 +192,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/constraint/CamelConstraint.java b/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/constraint/CamelConstraint.java index 773c80a9..1bde1d0d 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/constraint/CamelConstraint.java +++ b/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/constraint/CamelConstraint.java @@ -73,7 +73,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Constraint}. + * Get the underlying {@link Constraint}. + * * @return the Constraint represented by this proxy, never null. */ @objid ("e66b6efc-0470-4060-859c-8c2541cf8ee1") @@ -112,11 +113,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/constraint/CompositeConstraint.java b/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/constraint/CompositeConstraint.java index 4b2f2d3e..ce61b59d 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/constraint/CompositeConstraint.java +++ b/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/constraint/CompositeConstraint.java @@ -72,7 +72,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Constraint}. + * Get the underlying {@link Constraint}. + * * @return the Constraint represented by this proxy, never null. */ @objid ("57091e35-208a-43ee-918a-e9217b2621b6") @@ -111,11 +112,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/constraint/IfThenConstraint.java b/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/constraint/IfThenConstraint.java index e39b03b9..3bacf6c1 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/constraint/IfThenConstraint.java +++ b/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/constraint/IfThenConstraint.java @@ -15,7 +15,6 @@ import fr.softeam.cameldesigner.api.ICamelDesignerPeerModule; import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; import fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.AttributeConstraint; -import fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.CamelConstraint; import fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.LogicalConstraint; import fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.MetricConstraint; import fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.MetricVariableConstraint; @@ -69,9 +68,10 @@ public static IfThenConstraint create() { } /** - * Tries to instantiate a {@link IfThenConstraint} proxy from a {@link Constraint} stereotyped << IfThenConstraint >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link IfThenConstraint} proxy from a {@link Constraint} stereotyped << IfThenConstraint >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Constraint * @return a {@link IfThenConstraint} proxy or null. */ @@ -81,19 +81,20 @@ public static IfThenConstraint instantiate(final Constraint obj) { } /** - * Tries to instantiate a {@link IfThenConstraint} proxy from a {@link Constraint} stereotyped << IfThenConstraint >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link IfThenConstraint} proxy from a {@link Constraint} stereotyped << IfThenConstraint >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Constraint} * @return a {@link IfThenConstraint} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("567e3ad4-e08f-4635-b4cf-776a23c552e6") public static IfThenConstraint safeInstantiate(final Constraint obj) throws IllegalArgumentException { if (IfThenConstraint.canInstantiate(obj)) - return new IfThenConstraint(obj); + return new IfThenConstraint(obj); else - throw new IllegalArgumentException("IfThenConstraint: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("IfThenConstraint: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("1ba87389-463f-46af-9463-9211b8bf51e3") @@ -113,7 +114,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Constraint}. + * Get the underlying {@link Constraint}. + * * @return the Constraint represented by this proxy, never null. */ @objid ("b70f94b3-c26f-43fe-baec-e64f901247bc") @@ -126,7 +128,6 @@ public Constraint getElement() { * Get the value of the 'else' role.

* Role description: * null - * */ @objid ("7c946a27-4bd0-4bc4-a322-f9fdf35332eb") public CamelConstraint getElse() { @@ -152,7 +153,6 @@ public CamelConstraint getElse() { * Get the value of the 'if' role.

* Role description: * null - * */ @objid ("58b67890-1aa8-4211-832f-a9f6054febee") public CamelConstraint getIf() { @@ -178,7 +178,6 @@ public CamelConstraint getIf() { * Get the value of the 'then' role.

* Role description: * null - * */ @objid ("010945e9-0340-4d56-bc18-25aa8a4881c2") public CamelConstraint getThen() { @@ -210,7 +209,6 @@ public int hashCode() { * Set the value of the 'else' role.

* Role description: * null - * */ @objid ("09626bbb-f085-476f-847a-1bf623923188") public void setElse(final CamelConstraint obj) { @@ -236,7 +234,6 @@ public void setElse(final CamelConstraint obj) { * Set the value of the 'if' role.

* Role description: * null - * */ @objid ("e64027c0-daec-4d26-a896-cba4b301d804") public void setIf(final CamelConstraint obj) { @@ -262,7 +259,6 @@ public void setIf(final CamelConstraint obj) { * Set the value of the 'then' role.

* Role description: * null - * */ @objid ("0ba3dcc6-8f4f-49b2-a0d5-7cd4a242e658") public void setThen(final CamelConstraint obj) { @@ -315,11 +311,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/constraint/LogicalConstraint.java b/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/constraint/LogicalConstraint.java index ce3c2cd4..3949c246 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/constraint/LogicalConstraint.java +++ b/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/constraint/LogicalConstraint.java @@ -15,7 +15,6 @@ import fr.softeam.cameldesigner.api.ICamelDesignerPeerModule; import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; import fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.AttributeConstraint; -import fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.CamelConstraint; import fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.IfThenConstraint; import fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.MetricConstraint; import fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.MetricVariableConstraint; @@ -72,9 +71,10 @@ public static LogicalConstraint create() { } /** - * Tries to instantiate a {@link LogicalConstraint} proxy from a {@link Constraint} stereotyped << LogicalConstraint >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link LogicalConstraint} proxy from a {@link Constraint} stereotyped << LogicalConstraint >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Constraint * @return a {@link LogicalConstraint} proxy or null. */ @@ -84,26 +84,26 @@ public static LogicalConstraint instantiate(final Constraint obj) { } /** - * Tries to instantiate a {@link LogicalConstraint} proxy from a {@link Constraint} stereotyped << LogicalConstraint >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link LogicalConstraint} proxy from a {@link Constraint} stereotyped << LogicalConstraint >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Constraint} * @return a {@link LogicalConstraint} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("63245031-177b-430e-94f6-cbbdfc92687c") public static LogicalConstraint safeInstantiate(final Constraint obj) throws IllegalArgumentException { if (LogicalConstraint.canInstantiate(obj)) - return new LogicalConstraint(obj); + return new LogicalConstraint(obj); else - throw new IllegalArgumentException("LogicalConstraint: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("LogicalConstraint: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'constraints' role.

* Role description: * null - * */ @objid ("f8ada423-546f-4caa-9336-c464a659baa7") public void addConstraints(final CamelConstraint obj) { @@ -135,7 +135,6 @@ public boolean equals(final Object obj) { * Get the values of the 'constraints' role.

* Role description: * null - * */ @objid ("7ebdb135-4f71-43b3-86ab-a5280e07f02a") public List getConstraints() { @@ -159,7 +158,8 @@ public List getConstraints() { } /** - * Get the underlying {@link Constraint}. + * Get the underlying {@link Constraint}. + * * @return the Constraint represented by this proxy, never null. */ @objid ("ad69157e-c72b-4bce-b70c-96466ffb0a2e") @@ -188,7 +188,6 @@ public int hashCode() { * Remove a value from the 'constraints' role.

* Role description: * null - * */ @objid ("2e4cc435-9241-48f9-9e4e-8cdbdb68a7c2") public boolean removeConstraints(final CamelConstraint obj) { @@ -249,11 +248,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/constraint/MetricConstraint.java b/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/constraint/MetricConstraint.java index 44c6f22b..d842e9a4 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/constraint/MetricConstraint.java +++ b/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/constraint/MetricConstraint.java @@ -66,9 +66,10 @@ public static MetricConstraint create() { } /** - * Tries to instantiate a {@link MetricConstraint} proxy from a {@link Constraint} stereotyped << MetricConstraint >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link MetricConstraint} proxy from a {@link Constraint} stereotyped << MetricConstraint >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Constraint * @return a {@link MetricConstraint} proxy or null. */ @@ -78,19 +79,20 @@ public static MetricConstraint instantiate(final Constraint obj) { } /** - * Tries to instantiate a {@link MetricConstraint} proxy from a {@link Constraint} stereotyped << MetricConstraint >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link MetricConstraint} proxy from a {@link Constraint} stereotyped << MetricConstraint >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Constraint} * @return a {@link MetricConstraint} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("9dbc8a7a-ecc9-465b-b652-c5f14ae07205") public static MetricConstraint safeInstantiate(final Constraint obj) throws IllegalArgumentException { if (MetricConstraint.canInstantiate(obj)) - return new MetricConstraint(obj); + return new MetricConstraint(obj); else - throw new IllegalArgumentException("MetricConstraint: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("MetricConstraint: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("34768f3d-0ed1-4f66-b071-3321ddb9ab16") @@ -110,7 +112,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Constraint}. + * Get the underlying {@link Constraint}. + * * @return the Constraint represented by this proxy, never null. */ @objid ("1768d4a0-312a-4235-b7b2-bb8c6c01c400") @@ -123,15 +126,14 @@ public Constraint getElement() { * Get the value to the 'metricContext' role.

* Role description: * null - * */ @objid ("30c19fb9-83f8-4ba6-a0d7-257faeaf9cc6") public MetricContext getMetricContext() { - for (Class obj : ((Constraint) this.elt).getConstrainedElement(Class.class)) { - if (MetricContext.canInstantiate(obj)) - return (MetricContext)CamelDesignerProxyFactory.instantiate(obj, MetricContext.STEREOTYPE_NAME); - } - return null; + for (Class obj : ((Constraint) this.elt).getConstrainedElement(Class.class)) { + if (MetricContext.canInstantiate(obj)) + return (MetricContext)CamelDesignerProxyFactory.instantiate(obj, MetricContext.STEREOTYPE_NAME); + } + return null; } @objid ("b48a7db1-860f-4d78-b358-a5cc36241248") @@ -144,7 +146,6 @@ public int hashCode() { * Set the value of the 'metricContext' role.

* Role description: * null - * */ @objid ("023eb697-7bee-453f-9040-7a526914b656") public void setMetricContext(final MetricContext obj) { @@ -191,11 +192,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/constraint/MetricVariableConstraint.java b/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/constraint/MetricVariableConstraint.java index e65b7d2b..c71c49d0 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/constraint/MetricVariableConstraint.java +++ b/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/constraint/MetricVariableConstraint.java @@ -66,9 +66,10 @@ public static MetricVariableConstraint create() { } /** - * Tries to instantiate a {@link MetricVariableConstraint} proxy from a {@link Constraint} stereotyped << MetricVariableConstraint >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link MetricVariableConstraint} proxy from a {@link Constraint} stereotyped << MetricVariableConstraint >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Constraint * @return a {@link MetricVariableConstraint} proxy or null. */ @@ -78,19 +79,20 @@ public static MetricVariableConstraint instantiate(final Constraint obj) { } /** - * Tries to instantiate a {@link MetricVariableConstraint} proxy from a {@link Constraint} stereotyped << MetricVariableConstraint >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link MetricVariableConstraint} proxy from a {@link Constraint} stereotyped << MetricVariableConstraint >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Constraint} * @return a {@link MetricVariableConstraint} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("6716961b-1996-4fa3-be3b-7fc1a052945b") public static MetricVariableConstraint safeInstantiate(final Constraint obj) throws IllegalArgumentException { if (MetricVariableConstraint.canInstantiate(obj)) - return new MetricVariableConstraint(obj); + return new MetricVariableConstraint(obj); else - throw new IllegalArgumentException("MetricVariableConstraint: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("MetricVariableConstraint: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("fbac8a90-46c6-4044-b236-7ac1aa205633") @@ -110,7 +112,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Constraint}. + * Get the underlying {@link Constraint}. + * * @return the Constraint represented by this proxy, never null. */ @objid ("a0ea2f82-a22c-4a54-849e-ed380b051b9d") @@ -123,15 +126,14 @@ public Constraint getElement() { * Get the value to the 'metricVariable' role.

* Role description: * null - * */ @objid ("b4ccc140-21e6-4385-870e-f6bb3c056605") public MetricVariable getMetricVariable() { - for (Class obj : ((Constraint) this.elt).getConstrainedElement(Class.class)) { - if (MetricVariable.canInstantiate(obj)) - return (MetricVariable)CamelDesignerProxyFactory.instantiate(obj, MetricVariable.STEREOTYPE_NAME); - } - return null; + for (Class obj : ((Constraint) this.elt).getConstrainedElement(Class.class)) { + if (MetricVariable.canInstantiate(obj)) + return (MetricVariable)CamelDesignerProxyFactory.instantiate(obj, MetricVariable.STEREOTYPE_NAME); + } + return null; } @objid ("ee71c2e4-2d65-4401-b626-a4f8d85be802") @@ -144,7 +146,6 @@ public int hashCode() { * Set the value of the 'metricVariable' role.

* Role description: * null - * */ @objid ("7e55bbbb-9954-4088-8517-58435d4b69b9") public void setMetricVariable(final MetricVariable obj) { @@ -191,11 +192,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/constraint/UnaryConstraint.java b/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/constraint/UnaryConstraint.java index 784597f2..c728a41b 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/constraint/UnaryConstraint.java +++ b/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/constraint/UnaryConstraint.java @@ -85,7 +85,8 @@ public String getComparisonOperator() { } /** - * Get the underlying {@link Constraint}. + * Get the underlying {@link Constraint}. + * * @return the Constraint represented by this proxy, never null. */ @objid ("84ac7480-59e7-49df-8490-6c286dbaca6a") @@ -186,11 +187,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/package_/ConstraintModel.java b/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/package_/ConstraintModel.java index e90ebce8..4478db3c 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/package_/ConstraintModel.java +++ b/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/package_/ConstraintModel.java @@ -65,9 +65,10 @@ public static ConstraintModel create() { } /** - * Tries to instantiate a {@link ConstraintModel} proxy from a {@link Package} stereotyped << ConstraintModel >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ConstraintModel} proxy from a {@link Package} stereotyped << ConstraintModel >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Package * @return a {@link ConstraintModel} proxy or null. */ @@ -77,19 +78,20 @@ public static ConstraintModel instantiate(final Package obj) { } /** - * Tries to instantiate a {@link ConstraintModel} proxy from a {@link Package} stereotyped << ConstraintModel >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ConstraintModel} proxy from a {@link Package} stereotyped << ConstraintModel >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Package} * @return a {@link ConstraintModel} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("65be398d-4ad1-4eb9-92c0-2fc7a58b5a29") public static ConstraintModel safeInstantiate(final Package obj) throws IllegalArgumentException { if (ConstraintModel.canInstantiate(obj)) - return new ConstraintModel(obj); + return new ConstraintModel(obj); else - throw new IllegalArgumentException("ConstraintModel: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("ConstraintModel: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("b1fd0d57-d55e-4d0d-a9bb-2c2d318b6e02") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Package}. + * Get the underlying {@link Package}. + * * @return the Package represented by this proxy, never null. */ @objid ("7ad26398-11a6-42e4-ad8a-350b1a9bba02") @@ -155,11 +158,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/datamodel/standard/bindableinstance/DataInstanceBindableInstance.java b/src/main/java/fr/softeam/cameldesigner/api/datamodel/standard/bindableinstance/DataInstanceBindableInstance.java index 9fd60d9c..b1eec027 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/datamodel/standard/bindableinstance/DataInstanceBindableInstance.java +++ b/src/main/java/fr/softeam/cameldesigner/api/datamodel/standard/bindableinstance/DataInstanceBindableInstance.java @@ -65,9 +65,10 @@ public static DataInstanceBindableInstance create() { } /** - * Tries to instantiate a {@link DataInstanceBindableInstance} proxy from a {@link BindableInstance} stereotyped << DataInstance_BindableInstance >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link DataInstanceBindableInstance} proxy from a {@link BindableInstance} stereotyped << DataInstance_BindableInstance >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a BindableInstance * @return a {@link DataInstanceBindableInstance} proxy or null. */ @@ -77,19 +78,20 @@ public static DataInstanceBindableInstance instantiate(final BindableInstance ob } /** - * Tries to instantiate a {@link DataInstanceBindableInstance} proxy from a {@link BindableInstance} stereotyped << DataInstance_BindableInstance >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link DataInstanceBindableInstance} proxy from a {@link BindableInstance} stereotyped << DataInstance_BindableInstance >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link BindableInstance} * @return a {@link DataInstanceBindableInstance} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("121982b6-230c-478a-8916-3c3643c1fabd") public static DataInstanceBindableInstance safeInstantiate(final BindableInstance obj) throws IllegalArgumentException { if (DataInstanceBindableInstance.canInstantiate(obj)) - return new DataInstanceBindableInstance(obj); + return new DataInstanceBindableInstance(obj); else - throw new IllegalArgumentException("DataInstanceBindableInstance: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("DataInstanceBindableInstance: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("160b27d3-74e3-43d4-a62a-6c0c30377e55") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link BindableInstance}. + * Get the underlying {@link BindableInstance}. + * * @return the BindableInstance represented by this proxy, never null. */ @objid ("65bcc76d-5f52-4675-8a4b-f0aed646798c") @@ -122,7 +125,6 @@ public BindableInstance getElement() { * Get the value to the 'owner' role.

* Role description: * null - * */ @objid ("cff6d387-28e1-4302-a538-349f86caa729") public DataInstance getOwner() { @@ -139,7 +141,6 @@ public int hashCode() { * Set the value of the 'owner' role.

* Role description: * null - * */ @objid ("e135029a-1b38-437e-b1f2-94000612358e") public void setOwner(final DataInstance obj) { @@ -178,11 +179,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/datamodel/standard/class_/Data.java b/src/main/java/fr/softeam/cameldesigner/api/datamodel/standard/class_/Data.java index ebabc01e..dd8c114a 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/datamodel/standard/class_/Data.java +++ b/src/main/java/fr/softeam/cameldesigner/api/datamodel/standard/class_/Data.java @@ -15,7 +15,6 @@ import fr.softeam.cameldesigner.api.ICamelDesignerPeerModule; import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; import fr.softeam.cameldesigner.api.camelcore.standard.class_.FeatureClass; -import fr.softeam.cameldesigner.api.datamodel.standard.class_.DataSource; import fr.softeam.cameldesigner.impl.CamelDesignerModule; import org.modelio.api.modelio.model.IModelingSession; import org.modelio.api.modelio.model.PropertyConverter; @@ -67,9 +66,10 @@ public static Data create() { } /** - * Tries to instantiate a {@link Data} proxy from a {@link Class} stereotyped << Data >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Data} proxy from a {@link Class} stereotyped << Data >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link Data} proxy or null. */ @@ -79,26 +79,26 @@ public static Data instantiate(final Class obj) { } /** - * Tries to instantiate a {@link Data} proxy from a {@link Class} stereotyped << Data >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Data} proxy from a {@link Class} stereotyped << Data >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link Data} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("cc81b75f-0a46-46b0-acec-bbf8816c09fa") public static Data safeInstantiate(final Class obj) throws IllegalArgumentException { if (Data.canInstantiate(obj)) - return new Data(obj); + return new Data(obj); else - throw new IllegalArgumentException("Data: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("Data: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'includesData' role.

* Role description: * null - * */ @objid ("86704b10-6d28-4072-8b4c-4da15d7fe4d1") public void addIncludesData(final Data obj) { @@ -126,7 +126,6 @@ public boolean equals(final Object obj) { * Get the value of the 'dataSource' role.

* Role description: * null - * */ @objid ("6ac5d879-cbc3-4421-8608-cc7f6539243e") public DataSource getDataSource() { @@ -141,7 +140,8 @@ public DataSource getDataSource() { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("75a970aa-79a0-4e3f-a08b-eba2e616e726") @@ -154,15 +154,14 @@ public Class getElement() { * Get the values of the 'includesData' role.

* Role description: * null - * */ @objid ("18950354-c2d2-4823-8713-270c6e84457d") public List getIncludesData() { List results = new ArrayList<>(); for (ModelTree mObj : ((Class) this.elt).getOwnedElement()){ - if (Data.canInstantiate(mObj)) - results.add((Data)CamelDesignerProxyFactory.instantiate(mObj, Data.STEREOTYPE_NAME)); - } + if (Data.canInstantiate(mObj)) + results.add((Data)CamelDesignerProxyFactory.instantiate(mObj, Data.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -170,7 +169,6 @@ public List getIncludesData() { * Get the value to the 'parent' role.

* Role description: * null - * */ @objid ("49b8e507-ab50-4095-bad7-707eff7af0a7") public Data getParent() { @@ -187,7 +185,6 @@ public int hashCode() { * Remove a value from the 'includesData' role.

* Role description: * null - * */ @objid ("ad3612a0-135d-4358-b2bf-cb23e435d873") public boolean removeIncludesData(final Data obj) { @@ -198,7 +195,6 @@ public boolean removeIncludesData(final Data obj) { * Set the value of the 'dataSource' role.

* Role description: * null - * */ @objid ("a60e3938-e9a9-405b-9bea-1554ee25108c") public void setDataSource(final DataSource obj) { @@ -224,7 +220,6 @@ public void setDataSource(final DataSource obj) { * Set the value of the 'parent' role.

* Role description: * null - * */ @objid ("3d08ce8b-2f94-40bb-8565-6d4fde4da9de") public void setParent(final Data obj) { @@ -263,11 +258,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/datamodel/standard/class_/DataSource.java b/src/main/java/fr/softeam/cameldesigner/api/datamodel/standard/class_/DataSource.java index cc5b6dba..1b7c2bcd 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/datamodel/standard/class_/DataSource.java +++ b/src/main/java/fr/softeam/cameldesigner/api/datamodel/standard/class_/DataSource.java @@ -70,9 +70,10 @@ public static DataSource create() { } /** - * Tries to instantiate a {@link DataSource} proxy from a {@link Class} stereotyped << DataSource >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link DataSource} proxy from a {@link Class} stereotyped << DataSource >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link DataSource} proxy or null. */ @@ -82,19 +83,20 @@ public static DataSource instantiate(final Class obj) { } /** - * Tries to instantiate a {@link DataSource} proxy from a {@link Class} stereotyped << DataSource >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link DataSource} proxy from a {@link Class} stereotyped << DataSource >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link DataSource} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("df17193c-f40f-401e-a88a-ab2636f362d2") public static DataSource safeInstantiate(final Class obj) throws IllegalArgumentException { if (DataSource.canInstantiate(obj)) - return new DataSource(obj); + return new DataSource(obj); else - throw new IllegalArgumentException("DataSource: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("DataSource: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("83aa7646-434e-49c4-ab37-53442a21e59c") @@ -114,7 +116,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("382672af-272d-418c-b9e1-293ed30cd099") @@ -127,7 +130,6 @@ public Class getElement() { * Get the value of the 'SoftwareComponent' role.

* Role description: * null - * */ @objid ("edef4e2c-c5f0-435f-bbfd-932dca75f579") public SoftwareComponent getSoftwareComponent() { @@ -176,7 +178,6 @@ public void setExternal(final boolean value) { * Set the value of the 'SoftwareComponent' role.

* Role description: * null - * */ @objid ("fc58c45d-e88d-421d-81e1-17f8ef58a523") public void setSoftwareComponent(final SoftwareComponent obj) { @@ -234,11 +235,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/datamodel/standard/instance/DataInstance.java b/src/main/java/fr/softeam/cameldesigner/api/datamodel/standard/instance/DataInstance.java index 0ad34b26..925fc3fe 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/datamodel/standard/instance/DataInstance.java +++ b/src/main/java/fr/softeam/cameldesigner/api/datamodel/standard/instance/DataInstance.java @@ -17,7 +17,6 @@ import fr.softeam.cameldesigner.api.camelcore.standard.instance.FeatureInstance; import fr.softeam.cameldesigner.api.datamodel.standard.bindableinstance.DataInstanceBindableInstance; import fr.softeam.cameldesigner.api.datamodel.standard.class_.Data; -import fr.softeam.cameldesigner.api.datamodel.standard.instance.DataSourceInstance; import fr.softeam.cameldesigner.api.datamodel.standard.package_.DataInstanceModel; import fr.softeam.cameldesigner.impl.CamelDesignerModule; import org.modelio.api.modelio.model.IModelingSession; @@ -70,9 +69,10 @@ public static DataInstance create() { } /** - * Tries to instantiate a {@link DataInstance} proxy from a {@link Instance} stereotyped << DataInstance >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link DataInstance} proxy from a {@link Instance} stereotyped << DataInstance >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Instance * @return a {@link DataInstance} proxy or null. */ @@ -82,26 +82,26 @@ public static DataInstance instantiate(final Instance obj) { } /** - * Tries to instantiate a {@link DataInstance} proxy from a {@link Instance} stereotyped << DataInstance >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link DataInstance} proxy from a {@link Instance} stereotyped << DataInstance >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Instance} * @return a {@link DataInstance} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("ada7cf46-546f-42f9-850e-34cd3733dd38") public static DataInstance safeInstantiate(final Instance obj) throws IllegalArgumentException { if (DataInstance.canInstantiate(obj)) - return new DataInstance(obj); + return new DataInstance(obj); else - throw new IllegalArgumentException("DataInstance: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("DataInstance: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'includesDataInstance' role.

* Role description: * null - * */ @objid ("11c67f05-038d-4a34-9c7f-ecf3eb69ce50") public void addIncludesDataInstance(final DataInstanceBindableInstance obj) { @@ -129,7 +129,6 @@ public boolean equals(final Object obj) { * Get the value of the 'dataSourceInstance' role.

* Role description: * null - * */ @objid ("9ce8d8d7-751b-4d44-9ef6-64ce58519cf3") public DataSourceInstance getDataSourceInstance() { @@ -144,7 +143,8 @@ public DataSourceInstance getDataSourceInstance() { } /** - * Get the underlying {@link Instance}. + * Get the underlying {@link Instance}. + * * @return the Instance represented by this proxy, never null. */ @objid ("2d9a8283-c9fc-40c3-95bd-f63ca27b2262") @@ -157,15 +157,14 @@ public Instance getElement() { * Get the values of the 'includesDataInstance' role.

* Role description: * null - * */ @objid ("3ba30bac-16ce-4a56-bfe7-21719191001e") public List getIncludesDataInstance() { List results = new ArrayList<>(); for (BindableInstance mObj : ((Instance) this.elt).getPart()){ - if (DataInstanceBindableInstance.canInstantiate(mObj)) - results.add((DataInstanceBindableInstance)CamelDesignerProxyFactory.instantiate(mObj, DataInstanceBindableInstance.STEREOTYPE_NAME)); - } + if (DataInstanceBindableInstance.canInstantiate(mObj)) + results.add((DataInstanceBindableInstance)CamelDesignerProxyFactory.instantiate(mObj, DataInstanceBindableInstance.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -173,7 +172,6 @@ public List getIncludesDataInstance() { * Get the value to the 'parent' role.

* Role description: * null - * */ @objid ("8713ec89-3dce-4fd9-a224-c713437f96a4") public DataInstanceModel getParent() { @@ -184,7 +182,6 @@ public DataInstanceModel getParent() { * Get the value to the 'type' role.

* Role description: * null - * */ @objid ("71ef2ab7-5ac7-4e1b-84fc-081fc637ae05") public Data getType() { @@ -201,7 +198,6 @@ public int hashCode() { * Remove a value from the 'includesDataInstance' role.

* Role description: * null - * */ @objid ("386576a7-b9bb-4b5f-aead-799221c4f87c") public boolean removeIncludesDataInstance(final DataInstanceBindableInstance obj) { @@ -212,7 +208,6 @@ public boolean removeIncludesDataInstance(final DataInstanceBindableInstance obj * Set the value of the 'dataSourceInstance' role.

* Role description: * null - * */ @objid ("b884d028-00ba-4245-bb9a-150d53a275dc") public void setDataSourceInstance(final DataSourceInstance obj) { @@ -238,7 +233,6 @@ public void setDataSourceInstance(final DataSourceInstance obj) { * Set the value of the 'parent' role.

* Role description: * null - * */ @objid ("84f6ccad-9c15-4405-a59f-d8fb22bf3189") public void setParent(final DataInstanceModel obj) { @@ -249,7 +243,6 @@ public void setParent(final DataInstanceModel obj) { * Set the value of the 'type' role.

* Role description: * null - * */ @objid ("7613ea2e-9238-4841-8843-9945fe417941") public void setType(final Data obj) { @@ -288,11 +281,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/datamodel/standard/instance/DataSourceInstance.java b/src/main/java/fr/softeam/cameldesigner/api/datamodel/standard/instance/DataSourceInstance.java index f8b4cfda..b1b53ec0 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/datamodel/standard/instance/DataSourceInstance.java +++ b/src/main/java/fr/softeam/cameldesigner/api/datamodel/standard/instance/DataSourceInstance.java @@ -68,9 +68,10 @@ public static DataSourceInstance create() { } /** - * Tries to instantiate a {@link DataSourceInstance} proxy from a {@link Instance} stereotyped << DataSourceInstance >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link DataSourceInstance} proxy from a {@link Instance} stereotyped << DataSourceInstance >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Instance * @return a {@link DataSourceInstance} proxy or null. */ @@ -80,19 +81,20 @@ public static DataSourceInstance instantiate(final Instance obj) { } /** - * Tries to instantiate a {@link DataSourceInstance} proxy from a {@link Instance} stereotyped << DataSourceInstance >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link DataSourceInstance} proxy from a {@link Instance} stereotyped << DataSourceInstance >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Instance} * @return a {@link DataSourceInstance} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("ba2c445c-6d0d-4cdc-9ac1-87a321512ebd") public static DataSourceInstance safeInstantiate(final Instance obj) throws IllegalArgumentException { if (DataSourceInstance.canInstantiate(obj)) - return new DataSourceInstance(obj); + return new DataSourceInstance(obj); else - throw new IllegalArgumentException("DataSourceInstance: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("DataSourceInstance: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("ad78d1eb-4187-4004-813a-3d44e120dd6a") @@ -112,7 +114,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Instance}. + * Get the underlying {@link Instance}. + * * @return the Instance represented by this proxy, never null. */ @objid ("d327933a-3609-42d1-8ba3-0a5467cc3519") @@ -125,7 +128,6 @@ public Instance getElement() { * Get the value to the 'parent' role.

* Role description: * null - * */ @objid ("4c206c26-e43a-4b6d-af91-7ae939349d30") public DataInstanceModel getParent() { @@ -136,7 +138,6 @@ public DataInstanceModel getParent() { * Get the value of the 'softwareComponentInstance' role.

* Role description: * null - * */ @objid ("63c030c8-4451-4754-a1bd-77abd47dd90a") public SoftwareComponentInstance getSoftwareComponentInstance() { @@ -154,7 +155,6 @@ public SoftwareComponentInstance getSoftwareComponentInstance() { * Get the value to the 'type' role.

* Role description: * null - * */ @objid ("63a9bda8-8af0-4be3-805a-29850dcfb63c") public DataSource getType() { @@ -171,7 +171,6 @@ public int hashCode() { * Set the value of the 'parent' role.

* Role description: * null - * */ @objid ("ee295620-f97c-4d64-abce-50912c384153") public void setParent(final DataInstanceModel obj) { @@ -182,7 +181,6 @@ public void setParent(final DataInstanceModel obj) { * Set the value of the 'softwareComponentInstance' role.

* Role description: * null - * */ @objid ("a8281977-b2f7-42ef-8817-a963a0cb1118") public void setSoftwareComponentInstance(final SoftwareComponentInstance obj) { @@ -208,7 +206,6 @@ public void setSoftwareComponentInstance(final SoftwareComponentInstance obj) { * Set the value of the 'type' role.

* Role description: * null - * */ @objid ("dc105a8e-aab5-41b6-8117-db4d0237ad63") public void setType(final DataSource obj) { @@ -247,11 +244,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/datamodel/standard/package_/DataInstanceModel.java b/src/main/java/fr/softeam/cameldesigner/api/datamodel/standard/package_/DataInstanceModel.java index 80db9398..c1a9f983 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/datamodel/standard/package_/DataInstanceModel.java +++ b/src/main/java/fr/softeam/cameldesigner/api/datamodel/standard/package_/DataInstanceModel.java @@ -17,7 +17,6 @@ import fr.softeam.cameldesigner.api.datamodel.standard.bindableinstance.DataInstanceBindableInstance; import fr.softeam.cameldesigner.api.datamodel.standard.instance.DataInstance; import fr.softeam.cameldesigner.api.datamodel.standard.instance.DataSourceInstance; -import fr.softeam.cameldesigner.api.datamodel.standard.package_.DataTypeModel; import fr.softeam.cameldesigner.impl.CamelDesignerModule; import org.modelio.api.modelio.model.IModelingSession; import org.modelio.api.modelio.model.PropertyConverter; @@ -69,9 +68,10 @@ public static DataInstanceModel create() { } /** - * Tries to instantiate a {@link DataInstanceModel} proxy from a {@link Package} stereotyped << DataInstanceModel >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link DataInstanceModel} proxy from a {@link Package} stereotyped << DataInstanceModel >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Package * @return a {@link DataInstanceModel} proxy or null. */ @@ -81,26 +81,26 @@ public static DataInstanceModel instantiate(final Package obj) { } /** - * Tries to instantiate a {@link DataInstanceModel} proxy from a {@link Package} stereotyped << DataInstanceModel >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link DataInstanceModel} proxy from a {@link Package} stereotyped << DataInstanceModel >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Package} * @return a {@link DataInstanceModel} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("87efe09c-b02b-43e8-b688-16391cb09f95") public static DataInstanceModel safeInstantiate(final Package obj) throws IllegalArgumentException { if (DataInstanceModel.canInstantiate(obj)) - return new DataInstanceModel(obj); + return new DataInstanceModel(obj); else - throw new IllegalArgumentException("DataInstanceModel: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("DataInstanceModel: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'dataInstances' role.

* Role description: * null - * */ @objid ("05d5415d-5e2c-46d1-9b8b-06b9a2d7a625") public void addDataInstances(final DataInstance obj) { @@ -112,7 +112,6 @@ public void addDataInstances(final DataInstance obj) { * Add a value to the 'dataSourcesInstances' role.

* Role description: * null - * */ @objid ("aa863002-b18f-43c4-a53b-673fe7d7c604") public void addDataSourcesInstances(final DataSourceInstance obj) { @@ -140,17 +139,16 @@ public boolean equals(final Object obj) { * Get the values of the 'dataInstances' role.

* Role description: * null - * */ @objid ("10f08fcf-7cb1-4f96-b9c0-ed16d30491ee") public List getDataInstances() { List results = new ArrayList<>(); for (Instance mObj : ((Package) this.elt).getDeclared()){ - if (DataInstanceBindableInstance.canInstantiate(mObj)) - results.add((DataInstanceBindableInstance)CamelDesignerProxyFactory.instantiate(mObj, DataInstanceBindableInstance.STEREOTYPE_NAME)); - if (DataInstance.canInstantiate(mObj)) - results.add((DataInstance)CamelDesignerProxyFactory.instantiate(mObj, DataInstance.STEREOTYPE_NAME)); - } + if (DataInstanceBindableInstance.canInstantiate(mObj)) + results.add((DataInstanceBindableInstance)CamelDesignerProxyFactory.instantiate(mObj, DataInstanceBindableInstance.STEREOTYPE_NAME)); + if (DataInstance.canInstantiate(mObj)) + results.add((DataInstance)CamelDesignerProxyFactory.instantiate(mObj, DataInstance.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -158,20 +156,20 @@ public List getDataInstances() { * Get the values of the 'dataSourcesInstances' role.

* Role description: * null - * */ @objid ("62a8b9e8-a433-4459-84eb-ea52fd8e588a") public List getDataSourcesInstances() { List results = new ArrayList<>(); for (Instance mObj : ((Package) this.elt).getDeclared()){ - if (DataSourceInstance.canInstantiate(mObj)) - results.add((DataSourceInstance)CamelDesignerProxyFactory.instantiate(mObj, DataSourceInstance.STEREOTYPE_NAME)); - } + if (DataSourceInstance.canInstantiate(mObj)) + results.add((DataSourceInstance)CamelDesignerProxyFactory.instantiate(mObj, DataSourceInstance.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } /** - * Get the underlying {@link Package}. + * Get the underlying {@link Package}. + * * @return the Package represented by this proxy, never null. */ @objid ("0c57e6b1-7914-4d28-8721-a1d05161168b") @@ -184,7 +182,6 @@ public Package getElement() { * Get the value of the 'type' role.

* Role description: * null - * */ @objid ("9ebe908f-a902-45df-9282-ae7de713a4ed") public DataTypeModel getType() { @@ -208,7 +205,6 @@ public int hashCode() { * Remove a value from the 'dataInstances' role.

* Role description: * null - * */ @objid ("f804f601-3e2a-4625-9957-2bce960e2d60") public boolean removeDataInstances(final DataInstance obj) { @@ -219,7 +215,6 @@ public boolean removeDataInstances(final DataInstance obj) { * Remove a value from the 'dataSourcesInstances' role.

* Role description: * null - * */ @objid ("af515593-dd5e-4ab4-96ea-85da7cdbd432") public boolean removeDataSourcesInstances(final DataSourceInstance obj) { @@ -230,7 +225,6 @@ public boolean removeDataSourcesInstances(final DataSourceInstance obj) { * Set the value of the 'type' role.

* Role description: * null - * */ @objid ("292dc699-a3e2-48f7-bc93-602bb59b34cf") public void setType(final DataTypeModel obj) { @@ -286,11 +280,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/datamodel/standard/package_/DataModel.java b/src/main/java/fr/softeam/cameldesigner/api/datamodel/standard/package_/DataModel.java index ae91b36a..57e1a4b4 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/datamodel/standard/package_/DataModel.java +++ b/src/main/java/fr/softeam/cameldesigner/api/datamodel/standard/package_/DataModel.java @@ -69,7 +69,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Package}. + * Get the underlying {@link Package}. + * * @return the Package represented by this proxy, never null. */ @objid ("0123bb6a-8fd7-4b03-81a2-f8f2ba66a5db") @@ -116,11 +117,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/datamodel/standard/package_/DataTypeModel.java b/src/main/java/fr/softeam/cameldesigner/api/datamodel/standard/package_/DataTypeModel.java index b2b0182b..63c3e38c 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/datamodel/standard/package_/DataTypeModel.java +++ b/src/main/java/fr/softeam/cameldesigner/api/datamodel/standard/package_/DataTypeModel.java @@ -67,9 +67,10 @@ public static DataTypeModel create() { } /** - * Tries to instantiate a {@link DataTypeModel} proxy from a {@link Package} stereotyped << DataTypeModel >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link DataTypeModel} proxy from a {@link Package} stereotyped << DataTypeModel >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Package * @return a {@link DataTypeModel} proxy or null. */ @@ -79,26 +80,26 @@ public static DataTypeModel instantiate(final Package obj) { } /** - * Tries to instantiate a {@link DataTypeModel} proxy from a {@link Package} stereotyped << DataTypeModel >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link DataTypeModel} proxy from a {@link Package} stereotyped << DataTypeModel >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Package} * @return a {@link DataTypeModel} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("f36740b0-aab1-4902-a11a-c2e5113e524f") public static DataTypeModel safeInstantiate(final Package obj) throws IllegalArgumentException { if (DataTypeModel.canInstantiate(obj)) - return new DataTypeModel(obj); + return new DataTypeModel(obj); else - throw new IllegalArgumentException("DataTypeModel: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("DataTypeModel: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'data' role.

* Role description: * null - * */ @objid ("8467e567-6cbd-4ffc-9f3e-9239e7f71618") public void addData(final Data obj) { @@ -110,7 +111,6 @@ public void addData(final Data obj) { * Add a value to the 'dataSources' role.

* Role description: * null - * */ @objid ("592a2df7-61d7-4dbd-8788-dcacb55303c8") public void addDataSources(final DataSource obj) { @@ -138,15 +138,14 @@ public boolean equals(final Object obj) { * Get the values of the 'data' role.

* Role description: * null - * */ @objid ("19231258-1418-41f6-b23f-563bdd727986") public List getData() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (Data.canInstantiate(mObj)) - results.add((Data)CamelDesignerProxyFactory.instantiate(mObj, Data.STEREOTYPE_NAME)); - } + if (Data.canInstantiate(mObj)) + results.add((Data)CamelDesignerProxyFactory.instantiate(mObj, Data.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -154,20 +153,20 @@ public List getData() { * Get the values of the 'dataSources' role.

* Role description: * null - * */ @objid ("fb85c99e-36e4-492f-a657-d55458933b9b") public List getDataSources() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (DataSource.canInstantiate(mObj)) - results.add((DataSource)CamelDesignerProxyFactory.instantiate(mObj, DataSource.STEREOTYPE_NAME)); - } + if (DataSource.canInstantiate(mObj)) + results.add((DataSource)CamelDesignerProxyFactory.instantiate(mObj, DataSource.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } /** - * Get the underlying {@link Package}. + * Get the underlying {@link Package}. + * * @return the Package represented by this proxy, never null. */ @objid ("20ec7f3f-c2f0-4cfa-aecd-11304ce7bf45") @@ -186,7 +185,6 @@ public int hashCode() { * Remove a value from the 'data' role.

* Role description: * null - * */ @objid ("bb1e456e-e4ca-4a8a-acd4-f858221e2f8d") public boolean removeData(final Data obj) { @@ -197,7 +195,6 @@ public boolean removeData(final Data obj) { * Remove a value from the 'dataSources' role.

* Role description: * null - * */ @objid ("060fabbd-9bd2-4c6b-9420-54c6001d6ab5") public boolean removeDataSources(final DataSource obj) { @@ -238,11 +235,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/connector/CommunicationInstance.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/connector/CommunicationInstance.java index 6b40b308..a6517fa2 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/connector/CommunicationInstance.java +++ b/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/connector/CommunicationInstance.java @@ -66,9 +66,10 @@ public static CommunicationInstance create() { } /** - * Tries to instantiate a {@link CommunicationInstance} proxy from a {@link Connector} stereotyped << CommunicationInstance >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link CommunicationInstance} proxy from a {@link Connector} stereotyped << CommunicationInstance >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Connector * @return a {@link CommunicationInstance} proxy or null. */ @@ -78,19 +79,20 @@ public static CommunicationInstance instantiate(final Connector obj) { } /** - * Tries to instantiate a {@link CommunicationInstance} proxy from a {@link Connector} stereotyped << CommunicationInstance >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link CommunicationInstance} proxy from a {@link Connector} stereotyped << CommunicationInstance >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Connector} * @return a {@link CommunicationInstance} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("670af9e5-9354-471a-97ff-4f91c2a9817c") public static CommunicationInstance safeInstantiate(final Connector obj) throws IllegalArgumentException { if (CommunicationInstance.canInstantiate(obj)) - return new CommunicationInstance(obj); + return new CommunicationInstance(obj); else - throw new IllegalArgumentException("CommunicationInstance: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("CommunicationInstance: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("3424a97d-246c-403e-9a18-e1fbd0167f34") @@ -110,7 +112,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Connector}. + * Get the underlying {@link Connector}. + * * @return the Connector represented by this proxy, never null. */ @objid ("74d3c1c4-3571-4b04-85ff-f7afe123857e") @@ -123,7 +126,6 @@ public Connector getElement() { * Get the value of the 'parent' role.

* Role description: * null - * */ @objid ("cf487452-ae04-4f95-9aeb-c56a66be56c7") public DeploymentInstanceModel getParent() { @@ -141,7 +143,6 @@ public DeploymentInstanceModel getParent() { * Get the value of the 'type' role.

* Role description: * null - * */ @objid ("aaeeecb9-d204-4028-a1be-d5bb76ba5feb") public Communication getType() { @@ -165,7 +166,6 @@ public int hashCode() { * Set the value of the 'parent' role.

* Role description: * null - * */ @objid ("08e04a5f-fae1-4d3a-a5bb-f1dd65607d81") public void setParent(final DeploymentInstanceModel obj) { @@ -191,7 +191,6 @@ public void setParent(final DeploymentInstanceModel obj) { * Set the value of the 'type' role.

* Role description: * null - * */ @objid ("85aa02e7-d71c-424b-942f-477b971674d0") public void setType(final Communication obj) { @@ -245,11 +244,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/connector/ComponentRelationInstance.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/connector/ComponentRelationInstance.java index bb4cf56b..c4f5c476 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/connector/ComponentRelationInstance.java +++ b/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/connector/ComponentRelationInstance.java @@ -69,7 +69,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Connector}. + * Get the underlying {@link Connector}. + * * @return the Connector represented by this proxy, never null. */ @objid ("0b9d429f-3f2c-45e1-a2a8-aa0851e725e1") @@ -116,11 +117,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/connector/HostingInstance.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/connector/HostingInstance.java index 7b6924f7..b92b245b 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/connector/HostingInstance.java +++ b/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/connector/HostingInstance.java @@ -65,9 +65,10 @@ public static HostingInstance create() { } /** - * Tries to instantiate a {@link HostingInstance} proxy from a {@link Connector} stereotyped << HostingInstance >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link HostingInstance} proxy from a {@link Connector} stereotyped << HostingInstance >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Connector * @return a {@link HostingInstance} proxy or null. */ @@ -77,19 +78,20 @@ public static HostingInstance instantiate(final Connector obj) { } /** - * Tries to instantiate a {@link HostingInstance} proxy from a {@link Connector} stereotyped << HostingInstance >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link HostingInstance} proxy from a {@link Connector} stereotyped << HostingInstance >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Connector} * @return a {@link HostingInstance} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("282c7c3e-58fb-4092-a266-1f3f7faae5c2") public static HostingInstance safeInstantiate(final Connector obj) throws IllegalArgumentException { if (HostingInstance.canInstantiate(obj)) - return new HostingInstance(obj); + return new HostingInstance(obj); else - throw new IllegalArgumentException("HostingInstance: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("HostingInstance: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("bc2d6cd5-a2e9-4098-83b3-ea5a11a14096") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Connector}. + * Get the underlying {@link Connector}. + * * @return the Connector represented by this proxy, never null. */ @objid ("0463058a-b123-4c9c-a32a-0fc44c1e462f") @@ -122,7 +125,6 @@ public Connector getElement() { * Get the value of the 'type' role.

* Role description: * null - * */ @objid ("078bdca0-a591-402e-876a-4e3fe7c1215d") public Hosting getType() { @@ -146,7 +148,6 @@ public int hashCode() { * Set the value of the 'type' role.

* Role description: * null - * */ @objid ("61284b1c-1559-40e8-ae27-92d1a8e7e621") public void setType(final Hosting obj) { @@ -200,11 +201,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/instance/ComponentInstance.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/instance/ComponentInstance.java index 162b834f..683f723a 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/instance/ComponentInstance.java +++ b/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/instance/ComponentInstance.java @@ -66,7 +66,6 @@ public static boolean canInstantiate(final MObject elt) { * Add a value to the 'providedCommunicationInstances' role.

* Role description: * null - * */ @objid ("98e3353e-f4aa-4726-944b-d61974f0b2d7") public void addProvidedCommunicationInstances(final CommunicationPort obj) { @@ -78,7 +77,6 @@ public void addProvidedCommunicationInstances(final CommunicationPort obj) { * Add a value to the 'providedHostInstances' role.

* Role description: * null - * */ @objid ("e4a18be6-3cfa-40ec-89d3-2334ab7d125b") public void addProvidedHostInstances(final HostingPort obj) { @@ -113,7 +111,8 @@ public String getDestroyedOn() { } /** - * Get the underlying {@link Instance}. + * Get the underlying {@link Instance}. + * * @return the Instance represented by this proxy, never null. */ @objid ("2fff8db2-e887-4d39-8cae-7626b200b883") @@ -136,15 +135,14 @@ public String getInstantiatedOn() { * Get the values of the 'providedCommunicationInstances' role.

* Role description: * null - * */ @objid ("ae9276d5-8559-462d-8f46-70ecd41a1cdd") public List getProvidedCommunicationInstances() { List results = new ArrayList<>(); for (BindableInstance mObj : ((Instance) this.elt).getPart()){ - if (CommunicationPort.canInstantiate(mObj)) - results.add((CommunicationPort)CamelDesignerProxyFactory.instantiate(mObj, CommunicationPort.STEREOTYPE_NAME)); - } + if (CommunicationPort.canInstantiate(mObj)) + results.add((CommunicationPort)CamelDesignerProxyFactory.instantiate(mObj, CommunicationPort.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -152,15 +150,14 @@ public List getProvidedCommunicationInstances() { * Get the values of the 'providedHostInstances' role.

* Role description: * null - * */ @objid ("a4021e59-8cd1-483b-90dd-3fd1f558869b") public List getProvidedHostInstances() { List results = new ArrayList<>(); for (BindableInstance mObj : ((Instance) this.elt).getPart()){ - if (HostingPort.canInstantiate(mObj)) - results.add((HostingPort)CamelDesignerProxyFactory.instantiate(mObj, HostingPort.STEREOTYPE_NAME)); - } + if (HostingPort.canInstantiate(mObj)) + results.add((HostingPort)CamelDesignerProxyFactory.instantiate(mObj, HostingPort.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -168,7 +165,6 @@ public List getProvidedHostInstances() { * Get the value to the 'type' role.

* Role description: * null - * */ @objid ("9f93d086-13b0-48e2-9eb9-f17f1b9f697b") public CamelComponent getType() { @@ -185,7 +181,6 @@ public int hashCode() { * Remove a value from the 'providedCommunicationInstances' role.

* Role description: * null - * */ @objid ("b9c20464-fe5e-4599-914e-ed3534e40a60") public boolean removeProvidedCommunicationInstances(final CommunicationPort obj) { @@ -196,7 +191,6 @@ public boolean removeProvidedCommunicationInstances(final CommunicationPort obj) * Remove a value from the 'providedHostInstances' role.

* Role description: * null - * */ @objid ("6cbd22b1-227f-4fc5-9692-f15305e163eb") public boolean removeProvidedHostInstances(final HostingPort obj) { @@ -227,7 +221,6 @@ public void setInstantiatedOn(final String value) { * Set the value of the 'type' role.

* Role description: * null - * */ @objid ("8fb789c5-e701-4773-a8b1-2634316569d4") public void setType(final CamelComponent obj) { @@ -274,11 +267,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/instance/ContainerInstance.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/instance/ContainerInstance.java index 0430c2ae..c162e7cb 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/instance/ContainerInstance.java +++ b/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/instance/ContainerInstance.java @@ -69,9 +69,10 @@ public static ContainerInstance create() { } /** - * Tries to instantiate a {@link ContainerInstance} proxy from a {@link Instance} stereotyped << ContainerInstance >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ContainerInstance} proxy from a {@link Instance} stereotyped << ContainerInstance >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Instance * @return a {@link ContainerInstance} proxy or null. */ @@ -81,26 +82,26 @@ public static ContainerInstance instantiate(final Instance obj) { } /** - * Tries to instantiate a {@link ContainerInstance} proxy from a {@link Instance} stereotyped << ContainerInstance >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ContainerInstance} proxy from a {@link Instance} stereotyped << ContainerInstance >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Instance} * @return a {@link ContainerInstance} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("64448ae1-54e6-44d9-991e-7564e946bb18") public static ContainerInstance safeInstantiate(final Instance obj) throws IllegalArgumentException { if (ContainerInstance.canInstantiate(obj)) - return new ContainerInstance(obj); + return new ContainerInstance(obj); else - throw new IllegalArgumentException("ContainerInstance: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("ContainerInstance: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'requiredCommunicationInstances' role.

* Role description: * null - * */ @objid ("8f5c0ddb-b909-418f-8908-716f1fc935b3") public void addRequiredCommunicationInstances(final CommunicationPort obj) { @@ -125,7 +126,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Instance}. + * Get the underlying {@link Instance}. + * * @return the Instance represented by this proxy, never null. */ @objid ("e12545c1-e43c-47de-b8a0-9db07a6b504c") @@ -138,7 +140,6 @@ public Instance getElement() { * Get the value to the 'parent' role.

* Role description: * null - * */ @objid ("db3ff8c7-17f8-40bf-80e5-6177a06e9d4d") public DeploymentInstanceModel getParent() { @@ -149,15 +150,14 @@ public DeploymentInstanceModel getParent() { * Get the values of the 'requiredCommunicationInstances' role.

* Role description: * null - * */ @objid ("9bece2d0-8b64-4590-b4e3-6a6dc0364002") public List getRequiredCommunicationInstances() { List results = new ArrayList<>(); for (BindableInstance mObj : ((Instance) this.elt).getPart()){ - if (CommunicationPort.canInstantiate(mObj)) - results.add((CommunicationPort)CamelDesignerProxyFactory.instantiate(mObj, CommunicationPort.STEREOTYPE_NAME)); - } + if (CommunicationPort.canInstantiate(mObj)) + results.add((CommunicationPort)CamelDesignerProxyFactory.instantiate(mObj, CommunicationPort.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -165,15 +165,14 @@ public List getRequiredCommunicationInstances() { * Get the value to the 'requiredHostInstance' role.

* Role description: * null - * */ @objid ("d8d47ec9-1c29-4fd7-8dea-9a4618da0432") public HostingPort getRequiredHostInstance() { - for (Port obj : ((Instance) this.elt).getPart(Port.class)) { - if (HostingPort.canInstantiate(obj)) - return (HostingPort)CamelDesignerProxyFactory.instantiate(obj, HostingPort.STEREOTYPE_NAME); - } - return null; + for (Port obj : ((Instance) this.elt).getPart(Port.class)) { + if (HostingPort.canInstantiate(obj)) + return (HostingPort)CamelDesignerProxyFactory.instantiate(obj, HostingPort.STEREOTYPE_NAME); + } + return null; } @objid ("1d2e89e1-7ef5-4a88-9000-0b30ad7af20e") @@ -186,7 +185,6 @@ public int hashCode() { * Remove a value from the 'requiredCommunicationInstances' role.

* Role description: * null - * */ @objid ("d0478e51-e936-4f0a-984b-a8d20590dafb") public boolean removeRequiredCommunicationInstances(final CommunicationPort obj) { @@ -197,7 +195,6 @@ public boolean removeRequiredCommunicationInstances(final CommunicationPort obj) * Set the value of the 'parent' role.

* Role description: * null - * */ @objid ("1bbbdfac-5611-4dca-ad96-aed1cc8d8049") public void setParent(final DeploymentInstanceModel obj) { @@ -208,7 +205,6 @@ public void setParent(final DeploymentInstanceModel obj) { * Set the value of the 'requiredHostInstance' role.

* Role description: * null - * */ @objid ("92caf694-98bf-4b7f-919f-92ed507ed46f") public void setRequiredHostInstance(final HostingPort obj) { @@ -256,11 +252,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/instance/PaaSInstance.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/instance/PaaSInstance.java index 8316d284..102920a9 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/instance/PaaSInstance.java +++ b/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/instance/PaaSInstance.java @@ -65,9 +65,10 @@ public static PaaSInstance create() { } /** - * Tries to instantiate a {@link PaaSInstance} proxy from a {@link Instance} stereotyped << PaaSInstance >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link PaaSInstance} proxy from a {@link Instance} stereotyped << PaaSInstance >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Instance * @return a {@link PaaSInstance} proxy or null. */ @@ -77,19 +78,20 @@ public static PaaSInstance instantiate(final Instance obj) { } /** - * Tries to instantiate a {@link PaaSInstance} proxy from a {@link Instance} stereotyped << PaaSInstance >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link PaaSInstance} proxy from a {@link Instance} stereotyped << PaaSInstance >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Instance} * @return a {@link PaaSInstance} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("9c0481ac-d6da-46c7-8c2d-8f14945672b7") public static PaaSInstance safeInstantiate(final Instance obj) throws IllegalArgumentException { if (PaaSInstance.canInstantiate(obj)) - return new PaaSInstance(obj); + return new PaaSInstance(obj); else - throw new IllegalArgumentException("PaaSInstance: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("PaaSInstance: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("1bc2f4c2-1545-4ec1-ac6b-a22c7bd88805") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Instance}. + * Get the underlying {@link Instance}. + * * @return the Instance represented by this proxy, never null. */ @objid ("04edf125-a7f8-46ee-8b3e-fb4508976dd3") @@ -122,7 +125,6 @@ public Instance getElement() { * Get the value to the 'parent' role.

* Role description: * null - * */ @objid ("4069f03d-7724-4130-8011-b238133e3764") public DeploymentInstanceModel getParent() { @@ -139,7 +141,6 @@ public int hashCode() { * Set the value of the 'parent' role.

* Role description: * null - * */ @objid ("34a14910-b362-4cea-a7bc-661fa2f67f7d") public void setParent(final DeploymentInstanceModel obj) { @@ -178,11 +179,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/instance/SoftwareComponentInstance.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/instance/SoftwareComponentInstance.java index 92dd6305..588e229d 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/instance/SoftwareComponentInstance.java +++ b/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/instance/SoftwareComponentInstance.java @@ -72,9 +72,10 @@ public static SoftwareComponentInstance create() { } /** - * Tries to instantiate a {@link SoftwareComponentInstance} proxy from a {@link Instance} stereotyped << SoftwareComponentInstance >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link SoftwareComponentInstance} proxy from a {@link Instance} stereotyped << SoftwareComponentInstance >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Instance * @return a {@link SoftwareComponentInstance} proxy or null. */ @@ -84,26 +85,26 @@ public static SoftwareComponentInstance instantiate(final Instance obj) { } /** - * Tries to instantiate a {@link SoftwareComponentInstance} proxy from a {@link Instance} stereotyped << SoftwareComponentInstance >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link SoftwareComponentInstance} proxy from a {@link Instance} stereotyped << SoftwareComponentInstance >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Instance} * @return a {@link SoftwareComponentInstance} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("f5080d87-88e3-4e0e-b935-cf6cb0faad0f") public static SoftwareComponentInstance safeInstantiate(final Instance obj) throws IllegalArgumentException { if (SoftwareComponentInstance.canInstantiate(obj)) - return new SoftwareComponentInstance(obj); + return new SoftwareComponentInstance(obj); else - throw new IllegalArgumentException("SoftwareComponentInstance: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("SoftwareComponentInstance: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'consumesDataInstances' role.

* Role description: * null - * */ @objid ("305c22b4-c292-4cbf-adbd-06f55e452062") public void addConsumesDataInstances(final DataInstance obj) { @@ -119,7 +120,6 @@ public void addConsumesDataInstances(final DataInstance obj) { * Add a value to the 'generatesDataInstance' role.

* Role description: * null - * */ @objid ("daec0cd8-da46-421a-95f6-1a564a0abf24") public void addGeneratesDataInstance(final DataInstance obj) { @@ -135,7 +135,6 @@ public void addGeneratesDataInstance(final DataInstance obj) { * Add a value to the 'managesDataSourceInstance' role.

* Role description: * null - * */ @objid ("aa4f64fb-5634-42af-a02e-e3b740582f8a") public void addManagesDataSourceInstance(final DataSourceInstance obj) { @@ -151,7 +150,6 @@ public void addManagesDataSourceInstance(final DataSourceInstance obj) { * Add a value to the 'requiredCommunicationsInstances' role.

* Role description: * null - * */ @objid ("c3afd3a1-3bdc-48d2-a2b9-72ef6876a32c") public void addRequiredCommunicationsInstances(final CommunicationPort obj) { @@ -179,7 +177,6 @@ public boolean equals(final Object obj) { * Get the values of the 'consumesDataInstances' role.

* Role description: * null - * */ @objid ("6727a486-7acf-48d8-9cf4-69599e87dcbd") public List getConsumesDataInstances() { @@ -197,7 +194,8 @@ public List getConsumesDataInstances() { } /** - * Get the underlying {@link Instance}. + * Get the underlying {@link Instance}. + * * @return the Instance represented by this proxy, never null. */ @objid ("dbe2ba3b-e4f5-4451-8dca-8e5f6c41e9b8") @@ -210,7 +208,6 @@ public Instance getElement() { * Get the values of the 'generatesDataInstance' role.

* Role description: * null - * */ @objid ("3864caec-2c5c-4910-b0eb-ef79c763eb6e") public List getGeneratesDataInstance() { @@ -231,7 +228,6 @@ public List getGeneratesDataInstance() { * Get the values of the 'managesDataSourceInstance' role.

* Role description: * null - * */ @objid ("cd6973d5-abf5-4216-b12b-c65ac534e5fc") public List getManagesDataSourceInstance() { @@ -250,7 +246,6 @@ public List getManagesDataSourceInstance() { * Get the value to the 'parent' role.

* Role description: * null - * */ @objid ("f0750b32-04c9-4279-b89c-f0d3c0392f70") public DeploymentInstanceModel getParent() { @@ -261,15 +256,14 @@ public DeploymentInstanceModel getParent() { * Get the values of the 'requiredCommunicationsInstances' role.

* Role description: * null - * */ @objid ("60700392-a51a-4ca9-b886-d06ee2b65048") public List getRequiredCommunicationsInstances() { List results = new ArrayList<>(); for (BindableInstance mObj : ((Instance) this.elt).getPart()){ - if (CommunicationPort.canInstantiate(mObj)) - results.add((CommunicationPort)CamelDesignerProxyFactory.instantiate(mObj, CommunicationPort.STEREOTYPE_NAME)); - } + if (CommunicationPort.canInstantiate(mObj)) + results.add((CommunicationPort)CamelDesignerProxyFactory.instantiate(mObj, CommunicationPort.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -277,15 +271,14 @@ public List getRequiredCommunicationsInstances() { * Get the value to the 'requiredHostInstance' role.

* Role description: * null - * */ @objid ("a35f1a53-d224-49cd-834f-bfbc7d60d55a") public HostingPort getRequiredHostInstance() { - for (Port obj : ((Instance) this.elt).getPart(Port.class)) { - if (HostingPort.canInstantiate(obj)) - return (HostingPort)CamelDesignerProxyFactory.instantiate(obj, HostingPort.STEREOTYPE_NAME); - } - return null; + for (Port obj : ((Instance) this.elt).getPart(Port.class)) { + if (HostingPort.canInstantiate(obj)) + return (HostingPort)CamelDesignerProxyFactory.instantiate(obj, HostingPort.STEREOTYPE_NAME); + } + return null; } @objid ("d4c46b59-700c-4b9a-bddf-95d7ae174d6f") @@ -298,7 +291,6 @@ public int hashCode() { * Remove a value from the 'consumesDataInstances' role.

* Role description: * null - * */ @objid ("c1e1ee3c-f83e-450e-81c9-f21107883069") public boolean removeConsumesDataInstances(final DataInstance obj) { @@ -318,7 +310,6 @@ public boolean removeConsumesDataInstances(final DataInstance obj) { * Remove a value from the 'generatesDataInstance' role.

* Role description: * null - * */ @objid ("be0ad156-1128-4dda-a3c9-9171bbe176f2") public boolean removeGeneratesDataInstance(final DataInstance obj) { @@ -338,7 +329,6 @@ public boolean removeGeneratesDataInstance(final DataInstance obj) { * Remove a value from the 'managesDataSourceInstance' role.

* Role description: * null - * */ @objid ("1b4f188c-bf4f-4805-bb65-f70c3b96beba") public boolean removeManagesDataSourceInstance(final DataSourceInstance obj) { @@ -358,7 +348,6 @@ public boolean removeManagesDataSourceInstance(final DataSourceInstance obj) { * Remove a value from the 'requiredCommunicationsInstances' role.

* Role description: * null - * */ @objid ("defb94a9-27e3-440d-95d8-3dbf4766b950") public boolean removeRequiredCommunicationsInstances(final CommunicationPort obj) { @@ -369,7 +358,6 @@ public boolean removeRequiredCommunicationsInstances(final CommunicationPort obj * Set the value of the 'parent' role.

* Role description: * null - * */ @objid ("a54c18fd-1bd3-419e-8c27-8caad916fcf7") public void setParent(final DeploymentInstanceModel obj) { @@ -380,7 +368,6 @@ public void setParent(final DeploymentInstanceModel obj) { * Set the value of the 'requiredHostInstance' role.

* Role description: * null - * */ @objid ("02ef62e5-a04b-49cb-9800-5919b2aefaa1") public void setRequiredHostInstance(final HostingPort obj) { @@ -428,11 +415,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/instance/VMInstance.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/instance/VMInstance.java index f179a2c3..0aac456e 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/instance/VMInstance.java +++ b/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/instance/VMInstance.java @@ -77,9 +77,10 @@ public static VMInstance create() { } /** - * Tries to instantiate a {@link VMInstance} proxy from a {@link Instance} stereotyped << VMInstance >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link VMInstance} proxy from a {@link Instance} stereotyped << VMInstance >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Instance * @return a {@link VMInstance} proxy or null. */ @@ -89,19 +90,20 @@ public static VMInstance instantiate(final Instance obj) { } /** - * Tries to instantiate a {@link VMInstance} proxy from a {@link Instance} stereotyped << VMInstance >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link VMInstance} proxy from a {@link Instance} stereotyped << VMInstance >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Instance} * @return a {@link VMInstance} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("6f846810-3b99-4c3d-b9ce-db1393d3c530") public static VMInstance safeInstantiate(final Instance obj) throws IllegalArgumentException { if (VMInstance.canInstantiate(obj)) - return new VMInstance(obj); + return new VMInstance(obj); else - throw new IllegalArgumentException("VMInstance: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("VMInstance: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("7bf26dac-d08d-40ea-8cfc-3f25e4afa88f") @@ -121,7 +123,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Instance}. + * Get the underlying {@link Instance}. + * * @return the Instance represented by this proxy, never null. */ @objid ("e95a1486-1384-4cd2-9b12-e2e7ae3e0733") @@ -134,7 +137,6 @@ public Instance getElement() { * Get the value of the 'location' role.

* Role description: * null - * */ @objid ("55e53fd9-b42a-4b39-862f-dba5bd244d3f") public Location getLocation() { @@ -154,7 +156,6 @@ public Location getLocation() { * Get the value of the 'os' role.

* Role description: * null - * */ @objid ("98c95723-c6f3-40ad-b3f5-f20ebd2583e4") public CamelAttribute getOs() { @@ -186,7 +187,6 @@ public CamelAttribute getOs() { * Get the value to the 'parent' role.

* Role description: * null - * */ @objid ("79491a3c-9040-42d6-ba74-7e36ffaf4dca") public DeploymentInstanceModel getParent() { @@ -203,7 +203,6 @@ public int hashCode() { * Set the value of the 'location' role.

* Role description: * null - * */ @objid ("f46224a3-2409-40b9-b856-5ca07503895f") public void setLocation(final Location obj) { @@ -229,7 +228,6 @@ public void setLocation(final Location obj) { * Set the value of the 'os' role.

* Role description: * null - * */ @objid ("dd353f16-4735-42d8-b65f-a4c832276d2b") public void setOs(final CamelAttribute obj) { @@ -255,7 +253,6 @@ public void setOs(final CamelAttribute obj) { * Set the value of the 'parent' role.

* Role description: * null - * */ @objid ("425399d1-5d05-4773-87ec-038e4ba21c21") public void setParent(final DeploymentInstanceModel obj) { @@ -294,11 +291,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/package_/DeploymentInstanceModel.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/package_/DeploymentInstanceModel.java index 046f17cf..59ed3e10 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/package_/DeploymentInstanceModel.java +++ b/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/package_/DeploymentInstanceModel.java @@ -72,9 +72,10 @@ public static DeploymentInstanceModel create() { } /** - * Tries to instantiate a {@link DeploymentInstanceModel} proxy from a {@link Package} stereotyped << DeploymentInstanceModel >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link DeploymentInstanceModel} proxy from a {@link Package} stereotyped << DeploymentInstanceModel >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Package * @return a {@link DeploymentInstanceModel} proxy or null. */ @@ -84,26 +85,26 @@ public static DeploymentInstanceModel instantiate(final Package obj) { } /** - * Tries to instantiate a {@link DeploymentInstanceModel} proxy from a {@link Package} stereotyped << DeploymentInstanceModel >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link DeploymentInstanceModel} proxy from a {@link Package} stereotyped << DeploymentInstanceModel >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Package} * @return a {@link DeploymentInstanceModel} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("2d615d49-32a4-42cd-8b5e-fa32e5e1ec77") public static DeploymentInstanceModel safeInstantiate(final Package obj) throws IllegalArgumentException { if (DeploymentInstanceModel.canInstantiate(obj)) - return new DeploymentInstanceModel(obj); + return new DeploymentInstanceModel(obj); else - throw new IllegalArgumentException("DeploymentInstanceModel: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("DeploymentInstanceModel: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value of the 'communicationInstances' role.

* Role description: * null - * */ @objid ("73498214-409c-4340-93cf-0c38798972c6") public void addCommunicationInstances(final CommunicationInstance obj) { @@ -119,7 +120,6 @@ public void addCommunicationInstances(final CommunicationInstance obj) { * Add a value to the 'containerInstances' role.

* Role description: * null - * */ @objid ("efba17af-489b-4fa1-95e9-0d714d810faa") public void addContainerInstances(final ContainerInstance obj) { @@ -131,7 +131,6 @@ public void addContainerInstances(final ContainerInstance obj) { * Add a value to the 'paasInstances' role.

* Role description: * null - * */ @objid ("b2d8cb39-fca2-4c81-b7d0-38029aecd428") public void addPaasInstances(final PaaSInstance obj) { @@ -143,7 +142,6 @@ public void addPaasInstances(final PaaSInstance obj) { * Add a value to the 'softwareComponentInstances' role.

* Role description: * null - * */ @objid ("e60fa5ce-d4f9-4e65-bb2a-55daeec080e8") public void addSoftwareComponentInstances(final SoftwareComponentInstance obj) { @@ -155,7 +153,6 @@ public void addSoftwareComponentInstances(final SoftwareComponentInstance obj) { * Add a value to the 'vmInstances' role.

* Role description: * null - * */ @objid ("c8a8361c-0362-4eb3-be35-0a9410a39787") public void addVmInstances(final VMInstance obj) { @@ -183,7 +180,6 @@ public boolean equals(final Object obj) { * Get the values of the 'communicationInstances' role.

* Role description: * null - * */ @objid ("7daf7ac9-0929-468c-a725-dfdf5f5e4b60") public List getCommunicationInstances() { @@ -202,20 +198,20 @@ public List getCommunicationInstances() { * Get the values of the 'containerInstances' role.

* Role description: * null - * */ @objid ("2f734710-29b1-42b0-a416-fbb86acfb789") public List getContainerInstances() { List results = new ArrayList<>(); for (Instance mObj : ((Package) this.elt).getDeclared()){ - if (ContainerInstance.canInstantiate(mObj)) - results.add((ContainerInstance)CamelDesignerProxyFactory.instantiate(mObj, ContainerInstance.STEREOTYPE_NAME)); - } + if (ContainerInstance.canInstantiate(mObj)) + results.add((ContainerInstance)CamelDesignerProxyFactory.instantiate(mObj, ContainerInstance.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } /** - * Get the underlying {@link Package}. + * Get the underlying {@link Package}. + * * @return the Package represented by this proxy, never null. */ @objid ("d3e4f47d-f025-4069-a355-a85c9b96953c") @@ -228,15 +224,14 @@ public Package getElement() { * Get the values of the 'paasInstances' role.

* Role description: * null - * */ @objid ("87ab060f-d4d2-40e0-9242-65acfff4a30f") public List getPaasInstances() { List results = new ArrayList<>(); for (Instance mObj : ((Package) this.elt).getDeclared()){ - if (PaaSInstance.canInstantiate(mObj)) - results.add((PaaSInstance)CamelDesignerProxyFactory.instantiate(mObj, PaaSInstance.STEREOTYPE_NAME)); - } + if (PaaSInstance.canInstantiate(mObj)) + results.add((PaaSInstance)CamelDesignerProxyFactory.instantiate(mObj, PaaSInstance.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -244,15 +239,14 @@ public List getPaasInstances() { * Get the values of the 'softwareComponentInstances' role.

* Role description: * null - * */ @objid ("f30c933b-ee3a-440a-8780-f326303afdce") public List getSoftwareComponentInstances() { List results = new ArrayList<>(); for (Instance mObj : ((Package) this.elt).getDeclared()){ - if (SoftwareComponentInstance.canInstantiate(mObj)) - results.add((SoftwareComponentInstance)CamelDesignerProxyFactory.instantiate(mObj, SoftwareComponentInstance.STEREOTYPE_NAME)); - } + if (SoftwareComponentInstance.canInstantiate(mObj)) + results.add((SoftwareComponentInstance)CamelDesignerProxyFactory.instantiate(mObj, SoftwareComponentInstance.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -260,7 +254,6 @@ public List getSoftwareComponentInstances() { * Get the value of the 'type' role.

* Role description: * null - * */ @objid ("9560a4d8-0d28-4857-bd16-5890fccf5f11") public DeploymentTypeModel getType() { @@ -278,15 +271,14 @@ public DeploymentTypeModel getType() { * Get the values of the 'vmInstances' role.

* Role description: * null - * */ @objid ("f46c4b22-4697-4f01-91c2-a9207eebc946") public List getVmInstances() { List results = new ArrayList<>(); for (Instance mObj : ((Package) this.elt).getDeclared()){ - if (VMInstance.canInstantiate(mObj)) - results.add((VMInstance)CamelDesignerProxyFactory.instantiate(mObj, VMInstance.STEREOTYPE_NAME)); - } + if (VMInstance.canInstantiate(mObj)) + results.add((VMInstance)CamelDesignerProxyFactory.instantiate(mObj, VMInstance.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -300,7 +292,6 @@ public int hashCode() { * Remove a value from 'communicationInstances' role.

* Role description: * null - * */ @objid ("be4be6b6-83d0-4e80-b7fa-3219ac6067ae") public boolean removeCommunicationInstances(final CommunicationInstance obj) { @@ -320,7 +311,6 @@ public boolean removeCommunicationInstances(final CommunicationInstance obj) { * Remove a value from the 'containerInstances' role.

* Role description: * null - * */ @objid ("c67b937a-e27e-441a-8ba9-5a28c5aff8ca") public boolean removeContainerInstances(final ContainerInstance obj) { @@ -331,7 +321,6 @@ public boolean removeContainerInstances(final ContainerInstance obj) { * Remove a value from the 'paasInstances' role.

* Role description: * null - * */ @objid ("799e5880-870d-47be-bf17-2e57235fd9c0") public boolean removePaasInstances(final PaaSInstance obj) { @@ -342,7 +331,6 @@ public boolean removePaasInstances(final PaaSInstance obj) { * Remove a value from the 'softwareComponentInstances' role.

* Role description: * null - * */ @objid ("d884aa17-42f4-4e3b-9bdd-9a5c3b400d42") public boolean removeSoftwareComponentInstances(final SoftwareComponentInstance obj) { @@ -353,7 +341,6 @@ public boolean removeSoftwareComponentInstances(final SoftwareComponentInstance * Remove a value from the 'vmInstances' role.

* Role description: * null - * */ @objid ("179ecc1e-3424-43dc-b5ee-263ff7cff2e4") public boolean removeVmInstances(final VMInstance obj) { @@ -364,7 +351,6 @@ public boolean removeVmInstances(final VMInstance obj) { * Set the value of the 'type' role.

* Role description: * null - * */ @objid ("41e8e8a8-3dbb-4d86-8d50-51ace3aa04aa") public void setType(final DeploymentTypeModel obj) { @@ -418,11 +404,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/port/CommunicationPortInstance.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/port/CommunicationPortInstance.java index 5c463a6a..6bae6101 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/port/CommunicationPortInstance.java +++ b/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/port/CommunicationPortInstance.java @@ -66,9 +66,10 @@ public static CommunicationPortInstance create() { } /** - * Tries to instantiate a {@link CommunicationPortInstance} proxy from a {@link Port} stereotyped << CommunicationPortInstance >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link CommunicationPortInstance} proxy from a {@link Port} stereotyped << CommunicationPortInstance >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Port * @return a {@link CommunicationPortInstance} proxy or null. */ @@ -78,19 +79,20 @@ public static CommunicationPortInstance instantiate(final Port obj) { } /** - * Tries to instantiate a {@link CommunicationPortInstance} proxy from a {@link Port} stereotyped << CommunicationPortInstance >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link CommunicationPortInstance} proxy from a {@link Port} stereotyped << CommunicationPortInstance >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Port} * @return a {@link CommunicationPortInstance} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("e3cff112-28cc-4373-9021-3638bf050c7c") public static CommunicationPortInstance safeInstantiate(final Port obj) throws IllegalArgumentException { if (CommunicationPortInstance.canInstantiate(obj)) - return new CommunicationPortInstance(obj); + return new CommunicationPortInstance(obj); else - throw new IllegalArgumentException("CommunicationPortInstance: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("CommunicationPortInstance: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("b26a5508-573a-4361-9704-3172898b49e2") @@ -110,7 +112,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Port}. + * Get the underlying {@link Port}. + * * @return the Port represented by this proxy, never null. */ @objid ("5ef45f79-598e-4e8a-b3e8-4b68446983bd") @@ -123,7 +126,6 @@ public Port getElement() { * Get the value to the 'type' role.

* Role description: * null - * */ @objid ("36e1f25b-b9c7-485a-bc9a-9291121af363") public CommunicationPort getType() { @@ -140,7 +142,6 @@ public int hashCode() { * Set the value of the 'type' role.

* Role description: * null - * */ @objid ("86eac4ac-2120-4f1d-961b-6c564c32e2fa") public void setType(final CommunicationPort obj) { @@ -179,11 +180,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/port/HostingPortInstance.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/port/HostingPortInstance.java index 45cafc13..1da977d8 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/port/HostingPortInstance.java +++ b/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/port/HostingPortInstance.java @@ -66,9 +66,10 @@ public static HostingPortInstance create() { } /** - * Tries to instantiate a {@link HostingPortInstance} proxy from a {@link Port} stereotyped << HostingPortInstance >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link HostingPortInstance} proxy from a {@link Port} stereotyped << HostingPortInstance >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Port * @return a {@link HostingPortInstance} proxy or null. */ @@ -78,19 +79,20 @@ public static HostingPortInstance instantiate(final Port obj) { } /** - * Tries to instantiate a {@link HostingPortInstance} proxy from a {@link Port} stereotyped << HostingPortInstance >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link HostingPortInstance} proxy from a {@link Port} stereotyped << HostingPortInstance >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Port} * @return a {@link HostingPortInstance} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("9b4698d3-ec89-4e86-979e-a90874451136") public static HostingPortInstance safeInstantiate(final Port obj) throws IllegalArgumentException { if (HostingPortInstance.canInstantiate(obj)) - return new HostingPortInstance(obj); + return new HostingPortInstance(obj); else - throw new IllegalArgumentException("HostingPortInstance: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("HostingPortInstance: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("35e0e719-a4ce-4f79-9c2d-452d873ef7a6") @@ -110,7 +112,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Port}. + * Get the underlying {@link Port}. + * * @return the Port represented by this proxy, never null. */ @objid ("b3245721-14fa-488a-8de9-2b48225d5746") @@ -123,7 +126,6 @@ public Port getElement() { * Get the value to the 'type' role.

* Role description: * null - * */ @objid ("02860c7c-9a4c-4a9d-81f5-89903e2a4865") public HostingPort getType() { @@ -140,7 +142,6 @@ public int hashCode() { * Set the value of the 'type' role.

* Role description: * null - * */ @objid ("a6bd454c-84cb-4d3f-9862-18c0759c5d1a") public void setType(final HostingPort obj) { @@ -179,11 +180,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/artifact/BuildConfiguration.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/artifact/BuildConfiguration.java index c95e618e..dce2950b 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/artifact/BuildConfiguration.java +++ b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/artifact/BuildConfiguration.java @@ -80,9 +80,10 @@ public static BuildConfiguration create() { } /** - * Tries to instantiate a {@link BuildConfiguration} proxy from a {@link Artifact} stereotyped << BuildConfiguration >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link BuildConfiguration} proxy from a {@link Artifact} stereotyped << BuildConfiguration >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Artifact * @return a {@link BuildConfiguration} proxy or null. */ @@ -92,19 +93,20 @@ public static BuildConfiguration instantiate(final Artifact obj) { } /** - * Tries to instantiate a {@link BuildConfiguration} proxy from a {@link Artifact} stereotyped << BuildConfiguration >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link BuildConfiguration} proxy from a {@link Artifact} stereotyped << BuildConfiguration >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Artifact} * @return a {@link BuildConfiguration} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("24ea4e6e-10b0-433b-a776-290fa1714a1b") public static BuildConfiguration safeInstantiate(final Artifact obj) throws IllegalArgumentException { if (BuildConfiguration.canInstantiate(obj)) - return new BuildConfiguration(obj); + return new BuildConfiguration(obj); else - throw new IllegalArgumentException("BuildConfiguration: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("BuildConfiguration: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("d6287b6f-d1a9-4df2-8975-6c4646eb662a") @@ -144,7 +146,8 @@ public String getBuildFramework() { } /** - * Get the underlying {@link Artifact}. + * Get the underlying {@link Artifact}. + * * @return the Artifact represented by this proxy, never null. */ @objid ("f3cf6948-3ed7-4e5b-84a5-1c79d9a84812") @@ -291,11 +294,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/artifact/ClusterConfiguration.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/artifact/ClusterConfiguration.java index 3f907e0b..bdf436ec 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/artifact/ClusterConfiguration.java +++ b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/artifact/ClusterConfiguration.java @@ -71,9 +71,10 @@ public static ClusterConfiguration create() { } /** - * Tries to instantiate a {@link ClusterConfiguration} proxy from a {@link Artifact} stereotyped << ClusterConfiguration >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ClusterConfiguration} proxy from a {@link Artifact} stereotyped << ClusterConfiguration >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Artifact * @return a {@link ClusterConfiguration} proxy or null. */ @@ -83,26 +84,26 @@ public static ClusterConfiguration instantiate(final Artifact obj) { } /** - * Tries to instantiate a {@link ClusterConfiguration} proxy from a {@link Artifact} stereotyped << ClusterConfiguration >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ClusterConfiguration} proxy from a {@link Artifact} stereotyped << ClusterConfiguration >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Artifact} * @return a {@link ClusterConfiguration} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("e7603771-8b18-4d2f-ad40-c4f4d5a1c8f3") public static ClusterConfiguration safeInstantiate(final Artifact obj) throws IllegalArgumentException { if (ClusterConfiguration.canInstantiate(obj)) - return new ClusterConfiguration(obj); + return new ClusterConfiguration(obj); else - throw new IllegalArgumentException("ClusterConfiguration: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("ClusterConfiguration: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'configParameters' role.

* Role description: * null - * */ @objid ("6c06e609-4e07-4f7c-a856-4b521a41ad75") public void addConfigParameters(final AttributeAttribute obj) { @@ -130,19 +131,18 @@ public boolean equals(final Object obj) { * Get the values of the 'configParameters' role.

* Role description: * null - * */ @objid ("0886b5c1-4b0a-41e0-8fac-142e18aadfe5") public List getConfigParameters() { List results = new ArrayList<>(); for (Attribute mObj : ((Artifact) this.elt).getOwnedAttribute()){ - if (MeasurableAttributeAttribute.canInstantiate(mObj)) - results.add((MeasurableAttributeAttribute)CamelDesignerProxyFactory.instantiate(mObj, MeasurableAttributeAttribute.STEREOTYPE_NAME)); - if (QualityAttributeAttribute.canInstantiate(mObj)) - results.add((QualityAttributeAttribute)CamelDesignerProxyFactory.instantiate(mObj, QualityAttributeAttribute.STEREOTYPE_NAME)); - if (AttributeAttribute.canInstantiate(mObj)) - results.add((AttributeAttribute)CamelDesignerProxyFactory.instantiate(mObj, AttributeAttribute.STEREOTYPE_NAME)); - } + if (MeasurableAttributeAttribute.canInstantiate(mObj)) + results.add((MeasurableAttributeAttribute)CamelDesignerProxyFactory.instantiate(mObj, MeasurableAttributeAttribute.STEREOTYPE_NAME)); + if (QualityAttributeAttribute.canInstantiate(mObj)) + results.add((QualityAttributeAttribute)CamelDesignerProxyFactory.instantiate(mObj, QualityAttributeAttribute.STEREOTYPE_NAME)); + if (AttributeAttribute.canInstantiate(mObj)) + results.add((AttributeAttribute)CamelDesignerProxyFactory.instantiate(mObj, AttributeAttribute.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -157,7 +157,8 @@ public String getDownloadURL() { } /** - * Get the underlying {@link Artifact}. + * Get the underlying {@link Artifact}. + * * @return the Artifact represented by this proxy, never null. */ @objid ("d2bf7e69-aa74-451b-8990-4d3502b3b5ca") @@ -176,7 +177,6 @@ public int hashCode() { * Remove a value from the 'configParameters' role.

* Role description: * null - * */ @objid ("bc5d0a67-7b21-4d11-ba5f-cfca07a80a23") public boolean removeConfigParameters(final AttributeAttribute obj) { @@ -229,11 +229,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/artifact/Configuration.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/artifact/Configuration.java index e028af79..d2393c04 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/artifact/Configuration.java +++ b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/artifact/Configuration.java @@ -69,7 +69,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Artifact}. + * Get the underlying {@link Artifact}. + * * @return the Artifact represented by this proxy, never null. */ @objid ("ef737445-f764-4f1d-8bb7-548a553a27b9") @@ -116,11 +117,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/artifact/EventConfiguration.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/artifact/EventConfiguration.java index ff79a674..90282d28 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/artifact/EventConfiguration.java +++ b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/artifact/EventConfiguration.java @@ -73,9 +73,10 @@ public static EventConfiguration create() { } /** - * Tries to instantiate a {@link EventConfiguration} proxy from a {@link Artifact} stereotyped << EventConfiguration >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link EventConfiguration} proxy from a {@link Artifact} stereotyped << EventConfiguration >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Artifact * @return a {@link EventConfiguration} proxy or null. */ @@ -85,19 +86,20 @@ public static EventConfiguration instantiate(final Artifact obj) { } /** - * Tries to instantiate a {@link EventConfiguration} proxy from a {@link Artifact} stereotyped << EventConfiguration >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link EventConfiguration} proxy from a {@link Artifact} stereotyped << EventConfiguration >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Artifact} * @return a {@link EventConfiguration} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("c8d26b06-5900-49a5-a1e6-910f6c687832") public static EventConfiguration safeInstantiate(final Artifact obj) throws IllegalArgumentException { if (EventConfiguration.canInstantiate(obj)) - return new EventConfiguration(obj); + return new EventConfiguration(obj); else - throw new IllegalArgumentException("EventConfiguration: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("EventConfiguration: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("71f01cbe-1b04-425d-9e5c-cd53e1cf2e58") @@ -117,7 +119,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Artifact}. + * Get the underlying {@link Artifact}. + * * @return the Artifact represented by this proxy, never null. */ @objid ("b7ce3ab2-c3de-4e1e-89ef-633ee3dc9928") @@ -130,7 +133,6 @@ public Artifact getElement() { * Get the value of the 'executionSchedule' role.

* Role description: * null - * */ @objid ("f95e50db-cc29-4e37-b340-cdd2d4c461e7") public Schedule getExecutionSchedule() { @@ -168,7 +170,6 @@ public String getHttpMethodType() { * Get the value to the 'scheduledExecutionConfig' role.

* Role description: * null - * */ @objid ("67da4052-000b-4aee-8bc9-c2fb89e37fd1") public FeatureClass getScheduledExecutionConfig() { @@ -185,7 +186,6 @@ public int hashCode() { * Set the value of the 'executionSchedule' role.

* Role description: * null - * */ @objid ("06475154-dce1-4161-9177-f867631e9ddf") public void setExecutionSchedule(final Schedule obj) { @@ -231,7 +231,6 @@ public void setHttpMethodType(final String value) { * Set the value of the 'scheduledExecutionConfig' role.

* Role description: * null - * */ @objid ("2bf84c5e-54d7-49f7-aecf-0d0a95731fc8") public void setScheduledExecutionConfig(final FeatureClass obj) { @@ -278,11 +277,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/artifact/PaaSConfiguration.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/artifact/PaaSConfiguration.java index 3ec60c5f..419d5bc2 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/artifact/PaaSConfiguration.java +++ b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/artifact/PaaSConfiguration.java @@ -76,9 +76,10 @@ public static PaaSConfiguration create() { } /** - * Tries to instantiate a {@link PaaSConfiguration} proxy from a {@link Artifact} stereotyped << PaaSConfiguration >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link PaaSConfiguration} proxy from a {@link Artifact} stereotyped << PaaSConfiguration >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Artifact * @return a {@link PaaSConfiguration} proxy or null. */ @@ -88,19 +89,20 @@ public static PaaSConfiguration instantiate(final Artifact obj) { } /** - * Tries to instantiate a {@link PaaSConfiguration} proxy from a {@link Artifact} stereotyped << PaaSConfiguration >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link PaaSConfiguration} proxy from a {@link Artifact} stereotyped << PaaSConfiguration >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Artifact} * @return a {@link PaaSConfiguration} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("f10c3582-16c9-46a1-973c-f8d54b326960") public static PaaSConfiguration safeInstantiate(final Artifact obj) throws IllegalArgumentException { if (PaaSConfiguration.canInstantiate(obj)) - return new PaaSConfiguration(obj); + return new PaaSConfiguration(obj); else - throw new IllegalArgumentException("PaaSConfiguration: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("PaaSConfiguration: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("b2bf66f9-d3b4-4996-a478-6d0ebcab9fb5") @@ -140,7 +142,8 @@ public String getDownloadURL() { } /** - * Get the underlying {@link Artifact}. + * Get the underlying {@link Artifact}. + * * @return the Artifact represented by this proxy, never null. */ @objid ("4ba34097-30d1-4332-bba7-90fb91a81adb") @@ -263,11 +266,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/artifact/ScriptConfiguration.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/artifact/ScriptConfiguration.java index 96e1ada5..29edfae7 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/artifact/ScriptConfiguration.java +++ b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/artifact/ScriptConfiguration.java @@ -95,9 +95,10 @@ public static ScriptConfiguration create() { } /** - * Tries to instantiate a {@link ScriptConfiguration} proxy from a {@link Artifact} stereotyped << ScriptConfiguration >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ScriptConfiguration} proxy from a {@link Artifact} stereotyped << ScriptConfiguration >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Artifact * @return a {@link ScriptConfiguration} proxy or null. */ @@ -107,19 +108,20 @@ public static ScriptConfiguration instantiate(final Artifact obj) { } /** - * Tries to instantiate a {@link ScriptConfiguration} proxy from a {@link Artifact} stereotyped << ScriptConfiguration >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ScriptConfiguration} proxy from a {@link Artifact} stereotyped << ScriptConfiguration >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Artifact} * @return a {@link ScriptConfiguration} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("4286d4a1-b166-4acf-acd8-b5c74419694e") public static ScriptConfiguration safeInstantiate(final Artifact obj) throws IllegalArgumentException { if (ScriptConfiguration.canInstantiate(obj)) - return new ScriptConfiguration(obj); + return new ScriptConfiguration(obj); else - throw new IllegalArgumentException("ScriptConfiguration: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("ScriptConfiguration: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("c94f0d99-917d-4020-92cf-16b37337a3ff") @@ -169,7 +171,8 @@ public String getDownloadCommandNote() { } /** - * Get the underlying {@link Artifact}. + * Get the underlying {@link Artifact}. + * * @return the Artifact represented by this proxy, never null. */ @objid ("c0ebf5ea-227d-4e2a-b054-58f597a5b769") @@ -426,11 +429,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/artifact/ServerlessConfiguration.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/artifact/ServerlessConfiguration.java index be994ad3..7e7820af 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/artifact/ServerlessConfiguration.java +++ b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/artifact/ServerlessConfiguration.java @@ -17,8 +17,6 @@ import fr.softeam.cameldesigner.api.camelcore.standard.attribute.AttributeAttribute; import fr.softeam.cameldesigner.api.camelcore.standard.attribute.MeasurableAttributeAttribute; import fr.softeam.cameldesigner.api.camelcore.standard.attribute.QualityAttributeAttribute; -import fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.BuildConfiguration; -import fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.EventConfiguration; import fr.softeam.cameldesigner.impl.CamelDesignerModule; import org.modelio.api.modelio.model.IModelingSession; import org.modelio.api.modelio.model.PropertyConverter; @@ -76,9 +74,10 @@ public static ServerlessConfiguration create() { } /** - * Tries to instantiate a {@link ServerlessConfiguration} proxy from a {@link Artifact} stereotyped << ServerlessConfiguration >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ServerlessConfiguration} proxy from a {@link Artifact} stereotyped << ServerlessConfiguration >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Artifact * @return a {@link ServerlessConfiguration} proxy or null. */ @@ -88,26 +87,26 @@ public static ServerlessConfiguration instantiate(final Artifact obj) { } /** - * Tries to instantiate a {@link ServerlessConfiguration} proxy from a {@link Artifact} stereotyped << ServerlessConfiguration >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ServerlessConfiguration} proxy from a {@link Artifact} stereotyped << ServerlessConfiguration >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Artifact} * @return a {@link ServerlessConfiguration} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("b0579b31-06fd-4549-a168-9821607f8ccc") public static ServerlessConfiguration safeInstantiate(final Artifact obj) throws IllegalArgumentException { if (ServerlessConfiguration.canInstantiate(obj)) - return new ServerlessConfiguration(obj); + return new ServerlessConfiguration(obj); else - throw new IllegalArgumentException("ServerlessConfiguration: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("ServerlessConfiguration: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'environmentConfigParams' role.

* Role description: * null - * */ @objid ("224950c3-655c-4653-9885-66a4438811a1") public void addEnvironmentConfigParams(final AttributeAttribute obj) { @@ -145,19 +144,19 @@ public String getBinaryCodeURL() { * Get the value to the 'buildConfiguration' role.

* Role description: * null - * */ @objid ("77555be7-940c-4f06-b3aa-91e0cacebeb1") public BuildConfiguration getBuildConfiguration() { - for (Artifact obj : ((Artifact) this.elt).getOwnedElement(Artifact.class)) { - if (BuildConfiguration.canInstantiate(obj)) - return (BuildConfiguration)CamelDesignerProxyFactory.instantiate(obj, BuildConfiguration.STEREOTYPE_NAME); - } - return null; + for (Artifact obj : ((Artifact) this.elt).getOwnedElement(Artifact.class)) { + if (BuildConfiguration.canInstantiate(obj)) + return (BuildConfiguration)CamelDesignerProxyFactory.instantiate(obj, BuildConfiguration.STEREOTYPE_NAME); + } + return null; } /** - * Get the underlying {@link Artifact}. + * Get the underlying {@link Artifact}. + * * @return the Artifact represented by this proxy, never null. */ @objid ("bf720c40-700a-461c-bcb3-c496afbc5cdf") @@ -170,19 +169,18 @@ public Artifact getElement() { * Get the values of the 'environmentConfigParams' role.

* Role description: * null - * */ @objid ("248c9b52-7b50-452a-b5bf-c5bf8515e2e5") public List getEnvironmentConfigParams() { List results = new ArrayList<>(); for (Attribute mObj : ((Artifact) this.elt).getOwnedAttribute()){ - if (MeasurableAttributeAttribute.canInstantiate(mObj)) - results.add((MeasurableAttributeAttribute)CamelDesignerProxyFactory.instantiate(mObj, MeasurableAttributeAttribute.STEREOTYPE_NAME)); - if (QualityAttributeAttribute.canInstantiate(mObj)) - results.add((QualityAttributeAttribute)CamelDesignerProxyFactory.instantiate(mObj, QualityAttributeAttribute.STEREOTYPE_NAME)); - if (AttributeAttribute.canInstantiate(mObj)) - results.add((AttributeAttribute)CamelDesignerProxyFactory.instantiate(mObj, AttributeAttribute.STEREOTYPE_NAME)); - } + if (MeasurableAttributeAttribute.canInstantiate(mObj)) + results.add((MeasurableAttributeAttribute)CamelDesignerProxyFactory.instantiate(mObj, MeasurableAttributeAttribute.STEREOTYPE_NAME)); + if (QualityAttributeAttribute.canInstantiate(mObj)) + results.add((QualityAttributeAttribute)CamelDesignerProxyFactory.instantiate(mObj, QualityAttributeAttribute.STEREOTYPE_NAME)); + if (AttributeAttribute.canInstantiate(mObj)) + results.add((AttributeAttribute)CamelDesignerProxyFactory.instantiate(mObj, AttributeAttribute.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -190,15 +188,14 @@ public List getEnvironmentConfigParams() { * Get the value to the 'eventConfiguration' role.

* Role description: * null - * */ @objid ("7c64076a-f12f-43c6-b1d6-b88b7c111c66") public EventConfiguration getEventConfiguration() { - for (Artifact obj : ((Artifact) this.elt).getOwnedElement(Artifact.class)) { - if (EventConfiguration.canInstantiate(obj)) - return (EventConfiguration)CamelDesignerProxyFactory.instantiate(obj, EventConfiguration.STEREOTYPE_NAME); - } - return null; + for (Artifact obj : ((Artifact) this.elt).getOwnedElement(Artifact.class)) { + if (EventConfiguration.canInstantiate(obj)) + return (EventConfiguration)CamelDesignerProxyFactory.instantiate(obj, EventConfiguration.STEREOTYPE_NAME); + } + return null; } @objid ("b69b33b0-b62a-4241-b3e0-a0b9410d70b2") @@ -221,7 +218,6 @@ public boolean isContinuousDeployment() { * Remove a value from the 'environmentConfigParams' role.

* Role description: * null - * */ @objid ("6b3c53c5-d4c7-49c6-afbe-b9a852ad5925") public boolean removeEnvironmentConfigParams(final AttributeAttribute obj) { @@ -242,7 +238,6 @@ public void setBinaryCodeURL(final String value) { * Set the value of the 'buildConfiguration' role.

* Role description: * null - * */ @objid ("98c83871-49f8-437f-a7e2-816795618565") public void setBuildConfiguration(final BuildConfiguration obj) { @@ -275,7 +270,6 @@ public void setContinuousDeployment(final boolean value) { * Set the value of the 'eventConfiguration' role.

* Role description: * null - * */ @objid ("fc82bf4e-0626-4374-b596-7e0bcbd70d52") public void setEventConfiguration(final EventConfiguration obj) { @@ -331,11 +325,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/class_/RequirementSet.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/class_/RequirementSet.java index 28e5fb48..5e6ec257 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/class_/RequirementSet.java +++ b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/class_/RequirementSet.java @@ -74,9 +74,10 @@ public static RequirementSet create() { } /** - * Tries to instantiate a {@link RequirementSet} proxy from a {@link Class} stereotyped << RequirementSet >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link RequirementSet} proxy from a {@link Class} stereotyped << RequirementSet >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link RequirementSet} proxy or null. */ @@ -86,19 +87,20 @@ public static RequirementSet instantiate(final Class obj) { } /** - * Tries to instantiate a {@link RequirementSet} proxy from a {@link Class} stereotyped << RequirementSet >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link RequirementSet} proxy from a {@link Class} stereotyped << RequirementSet >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link RequirementSet} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("f21d9a46-4109-4d12-b24b-4c984846cb9a") public static RequirementSet safeInstantiate(final Class obj) throws IllegalArgumentException { if (RequirementSet.canInstantiate(obj)) - return new RequirementSet(obj); + return new RequirementSet(obj); else - throw new IllegalArgumentException("RequirementSet: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("RequirementSet: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("2d720d69-19f0-44c3-80c3-358ba10b4558") @@ -118,7 +120,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("9ac8bd96-0841-4947-9d11-4493e76a0287") @@ -131,7 +134,6 @@ public Class getElement() { * Get the value of the 'horizontalScaleRequirement' role.

* Role description: * null - * */ @objid ("47328c53-0a62-4a31-a058-7cd9be486393") public HorizontalScaleRequirement getHorizontalScaleRequirement() { @@ -149,7 +151,6 @@ public HorizontalScaleRequirement getHorizontalScaleRequirement() { * Get the value of the 'imageRequirement' role.

* Role description: * null - * */ @objid ("65ceb2cd-0504-4f6a-b769-12b95d557d94") public ImageRequirement getImageRequirement() { @@ -167,7 +168,6 @@ public ImageRequirement getImageRequirement() { * Get the value of the 'locationRequirement' role.

* Role description: * null - * */ @objid ("d7e1a073-386d-4920-bdba-633e314089c4") public LocationRequirement getLocationRequirement() { @@ -185,7 +185,6 @@ public LocationRequirement getLocationRequirement() { * Get the value of the 'osRequirement' role.

* Role description: * null - * */ @objid ("6c87a157-2b14-46e0-a7f9-e56a19aef5e1") public OSRequirement getOsRequirement() { @@ -203,7 +202,6 @@ public OSRequirement getOsRequirement() { * Get the value of the 'paasRequirement' role.

* Role description: * null - * */ @objid ("7e27ff7b-40c5-407a-9b22-d53ea73544b1") public PaaSRequirement getPaasRequirement() { @@ -221,7 +219,6 @@ public PaaSRequirement getPaasRequirement() { * Get the value of the 'providerRequirement' role.

* Role description: * null - * */ @objid ("c6d7ae54-d5f1-4b84-8396-fdec1b452d5f") public ProviderRequirement getProviderRequirement() { @@ -239,7 +236,6 @@ public ProviderRequirement getProviderRequirement() { * Get the value of the 'resourceRequirement' role.

* Role description: * null - * */ @objid ("54da01a1-b908-4f4c-a72c-8a62b65e2e7d") public ResourceRequirement getResourceRequirement() { @@ -257,7 +253,6 @@ public ResourceRequirement getResourceRequirement() { * Get the value of the 'securityRequirement' role.

* Role description: * null - * */ @objid ("ba2cd9f9-0ba7-40d9-b88b-d0962ef95f70") public SecurityRequirement getSecurityRequirement() { @@ -275,7 +270,6 @@ public SecurityRequirement getSecurityRequirement() { * Get the value of the 'verticalScaleRequirement' role.

* Role description: * null - * */ @objid ("147c925a-5f66-4a5b-90cc-dd154989ae19") public VerticalScaleRequirement getVerticalScaleRequirement() { @@ -299,7 +293,6 @@ public int hashCode() { * Set the value of the 'horizontalScaleRequirement' role.

* Role description: * null - * */ @objid ("502c59a2-8047-42f7-99b1-57e75990757d") public void setHorizontalScaleRequirement(final HorizontalScaleRequirement obj) { @@ -325,7 +318,6 @@ public void setHorizontalScaleRequirement(final HorizontalScaleRequirement obj) * Set the value of the 'imageRequirement' role.

* Role description: * null - * */ @objid ("36060776-2def-4425-bd6c-c20e0b274466") public void setImageRequirement(final ImageRequirement obj) { @@ -351,7 +343,6 @@ public void setImageRequirement(final ImageRequirement obj) { * Set the value of the 'locationRequirement' role.

* Role description: * null - * */ @objid ("675a35fe-9b26-4dc8-9e96-3f6a76ba1f9f") public void setLocationRequirement(final LocationRequirement obj) { @@ -377,7 +368,6 @@ public void setLocationRequirement(final LocationRequirement obj) { * Set the value of the 'osRequirement' role.

* Role description: * null - * */ @objid ("145a58c1-1f8e-4bce-9908-3f255b1fa980") public void setOsRequirement(final OSRequirement obj) { @@ -403,7 +393,6 @@ public void setOsRequirement(final OSRequirement obj) { * Set the value of the 'paasRequirement' role.

* Role description: * null - * */ @objid ("e338bef4-c9f1-4411-9686-596d5ff61b9d") public void setPaasRequirement(final PaaSRequirement obj) { @@ -429,7 +418,6 @@ public void setPaasRequirement(final PaaSRequirement obj) { * Set the value of the 'providerRequirement' role.

* Role description: * null - * */ @objid ("93d026fc-4eb2-463f-b03d-227e7f699d42") public void setProviderRequirement(final ProviderRequirement obj) { @@ -455,7 +443,6 @@ public void setProviderRequirement(final ProviderRequirement obj) { * Set the value of the 'resourceRequirement' role.

* Role description: * null - * */ @objid ("362d2a33-d51d-43a0-a9e2-2f141d9d40c1") public void setResourceRequirement(final ResourceRequirement obj) { @@ -481,7 +468,6 @@ public void setResourceRequirement(final ResourceRequirement obj) { * Set the value of the 'securityRequirement' role.

* Role description: * null - * */ @objid ("0d20b8f9-9bef-4856-90d2-1bd16e1f8af8") public void setSecurityRequirement(final SecurityRequirement obj) { @@ -507,7 +493,6 @@ public void setSecurityRequirement(final SecurityRequirement obj) { * Set the value of the 'verticalScaleRequirement' role.

* Role description: * null - * */ @objid ("b4b6e2d2-c4af-4fd3-8936-4b6f56502c1b") public void setVerticalScaleRequirement(final VerticalScaleRequirement obj) { @@ -561,11 +546,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/component/CamelComponent.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/component/CamelComponent.java index 76f5c7ad..9d2820f3 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/component/CamelComponent.java +++ b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/component/CamelComponent.java @@ -70,7 +70,6 @@ public static CamelComponent instantiate(final Component obj) { * Add a value to the 'configurations' role.

* Role description: * null - * */ @objid ("5868afa6-cf04-4213-9281-eec5a2aa1e34") public void addConfigurations(final Configuration obj) { @@ -82,7 +81,6 @@ public void addConfigurations(final Configuration obj) { * Add a value to the 'providedCommunications' role.

* Role description: * null - * */ @objid ("a7f6bd61-528f-456c-8de9-0010f6ef72cd") public void addProvidedCommunications(final CommunicationPort obj) { @@ -94,7 +92,6 @@ public void addProvidedCommunications(final CommunicationPort obj) { * Add a value to the 'providedHosts' role.

* Role description: * null - * */ @objid ("d7e3515f-9070-4234-80b3-9cd0f0e85dcb") public void addProvidedHosts(final HostingPort obj) { @@ -122,26 +119,26 @@ public boolean equals(final Object obj) { * Get the values of the 'configurations' role.

* Role description: * null - * */ @objid ("4e2ce322-5bfe-4b14-b63c-7a6ded887140") public List getConfigurations() { List results = new ArrayList<>(); for (ModelTree mObj : ((Component) this.elt).getOwnedElement()){ - if (ClusterConfiguration.canInstantiate(mObj)) - results.add((ClusterConfiguration)CamelDesignerProxyFactory.instantiate(mObj, ClusterConfiguration.STEREOTYPE_NAME)); - if (PaaSConfiguration.canInstantiate(mObj)) - results.add((PaaSConfiguration)CamelDesignerProxyFactory.instantiate(mObj, PaaSConfiguration.STEREOTYPE_NAME)); - if (ScriptConfiguration.canInstantiate(mObj)) - results.add((ScriptConfiguration)CamelDesignerProxyFactory.instantiate(mObj, ScriptConfiguration.STEREOTYPE_NAME)); - if (ServerlessConfiguration.canInstantiate(mObj)) - results.add((ServerlessConfiguration)CamelDesignerProxyFactory.instantiate(mObj, ServerlessConfiguration.STEREOTYPE_NAME)); - } + if (ClusterConfiguration.canInstantiate(mObj)) + results.add((ClusterConfiguration)CamelDesignerProxyFactory.instantiate(mObj, ClusterConfiguration.STEREOTYPE_NAME)); + if (PaaSConfiguration.canInstantiate(mObj)) + results.add((PaaSConfiguration)CamelDesignerProxyFactory.instantiate(mObj, PaaSConfiguration.STEREOTYPE_NAME)); + if (ScriptConfiguration.canInstantiate(mObj)) + results.add((ScriptConfiguration)CamelDesignerProxyFactory.instantiate(mObj, ScriptConfiguration.STEREOTYPE_NAME)); + if (ServerlessConfiguration.canInstantiate(mObj)) + results.add((ServerlessConfiguration)CamelDesignerProxyFactory.instantiate(mObj, ServerlessConfiguration.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } /** - * Get the underlying {@link Component}. + * Get the underlying {@link Component}. + * * @return the Component represented by this proxy, never null. */ @objid ("12cb8d4b-3342-4bfc-bc7e-fc8c576e6c19") @@ -154,15 +151,14 @@ public Component getElement() { * Get the values of the 'providedCommunications' role.

* Role description: * null - * */ @objid ("d331dcee-68a3-42c8-9c9f-559b9ffe5ca3") public List getProvidedCommunications() { List results = new ArrayList<>(); for (BindableInstance mObj : ((Component) this.elt).getInternalStructure()){ - if (CommunicationPort.canInstantiate(mObj)) - results.add((CommunicationPort)CamelDesignerProxyFactory.instantiate(mObj, CommunicationPort.STEREOTYPE_NAME)); - } + if (CommunicationPort.canInstantiate(mObj)) + results.add((CommunicationPort)CamelDesignerProxyFactory.instantiate(mObj, CommunicationPort.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -170,15 +166,14 @@ public List getProvidedCommunications() { * Get the values of the 'providedHosts' role.

* Role description: * null - * */ @objid ("92272b82-5dc7-4418-95b9-14be79f68aef") public List getProvidedHosts() { List results = new ArrayList<>(); for (BindableInstance mObj : ((Component) this.elt).getInternalStructure()){ - if (HostingPort.canInstantiate(mObj)) - results.add((HostingPort)CamelDesignerProxyFactory.instantiate(mObj, HostingPort.STEREOTYPE_NAME)); - } + if (HostingPort.canInstantiate(mObj)) + results.add((HostingPort)CamelDesignerProxyFactory.instantiate(mObj, HostingPort.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -192,7 +187,6 @@ public int hashCode() { * Remove a value from the 'configurations' role.

* Role description: * null - * */ @objid ("6389fa03-43d0-4a01-b248-39f052005c5d") public boolean removeConfigurations(final Configuration obj) { @@ -203,7 +197,6 @@ public boolean removeConfigurations(final Configuration obj) { * Remove a value from the 'providedCommunications' role.

* Role description: * null - * */ @objid ("058a259f-09ab-4639-a423-8228ce07747d") public boolean removeProvidedCommunications(final CommunicationPort obj) { @@ -214,7 +207,6 @@ public boolean removeProvidedCommunications(final CommunicationPort obj) { * Remove a value from the 'providedHosts' role.

* Role description: * null - * */ @objid ("d0eb5811-c24f-4f36-b5a7-48af5530c7fe") public boolean removeProvidedHosts(final HostingPort obj) { @@ -254,11 +246,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/component/Container.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/component/Container.java index 5d06b81c..ffd93a8d 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/component/Container.java +++ b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/component/Container.java @@ -67,9 +67,10 @@ public static Container create() { } /** - * Tries to instantiate a {@link Container} proxy from a {@link Component} stereotyped << Container >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Container} proxy from a {@link Component} stereotyped << Container >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Component * @return a {@link Container} proxy or null. */ @@ -79,26 +80,26 @@ public static Container instantiate(final Component obj) { } /** - * Tries to instantiate a {@link Container} proxy from a {@link Component} stereotyped << Container >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Container} proxy from a {@link Component} stereotyped << Container >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Component} * @return a {@link Container} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("25575bb5-b144-4b72-b935-fac80dbbc867") public static Container safeInstantiate(final Component obj) throws IllegalArgumentException { if (Container.canInstantiate(obj)) - return new Container(obj); + return new Container(obj); else - throw new IllegalArgumentException("Container: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("Container: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'requiredCommunications' role.

* Role description: * null - * */ @objid ("5d865a83-8428-43d8-90da-dff850590b65") public void addRequiredCommunications(final CommunicationPort obj) { @@ -127,7 +128,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Component}. + * Get the underlying {@link Component}. + * * @return the Component represented by this proxy, never null. */ @objid ("a24f32f1-e977-44db-a5b2-e12853ba7857") @@ -140,7 +142,6 @@ public Component getElement() { * Get the values of the 'requiredCommunications' role.

* Role description: * null - * */ @objid ("c0542ea8-3ef8-4786-a660-6d6c28c1e197") public List getRequiredCommunications() { @@ -159,15 +160,14 @@ public List getRequiredCommunications() { * Get the value to the 'requiredHost' role.

* Role description: * null - * */ @objid ("a4882c79-c8b1-4452-ac74-1fc8b3d4d3ac") public HostingPort getRequiredHost() { - for (Port obj : ((Component) this.elt).getInternalStructure(Port.class)) { - if (HostingPort.canInstantiate(obj)) - return (HostingPort)CamelDesignerProxyFactory.instantiate(obj, HostingPort.STEREOTYPE_NAME); - } - return null; + for (Port obj : ((Component) this.elt).getInternalStructure(Port.class)) { + if (HostingPort.canInstantiate(obj)) + return (HostingPort)CamelDesignerProxyFactory.instantiate(obj, HostingPort.STEREOTYPE_NAME); + } + return null; } @objid ("abbf4050-7c39-4886-9add-5c87427a8709") @@ -180,7 +180,6 @@ public int hashCode() { * Remove a value from the 'requiredCommunications' role.

* Role description: * null - * */ @objid ("97a1a5bb-b20d-43a1-a58d-94f9d726e2fa") public boolean removeRequiredCommunications(final CommunicationPort obj) { @@ -200,7 +199,6 @@ public boolean removeRequiredCommunications(final CommunicationPort obj) { * Set the value of the 'requiredHost' role.

* Role description: * null - * */ @objid ("c21bb1d2-b8ee-45e5-9952-7098612fb969") public void setRequiredHost(final HostingPort obj) { @@ -248,11 +246,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/component/PaaS.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/component/PaaS.java index ab81aa47..0e06e34b 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/component/PaaS.java +++ b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/component/PaaS.java @@ -64,9 +64,10 @@ public static PaaS create() { } /** - * Tries to instantiate a {@link PaaS} proxy from a {@link Component} stereotyped << PaaS >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link PaaS} proxy from a {@link Component} stereotyped << PaaS >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Component * @return a {@link PaaS} proxy or null. */ @@ -76,19 +77,20 @@ public static PaaS instantiate(final Component obj) { } /** - * Tries to instantiate a {@link PaaS} proxy from a {@link Component} stereotyped << PaaS >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link PaaS} proxy from a {@link Component} stereotyped << PaaS >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Component} * @return a {@link PaaS} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("7cf16087-1a84-4259-b102-b941ef691d05") public static PaaS safeInstantiate(final Component obj) throws IllegalArgumentException { if (PaaS.canInstantiate(obj)) - return new PaaS(obj); + return new PaaS(obj); else - throw new IllegalArgumentException("PaaS: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("PaaS: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("4317bffd-a05a-425a-b65e-cb8925d79933") @@ -108,7 +110,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Component}. + * Get the underlying {@link Component}. + * * @return the Component represented by this proxy, never null. */ @objid ("8144604d-f270-4b2f-a355-543956e5402c") @@ -155,11 +158,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/component/SoftwareComponent.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/component/SoftwareComponent.java index 9541e938..b44680e3 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/component/SoftwareComponent.java +++ b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/component/SoftwareComponent.java @@ -77,9 +77,10 @@ public static SoftwareComponent create() { } /** - * Tries to instantiate a {@link SoftwareComponent} proxy from a {@link Component} stereotyped << SoftwareComponent >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link SoftwareComponent} proxy from a {@link Component} stereotyped << SoftwareComponent >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Component * @return a {@link SoftwareComponent} proxy or null. */ @@ -89,26 +90,26 @@ public static SoftwareComponent instantiate(final Component obj) { } /** - * Tries to instantiate a {@link SoftwareComponent} proxy from a {@link Component} stereotyped << SoftwareComponent >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link SoftwareComponent} proxy from a {@link Component} stereotyped << SoftwareComponent >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Component} * @return a {@link SoftwareComponent} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("74a9a214-4d51-4031-b388-a8bcea439155") public static SoftwareComponent safeInstantiate(final Component obj) throws IllegalArgumentException { if (SoftwareComponent.canInstantiate(obj)) - return new SoftwareComponent(obj); + return new SoftwareComponent(obj); else - throw new IllegalArgumentException("SoftwareComponent: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("SoftwareComponent: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'consumesData' role.

* Role description: * null - * */ @objid ("49712573-e947-4a58-a66c-048fa4db503a") public void addConsumesData(final Data obj) { @@ -124,7 +125,6 @@ public void addConsumesData(final Data obj) { * Add a value to the 'generatesData' role.

* Role description: * null - * */ @objid ("07441328-0724-4b5b-bd50-eecad86e324a") public void addGeneratesData(final Data obj) { @@ -140,7 +140,6 @@ public void addGeneratesData(final Data obj) { * Add a value to the 'managesDataSource' role.

* Role description: * null - * */ @objid ("dc692fd5-7800-4925-b01f-f7ef135d0bfb") public void addManagesDataSource(final DataSource obj) { @@ -156,7 +155,6 @@ public void addManagesDataSource(final DataSource obj) { * Add a value to the 'requiredCommunications' role.

* Role description: * null - * */ @objid ("1a11b49e-d53a-43ad-a9bd-82f15c3250c2") public void addRequiredCommunications(final CommunicationPort obj) { @@ -184,7 +182,6 @@ public boolean equals(final Object obj) { * Get the values of the 'consumesData' role.

* Role description: * null - * */ @objid ("135a1493-f5ee-4999-96cb-10d73d72e7bd") public List getConsumesData() { @@ -200,7 +197,8 @@ public List getConsumesData() { } /** - * Get the underlying {@link Component}. + * Get the underlying {@link Component}. + * * @return the Component represented by this proxy, never null. */ @objid ("a3018b63-2c71-4284-b195-4acbf75c0007") @@ -213,7 +211,6 @@ public Component getElement() { * Get the values of the 'generatesData' role.

* Role description: * null - * */ @objid ("d6d39530-352c-4861-917c-0a5450b1bd37") public List getGeneratesData() { @@ -232,7 +229,6 @@ public List getGeneratesData() { * Get the values of the 'managesDataSource' role.

* Role description: * null - * */ @objid ("4afb5000-7c3e-4950-abfd-752a587d41cb") public List getManagesDataSource() { @@ -251,15 +247,14 @@ public List getManagesDataSource() { * Get the values of the 'requiredCommunications' role.

* Role description: * null - * */ @objid ("e2627b93-5195-45dc-b380-60d4476e4538") public List getRequiredCommunications() { List results = new ArrayList<>(); for (BindableInstance mObj : ((Component) this.elt).getInternalStructure()){ - if (CommunicationPort.canInstantiate(mObj)) - results.add((CommunicationPort)CamelDesignerProxyFactory.instantiate(mObj, CommunicationPort.STEREOTYPE_NAME)); - } + if (CommunicationPort.canInstantiate(mObj)) + results.add((CommunicationPort)CamelDesignerProxyFactory.instantiate(mObj, CommunicationPort.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -267,22 +262,20 @@ public List getRequiredCommunications() { * Get the value to the 'requiredHost' role.

* Role description: * null - * */ @objid ("57a76c9a-d062-4cb2-875e-3c6eafe3841b") public HostingPort getRequiredHost() { - for (Port obj : ((Component) this.elt).getInternalStructure(Port.class)) { - if (HostingPort.canInstantiate(obj)) - return (HostingPort)CamelDesignerProxyFactory.instantiate(obj, HostingPort.STEREOTYPE_NAME); - } - return null; + for (Port obj : ((Component) this.elt).getInternalStructure(Port.class)) { + if (HostingPort.canInstantiate(obj)) + return (HostingPort)CamelDesignerProxyFactory.instantiate(obj, HostingPort.STEREOTYPE_NAME); + } + return null; } /** * Get the value of the 'requirementSet' role.

* Role description: * null - * */ @objid ("38351228-0003-46ea-8595-fdc60420ce3a") public RequirementSet getRequirementSet() { @@ -326,7 +319,6 @@ public boolean isLongLived() { * Remove a value from the 'consumesData' role.

* Role description: * null - * */ @objid ("36199e9b-22e4-465c-b919-099e5812a1e6") public boolean removeConsumesData(final Data obj) { @@ -346,7 +338,6 @@ public boolean removeConsumesData(final Data obj) { * Remove a value from the 'generatesData' role.

* Role description: * null - * */ @objid ("8352370a-eaaa-44f4-9df4-b85cff6bbf09") public boolean removeGeneratesData(final Data obj) { @@ -366,7 +357,6 @@ public boolean removeGeneratesData(final Data obj) { * Remove a value from the 'managesDataSource' role.

* Role description: * null - * */ @objid ("bfeeec64-da34-45f0-82c1-5710f0e1dad0") public boolean removeManagesDataSource(final DataSource obj) { @@ -386,7 +376,6 @@ public boolean removeManagesDataSource(final DataSource obj) { * Remove a value from the 'requiredCommunications' role.

* Role description: * null - * */ @objid ("837fd99a-55bf-4571-a6e3-883324a6392f") public boolean removeRequiredCommunications(final CommunicationPort obj) { @@ -423,7 +412,6 @@ public void setLongLived(final boolean value) { * Set the value of the 'requiredHost' role.

* Role description: * null - * */ @objid ("4f43dae6-2b20-4b18-97ab-400fc454faa4") public void setRequiredHost(final HostingPort obj) { @@ -443,7 +431,6 @@ public void setRequiredHost(final HostingPort obj) { * Set the value of the 'requirementSet' role.

* Role description: * null - * */ @objid ("a367ef59-97a0-40dc-a815-8fcdbdc0784f") public void setRequirementSet(final RequirementSet obj) { @@ -505,11 +492,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/component/VM.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/component/VM.java index 6137e6bb..731a0477 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/component/VM.java +++ b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/component/VM.java @@ -64,9 +64,10 @@ public static VM create() { } /** - * Tries to instantiate a {@link VM} proxy from a {@link Component} stereotyped << VM >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link VM} proxy from a {@link Component} stereotyped << VM >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Component * @return a {@link VM} proxy or null. */ @@ -76,19 +77,20 @@ public static VM instantiate(final Component obj) { } /** - * Tries to instantiate a {@link VM} proxy from a {@link Component} stereotyped << VM >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link VM} proxy from a {@link Component} stereotyped << VM >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Component} * @return a {@link VM} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("158a8721-c837-41f0-b3d6-dbc76ed561ce") public static VM safeInstantiate(final Component obj) throws IllegalArgumentException { if (VM.canInstantiate(obj)) - return new VM(obj); + return new VM(obj); else - throw new IllegalArgumentException("VM: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("VM: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("64006e31-4ba3-4c11-af4c-5f1fbe9fc6d0") @@ -108,7 +110,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Component}. + * Get the underlying {@link Component}. + * * @return the Component represented by this proxy, never null. */ @objid ("f377bf17-d779-4012-a73d-549abae547a3") @@ -155,11 +158,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/connector/Communication.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/connector/Communication.java index 8340299f..9bdb3e5e 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/connector/Communication.java +++ b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/connector/Communication.java @@ -69,9 +69,10 @@ public static Communication create() { } /** - * Tries to instantiate a {@link Communication} proxy from a {@link Connector} stereotyped << Communication >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Communication} proxy from a {@link Connector} stereotyped << Communication >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Connector * @return a {@link Communication} proxy or null. */ @@ -81,19 +82,20 @@ public static Communication instantiate(final Connector obj) { } /** - * Tries to instantiate a {@link Communication} proxy from a {@link Connector} stereotyped << Communication >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Communication} proxy from a {@link Connector} stereotyped << Communication >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Connector} * @return a {@link Communication} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("5262ede5-c0c2-43ad-8b37-083d0562351e") public static Communication safeInstantiate(final Connector obj) throws IllegalArgumentException { if (Communication.canInstantiate(obj)) - return new Communication(obj); + return new Communication(obj); else - throw new IllegalArgumentException("Communication: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("Communication: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("b362a526-be58-4e21-9ee8-59142e55bc50") @@ -113,7 +115,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Connector}. + * Get the underlying {@link Connector}. + * * @return the Connector represented by this proxy, never null. */ @objid ("3e20256b-0c9b-4dc6-b7ee-184f2c35492b") @@ -126,7 +129,6 @@ public Connector getElement() { * Get the value of the 'providedPortConfiguration' role.

* Role description: * null - * */ @objid ("968d0590-186f-4a01-9c6a-74f46ec54be5") public Configuration getProvidedPortConfiguration() { @@ -150,7 +152,6 @@ public Configuration getProvidedPortConfiguration() { * Get the value of the 'requiredPortConfiguration' role.

* Role description: * null - * */ @objid ("20171cdf-b85d-4524-9c6e-ef6a76ffa683") public Configuration getRequiredPortConfiguration() { @@ -180,7 +181,6 @@ public int hashCode() { * Set the value of the 'providedPortConfiguration' role.

* Role description: * null - * */ @objid ("7159c3e2-8ed4-4454-8b7c-91e96235126f") public void setProvidedPortConfiguration(final Configuration obj) { @@ -206,7 +206,6 @@ public void setProvidedPortConfiguration(final Configuration obj) { * Set the value of the 'requiredPortConfiguration' role.

* Role description: * null - * */ @objid ("5fc61863-5514-4d4c-9723-14cd9bb3ca2b") public void setRequiredPortConfiguration(final Configuration obj) { @@ -260,11 +259,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/connector/ComponentRelation.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/connector/ComponentRelation.java index d4989c1a..43a460ca 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/connector/ComponentRelation.java +++ b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/connector/ComponentRelation.java @@ -69,7 +69,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Connector}. + * Get the underlying {@link Connector}. + * * @return the Connector represented by this proxy, never null. */ @objid ("f3ae7ec9-0109-4d99-8e4c-5c47717a37a7") @@ -116,11 +117,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/connector/Hosting.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/connector/Hosting.java index dbc51bdb..02fa0f3b 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/connector/Hosting.java +++ b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/connector/Hosting.java @@ -69,9 +69,10 @@ public static Hosting create() { } /** - * Tries to instantiate a {@link Hosting} proxy from a {@link Connector} stereotyped << Hosting >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Hosting} proxy from a {@link Connector} stereotyped << Hosting >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Connector * @return a {@link Hosting} proxy or null. */ @@ -81,26 +82,26 @@ public static Hosting instantiate(final Connector obj) { } /** - * Tries to instantiate a {@link Hosting} proxy from a {@link Connector} stereotyped << Hosting >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Hosting} proxy from a {@link Connector} stereotyped << Hosting >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Connector} * @return a {@link Hosting} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("7c343ff2-c9ee-4605-b138-597053fd1f81") public static Hosting safeInstantiate(final Connector obj) throws IllegalArgumentException { if (Hosting.canInstantiate(obj)) - return new Hosting(obj); + return new Hosting(obj); else - throw new IllegalArgumentException("Hosting: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("Hosting: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'requiredHostsConfiguration' role.

* Role description: * null - * */ @objid ("618c7f53-0356-42bd-b2d8-fd45f792d345") public void addRequiredHostsConfiguration(final Configuration obj) { @@ -129,7 +130,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Connector}. + * Get the underlying {@link Connector}. + * * @return the Connector represented by this proxy, never null. */ @objid ("4b80d345-7a59-40d8-ad3f-34b8b13a4fd3") @@ -142,7 +144,6 @@ public Connector getElement() { * Get the value of the 'providedHostConfiguration' role.

* Role description: * null - * */ @objid ("80d2b990-ed32-45a5-9658-d9d38621a58d") public Configuration getProvidedHostConfiguration() { @@ -166,7 +167,6 @@ public Configuration getProvidedHostConfiguration() { * Get the values of the 'requiredHostsConfiguration' role.

* Role description: * null - * */ @objid ("f0b8968b-64e0-4f29-9914-53e9988736e1") public List getRequiredHostsConfiguration() { @@ -197,7 +197,6 @@ public int hashCode() { * Remove a value from the 'requiredHostsConfiguration' role.

* Role description: * null - * */ @objid ("1d82e6df-a9e9-4353-ab6a-96685d832b26") public boolean removeRequiredHostsConfiguration(final Configuration obj) { @@ -217,7 +216,6 @@ public boolean removeRequiredHostsConfiguration(final Configuration obj) { * Set the value of the 'providedHostConfiguration' role.

* Role description: * null - * */ @objid ("04217f71-26df-4648-9213-42d1b20bc600") public void setProvidedHostConfiguration(final Configuration obj) { @@ -271,11 +269,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/connector/LocationCoupling.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/connector/LocationCoupling.java index 8f83d632..ec67188f 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/connector/LocationCoupling.java +++ b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/connector/LocationCoupling.java @@ -72,9 +72,10 @@ public static LocationCoupling create() { } /** - * Tries to instantiate a {@link LocationCoupling} proxy from a {@link Connector} stereotyped << LocationCoupling >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link LocationCoupling} proxy from a {@link Connector} stereotyped << LocationCoupling >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Connector * @return a {@link LocationCoupling} proxy or null. */ @@ -84,26 +85,26 @@ public static LocationCoupling instantiate(final Connector obj) { } /** - * Tries to instantiate a {@link LocationCoupling} proxy from a {@link Connector} stereotyped << LocationCoupling >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link LocationCoupling} proxy from a {@link Connector} stereotyped << LocationCoupling >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Connector} * @return a {@link LocationCoupling} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("a4cdd263-1e69-4a2f-8a4c-6dc82d845833") public static LocationCoupling safeInstantiate(final Connector obj) throws IllegalArgumentException { if (LocationCoupling.canInstantiate(obj)) - return new LocationCoupling(obj); + return new LocationCoupling(obj); else - throw new IllegalArgumentException("LocationCoupling: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("LocationCoupling: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'softwareComponents' role.

* Role description: * null - * */ @objid ("07839e60-a481-46fe-86fd-c9106cb959aa") public void addSoftwareComponents(final SoftwareComponent obj) { @@ -142,7 +143,8 @@ public String getCouplingType() { } /** - * Get the underlying {@link Connector}. + * Get the underlying {@link Connector}. + * * @return the Connector represented by this proxy, never null. */ @objid ("5f9ddd08-3ba0-4f49-a74c-3afeab4a2a6a") @@ -155,7 +157,6 @@ public Connector getElement() { * Get the values of the 'softwareComponents' role.

* Role description: * null - * */ @objid ("9d1117fe-5c96-4a02-8dfb-6feda275e876") public List getSoftwareComponents() { @@ -192,7 +193,6 @@ public boolean isRelaxed() { * Remove a value from the 'softwareComponents' role.

* Role description: * null - * */ @objid ("c417fa67-025e-4159-9090-a8b2abc66c8b") public boolean removeSoftwareComponents(final SoftwareComponent obj) { @@ -271,11 +271,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/package_/DeploymentModel.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/package_/DeploymentModel.java index 900d6bc4..e0b7e7b0 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/package_/DeploymentModel.java +++ b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/package_/DeploymentModel.java @@ -73,7 +73,6 @@ public boolean equals(final Object obj) { * Get the value to the 'camelModel' role.

* Role description: * null - * */ @objid ("5464bf0b-1a20-4c3f-a514-acf3199e39a1") public CamelModel getCamelModel() { @@ -81,7 +80,8 @@ public CamelModel getCamelModel() { } /** - * Get the underlying {@link Package}. + * Get the underlying {@link Package}. + * * @return the Package represented by this proxy, never null. */ @objid ("6fd4e672-6336-4cd3-9622-de62d6c68398") @@ -100,7 +100,6 @@ public int hashCode() { * Set the value of the 'camelModel' role.

* Role description: * null - * */ @objid ("6b2aeaed-fa3e-408c-944e-5525406b5c5b") public void setCamelModel(final CamelModel obj) { @@ -139,11 +138,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/package_/DeploymentTypeModel.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/package_/DeploymentTypeModel.java index cc075736..4ba7c044 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/package_/DeploymentTypeModel.java +++ b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/package_/DeploymentTypeModel.java @@ -74,9 +74,10 @@ public static DeploymentTypeModel create() { } /** - * Tries to instantiate a {@link DeploymentTypeModel} proxy from a {@link Package} stereotyped << DeploymentTypeModel >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link DeploymentTypeModel} proxy from a {@link Package} stereotyped << DeploymentTypeModel >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Package * @return a {@link DeploymentTypeModel} proxy or null. */ @@ -86,26 +87,26 @@ public static DeploymentTypeModel instantiate(final Package obj) { } /** - * Tries to instantiate a {@link DeploymentTypeModel} proxy from a {@link Package} stereotyped << DeploymentTypeModel >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link DeploymentTypeModel} proxy from a {@link Package} stereotyped << DeploymentTypeModel >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Package} * @return a {@link DeploymentTypeModel} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("b2b70b81-bb89-4c86-99bc-d506d2ed1de7") public static DeploymentTypeModel safeInstantiate(final Package obj) throws IllegalArgumentException { if (DeploymentTypeModel.canInstantiate(obj)) - return new DeploymentTypeModel(obj); + return new DeploymentTypeModel(obj); else - throw new IllegalArgumentException("DeploymentTypeModel: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("DeploymentTypeModel: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'communications' role.

* Role description: * null - * */ @objid ("c9b6e901-418b-4e2c-a6d9-36a69ed29438") public void addCommunications(final Communication obj) { @@ -121,7 +122,6 @@ public void addCommunications(final Communication obj) { * Add a value to the 'containers' role.

* Role description: * null - * */ @objid ("7b5e038d-5f33-410f-89d1-ceb1b9bdeadf") public void addContainers(final Container obj) { @@ -133,7 +133,6 @@ public void addContainers(final Container obj) { * Add a value to the 'hostings' role.

* Role description: * null - * */ @objid ("d90d58ed-7458-4380-982b-2afc77456595") public void addHostings(final Hosting obj) { @@ -149,7 +148,6 @@ public void addHostings(final Hosting obj) { * Add a value to the 'locationCouplings' role.

* Role description: * null - * */ @objid ("d2ddeca6-14d6-4f67-905d-f1e76c172962") public void addLocationCouplings(final LocationCoupling obj) { @@ -165,7 +163,6 @@ public void addLocationCouplings(final LocationCoupling obj) { * Add a value to the 'paases' role.

* Role description: * null - * */ @objid ("da0e0115-7aa2-498e-b5da-613a39d45a73") public void addPaases(final PaaS obj) { @@ -177,7 +174,6 @@ public void addPaases(final PaaS obj) { * Add a value to the 'requirementSets' role.

* Role description: * null - * */ @objid ("742e7230-7985-483f-8a39-d913a7d0bfaa") public void addRequirementSets(final RequirementSet obj) { @@ -189,7 +185,6 @@ public void addRequirementSets(final RequirementSet obj) { * Add a value to the 'softwareComponents' role.

* Role description: * null - * */ @objid ("3f74bdd4-e000-4f44-a85a-e6a534b2d1e8") public void addSoftwareComponents(final SoftwareComponent obj) { @@ -201,7 +196,6 @@ public void addSoftwareComponents(final SoftwareComponent obj) { * Add a value to the 'vms' role.

* Role description: * null - * */ @objid ("793302d0-7e9c-4c8b-b3ed-93469c6f217a") public void addVms(final VM obj) { @@ -229,7 +223,6 @@ public boolean equals(final Object obj) { * Get the values of the 'communications' role.

* Role description: * null - * */ @objid ("fbbb4897-74ad-4f4d-98ad-314668b521eb") public List getCommunications() { @@ -248,20 +241,20 @@ public List getCommunications() { * Get the values of the 'containers' role.

* Role description: * null - * */ @objid ("ab36f4da-6577-4528-a7cd-f1ef5a088825") public List getContainers() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (Container.canInstantiate(mObj)) - results.add((Container)CamelDesignerProxyFactory.instantiate(mObj, Container.STEREOTYPE_NAME)); - } + if (Container.canInstantiate(mObj)) + results.add((Container)CamelDesignerProxyFactory.instantiate(mObj, Container.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } /** - * Get the underlying {@link Package}. + * Get the underlying {@link Package}. + * * @return the Package represented by this proxy, never null. */ @objid ("9e49f089-3812-48e4-91c0-dbc2242ee8b1") @@ -274,7 +267,6 @@ public Package getElement() { * Get the value of the 'globalRequirementSet' role.

* Role description: * null - * */ @objid ("b218bef1-d5d8-47b0-884b-aa1fcc80c6ea") public RequirementSet getGlobalRequirementSet() { @@ -292,7 +284,6 @@ public RequirementSet getGlobalRequirementSet() { * Get the values of the 'hostings' role.

* Role description: * null - * */ @objid ("09a707ce-e089-455f-9570-d28c64c89f19") public List getHostings() { @@ -311,7 +302,6 @@ public List getHostings() { * Get the values of the 'locationCouplings' role.

* Role description: * null - * */ @objid ("1c6479b3-96b7-4539-a34d-03b2115e9e85") public List getLocationCouplings() { @@ -330,15 +320,14 @@ public List getLocationCouplings() { * Get the values of the 'paases' role.

* Role description: * null - * */ @objid ("635f12b0-b282-4724-9e5d-6e0835839d0d") public List getPaases() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (PaaS.canInstantiate(mObj)) - results.add((PaaS)CamelDesignerProxyFactory.instantiate(mObj, PaaS.STEREOTYPE_NAME)); - } + if (PaaS.canInstantiate(mObj)) + results.add((PaaS)CamelDesignerProxyFactory.instantiate(mObj, PaaS.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -346,15 +335,14 @@ public List getPaases() { * Get the values of the 'requirementSets' role.

* Role description: * null - * */ @objid ("b04dd661-7780-4713-a9b9-d511b6c9aaee") public List getRequirementSets() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (RequirementSet.canInstantiate(mObj)) - results.add((RequirementSet)CamelDesignerProxyFactory.instantiate(mObj, RequirementSet.STEREOTYPE_NAME)); - } + if (RequirementSet.canInstantiate(mObj)) + results.add((RequirementSet)CamelDesignerProxyFactory.instantiate(mObj, RequirementSet.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -362,17 +350,16 @@ public List getRequirementSets() { * Get the values of the 'softwareComponents' role.

* Role description: * null - * */ @objid ("29e6214a-0bbf-4706-938b-46e928449bcf") public List getSoftwareComponents() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (Sensor.canInstantiate(mObj)) - results.add((Sensor)CamelDesignerProxyFactory.instantiate(mObj, Sensor.STEREOTYPE_NAME)); - if (SoftwareComponent.canInstantiate(mObj)) - results.add((SoftwareComponent)CamelDesignerProxyFactory.instantiate(mObj, SoftwareComponent.STEREOTYPE_NAME)); - } + if (Sensor.canInstantiate(mObj)) + results.add((Sensor)CamelDesignerProxyFactory.instantiate(mObj, Sensor.STEREOTYPE_NAME)); + if (SoftwareComponent.canInstantiate(mObj)) + results.add((SoftwareComponent)CamelDesignerProxyFactory.instantiate(mObj, SoftwareComponent.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -380,15 +367,14 @@ public List getSoftwareComponents() { * Get the values of the 'vms' role.

* Role description: * null - * */ @objid ("ace8f89a-a382-4760-9f65-49ddefc3c5c2") public List getVms() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (VM.canInstantiate(mObj)) - results.add((VM)CamelDesignerProxyFactory.instantiate(mObj, VM.STEREOTYPE_NAME)); - } + if (VM.canInstantiate(mObj)) + results.add((VM)CamelDesignerProxyFactory.instantiate(mObj, VM.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -402,7 +388,6 @@ public int hashCode() { * Remove a value from the 'communications' role.

* Role description: * null - * */ @objid ("e4f2bf5a-e763-4547-be39-2da8fc447648") public boolean removeCommunications(final Communication obj) { @@ -422,7 +407,6 @@ public boolean removeCommunications(final Communication obj) { * Remove a value from the 'containers' role.

* Role description: * null - * */ @objid ("32822151-497d-4830-a2e1-0b5a9ee9483d") public boolean removeContainers(final Container obj) { @@ -433,7 +417,6 @@ public boolean removeContainers(final Container obj) { * Remove a value from the 'hostings' role.

* Role description: * null - * */ @objid ("31092ce6-6a19-48a5-ada2-26d5165c47d8") public boolean removeHostings(final Hosting obj) { @@ -453,7 +436,6 @@ public boolean removeHostings(final Hosting obj) { * Remove a value from the 'locationCouplings' role.

* Role description: * null - * */ @objid ("0a5fcea8-479e-466d-931e-2821f8d9555e") public boolean removeLocationCouplings(final LocationCoupling obj) { @@ -473,7 +455,6 @@ public boolean removeLocationCouplings(final LocationCoupling obj) { * Remove a value from the 'paases' role.

* Role description: * null - * */ @objid ("feba0ce4-e7e6-4641-83ed-ff7c69d5b805") public boolean removePaases(final PaaS obj) { @@ -484,7 +465,6 @@ public boolean removePaases(final PaaS obj) { * Remove a value from the 'requirementSets' role.

* Role description: * null - * */ @objid ("93f7bdc3-a219-43bd-a136-eebff8e62f6c") public boolean removeRequirementSets(final RequirementSet obj) { @@ -495,7 +475,6 @@ public boolean removeRequirementSets(final RequirementSet obj) { * Remove a value from the 'softwareComponents' role.

* Role description: * null - * */ @objid ("8ad949d0-1090-4b7f-9b3f-915e9d69f7d1") public boolean removeSoftwareComponents(final SoftwareComponent obj) { @@ -506,7 +485,6 @@ public boolean removeSoftwareComponents(final SoftwareComponent obj) { * Remove a value from the 'vms' role.

* Role description: * null - * */ @objid ("e37d6e1b-80db-4f05-ae22-60cf8e8cd103") public boolean removeVms(final VM obj) { @@ -517,7 +495,6 @@ public boolean removeVms(final VM obj) { * Set the value of the 'globalRequirementSet' role.

* Role description: * null - * */ @objid ("5e31bc86-3cd6-4926-9c07-46a82a2c567e") public void setGlobalRequirementSet(final RequirementSet obj) { @@ -579,11 +556,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/port/CommunicationPort.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/port/CommunicationPort.java index 6384d2ed..d6ef9057 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/port/CommunicationPort.java +++ b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/port/CommunicationPort.java @@ -74,9 +74,10 @@ public static CommunicationPort create() { } /** - * Tries to instantiate a {@link CommunicationPort} proxy from a {@link Port} stereotyped << CommunicationPort >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link CommunicationPort} proxy from a {@link Port} stereotyped << CommunicationPort >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Port * @return a {@link CommunicationPort} proxy or null. */ @@ -86,19 +87,20 @@ public static CommunicationPort instantiate(final Port obj) { } /** - * Tries to instantiate a {@link CommunicationPort} proxy from a {@link Port} stereotyped << CommunicationPort >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link CommunicationPort} proxy from a {@link Port} stereotyped << CommunicationPort >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Port} * @return a {@link CommunicationPort} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("2131f3b7-d0d9-4b24-9b4d-787c3ee8d174") public static CommunicationPort safeInstantiate(final Port obj) throws IllegalArgumentException { if (CommunicationPort.canInstantiate(obj)) - return new CommunicationPort(obj); + return new CommunicationPort(obj); else - throw new IllegalArgumentException("CommunicationPort: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("CommunicationPort: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("9c023824-c41d-4264-a56e-68296a2e5b9a") @@ -118,7 +120,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Port}. + * Get the underlying {@link Port}. + * * @return the Port represented by this proxy, never null. */ @objid ("9dcb6240-3993-4a0d-9db0-f6a0488fa2df") @@ -240,11 +243,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/port/HostingPort.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/port/HostingPort.java index 979ff46e..a26790cc 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/port/HostingPort.java +++ b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/port/HostingPort.java @@ -65,9 +65,10 @@ public static HostingPort create() { } /** - * Tries to instantiate a {@link HostingPort} proxy from a {@link Port} stereotyped << HostingPort >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link HostingPort} proxy from a {@link Port} stereotyped << HostingPort >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Port * @return a {@link HostingPort} proxy or null. */ @@ -77,19 +78,20 @@ public static HostingPort instantiate(final Port obj) { } /** - * Tries to instantiate a {@link HostingPort} proxy from a {@link Port} stereotyped << HostingPort >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link HostingPort} proxy from a {@link Port} stereotyped << HostingPort >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Port} * @return a {@link HostingPort} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("ff1fb459-5556-4c8a-9c34-8403ea5464bb") public static HostingPort safeInstantiate(final Port obj) throws IllegalArgumentException { if (HostingPort.canInstantiate(obj)) - return new HostingPort(obj); + return new HostingPort(obj); else - throw new IllegalArgumentException("HostingPort: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("HostingPort: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("0fb694c6-02f5-4564-b90a-c62b3af38c57") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Port}. + * Get the underlying {@link Port}. + * * @return the Port represented by this proxy, never null. */ @objid ("57961d29-6099-4706-995c-bbb540255d3f") @@ -156,11 +159,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/ApplicationMeasurement.java b/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/ApplicationMeasurement.java index 440503a1..a25daecf 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/ApplicationMeasurement.java +++ b/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/ApplicationMeasurement.java @@ -64,9 +64,10 @@ public static ApplicationMeasurement create() { } /** - * Tries to instantiate a {@link ApplicationMeasurement} proxy from a {@link Class} stereotyped << ApplicationMeasurement >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ApplicationMeasurement} proxy from a {@link Class} stereotyped << ApplicationMeasurement >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link ApplicationMeasurement} proxy or null. */ @@ -76,19 +77,20 @@ public static ApplicationMeasurement instantiate(final Class obj) { } /** - * Tries to instantiate a {@link ApplicationMeasurement} proxy from a {@link Class} stereotyped << ApplicationMeasurement >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ApplicationMeasurement} proxy from a {@link Class} stereotyped << ApplicationMeasurement >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link ApplicationMeasurement} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("c9bad8e7-f1ae-4174-9d34-de71d30d3d9f") public static ApplicationMeasurement safeInstantiate(final Class obj) throws IllegalArgumentException { if (ApplicationMeasurement.canInstantiate(obj)) - return new ApplicationMeasurement(obj); + return new ApplicationMeasurement(obj); else - throw new IllegalArgumentException("ApplicationMeasurement: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("ApplicationMeasurement: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("c6dde293-9e6a-46c6-84c3-325187271242") @@ -108,7 +110,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("0b140f54-9a46-4a5b-95ed-a037c3c2227f") @@ -155,11 +158,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/Cause.java b/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/Cause.java index 5d99a6ef..e4b96808 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/Cause.java +++ b/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/Cause.java @@ -69,9 +69,10 @@ public static Cause create() { } /** - * Tries to instantiate a {@link Cause} proxy from a {@link Class} stereotyped << Cause >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Cause} proxy from a {@link Class} stereotyped << Cause >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link Cause} proxy or null. */ @@ -81,26 +82,26 @@ public static Cause instantiate(final Class obj) { } /** - * Tries to instantiate a {@link Cause} proxy from a {@link Class} stereotyped << Cause >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Cause} proxy from a {@link Class} stereotyped << Cause >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link Cause} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("ac072484-70ac-4a04-9b0b-9c79c1d81e48") public static Cause safeInstantiate(final Class obj) throws IllegalArgumentException { if (Cause.canInstantiate(obj)) - return new Cause(obj); + return new Cause(obj); else - throw new IllegalArgumentException("Cause: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("Cause: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'eventInstances' role.

* Role description: * null - * */ @objid ("d7d9d124-1f8e-48b1-ab51-b5e0a3fefd8a") public void addEventInstances(final EventInstance obj) { @@ -125,7 +126,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("f48c890a-d46e-4de7-9de3-38fe6aa38cd1") @@ -138,17 +140,16 @@ public Class getElement() { * Get the values of the 'eventInstances' role.

* Role description: * null - * */ @objid ("467dfe60-5711-4f91-871d-e3628e8d49fc") public List getEventInstances() { List results = new ArrayList<>(); for (Instance mObj : ((Class) this.elt).getDeclared()){ - if (FunctionalEventInstance.canInstantiate(mObj)) - results.add((FunctionalEventInstance)CamelDesignerProxyFactory.instantiate(mObj, FunctionalEventInstance.STEREOTYPE_NAME)); - if (NonFunctionalEventInstance.canInstantiate(mObj)) - results.add((NonFunctionalEventInstance)CamelDesignerProxyFactory.instantiate(mObj, NonFunctionalEventInstance.STEREOTYPE_NAME)); - } + if (FunctionalEventInstance.canInstantiate(mObj)) + results.add((FunctionalEventInstance)CamelDesignerProxyFactory.instantiate(mObj, FunctionalEventInstance.STEREOTYPE_NAME)); + if (NonFunctionalEventInstance.canInstantiate(mObj)) + results.add((NonFunctionalEventInstance)CamelDesignerProxyFactory.instantiate(mObj, NonFunctionalEventInstance.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -162,7 +163,6 @@ public int hashCode() { * Remove a value from the 'eventInstances' role.

* Role description: * null - * */ @objid ("918dec25-5c5f-4f87-8686-f69e2e32f53e") public boolean removeEventInstances(final EventInstance obj) { @@ -201,11 +201,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/CommunicationMeasurement.java b/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/CommunicationMeasurement.java index d1b0a58a..a821b0a7 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/CommunicationMeasurement.java +++ b/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/CommunicationMeasurement.java @@ -66,9 +66,10 @@ public static CommunicationMeasurement create() { } /** - * Tries to instantiate a {@link CommunicationMeasurement} proxy from a {@link Class} stereotyped << CommunicationMeasurement >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link CommunicationMeasurement} proxy from a {@link Class} stereotyped << CommunicationMeasurement >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link CommunicationMeasurement} proxy or null. */ @@ -78,19 +79,20 @@ public static CommunicationMeasurement instantiate(final Class obj) { } /** - * Tries to instantiate a {@link CommunicationMeasurement} proxy from a {@link Class} stereotyped << CommunicationMeasurement >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link CommunicationMeasurement} proxy from a {@link Class} stereotyped << CommunicationMeasurement >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link CommunicationMeasurement} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("a5613467-c3e0-4912-9336-1fa5589559ac") public static CommunicationMeasurement safeInstantiate(final Class obj) throws IllegalArgumentException { if (CommunicationMeasurement.canInstantiate(obj)) - return new CommunicationMeasurement(obj); + return new CommunicationMeasurement(obj); else - throw new IllegalArgumentException("CommunicationMeasurement: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("CommunicationMeasurement: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("d6d05eaf-a688-4e54-a8c8-4d763fb00d4b") @@ -110,7 +112,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("83253fe3-e688-4d9b-8643-2f589678f703") @@ -123,7 +126,6 @@ public Class getElement() { * Get the value of the 'sourceVM' role.

* Role description: * null - * */ @objid ("26a32bf3-63ab-42c2-8e93-aa4b3725ee94") public VM getSourceVM() { @@ -141,7 +143,6 @@ public VM getSourceVM() { * Get the value of the 'sourceVMInstance' role.

* Role description: * null - * */ @objid ("dd957941-a535-427a-ab2b-c1b48a9a5478") public VMInstance getSourceVMInstance() { @@ -159,7 +160,6 @@ public VMInstance getSourceVMInstance() { * Get the value of the 'targetVM' role.

* Role description: * null - * */ @objid ("0e1c10e3-6868-434c-a627-071f1ea512cd") public VM getTargetVM() { @@ -177,7 +177,6 @@ public VM getTargetVM() { * Get the value of the 'targetVMInstance' role.

* Role description: * null - * */ @objid ("f3c9bb72-289d-45d1-92ae-e0a00b480f07") public VMInstance getTargetVMInstance() { @@ -201,7 +200,6 @@ public int hashCode() { * Set the value of the 'sourceVM' role.

* Role description: * null - * */ @objid ("8b6243ba-0fc5-4b95-840c-d1eec00da4cb") public void setSourceVM(final VM obj) { @@ -227,7 +225,6 @@ public void setSourceVM(final VM obj) { * Set the value of the 'sourceVMInstance' role.

* Role description: * null - * */ @objid ("9cd5a30a-731b-4aea-80cf-f7daed31f102") public void setSourceVMInstance(final VMInstance obj) { @@ -253,7 +250,6 @@ public void setSourceVMInstance(final VMInstance obj) { * Set the value of the 'targetVM' role.

* Role description: * null - * */ @objid ("e1057403-9ab2-4b86-8184-a49615627074") public void setTargetVM(final VM obj) { @@ -279,7 +275,6 @@ public void setTargetVM(final VM obj) { * Set the value of the 'targetVMInstance' role.

* Role description: * null - * */ @objid ("87af96db-da9b-4ed8-9fb5-05f1bcd9b326") public void setTargetVMInstance(final VMInstance obj) { @@ -333,11 +328,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/ContainerMeasurement.java b/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/ContainerMeasurement.java index d51d08d1..fc037a4f 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/ContainerMeasurement.java +++ b/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/ContainerMeasurement.java @@ -66,9 +66,10 @@ public static ContainerMeasurement create() { } /** - * Tries to instantiate a {@link ContainerMeasurement} proxy from a {@link Class} stereotyped << ContainerMeasurement >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ContainerMeasurement} proxy from a {@link Class} stereotyped << ContainerMeasurement >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link ContainerMeasurement} proxy or null. */ @@ -78,19 +79,20 @@ public static ContainerMeasurement instantiate(final Class obj) { } /** - * Tries to instantiate a {@link ContainerMeasurement} proxy from a {@link Class} stereotyped << ContainerMeasurement >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ContainerMeasurement} proxy from a {@link Class} stereotyped << ContainerMeasurement >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link ContainerMeasurement} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("3c75afc4-2224-4797-9e18-ef5579a4af1f") public static ContainerMeasurement safeInstantiate(final Class obj) throws IllegalArgumentException { if (ContainerMeasurement.canInstantiate(obj)) - return new ContainerMeasurement(obj); + return new ContainerMeasurement(obj); else - throw new IllegalArgumentException("ContainerMeasurement: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("ContainerMeasurement: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("ac6d1c31-441a-4cc6-8078-0f21213b5b65") @@ -113,7 +115,6 @@ public boolean equals(final Object obj) { * Get the value of the 'container' role.

* Role description: * null - * */ @objid ("5ffa6f9e-310e-482b-91a9-8bc41554f240") public Container getContainer() { @@ -131,7 +132,6 @@ public Container getContainer() { * Get the value of the 'containerInstance' role.

* Role description: * null - * */ @objid ("b7ded167-1a4b-403a-ac0b-c1a1e6cb7e05") public ContainerInstance getContainerInstance() { @@ -146,7 +146,8 @@ public ContainerInstance getContainerInstance() { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("c168e8d2-f061-4303-8f95-eda4e7675cc6") @@ -165,7 +166,6 @@ public int hashCode() { * Set the value of the 'container' role.

* Role description: * null - * */ @objid ("e88ef893-21ae-4d18-9518-fba0cd9530ee") public void setContainer(final Container obj) { @@ -191,7 +191,6 @@ public void setContainer(final Container obj) { * Set the value of the 'containerInstance' role.

* Role description: * null - * */ @objid ("fa8b09b1-abb9-4517-84b6-db98e4b319c1") public void setContainerInstance(final ContainerInstance obj) { @@ -245,11 +244,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/DataMeasurement.java b/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/DataMeasurement.java index bd20c53c..5b26eb01 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/DataMeasurement.java +++ b/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/DataMeasurement.java @@ -67,9 +67,10 @@ public static DataMeasurement create() { } /** - * Tries to instantiate a {@link DataMeasurement} proxy from a {@link Class} stereotyped << DataMeasurement >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link DataMeasurement} proxy from a {@link Class} stereotyped << DataMeasurement >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link DataMeasurement} proxy or null. */ @@ -79,19 +80,20 @@ public static DataMeasurement instantiate(final Class obj) { } /** - * Tries to instantiate a {@link DataMeasurement} proxy from a {@link Class} stereotyped << DataMeasurement >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link DataMeasurement} proxy from a {@link Class} stereotyped << DataMeasurement >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link DataMeasurement} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("90265947-e1cb-4dcc-a2f3-d861992344fb") public static DataMeasurement safeInstantiate(final Class obj) throws IllegalArgumentException { if (DataMeasurement.canInstantiate(obj)) - return new DataMeasurement(obj); + return new DataMeasurement(obj); else - throw new IllegalArgumentException("DataMeasurement: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("DataMeasurement: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("7d1bf1c6-abef-435e-96db-679d4dc2ad07") @@ -114,7 +116,6 @@ public boolean equals(final Object obj) { * Get the value of the 'data' role.

* Role description: * null - * */ @objid ("f9311e3c-0aaa-4cb4-8738-843b5dd12e04") public Data getData() { @@ -132,7 +133,6 @@ public Data getData() { * Get the value of the 'dataInstance' role.

* Role description: * null - * */ @objid ("4ab3ce3a-4510-4459-86dc-083be2f2c6de") public DataInstance getDataInstance() { @@ -149,7 +149,8 @@ public DataInstance getDataInstance() { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("afa72234-ff74-4a30-b0f4-663e67a14c96") @@ -168,7 +169,6 @@ public int hashCode() { * Set the value of the 'data' role.

* Role description: * null - * */ @objid ("e194416c-4718-4d9d-8a3d-35a4dded5e1a") public void setData(final Data obj) { @@ -194,7 +194,6 @@ public void setData(final Data obj) { * Set the value of the 'dataInstance' role.

* Role description: * null - * */ @objid ("b054f6da-5fa3-440c-8237-e688dc9b0d5d") public void setDataInstance(final DataInstance obj) { @@ -248,11 +247,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/HistoryInfo.java b/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/HistoryInfo.java index 09e6618a..81030ff2 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/HistoryInfo.java +++ b/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/HistoryInfo.java @@ -243,9 +243,10 @@ public static HistoryInfo create() { } /** - * Tries to instantiate a {@link HistoryInfo} proxy from a {@link Class} stereotyped << HistoryInfo >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link HistoryInfo} proxy from a {@link Class} stereotyped << HistoryInfo >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link HistoryInfo} proxy or null. */ @@ -255,19 +256,20 @@ public static HistoryInfo instantiate(final Class obj) { } /** - * Tries to instantiate a {@link HistoryInfo} proxy from a {@link Class} stereotyped << HistoryInfo >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link HistoryInfo} proxy from a {@link Class} stereotyped << HistoryInfo >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link HistoryInfo} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("733e1e93-24b0-43e5-9eb0-d4aa5d01c765") public static HistoryInfo safeInstantiate(final Class obj) throws IllegalArgumentException { if (HistoryInfo.canInstantiate(obj)) - return new HistoryInfo(obj); + return new HistoryInfo(obj); else - throw new IllegalArgumentException("HistoryInfo: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("HistoryInfo: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("e467ba14-0693-4ae6-956e-eeeffa171110") @@ -290,7 +292,6 @@ public boolean equals(final Object obj) { * Get the value of the 'action' role.

* Role description: * null - * */ @objid ("04c24647-b27e-4408-8e89-fb2d1d545e7f") public MmsObject getAction() { @@ -311,7 +312,8 @@ public MmsObject getAction() { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("bcb87729-8402-4806-a198-c45655131023") @@ -344,7 +346,6 @@ public String getObject() { * Get the value of the 'objectRef' role.

* Role description: * null - * */ @objid ("df8fd165-5ff4-4a29-ab52-7c1c84dcbcf1") public CamelElement getObjectRef() { @@ -710,7 +711,6 @@ public String getStartTime() { * Get the value of the 'subject' role.

* Role description: * null - * */ @objid ("a9dccf60-37f8-4281-b31c-dbc2d2b73569") public MmsObject getSubject() { @@ -740,7 +740,6 @@ public int hashCode() { * Set the value of the 'action' role.

* Role description: * null - * */ @objid ("5ce2e370-618c-4ce0-a5ad-91e80b508ca1") public void setAction(final MmsObject obj) { @@ -786,7 +785,6 @@ public void setObject(final String value) { * Set the value of the 'objectRef' role.

* Role description: * null - * */ @objid ("383300e3-dc35-4e0e-86d1-63d97a837041") public void setObjectRef(final CamelElement obj) { @@ -822,7 +820,6 @@ public void setStartTime(final String value) { * Set the value of the 'subject' role.

* Role description: * null - * */ @objid ("b112b3e7-78e3-434d-88d2-817a8780fd68") public void setSubject(final MmsObject obj) { @@ -888,11 +885,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/HistoryRecord.java b/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/HistoryRecord.java index eb417a2c..9048e0c3 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/HistoryRecord.java +++ b/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/HistoryRecord.java @@ -17,8 +17,6 @@ import fr.softeam.cameldesigner.api.camelcore.standard.class_.FeatureClass; import fr.softeam.cameldesigner.api.datamodel.standard.package_.DataInstanceModel; import fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.package_.DeploymentInstanceModel; -import fr.softeam.cameldesigner.api.executionmodel.standard.class_.Cause; -import fr.softeam.cameldesigner.api.executionmodel.standard.class_.HistoryInfo; import fr.softeam.cameldesigner.api.executionmodel.standard.class_.RuleTrigger; import fr.softeam.cameldesigner.api.executionmodel.standard.class_.SLOViolation; import fr.softeam.cameldesigner.api.metadatamodel.infrastructure.modelelement.MmsObject; @@ -83,9 +81,10 @@ public static HistoryRecord create() { } /** - * Tries to instantiate a {@link HistoryRecord} proxy from a {@link Class} stereotyped << HistoryRecord >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link HistoryRecord} proxy from a {@link Class} stereotyped << HistoryRecord >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link HistoryRecord} proxy or null. */ @@ -95,26 +94,26 @@ public static HistoryRecord instantiate(final Class obj) { } /** - * Tries to instantiate a {@link HistoryRecord} proxy from a {@link Class} stereotyped << HistoryRecord >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link HistoryRecord} proxy from a {@link Class} stereotyped << HistoryRecord >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link HistoryRecord} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("be6ec94c-6fb8-4f04-8f15-95a3f0f90a77") public static HistoryRecord safeInstantiate(final Class obj) throws IllegalArgumentException { if (HistoryRecord.canInstantiate(obj)) - return new HistoryRecord(obj); + return new HistoryRecord(obj); else - throw new IllegalArgumentException("HistoryRecord: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("HistoryRecord: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'infos' role.

* Role description: * null - * */ @objid ("d55c9038-9e3a-4625-af53-5e4ac02d3a9c") public void addInfos(final HistoryInfo obj) { @@ -142,7 +141,6 @@ public boolean equals(final Object obj) { * Get the value of the 'cause' role.

* Role description: * null - * */ @objid ("187e8b09-d8b1-466f-930c-17ea4cf04ef0") public Cause getCause() { @@ -161,7 +159,8 @@ public Cause getCause() { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("199b40d7-1d7f-4251-a14d-f96c54bd8fa8") @@ -184,7 +183,6 @@ public String getEndTime() { * Get the value of the 'fromDataInstanceModel' role.

* Role description: * null - * */ @objid ("f9a90c93-5632-4204-abc6-d814cd8b854d") public DataInstanceModel getFromDataInstanceModel() { @@ -202,7 +200,6 @@ public DataInstanceModel getFromDataInstanceModel() { * Get the value of the 'fromDeploymentInstanceModel' role.

* Role description: * null - * */ @objid ("052d6b01-b0e7-45d4-bfe8-308217dfa926") public DeploymentInstanceModel getFromDeploymentInstanceModel() { @@ -220,15 +217,14 @@ public DeploymentInstanceModel getFromDeploymentInstanceModel() { * Get the values of the 'infos' role.

* Role description: * null - * */ @objid ("878e5382-3cb0-4d78-bb0d-507544a2e650") public List getInfos() { List results = new ArrayList<>(); for (ModelTree mObj : ((Class) this.elt).getOwnedElement()){ - if (HistoryInfo.canInstantiate(mObj)) - results.add((HistoryInfo)CamelDesignerProxyFactory.instantiate(mObj, HistoryInfo.STEREOTYPE_NAME)); - } + if (HistoryInfo.canInstantiate(mObj)) + results.add((HistoryInfo)CamelDesignerProxyFactory.instantiate(mObj, HistoryInfo.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -246,7 +242,6 @@ public String getStartTime() { * Get the value of the 'toDataInstanceModel' role.

* Role description: * null - * */ @objid ("7e3615b4-39bb-4a79-8e66-245cc851e2f4") public DataInstanceModel getToDataInstanceModel() { @@ -264,7 +259,6 @@ public DataInstanceModel getToDataInstanceModel() { * Get the value of the 'toDeploymentInstanceModel' role.

* Role description: * null - * */ @objid ("dccdf486-41e8-470a-aeff-467baa3ed2b1") public DeploymentInstanceModel getToDeploymentInstanceModel() { @@ -282,7 +276,6 @@ public DeploymentInstanceModel getToDeploymentInstanceModel() { * Get the value of the 'type' role.

* Role description: * null - * */ @objid ("c2e44506-d3d7-4d21-9e2c-7b1cf6f07341") public MmsObject getType() { @@ -312,7 +305,6 @@ public int hashCode() { * Remove a value from the 'infos' role.

* Role description: * null - * */ @objid ("690c9838-6c01-4d74-8253-2047b17559ac") public boolean removeInfos(final HistoryInfo obj) { @@ -323,7 +315,6 @@ public boolean removeInfos(final HistoryInfo obj) { * Set the value of the 'cause' role.

* Role description: * null - * */ @objid ("334a6184-0ec3-41f9-a194-125e351ae168") public void setCause(final Cause obj) { @@ -359,7 +350,6 @@ public void setEndTime(final String value) { * Set the value of the 'fromDataInstanceModel' role.

* Role description: * null - * */ @objid ("be8dc91e-51bb-448e-94f1-d3755f14e634") public void setFromDataInstanceModel(final DataInstanceModel obj) { @@ -385,7 +375,6 @@ public void setFromDataInstanceModel(final DataInstanceModel obj) { * Set the value of the 'fromDeploymentInstanceModel' role.

* Role description: * null - * */ @objid ("5f2af83d-c746-4fdc-ae4d-15b3a37c0e7b") public void setFromDeploymentInstanceModel(final DeploymentInstanceModel obj) { @@ -421,7 +410,6 @@ public void setStartTime(final String value) { * Set the value of the 'toDataInstanceModel' role.

* Role description: * null - * */ @objid ("dd148f1a-54e8-47d1-9326-3c0ea646e8e8") public void setToDataInstanceModel(final DataInstanceModel obj) { @@ -447,7 +435,6 @@ public void setToDataInstanceModel(final DataInstanceModel obj) { * Set the value of the 'toDeploymentInstanceModel' role.

* Role description: * null - * */ @objid ("a2db28f3-e90d-4a05-ad29-6f189f114638") public void setToDeploymentInstanceModel(final DeploymentInstanceModel obj) { @@ -473,7 +460,6 @@ public void setToDeploymentInstanceModel(final DeploymentInstanceModel obj) { * Set the value of the 'type' role.

* Role description: * null - * */ @objid ("dceef23e-33d1-41ee-bea1-3e539df230b6") public void setType(final MmsObject obj) { @@ -535,11 +521,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/Measurement.java b/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/Measurement.java index 623831d9..7571c35a 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/Measurement.java +++ b/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/Measurement.java @@ -80,7 +80,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("507c4f08-bf0b-4183-ab06-be2ca010c6b3") @@ -93,7 +94,6 @@ public Class getElement() { * Get the value of the 'eventInstance' role.

* Role description: * null - * */ @objid ("d8a7b303-691b-4ff2-b957-292734582388") public EventInstance getEventInstance() { @@ -123,7 +123,6 @@ public String getMeasurementTime() { * Get the value of the 'metricInstance' role.

* Role description: * null - * */ @objid ("cb5f7074-ee3a-43b5-9bf2-b8c87b66d0cb") public MetricInstance getMetricInstance() { @@ -159,7 +158,6 @@ public int hashCode() { * Set the value of the 'eventInstance' role.

* Role description: * null - * */ @objid ("4f0f0890-f284-4e24-bd1b-6fa860f24425") public void setEventInstance(final EventInstance obj) { @@ -195,7 +193,6 @@ public void setMeasurementTime(final String value) { * Set the value of the 'metricInstance' role.

* Role description: * null - * */ @objid ("7050b24c-2bf6-4796-af49-e95e85f958bd") public void setMetricInstance(final MetricInstance obj) { @@ -267,11 +264,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/PaaSMeasurement.java b/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/PaaSMeasurement.java index 4e877157..5555a86d 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/PaaSMeasurement.java +++ b/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/PaaSMeasurement.java @@ -66,9 +66,10 @@ public static PaaSMeasurement create() { } /** - * Tries to instantiate a {@link PaaSMeasurement} proxy from a {@link Class} stereotyped << PaaSMeasurement >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link PaaSMeasurement} proxy from a {@link Class} stereotyped << PaaSMeasurement >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link PaaSMeasurement} proxy or null. */ @@ -78,19 +79,20 @@ public static PaaSMeasurement instantiate(final Class obj) { } /** - * Tries to instantiate a {@link PaaSMeasurement} proxy from a {@link Class} stereotyped << PaaSMeasurement >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link PaaSMeasurement} proxy from a {@link Class} stereotyped << PaaSMeasurement >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link PaaSMeasurement} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("f7d068bb-a068-4ed3-a3f0-dfca99ad2b68") public static PaaSMeasurement safeInstantiate(final Class obj) throws IllegalArgumentException { if (PaaSMeasurement.canInstantiate(obj)) - return new PaaSMeasurement(obj); + return new PaaSMeasurement(obj); else - throw new IllegalArgumentException("PaaSMeasurement: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("PaaSMeasurement: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("6c7629ea-6e5d-4685-85fa-7363badf3442") @@ -110,7 +112,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("aa23457e-e611-4009-b03a-8cff33116e6a") @@ -123,7 +126,6 @@ public Class getElement() { * Get the value of the 'paaS' role.

* Role description: * null - * */ @objid ("2885d4be-65ed-4209-ad31-bfda0aec5f09") public PaaS getPaaS() { @@ -141,7 +143,6 @@ public PaaS getPaaS() { * Get the value of the 'paaSInstance' role.

* Role description: * null - * */ @objid ("691fea1f-ac22-4352-8c3c-b20add98730b") public PaaSInstance getPaaSInstance() { @@ -165,7 +166,6 @@ public int hashCode() { * Set the value of the 'paaS' role.

* Role description: * null - * */ @objid ("58455251-4168-4a6c-9453-96722340d943") public void setPaaS(final PaaS obj) { @@ -191,7 +191,6 @@ public void setPaaS(final PaaS obj) { * Set the value of the 'paaSInstance' role.

* Role description: * null - * */ @objid ("8efd5383-7008-4d9d-9130-2a5acbcb856f") public void setPaaSInstance(final PaaSInstance obj) { @@ -245,11 +244,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/RuleTrigger.java b/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/RuleTrigger.java index 93860ebb..813f9e7a 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/RuleTrigger.java +++ b/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/RuleTrigger.java @@ -68,9 +68,10 @@ public static RuleTrigger create() { } /** - * Tries to instantiate a {@link RuleTrigger} proxy from a {@link Class} stereotyped << RuleTrigger >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link RuleTrigger} proxy from a {@link Class} stereotyped << RuleTrigger >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link RuleTrigger} proxy or null. */ @@ -80,19 +81,20 @@ public static RuleTrigger instantiate(final Class obj) { } /** - * Tries to instantiate a {@link RuleTrigger} proxy from a {@link Class} stereotyped << RuleTrigger >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link RuleTrigger} proxy from a {@link Class} stereotyped << RuleTrigger >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link RuleTrigger} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("63bf73f9-2391-48e1-a66a-77773d938aeb") public static RuleTrigger safeInstantiate(final Class obj) throws IllegalArgumentException { if (RuleTrigger.canInstantiate(obj)) - return new RuleTrigger(obj); + return new RuleTrigger(obj); else - throw new IllegalArgumentException("RuleTrigger: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("RuleTrigger: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("b7d3ad9b-b268-4acf-be6f-01910a11675b") @@ -112,7 +114,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("be0e5728-b8f5-4bc2-a6ef-1bd9783a57df") @@ -125,7 +128,6 @@ public Class getElement() { * Get the value of the 'scalabilityRule' role.

* Role description: * null - * */ @objid ("3b91b674-e5e2-46dd-bb76-52f438489ac1") public ScalabilityRule getScalabilityRule() { @@ -159,7 +161,6 @@ public int hashCode() { * Set the value of the 'scalabilityRule' role.

* Role description: * null - * */ @objid ("79c2882c-910f-4c7c-ad7c-fe01be1e5734") public void setScalabilityRule(final ScalabilityRule obj) { @@ -227,11 +228,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/SLOViolation.java b/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/SLOViolation.java index 6116821c..4c141c7a 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/SLOViolation.java +++ b/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/SLOViolation.java @@ -18,7 +18,6 @@ import fr.softeam.cameldesigner.api.executionmodel.standard.class_.CommunicationMeasurement; import fr.softeam.cameldesigner.api.executionmodel.standard.class_.ContainerMeasurement; import fr.softeam.cameldesigner.api.executionmodel.standard.class_.DataMeasurement; -import fr.softeam.cameldesigner.api.executionmodel.standard.class_.Measurement; import fr.softeam.cameldesigner.api.executionmodel.standard.class_.PaaSMeasurement; import fr.softeam.cameldesigner.api.executionmodel.standard.class_.SoftwareComponentMeasurement; import fr.softeam.cameldesigner.api.executionmodel.standard.class_.VMMeasurement; @@ -77,9 +76,10 @@ public static SLOViolation create() { } /** - * Tries to instantiate a {@link SLOViolation} proxy from a {@link Class} stereotyped << SLOViolation >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link SLOViolation} proxy from a {@link Class} stereotyped << SLOViolation >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link SLOViolation} proxy or null. */ @@ -89,19 +89,20 @@ public static SLOViolation instantiate(final Class obj) { } /** - * Tries to instantiate a {@link SLOViolation} proxy from a {@link Class} stereotyped << SLOViolation >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link SLOViolation} proxy from a {@link Class} stereotyped << SLOViolation >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link SLOViolation} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("ff50697c-f16a-4fa3-a413-b6e7b0c9de34") public static SLOViolation safeInstantiate(final Class obj) throws IllegalArgumentException { if (SLOViolation.canInstantiate(obj)) - return new SLOViolation(obj); + return new SLOViolation(obj); else - throw new IllegalArgumentException("SLOViolation: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("SLOViolation: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("875b35ab-b207-43a3-b345-8e901cb8a6b3") @@ -131,7 +132,8 @@ public String getAssessmentTime() { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("a0929432-90c9-4342-ba58-613a0823ad87") @@ -144,7 +146,6 @@ public Class getElement() { * Get the value of the 'measurement' role.

* Role description: * null - * */ @objid ("1cd850a2-8ff6-4f03-96bd-1850f5411a81") public Measurement getMeasurement() { @@ -174,7 +175,6 @@ public Measurement getMeasurement() { * Get the value of the 'slo' role.

* Role description: * null - * */ @objid ("b2663d10-dc4c-453e-bb5c-36c7de70901b") public ServiceLevelObjective getSlo() { @@ -210,7 +210,6 @@ public void setAssessmentTime(final String value) { * Set the value of the 'measurement' role.

* Role description: * null - * */ @objid ("de20abe8-b216-4c4d-bac9-053d93a65dd9") public void setMeasurement(final Measurement obj) { @@ -236,7 +235,6 @@ public void setMeasurement(final Measurement obj) { * Set the value of the 'slo' role.

* Role description: * null - * */ @objid ("9b218bb6-138a-49e5-9472-6c4655745b03") public void setSlo(final ServiceLevelObjective obj) { @@ -294,11 +292,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/SoftwareComponentMeasurement.java b/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/SoftwareComponentMeasurement.java index b72dbfb8..fc9131ba 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/SoftwareComponentMeasurement.java +++ b/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/SoftwareComponentMeasurement.java @@ -67,9 +67,10 @@ public static SoftwareComponentMeasurement create() { } /** - * Tries to instantiate a {@link SoftwareComponentMeasurement} proxy from a {@link Class} stereotyped << SoftwareComponentMeasurement >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link SoftwareComponentMeasurement} proxy from a {@link Class} stereotyped << SoftwareComponentMeasurement >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link SoftwareComponentMeasurement} proxy or null. */ @@ -79,19 +80,20 @@ public static SoftwareComponentMeasurement instantiate(final Class obj) { } /** - * Tries to instantiate a {@link SoftwareComponentMeasurement} proxy from a {@link Class} stereotyped << SoftwareComponentMeasurement >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link SoftwareComponentMeasurement} proxy from a {@link Class} stereotyped << SoftwareComponentMeasurement >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link SoftwareComponentMeasurement} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("26113e5a-4f22-4f1c-96e7-6b757d611213") public static SoftwareComponentMeasurement safeInstantiate(final Class obj) throws IllegalArgumentException { if (SoftwareComponentMeasurement.canInstantiate(obj)) - return new SoftwareComponentMeasurement(obj); + return new SoftwareComponentMeasurement(obj); else - throw new IllegalArgumentException("SoftwareComponentMeasurement: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("SoftwareComponentMeasurement: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("a75bf8bd-2c69-400d-94df-4099cd4cba6c") @@ -111,7 +113,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("dba49bc7-1a15-4b74-8c1c-1583fa1d192e") @@ -124,7 +127,6 @@ public Class getElement() { * Get the value of the 'softwareComponent' role.

* Role description: * null - * */ @objid ("c6fe253a-ebb0-434a-97d1-90d3c1103a2e") public SoftwareComponent getSoftwareComponent() { @@ -144,7 +146,6 @@ public SoftwareComponent getSoftwareComponent() { * Get the value of the 'softwareComponentInstance' role.

* Role description: * null - * */ @objid ("16ce7047-761a-4288-a68e-6dd1b85a2146") public SoftwareComponentInstance getSoftwareComponentInstance() { @@ -168,7 +169,6 @@ public int hashCode() { * Set the value of the 'softwareComponent' role.

* Role description: * null - * */ @objid ("0586543c-0b3e-4cb1-9f33-c9985ed42dbc") public void setSoftwareComponent(final SoftwareComponent obj) { @@ -194,7 +194,6 @@ public void setSoftwareComponent(final SoftwareComponent obj) { * Set the value of the 'softwareComponentInstance' role.

* Role description: * null - * */ @objid ("1c36b0f7-9ba9-4438-a838-bf136dd9dcff") public void setSoftwareComponentInstance(final SoftwareComponentInstance obj) { @@ -248,11 +247,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/VMMeasurement.java b/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/VMMeasurement.java index 0be68d02..d698f387 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/VMMeasurement.java +++ b/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/VMMeasurement.java @@ -66,9 +66,10 @@ public static VMMeasurement create() { } /** - * Tries to instantiate a {@link VMMeasurement} proxy from a {@link Class} stereotyped << VMMeasurement >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link VMMeasurement} proxy from a {@link Class} stereotyped << VMMeasurement >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link VMMeasurement} proxy or null. */ @@ -78,19 +79,20 @@ public static VMMeasurement instantiate(final Class obj) { } /** - * Tries to instantiate a {@link VMMeasurement} proxy from a {@link Class} stereotyped << VMMeasurement >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link VMMeasurement} proxy from a {@link Class} stereotyped << VMMeasurement >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link VMMeasurement} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("41c8612b-2dcb-4549-805b-2c0b8bbd9fbe") public static VMMeasurement safeInstantiate(final Class obj) throws IllegalArgumentException { if (VMMeasurement.canInstantiate(obj)) - return new VMMeasurement(obj); + return new VMMeasurement(obj); else - throw new IllegalArgumentException("VMMeasurement: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("VMMeasurement: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("ddf427dd-0f60-4cb1-a3f4-0d837f81d657") @@ -110,7 +112,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("699fbebc-6a27-42b7-80b2-d0446f3583f4") @@ -123,7 +126,6 @@ public Class getElement() { * Get the value of the 'vm' role.

* Role description: * null - * */ @objid ("08a0e25f-95d4-4757-801f-e398606876cf") public VM getVm() { @@ -141,7 +143,6 @@ public VM getVm() { * Get the value of the 'vmInstance' role.

* Role description: * null - * */ @objid ("fe2d0869-c8e0-4ee7-a4d7-9d8b2de84e19") public VMInstance getVmInstance() { @@ -165,7 +166,6 @@ public int hashCode() { * Set the value of the 'vm' role.

* Role description: * null - * */ @objid ("1167dd0d-1c77-4200-8eac-ebe5426864d3") public void setVm(final VM obj) { @@ -191,7 +191,6 @@ public void setVm(final VM obj) { * Set the value of the 'vmInstance' role.

* Role description: * null - * */ @objid ("e78742cc-ce3f-4ac2-867b-4807cbe5e0cf") public void setVmInstance(final VMInstance obj) { @@ -245,11 +244,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/instance/ActionInstance.java b/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/instance/ActionInstance.java index 35cffb59..7a71d19b 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/instance/ActionInstance.java +++ b/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/instance/ActionInstance.java @@ -75,9 +75,10 @@ public static ActionInstance create() { } /** - * Tries to instantiate a {@link ActionInstance} proxy from a {@link Instance} stereotyped << ActionInstance >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ActionInstance} proxy from a {@link Instance} stereotyped << ActionInstance >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Instance * @return a {@link ActionInstance} proxy or null. */ @@ -87,19 +88,20 @@ public static ActionInstance instantiate(final Instance obj) { } /** - * Tries to instantiate a {@link ActionInstance} proxy from a {@link Instance} stereotyped << ActionInstance >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ActionInstance} proxy from a {@link Instance} stereotyped << ActionInstance >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Instance} * @return a {@link ActionInstance} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("c8001616-b98e-46ec-931c-3a364bc960a2") public static ActionInstance safeInstantiate(final Instance obj) throws IllegalArgumentException { if (ActionInstance.canInstantiate(obj)) - return new ActionInstance(obj); + return new ActionInstance(obj); else - throw new IllegalArgumentException("ActionInstance: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("ActionInstance: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("fed88c88-b3c1-4c38-81d7-7e70ce8af54e") @@ -119,7 +121,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Instance}. + * Get the underlying {@link Instance}. + * * @return the Instance represented by this proxy, never null. */ @objid ("c98bfabf-8550-4600-976b-03edc3cb22c5") @@ -251,11 +254,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/package_/ExecutionModel.java b/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/package_/ExecutionModel.java index 381860da..10cd3d11 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/package_/ExecutionModel.java +++ b/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/package_/ExecutionModel.java @@ -96,9 +96,10 @@ public static ExecutionModel create() { } /** - * Tries to instantiate a {@link ExecutionModel} proxy from a {@link Package} stereotyped << ExecutionModel >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ExecutionModel} proxy from a {@link Package} stereotyped << ExecutionModel >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Package * @return a {@link ExecutionModel} proxy or null. */ @@ -108,26 +109,26 @@ public static ExecutionModel instantiate(final Package obj) { } /** - * Tries to instantiate a {@link ExecutionModel} proxy from a {@link Package} stereotyped << ExecutionModel >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ExecutionModel} proxy from a {@link Package} stereotyped << ExecutionModel >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Package} * @return a {@link ExecutionModel} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("475490b1-f379-4c96-b36f-4d8313de7d30") public static ExecutionModel safeInstantiate(final Package obj) throws IllegalArgumentException { if (ExecutionModel.canInstantiate(obj)) - return new ExecutionModel(obj); + return new ExecutionModel(obj); else - throw new IllegalArgumentException("ExecutionModel: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("ExecutionModel: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'Diagram' role.

* Role description: * null - * */ @objid ("0ad0f47f-8137-4ea5-8324-df982e1ca8e7") public void addDiagram(final ExecutionModelDiagram obj) { @@ -139,7 +140,6 @@ public void addDiagram(final ExecutionModelDiagram obj) { * Add a value to the 'historyRecords' role.

* Role description: * null - * */ @objid ("3172d2c6-d066-465e-b334-27467a872a8f") public void addHistoryRecords(final HistoryRecord obj) { @@ -151,7 +151,6 @@ public void addHistoryRecords(final HistoryRecord obj) { * Add a value to the 'measurements' role.

* Role description: * null - * */ @objid ("5afeb856-2269-4e65-96ec-6d5b7f9d3392") public void addMeasurements(final Measurement obj) { @@ -163,7 +162,6 @@ public void addMeasurements(final Measurement obj) { * Add a value to the 'ruleTriggers' role.

* Role description: * null - * */ @objid ("46bcb1c8-0ec4-4727-86df-b2e7aecc6e94") public void addRuleTriggers(final RuleTrigger obj) { @@ -175,7 +173,6 @@ public void addRuleTriggers(final RuleTrigger obj) { * Add a value to the 'sloViolations' role.

* Role description: * null - * */ @objid ("cd08dfd0-1931-4f57-af3d-5925b675bb5c") public void addSloViolations(final SLOViolation obj) { @@ -203,7 +200,6 @@ public boolean equals(final Object obj) { * Get the value to the 'camelModel' role.

* Role description: * null - * */ @objid ("0a42b571-c107-47ce-a092-137baf94069d") public CamelModel getCamelModel() { @@ -214,7 +210,6 @@ public CamelModel getCamelModel() { * Get the value of the 'costUnit' role.

* Role description: * null - * */ @objid ("6a3aa0ab-b591-4a34-94a6-a9e6502ef086") public Unit getCostUnit() { @@ -236,7 +231,6 @@ public Unit getCostUnit() { * Get the value of the 'dataTypeModel' role.

* Role description: * null - * */ @objid ("97f459c3-49df-418a-9dfe-d4574f22f37d") public DataTypeModel getDataTypeModel() { @@ -254,7 +248,6 @@ public DataTypeModel getDataTypeModel() { * Get the value of the 'deploymentTypeModel' role.

* Role description: * null - * */ @objid ("2db5bc89-03ff-44fd-912f-eb900f9de221") public DeploymentTypeModel getDeploymentTypeModel() { @@ -272,20 +265,20 @@ public DeploymentTypeModel getDeploymentTypeModel() { * Get the values of the 'Diagram' role.

* Role description: * null - * */ @objid ("b5e1ede5-7140-4c40-97c5-bdc202967a33") public List getDiagram() { List results = new ArrayList<>(); for (AbstractDiagram mObj : ((Package) this.elt).getProduct()){ - if (ExecutionModelDiagram.canInstantiate(mObj)) - results.add((ExecutionModelDiagram)CamelDesignerProxyFactory.instantiate(mObj, ExecutionModelDiagram.STEREOTYPE_NAME)); - } + if (ExecutionModelDiagram.canInstantiate(mObj)) + results.add((ExecutionModelDiagram)CamelDesignerProxyFactory.instantiate(mObj, ExecutionModelDiagram.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } /** - * Get the underlying {@link Package}. + * Get the underlying {@link Package}. + * * @return the Package represented by this proxy, never null. */ @objid ("f7ad9498-6592-41a9-a825-82ea42536848") @@ -308,15 +301,14 @@ public String getEndTime() { * Get the values of the 'historyRecords' role.

* Role description: * null - * */ @objid ("61750251-b735-4b82-934c-76bb56a92d19") public List getHistoryRecords() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (HistoryRecord.canInstantiate(mObj)) - results.add((HistoryRecord)CamelDesignerProxyFactory.instantiate(mObj, HistoryRecord.STEREOTYPE_NAME)); - } + if (HistoryRecord.canInstantiate(mObj)) + results.add((HistoryRecord)CamelDesignerProxyFactory.instantiate(mObj, HistoryRecord.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -324,27 +316,26 @@ public List getHistoryRecords() { * Get the values of the 'measurements' role.

* Role description: * null - * */ @objid ("1b4c1050-473e-4553-940d-fbea84332ea4") public List getMeasurements() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (ApplicationMeasurement.canInstantiate(mObj)) - results.add((ApplicationMeasurement)CamelDesignerProxyFactory.instantiate(mObj, ApplicationMeasurement.STEREOTYPE_NAME)); - if (CommunicationMeasurement.canInstantiate(mObj)) - results.add((CommunicationMeasurement)CamelDesignerProxyFactory.instantiate(mObj, CommunicationMeasurement.STEREOTYPE_NAME)); - if (ContainerMeasurement.canInstantiate(mObj)) - results.add((ContainerMeasurement)CamelDesignerProxyFactory.instantiate(mObj, ContainerMeasurement.STEREOTYPE_NAME)); - if (DataMeasurement.canInstantiate(mObj)) - results.add((DataMeasurement)CamelDesignerProxyFactory.instantiate(mObj, DataMeasurement.STEREOTYPE_NAME)); - if (PaaSMeasurement.canInstantiate(mObj)) - results.add((PaaSMeasurement)CamelDesignerProxyFactory.instantiate(mObj, PaaSMeasurement.STEREOTYPE_NAME)); - if (SoftwareComponentMeasurement.canInstantiate(mObj)) - results.add((SoftwareComponentMeasurement)CamelDesignerProxyFactory.instantiate(mObj, SoftwareComponentMeasurement.STEREOTYPE_NAME)); - if (VMMeasurement.canInstantiate(mObj)) - results.add((VMMeasurement)CamelDesignerProxyFactory.instantiate(mObj, VMMeasurement.STEREOTYPE_NAME)); - } + if (ApplicationMeasurement.canInstantiate(mObj)) + results.add((ApplicationMeasurement)CamelDesignerProxyFactory.instantiate(mObj, ApplicationMeasurement.STEREOTYPE_NAME)); + if (CommunicationMeasurement.canInstantiate(mObj)) + results.add((CommunicationMeasurement)CamelDesignerProxyFactory.instantiate(mObj, CommunicationMeasurement.STEREOTYPE_NAME)); + if (ContainerMeasurement.canInstantiate(mObj)) + results.add((ContainerMeasurement)CamelDesignerProxyFactory.instantiate(mObj, ContainerMeasurement.STEREOTYPE_NAME)); + if (DataMeasurement.canInstantiate(mObj)) + results.add((DataMeasurement)CamelDesignerProxyFactory.instantiate(mObj, DataMeasurement.STEREOTYPE_NAME)); + if (PaaSMeasurement.canInstantiate(mObj)) + results.add((PaaSMeasurement)CamelDesignerProxyFactory.instantiate(mObj, PaaSMeasurement.STEREOTYPE_NAME)); + if (SoftwareComponentMeasurement.canInstantiate(mObj)) + results.add((SoftwareComponentMeasurement)CamelDesignerProxyFactory.instantiate(mObj, SoftwareComponentMeasurement.STEREOTYPE_NAME)); + if (VMMeasurement.canInstantiate(mObj)) + results.add((VMMeasurement)CamelDesignerProxyFactory.instantiate(mObj, VMMeasurement.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -352,7 +343,6 @@ public List getMeasurements() { * Get the value of the 'requirementModel' role.

* Role description: * null - * */ @objid ("736313e6-ba60-4a6e-8b65-8c8df6a811c9") public RequirementModel getRequirementModel() { @@ -370,15 +360,14 @@ public RequirementModel getRequirementModel() { * Get the values of the 'ruleTriggers' role.

* Role description: * null - * */ @objid ("4dd4f8bd-cf40-4862-b411-091d565ff8aa") public List getRuleTriggers() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (RuleTrigger.canInstantiate(mObj)) - results.add((RuleTrigger)CamelDesignerProxyFactory.instantiate(mObj, RuleTrigger.STEREOTYPE_NAME)); - } + if (RuleTrigger.canInstantiate(mObj)) + results.add((RuleTrigger)CamelDesignerProxyFactory.instantiate(mObj, RuleTrigger.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -386,15 +375,14 @@ public List getRuleTriggers() { * Get the values of the 'sloViolations' role.

* Role description: * null - * */ @objid ("80b1ba92-c9b3-48ab-b695-3f633b845e3f") public List getSloViolations() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (SLOViolation.canInstantiate(mObj)) - results.add((SLOViolation)CamelDesignerProxyFactory.instantiate(mObj, SLOViolation.STEREOTYPE_NAME)); - } + if (SLOViolation.canInstantiate(mObj)) + results.add((SLOViolation)CamelDesignerProxyFactory.instantiate(mObj, SLOViolation.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -428,7 +416,6 @@ public int hashCode() { * Remove a value from the 'Diagram' role.

* Role description: * null - * */ @objid ("4ad34726-af3e-447a-9975-053758571811") public boolean removeDiagram(final ExecutionModelDiagram obj) { @@ -439,7 +426,6 @@ public boolean removeDiagram(final ExecutionModelDiagram obj) { * Remove a value from the 'historyRecords' role.

* Role description: * null - * */ @objid ("5fcc0896-6128-4b00-a371-6f5d558722e1") public boolean removeHistoryRecords(final HistoryRecord obj) { @@ -450,7 +436,6 @@ public boolean removeHistoryRecords(final HistoryRecord obj) { * Remove a value from the 'measurements' role.

* Role description: * null - * */ @objid ("ea0039d3-1bd9-4f3b-bb4a-e638986257fd") public boolean removeMeasurements(final Measurement obj) { @@ -461,7 +446,6 @@ public boolean removeMeasurements(final Measurement obj) { * Remove a value from the 'ruleTriggers' role.

* Role description: * null - * */ @objid ("e284e010-b941-4422-bbd5-107d4d324894") public boolean removeRuleTriggers(final RuleTrigger obj) { @@ -472,7 +456,6 @@ public boolean removeRuleTriggers(final RuleTrigger obj) { * Remove a value from the 'sloViolations' role.

* Role description: * null - * */ @objid ("c0a993d2-0d55-4ea4-aa5e-0a438a2c42cb") public boolean removeSloViolations(final SLOViolation obj) { @@ -483,7 +466,6 @@ public boolean removeSloViolations(final SLOViolation obj) { * Set the value of the 'camelModel' role.

* Role description: * null - * */ @objid ("f7e545d5-f718-426f-8a70-a190d1063b79") public void setCamelModel(final CamelModel obj) { @@ -494,7 +476,6 @@ public void setCamelModel(final CamelModel obj) { * Set the value of the 'costUnit' role.

* Role description: * null - * */ @objid ("3398a40f-8b27-4f9d-ac11-789e36d6b795") public void setCostUnit(final Unit obj) { @@ -520,7 +501,6 @@ public void setCostUnit(final Unit obj) { * Set the value of the 'dataTypeModel' role.

* Role description: * null - * */ @objid ("e6131a7d-619e-462b-8a04-79722695eb0b") public void setDataTypeModel(final DataTypeModel obj) { @@ -546,7 +526,6 @@ public void setDataTypeModel(final DataTypeModel obj) { * Set the value of the 'deploymentTypeModel' role.

* Role description: * null - * */ @objid ("d9e4f825-d8f0-4711-bcd2-fa835115fdd0") public void setDeploymentTypeModel(final DeploymentTypeModel obj) { @@ -582,7 +561,6 @@ public void setEndTime(final String value) { * Set the value of the 'requirementModel' role.

* Role description: * null - * */ @objid ("0f435b8a-a3c3-4581-aee6-b9fce6d5a0b6") public void setRequirementModel(final RequirementModel obj) { @@ -668,11 +646,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/locationmodel/standard/enumeration/CloudLocation.java b/src/main/java/fr/softeam/cameldesigner/api/locationmodel/standard/enumeration/CloudLocation.java index fa44b6ff..013fc7de 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/locationmodel/standard/enumeration/CloudLocation.java +++ b/src/main/java/fr/softeam/cameldesigner/api/locationmodel/standard/enumeration/CloudLocation.java @@ -14,7 +14,6 @@ import fr.softeam.cameldesigner.api.CamelDesignerProxyFactory; import fr.softeam.cameldesigner.api.ICamelDesignerPeerModule; import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; -import fr.softeam.cameldesigner.api.locationmodel.standard.enumeration.GeographicalRegion; import fr.softeam.cameldesigner.impl.CamelDesignerModule; import org.modelio.api.modelio.model.IModelingSession; import org.modelio.api.modelio.model.PropertyConverter; @@ -69,9 +68,10 @@ public static CloudLocation create() { } /** - * Tries to instantiate a {@link CloudLocation} proxy from a {@link Enumeration} stereotyped << CloudLocation >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link CloudLocation} proxy from a {@link Enumeration} stereotyped << CloudLocation >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Enumeration * @return a {@link CloudLocation} proxy or null. */ @@ -81,26 +81,26 @@ public static CloudLocation instantiate(final Enumeration obj) { } /** - * Tries to instantiate a {@link CloudLocation} proxy from a {@link Enumeration} stereotyped << CloudLocation >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link CloudLocation} proxy from a {@link Enumeration} stereotyped << CloudLocation >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Enumeration} * @return a {@link CloudLocation} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("e4e0534c-ce82-4bb9-9463-7924db6d6b4d") public static CloudLocation safeInstantiate(final Enumeration obj) throws IllegalArgumentException { if (CloudLocation.canInstantiate(obj)) - return new CloudLocation(obj); + return new CloudLocation(obj); else - throw new IllegalArgumentException("CloudLocation: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("CloudLocation: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'subLocations' role.

* Role description: * null - * */ @objid ("7177999a-483a-4626-8c98-a8a31e361951") public void addSubLocations(final CloudLocation obj) { @@ -125,7 +125,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Enumeration}. + * Get the underlying {@link Enumeration}. + * * @return the Enumeration represented by this proxy, never null. */ @objid ("7ddd2bd5-ce8b-4f0a-a8eb-1e498627b8ec") @@ -138,7 +139,6 @@ public Enumeration getElement() { * Get the value of the 'geographicalRegion' role.

* Role description: * null - * */ @objid ("785b28cc-88c9-492c-936d-c466007c4e95") public GeographicalRegion getGeographicalRegion() { @@ -156,7 +156,6 @@ public GeographicalRegion getGeographicalRegion() { * Get the value to the 'parent' role.

* Role description: * null - * */ @objid ("c135263c-ba1d-4012-ad44-d3368d208401") public CloudLocation getParent() { @@ -167,15 +166,14 @@ public CloudLocation getParent() { * Get the values of the 'subLocations' role.

* Role description: * null - * */ @objid ("bcf9a14c-cdd6-41eb-be69-3acb0fbdd3a5") public List getSubLocations() { List results = new ArrayList<>(); for (ModelTree mObj : ((Enumeration) this.elt).getOwnedElement()){ - if (CloudLocation.canInstantiate(mObj)) - results.add((CloudLocation)CamelDesignerProxyFactory.instantiate(mObj, CloudLocation.STEREOTYPE_NAME)); - } + if (CloudLocation.canInstantiate(mObj)) + results.add((CloudLocation)CamelDesignerProxyFactory.instantiate(mObj, CloudLocation.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -199,7 +197,6 @@ public boolean isIsAssignable() { * Remove a value from the 'subLocations' role.

* Role description: * null - * */ @objid ("26768b59-cef4-4e5a-b60d-91850288a7d3") public boolean removeSubLocations(final CloudLocation obj) { @@ -210,7 +207,6 @@ public boolean removeSubLocations(final CloudLocation obj) { * Set the value of the 'geographicalRegion' role.

* Role description: * null - * */ @objid ("2e836d4c-8010-44d5-b7ba-89511fe8a685") public void setGeographicalRegion(final GeographicalRegion obj) { @@ -249,7 +245,6 @@ public void setIsAssignable(final boolean value) { * Set the value of the 'parent' role.

* Role description: * null - * */ @objid ("0389bbd3-a0f6-4934-9590-33c7f6ee3cfd") public void setParent(final CloudLocation obj) { @@ -293,11 +288,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/locationmodel/standard/enumeration/GeographicalRegion.java b/src/main/java/fr/softeam/cameldesigner/api/locationmodel/standard/enumeration/GeographicalRegion.java index 0e5810cc..b2bd9790 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/locationmodel/standard/enumeration/GeographicalRegion.java +++ b/src/main/java/fr/softeam/cameldesigner/api/locationmodel/standard/enumeration/GeographicalRegion.java @@ -65,9 +65,10 @@ public static GeographicalRegion create() { } /** - * Tries to instantiate a {@link GeographicalRegion} proxy from a {@link Enumeration} stereotyped << GeographicalRegion >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link GeographicalRegion} proxy from a {@link Enumeration} stereotyped << GeographicalRegion >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Enumeration * @return a {@link GeographicalRegion} proxy or null. */ @@ -77,26 +78,26 @@ public static GeographicalRegion instantiate(final Enumeration obj) { } /** - * Tries to instantiate a {@link GeographicalRegion} proxy from a {@link Enumeration} stereotyped << GeographicalRegion >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link GeographicalRegion} proxy from a {@link Enumeration} stereotyped << GeographicalRegion >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Enumeration} * @return a {@link GeographicalRegion} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("aa9a206a-56b7-4aab-a296-c3e2a27d3fd0") public static GeographicalRegion safeInstantiate(final Enumeration obj) throws IllegalArgumentException { if (GeographicalRegion.canInstantiate(obj)) - return new GeographicalRegion(obj); + return new GeographicalRegion(obj); else - throw new IllegalArgumentException("GeographicalRegion: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("GeographicalRegion: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value of the 'parentRegions' role.

* Role description: * null - * */ @objid ("686b6469-ead1-44ec-90c4-e5f5c6b874b3") public void addParentRegions(final GeographicalRegion obj) { @@ -125,7 +126,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Enumeration}. + * Get the underlying {@link Enumeration}. + * * @return the Enumeration represented by this proxy, never null. */ @objid ("a6341596-de38-41cd-97a7-a071766f99b0") @@ -138,7 +140,6 @@ public Enumeration getElement() { * Get the values of the 'parentRegions' role.

* Role description: * null - * */ @objid ("d3a7366d-8d21-4613-9a7e-4b514f6f8e16") public List getParentRegions() { @@ -163,7 +164,6 @@ public int hashCode() { * Remove a value from 'parentRegions' role.

* Role description: * null - * */ @objid ("d4eed3cb-65bd-4f4e-9df2-97121927c2e5") public boolean removeParentRegions(final GeographicalRegion obj) { @@ -242,11 +242,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/locationmodel/standard/enumeration/Location.java b/src/main/java/fr/softeam/cameldesigner/api/locationmodel/standard/enumeration/Location.java index 3b44f6b3..f5ed4cbb 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/locationmodel/standard/enumeration/Location.java +++ b/src/main/java/fr/softeam/cameldesigner/api/locationmodel/standard/enumeration/Location.java @@ -110,7 +110,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Enumeration}. + * Get the underlying {@link Enumeration}. + * * @return the Enumeration represented by this proxy, never null. */ @objid ("660d4d8e-8ad2-48a6-a224-3563b722fa46") @@ -181,11 +182,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/locationmodel/standard/package_/LocationModel.java b/src/main/java/fr/softeam/cameldesigner/api/locationmodel/standard/package_/LocationModel.java index ddcb4672..4c097a0d 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/locationmodel/standard/package_/LocationModel.java +++ b/src/main/java/fr/softeam/cameldesigner/api/locationmodel/standard/package_/LocationModel.java @@ -69,9 +69,10 @@ public static LocationModel create() { } /** - * Tries to instantiate a {@link LocationModel} proxy from a {@link Package} stereotyped << LocationModel >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link LocationModel} proxy from a {@link Package} stereotyped << LocationModel >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Package * @return a {@link LocationModel} proxy or null. */ @@ -81,26 +82,26 @@ public static LocationModel instantiate(final Package obj) { } /** - * Tries to instantiate a {@link LocationModel} proxy from a {@link Package} stereotyped << LocationModel >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link LocationModel} proxy from a {@link Package} stereotyped << LocationModel >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Package} * @return a {@link LocationModel} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("64303e94-9f5a-4319-be23-730c3fe8e80b") public static LocationModel safeInstantiate(final Package obj) throws IllegalArgumentException { if (LocationModel.canInstantiate(obj)) - return new LocationModel(obj); + return new LocationModel(obj); else - throw new IllegalArgumentException("LocationModel: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("LocationModel: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'cloudLocations' role.

* Role description: * null - * */ @objid ("f9797bda-eeb7-4234-ae56-a6eb620de349") public void addCloudLocations(final CloudLocation obj) { @@ -112,7 +113,6 @@ public void addCloudLocations(final CloudLocation obj) { * Add a value to the 'regions' role.

* Role description: * null - * */ @objid ("9ef41bb6-cb18-4487-bfae-e01ca2b9bb66") public void addRegions(final GeographicalRegion obj) { @@ -140,7 +140,6 @@ public boolean equals(final Object obj) { * Get the value to the 'camelModel' role.

* Role description: * null - * */ @objid ("05a815b3-878e-490f-9d9d-480a60ac9021") public CamelModel getCamelModel() { @@ -151,20 +150,20 @@ public CamelModel getCamelModel() { * Get the values of the 'cloudLocations' role.

* Role description: * null - * */ @objid ("43a033e4-7d93-48ff-9988-79bcea512dae") public List getCloudLocations() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (CloudLocation.canInstantiate(mObj)) - results.add((CloudLocation)CamelDesignerProxyFactory.instantiate(mObj, CloudLocation.STEREOTYPE_NAME)); - } + if (CloudLocation.canInstantiate(mObj)) + results.add((CloudLocation)CamelDesignerProxyFactory.instantiate(mObj, CloudLocation.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } /** - * Get the underlying {@link Package}. + * Get the underlying {@link Package}. + * * @return the Package represented by this proxy, never null. */ @objid ("a23ff23b-593c-4584-9aae-a186a61f32a4") @@ -177,15 +176,14 @@ public Package getElement() { * Get the values of the 'regions' role.

* Role description: * null - * */ @objid ("12dc756c-aed7-43d8-a9b8-299b6e89d156") public List getRegions() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (GeographicalRegion.canInstantiate(mObj)) - results.add((GeographicalRegion)CamelDesignerProxyFactory.instantiate(mObj, GeographicalRegion.STEREOTYPE_NAME)); - } + if (GeographicalRegion.canInstantiate(mObj)) + results.add((GeographicalRegion)CamelDesignerProxyFactory.instantiate(mObj, GeographicalRegion.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -199,7 +197,6 @@ public int hashCode() { * Remove a value from the 'cloudLocations' role.

* Role description: * null - * */ @objid ("6c7f8e1d-2e19-4ba1-bab2-1f37f3a246ac") public boolean removeCloudLocations(final CloudLocation obj) { @@ -210,7 +207,6 @@ public boolean removeCloudLocations(final CloudLocation obj) { * Remove a value from the 'regions' role.

* Role description: * null - * */ @objid ("a2b3575d-6a1e-471b-882f-4cef32e6af42") public boolean removeRegions(final GeographicalRegion obj) { @@ -221,7 +217,6 @@ public boolean removeRegions(final GeographicalRegion obj) { * Set the value of the 'camelModel' role.

* Role description: * null - * */ @objid ("30ee7c4f-d033-43ed-990d-0bf26d2468f4") public void setCamelModel(final CamelModel obj) { @@ -262,11 +257,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/metadatamodel/infrastructure/modelelement/MmsObject.java b/src/main/java/fr/softeam/cameldesigner/api/metadatamodel/infrastructure/modelelement/MmsObject.java index aa36f3e1..778f186a 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/metadatamodel/infrastructure/modelelement/MmsObject.java +++ b/src/main/java/fr/softeam/cameldesigner/api/metadatamodel/infrastructure/modelelement/MmsObject.java @@ -90,7 +90,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link ModelElement}. + * Get the underlying {@link ModelElement}. + * * @return the ModelElement represented by this proxy, never null. */ @objid ("310c0080-1466-4e76-8e06-130ef24f1e16") @@ -185,11 +186,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/metadatamodel/standard/attribute/MmsProperty.java b/src/main/java/fr/softeam/cameldesigner/api/metadatamodel/standard/attribute/MmsProperty.java index 6db455e3..87447c0c 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/metadatamodel/standard/attribute/MmsProperty.java +++ b/src/main/java/fr/softeam/cameldesigner/api/metadatamodel/standard/attribute/MmsProperty.java @@ -9,7 +9,14 @@ import java.util.ArrayList; import java.util.List; import java.util.Objects; +import camel.mms.MmsPropertyType; import com.modeliosoft.modelio.javadesigner.annotations.objid; +import fr.softeam.cameldesigner.api.CamelDesignerProxyFactory; +import fr.softeam.cameldesigner.api.ICamelDesignerPeerModule; +import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; +import fr.softeam.cameldesigner.api.metadatamodel.infrastructure.modelelement.MmsObject; +import fr.softeam.cameldesigner.api.metadatamodel.standard.class_.MmsConcept; +import fr.softeam.cameldesigner.impl.CamelDesignerModule; import org.modelio.api.modelio.model.IModelingSession; import org.modelio.api.module.context.IModuleContext; import org.modelio.metamodel.uml.infrastructure.Dependency; @@ -18,13 +25,6 @@ import org.modelio.metamodel.uml.infrastructure.TagType; import org.modelio.metamodel.uml.statik.Attribute; import org.modelio.vcore.smkernel.mapi.MObject; -import camel.mms.MmsPropertyType; -import fr.softeam.cameldesigner.api.CamelDesignerProxyFactory; -import fr.softeam.cameldesigner.api.ICamelDesignerPeerModule; -import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; -import fr.softeam.cameldesigner.api.metadatamodel.infrastructure.modelelement.MmsObject; -import fr.softeam.cameldesigner.api.metadatamodel.standard.class_.MmsConcept; -import fr.softeam.cameldesigner.impl.CamelDesignerModule; /** * Proxy class to handle a {@link Attribute} with << MmsProperty >> stereotype. @@ -46,7 +46,7 @@ public class MmsProperty extends MmsObject { * Tells whether a {@link MmsProperty proxy} can be instantiated from a {@link MObject} checking it is a {@link Attribute} stereotyped << MmsProperty >>. *

* The method returns false if the instantiation cannot be carried out. - * + * * @param elt a model object * @return true if the instantiation can be carried out else false. */ @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { /** * Create a new {@link Attribute} stereotyped << MmsProperty >> then instantiate a {@link MmsProperty} proxy. - * + * * @return a {@link MmsProperty} proxy on the created {@link Attribute}. */ @objid ("f9e7e3f2-33f7-453e-ba92-795fb90ef448") @@ -71,6 +71,7 @@ public static MmsProperty create() { * Tries to instantiate a {@link MmsProperty} proxy from a {@link Attribute} stereotyped << MmsProperty >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Attribute * @return a {@link MmsProperty} proxy or null. */ @@ -83,16 +84,17 @@ public static MmsProperty instantiate(final Attribute obj) { * Tries to instantiate a {@link MmsProperty} proxy from a {@link Attribute} stereotyped << MmsProperty >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Attribute} * @return a {@link MmsProperty} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("d9ddf52e-d838-4a62-989d-420354740e09") public static MmsProperty safeInstantiate(final Attribute obj) throws IllegalArgumentException { if (MmsProperty.canInstantiate(obj)) - return new MmsProperty(obj); + return new MmsProperty(obj); else - throw new IllegalArgumentException("MmsProperty: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("MmsProperty: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("61f233b1-6b0b-487d-830f-134c3ae1767a") @@ -115,7 +117,6 @@ public boolean equals(final Object obj) { * Get the value to the 'domain' role.

* Role description: * null - * */ @objid ("91efefd5-7b9d-4659-9d0f-23e1adcffd2e") public MmsConcept getDomain() { @@ -124,6 +125,7 @@ public MmsConcept getDomain() { /** * Get the underlying {@link Attribute}. + * * @return the Attribute represented by this proxy, never null. */ @objid ("52341d85-45e0-4e24-9244-834bb78cfd5c") @@ -146,7 +148,6 @@ public String getPropertyType() { * Get the value of the 'range' role.

* Role description: * null - * */ @objid ("6e1c7de2-b4af-47c3-8a5a-bf84f1bdb9b0") public MmsConcept getRange() { @@ -180,7 +181,6 @@ public int hashCode() { * Set the value of the 'domain' role.

* Role description: * null - * */ @objid ("4a2fbefb-3496-4ca6-891c-a74208be060d") public void setDomain(final MmsConcept obj) { @@ -201,7 +201,6 @@ public void setPropertyType(final String value) { * Set the value of the 'range' role.

* Role description: * null - * */ @objid ("9f128525-3fde-4129-8975-71612893497e") public void setRange(final MmsConcept obj) { @@ -289,11 +288,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/metadatamodel/standard/attributelink/MmsPropertyInstance.java b/src/main/java/fr/softeam/cameldesigner/api/metadatamodel/standard/attributelink/MmsPropertyInstance.java index 406417f3..3a15630e 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/metadatamodel/standard/attributelink/MmsPropertyInstance.java +++ b/src/main/java/fr/softeam/cameldesigner/api/metadatamodel/standard/attributelink/MmsPropertyInstance.java @@ -70,9 +70,10 @@ public static MmsPropertyInstance create() { } /** - * Tries to instantiate a {@link MmsPropertyInstance} proxy from a {@link AttributeLink} stereotyped << MmsPropertyInstance >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link MmsPropertyInstance} proxy from a {@link AttributeLink} stereotyped << MmsPropertyInstance >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a AttributeLink * @return a {@link MmsPropertyInstance} proxy or null. */ @@ -82,19 +83,20 @@ public static MmsPropertyInstance instantiate(final AttributeLink obj) { } /** - * Tries to instantiate a {@link MmsPropertyInstance} proxy from a {@link AttributeLink} stereotyped << MmsPropertyInstance >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link MmsPropertyInstance} proxy from a {@link AttributeLink} stereotyped << MmsPropertyInstance >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link AttributeLink} * @return a {@link MmsPropertyInstance} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("fd916ced-3e9e-4df0-88f2-1b98712f0a40") public static MmsPropertyInstance safeInstantiate(final AttributeLink obj) throws IllegalArgumentException { if (MmsPropertyInstance.canInstantiate(obj)) - return new MmsPropertyInstance(obj); + return new MmsPropertyInstance(obj); else - throw new IllegalArgumentException("MmsPropertyInstance: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("MmsPropertyInstance: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("72073487-8ba1-4608-bbdd-a8b908bd1544") @@ -117,7 +119,6 @@ public boolean equals(final Object obj) { * Get the value to the 'conceptInstance' role.

* Role description: * null - * */ @objid ("2d431b11-aeee-43c8-b4a8-8a20e513b6c2") public MmsConceptInstance getConceptInstance() { @@ -125,7 +126,8 @@ public MmsConceptInstance getConceptInstance() { } /** - * Get the underlying {@link AttributeLink}. + * Get the underlying {@link AttributeLink}. + * * @return the AttributeLink represented by this proxy, never null. */ @objid ("27de1336-f515-48d9-91c1-bff822b349e5") @@ -138,7 +140,6 @@ public AttributeLink getElement() { * Get the value to the 'isA' role.

* Role description: * null - * */ @objid ("23532be1-504b-4ef0-aede-789a92a8e750") public MmsProperty getIsA() { @@ -165,7 +166,6 @@ public int hashCode() { * Set the value of the 'conceptInstance' role.

* Role description: * null - * */ @objid ("0a617c5a-8f95-4bde-8d4d-b8c1bc24249c") public void setConceptInstance(final MmsConceptInstance obj) { @@ -176,7 +176,6 @@ public void setConceptInstance(final MmsConceptInstance obj) { * Set the value of the 'isA' role.

* Role description: * null - * */ @objid ("c6a56234-f83c-44de-8a08-cae335312c9e") public void setIsA(final MmsProperty obj) { @@ -229,11 +228,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/metadatamodel/standard/class_/MmsConcept.java b/src/main/java/fr/softeam/cameldesigner/api/metadatamodel/standard/class_/MmsConcept.java index c9642e66..744b29a6 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/metadatamodel/standard/class_/MmsConcept.java +++ b/src/main/java/fr/softeam/cameldesigner/api/metadatamodel/standard/class_/MmsConcept.java @@ -70,9 +70,10 @@ public static MmsConcept create() { } /** - * Tries to instantiate a {@link MmsConcept} proxy from a {@link Class} stereotyped << MmsConcept >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link MmsConcept} proxy from a {@link Class} stereotyped << MmsConcept >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link MmsConcept} proxy or null. */ @@ -82,26 +83,26 @@ public static MmsConcept instantiate(final Class obj) { } /** - * Tries to instantiate a {@link MmsConcept} proxy from a {@link Class} stereotyped << MmsConcept >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link MmsConcept} proxy from a {@link Class} stereotyped << MmsConcept >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link MmsConcept} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("0172ac0e-4b6c-4e88-835d-266f77c15930") public static MmsConcept safeInstantiate(final Class obj) throws IllegalArgumentException { if (MmsConcept.canInstantiate(obj)) - return new MmsConcept(obj); + return new MmsConcept(obj); else - throw new IllegalArgumentException("MmsConcept: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("MmsConcept: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'concept' role.

* Role description: * null - * */ @objid ("99683534-1e45-49f2-9ae6-31dc5d10b27c") public void addConcept(final MmsConcept obj) { @@ -113,7 +114,6 @@ public void addConcept(final MmsConcept obj) { * Add a value to the 'instance' role.

* Role description: * null - * */ @objid ("83a7f631-57fe-43c3-84d2-5e94caaf9f1a") public void addInstance(final MmsConceptInstance obj) { @@ -125,7 +125,6 @@ public void addInstance(final MmsConceptInstance obj) { * Add a value to the 'property' role.

* Role description: * null - * */ @objid ("e41b5f83-7210-4fa6-b2ab-48ce8fb17dc9") public void addProperty(final MmsProperty obj) { @@ -153,20 +152,20 @@ public boolean equals(final Object obj) { * Get the values of the 'concept' role.

* Role description: * null - * */ @objid ("3b986950-d564-4ab4-a11a-d62aeaacef03") public List getConcept() { List results = new ArrayList<>(); for (ModelTree mObj : ((Class) this.elt).getOwnedElement()){ - if (MmsConcept.canInstantiate(mObj)) - results.add((MmsConcept)CamelDesignerProxyFactory.instantiate(mObj, MmsConcept.STEREOTYPE_NAME)); - } + if (MmsConcept.canInstantiate(mObj)) + results.add((MmsConcept)CamelDesignerProxyFactory.instantiate(mObj, MmsConcept.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("b15678ea-2408-4959-a7fd-3253a9850d83") @@ -179,15 +178,14 @@ public Class getElement() { * Get the values of the 'instance' role.

* Role description: * null - * */ @objid ("c1fc2f4f-7f00-4f91-a757-190714e9ea73") public List getInstance() { List results = new ArrayList<>(); for (Instance mObj : ((Class) this.elt).getRepresenting()){ - if (MmsConceptInstance.canInstantiate(mObj)) - results.add((MmsConceptInstance)CamelDesignerProxyFactory.instantiate(mObj, MmsConceptInstance.STEREOTYPE_NAME)); - } + if (MmsConceptInstance.canInstantiate(mObj)) + results.add((MmsConceptInstance)CamelDesignerProxyFactory.instantiate(mObj, MmsConceptInstance.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -195,7 +193,6 @@ public List getInstance() { * Get the value to the 'parent' role.

* Role description: * null - * */ @objid ("ccb7e389-f44c-4b99-b3fe-da004fe9e79a") public MmsConcept getParent() { @@ -206,15 +203,14 @@ public MmsConcept getParent() { * Get the values of the 'property' role.

* Role description: * null - * */ @objid ("8efc3602-7d5f-4d55-82ed-898b13e91e2e") public List getProperty() { List results = new ArrayList<>(); for (Attribute mObj : ((Class) this.elt).getOwnedAttribute()){ - if (MmsProperty.canInstantiate(mObj)) - results.add((MmsProperty)CamelDesignerProxyFactory.instantiate(mObj, MmsProperty.STEREOTYPE_NAME)); - } + if (MmsProperty.canInstantiate(mObj)) + results.add((MmsProperty)CamelDesignerProxyFactory.instantiate(mObj, MmsProperty.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -228,7 +224,6 @@ public int hashCode() { * Remove a value from the 'concept' role.

* Role description: * null - * */ @objid ("cbe7451f-3c7c-4e68-94df-ca0365cb7b4c") public boolean removeConcept(final MmsConcept obj) { @@ -239,7 +234,6 @@ public boolean removeConcept(final MmsConcept obj) { * Remove a value from the 'instance' role.

* Role description: * null - * */ @objid ("313bc3b3-7248-4293-8075-c1ab09c940af") public boolean removeInstance(final MmsConceptInstance obj) { @@ -250,7 +244,6 @@ public boolean removeInstance(final MmsConceptInstance obj) { * Remove a value from the 'property' role.

* Role description: * null - * */ @objid ("0934c283-ad4f-4916-a63b-c33b736b5f43") public boolean removeProperty(final MmsProperty obj) { @@ -261,7 +254,6 @@ public boolean removeProperty(final MmsProperty obj) { * Set the value of the 'parent' role.

* Role description: * null - * */ @objid ("49a56627-b9f0-4851-9cc4-3ad4598243a2") public void setParent(final MmsConcept obj) { @@ -303,11 +295,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/metadatamodel/standard/instance/MmsConceptInstance.java b/src/main/java/fr/softeam/cameldesigner/api/metadatamodel/standard/instance/MmsConceptInstance.java index f4ee3f0d..e3ba7c4c 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/metadatamodel/standard/instance/MmsConceptInstance.java +++ b/src/main/java/fr/softeam/cameldesigner/api/metadatamodel/standard/instance/MmsConceptInstance.java @@ -67,9 +67,10 @@ public static MmsConceptInstance create() { } /** - * Tries to instantiate a {@link MmsConceptInstance} proxy from a {@link Instance} stereotyped << MmsConceptInstance >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link MmsConceptInstance} proxy from a {@link Instance} stereotyped << MmsConceptInstance >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Instance * @return a {@link MmsConceptInstance} proxy or null. */ @@ -79,26 +80,26 @@ public static MmsConceptInstance instantiate(final Instance obj) { } /** - * Tries to instantiate a {@link MmsConceptInstance} proxy from a {@link Instance} stereotyped << MmsConceptInstance >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link MmsConceptInstance} proxy from a {@link Instance} stereotyped << MmsConceptInstance >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Instance} * @return a {@link MmsConceptInstance} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("1644b234-de6e-4604-8613-5ef5f7d41ba1") public static MmsConceptInstance safeInstantiate(final Instance obj) throws IllegalArgumentException { if (MmsConceptInstance.canInstantiate(obj)) - return new MmsConceptInstance(obj); + return new MmsConceptInstance(obj); else - throw new IllegalArgumentException("MmsConceptInstance: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("MmsConceptInstance: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'propertyInstance' role.

* Role description: * null - * */ @objid ("2de7091c-cbf3-4857-ac89-ad4b6cc0e262") public void addPropertyInstance(final MmsPropertyInstance obj) { @@ -123,7 +124,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Instance}. + * Get the underlying {@link Instance}. + * * @return the Instance represented by this proxy, never null. */ @objid ("b9f8b96d-3b0f-4464-920e-9019de9835da") @@ -136,15 +138,14 @@ public Instance getElement() { * Get the values of the 'propertyInstance' role.

* Role description: * null - * */ @objid ("b85edaea-d686-4894-9f0d-9503e7122485") public List getPropertyInstance() { List results = new ArrayList<>(); for (AttributeLink mObj : ((Instance) this.elt).getSlot()){ - if (MmsPropertyInstance.canInstantiate(mObj)) - results.add((MmsPropertyInstance)CamelDesignerProxyFactory.instantiate(mObj, MmsPropertyInstance.STEREOTYPE_NAME)); - } + if (MmsPropertyInstance.canInstantiate(mObj)) + results.add((MmsPropertyInstance)CamelDesignerProxyFactory.instantiate(mObj, MmsPropertyInstance.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -158,7 +159,6 @@ public int hashCode() { * Remove a value from the 'propertyInstance' role.

* Role description: * null - * */ @objid ("795ca5db-7ea7-4c03-b1bf-0a61a7e62625") public boolean removePropertyInstance(final MmsPropertyInstance obj) { @@ -197,11 +197,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/metadatamodel/standard/package_/MetaDataModel.java b/src/main/java/fr/softeam/cameldesigner/api/metadatamodel/standard/package_/MetaDataModel.java index 6b8c53a3..aec1d645 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/metadatamodel/standard/package_/MetaDataModel.java +++ b/src/main/java/fr/softeam/cameldesigner/api/metadatamodel/standard/package_/MetaDataModel.java @@ -70,9 +70,10 @@ public static MetaDataModel create() { } /** - * Tries to instantiate a {@link MetaDataModel} proxy from a {@link Package} stereotyped << MetaDataModel >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link MetaDataModel} proxy from a {@link Package} stereotyped << MetaDataModel >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Package * @return a {@link MetaDataModel} proxy or null. */ @@ -82,26 +83,26 @@ public static MetaDataModel instantiate(final Package obj) { } /** - * Tries to instantiate a {@link MetaDataModel} proxy from a {@link Package} stereotyped << MetaDataModel >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link MetaDataModel} proxy from a {@link Package} stereotyped << MetaDataModel >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Package} * @return a {@link MetaDataModel} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("85336758-3c7b-4f22-a79d-ef7e59051d64") public static MetaDataModel safeInstantiate(final Package obj) throws IllegalArgumentException { if (MetaDataModel.canInstantiate(obj)) - return new MetaDataModel(obj); + return new MetaDataModel(obj); else - throw new IllegalArgumentException("MetaDataModel: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("MetaDataModel: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'concept' role.

* Role description: * null - * */ @objid ("9d339909-6318-4b03-a031-8d4d6ac571ce") public void addConcept(final MmsConcept obj) { @@ -113,7 +114,6 @@ public void addConcept(final MmsConcept obj) { * Add a value to the 'conceptInstance' role.

* Role description: * null - * */ @objid ("435d9407-7a26-4aa5-8a85-d7f8a5f602bb") public void addConceptInstance(final MmsConceptInstance obj) { @@ -141,7 +141,6 @@ public boolean equals(final Object obj) { * Get the value to the 'camelModel' role.

* Role description: * null - * */ @objid ("83222711-b2f2-4818-be69-66e3895b3e92") public CamelModel getCamelModel() { @@ -152,15 +151,14 @@ public CamelModel getCamelModel() { * Get the values of the 'concept' role.

* Role description: * null - * */ @objid ("a1e6b83f-17c9-4064-a413-30ec7b7a02f3") public List getConcept() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (MmsConcept.canInstantiate(mObj)) - results.add((MmsConcept)CamelDesignerProxyFactory.instantiate(mObj, MmsConcept.STEREOTYPE_NAME)); - } + if (MmsConcept.canInstantiate(mObj)) + results.add((MmsConcept)CamelDesignerProxyFactory.instantiate(mObj, MmsConcept.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -168,20 +166,20 @@ public List getConcept() { * Get the values of the 'conceptInstance' role.

* Role description: * null - * */ @objid ("cf87ccbb-0801-407f-991a-0aa8adb9f482") public List getConceptInstance() { List results = new ArrayList<>(); for (Instance mObj : ((Package) this.elt).getDeclared()){ - if (MmsConceptInstance.canInstantiate(mObj)) - results.add((MmsConceptInstance)CamelDesignerProxyFactory.instantiate(mObj, MmsConceptInstance.STEREOTYPE_NAME)); - } + if (MmsConceptInstance.canInstantiate(mObj)) + results.add((MmsConceptInstance)CamelDesignerProxyFactory.instantiate(mObj, MmsConceptInstance.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } /** - * Get the underlying {@link Package}. + * Get the underlying {@link Package}. + * * @return the Package represented by this proxy, never null. */ @objid ("ab04f3bd-7669-4e3e-a275-f93329e3c672") @@ -200,7 +198,6 @@ public int hashCode() { * Remove a value from the 'concept' role.

* Role description: * null - * */ @objid ("489ae629-b5c1-42b7-ac87-2f9f4479ea83") public boolean removeConcept(final MmsConcept obj) { @@ -211,7 +208,6 @@ public boolean removeConcept(final MmsConcept obj) { * Remove a value from the 'conceptInstance' role.

* Role description: * null - * */ @objid ("ed60ebca-c8dc-4334-8a6e-1d7b7af826f8") public boolean removeConceptInstance(final MmsConceptInstance obj) { @@ -222,7 +218,6 @@ public boolean removeConceptInstance(final MmsConceptInstance obj) { * Set the value of the 'camelModel' role.

* Role description: * null - * */ @objid ("110b23a8-e5bc-43d3-83c1-a63f771b2fab") public void setCamelModel(final CamelModel obj) { @@ -263,11 +258,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/AttributeContext.java b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/AttributeContext.java index 5cee1b0e..54d0affc 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/AttributeContext.java +++ b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/AttributeContext.java @@ -23,7 +23,6 @@ import fr.softeam.cameldesigner.api.camelcore.standard.class_.MeasurableAttributeClass; import fr.softeam.cameldesigner.api.camelcore.standard.class_.QualityAttributeClass; import fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.AttributeConstraint; -import fr.softeam.cameldesigner.api.metricmodel.standard.class_.ObjectContext; import fr.softeam.cameldesigner.api.securitymodel.standard.class_.Certifiable; import fr.softeam.cameldesigner.api.securitymodel.standard.class_.SecurityAttribute; import fr.softeam.cameldesigner.impl.CamelDesignerModule; @@ -77,9 +76,10 @@ public static AttributeContext create() { } /** - * Tries to instantiate a {@link AttributeContext} proxy from a {@link Class} stereotyped << AttributeContext >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link AttributeContext} proxy from a {@link Class} stereotyped << AttributeContext >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link AttributeContext} proxy or null. */ @@ -89,26 +89,26 @@ public static AttributeContext instantiate(final Class obj) { } /** - * Tries to instantiate a {@link AttributeContext} proxy from a {@link Class} stereotyped << AttributeContext >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link AttributeContext} proxy from a {@link Class} stereotyped << AttributeContext >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link AttributeContext} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("ad90297e-5e51-4a64-b730-d643851b95fb") public static AttributeContext safeInstantiate(final Class obj) throws IllegalArgumentException { if (AttributeContext.canInstantiate(obj)) - return new AttributeContext(obj); + return new AttributeContext(obj); else - throw new IllegalArgumentException("AttributeContext: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("AttributeContext: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'attributeConstraint' role.

* Role description: * null - * */ @objid ("36b50c99-c892-4b47-afde-8a1c22426ff0") public void addAttributeConstraint(final AttributeConstraint obj) { @@ -136,7 +136,6 @@ public boolean equals(final Object obj) { * Get the value of the 'attribute' role.

* Role description: * null - * */ @objid ("ada1fc4a-2e8e-4e0c-b97a-ed8ff9db7b12") public CamelAttribute getAttribute() { @@ -168,20 +167,20 @@ public CamelAttribute getAttribute() { * Get the values of the 'attributeConstraint' role.

* Role description: * null - * */ @objid ("d0ab344c-30b9-40fb-b660-daa969fd7c12") public List getAttributeConstraint() { List results = new ArrayList<>(); for (Constraint mObj : ((Class) this.elt).getConstraintDefinition()){ - if (AttributeConstraint.canInstantiate(mObj)) - results.add((AttributeConstraint)CamelDesignerProxyFactory.instantiate(mObj, AttributeConstraint.STEREOTYPE_NAME)); - } + if (AttributeConstraint.canInstantiate(mObj)) + results.add((AttributeConstraint)CamelDesignerProxyFactory.instantiate(mObj, AttributeConstraint.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("f1b64541-327a-4fb6-8a28-10cd00c530dc") @@ -194,7 +193,6 @@ public Class getElement() { * Get the value of the 'objectContext' role.

* Role description: * null - * */ @objid ("b6d3673a-c907-465a-bdc4-9ae612391e59") public ObjectContext getObjectContext() { @@ -218,7 +216,6 @@ public int hashCode() { * Remove a value from the 'attributeConstraint' role.

* Role description: * null - * */ @objid ("37c2bea1-8c04-45ad-b992-e0638ca5595f") public boolean removeAttributeConstraint(final AttributeConstraint obj) { @@ -229,7 +226,6 @@ public boolean removeAttributeConstraint(final AttributeConstraint obj) { * Set the value of the 'attribute' role.

* Role description: * null - * */ @objid ("9e0e9cca-ba0d-4d9c-a055-3dc51a9846ca") public void setAttribute(final CamelAttribute obj) { @@ -255,7 +251,6 @@ public void setAttribute(final CamelAttribute obj) { * Set the value of the 'objectContext' role.

* Role description: * null - * */ @objid ("2ab5cc69-a445-4e3f-9ec0-d48aca1db66a") public void setObjectContext(final ObjectContext obj) { @@ -334,11 +329,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/CompositeMetric.java b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/CompositeMetric.java index 3330fd4c..b12a8c46 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/CompositeMetric.java +++ b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/CompositeMetric.java @@ -14,7 +14,6 @@ import fr.softeam.cameldesigner.api.CamelDesignerProxyFactory; import fr.softeam.cameldesigner.api.ICamelDesignerPeerModule; import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; -import fr.softeam.cameldesigner.api.metricmodel.standard.class_.Metric; import fr.softeam.cameldesigner.api.metricmodel.standard.class_.MetricVariable; import fr.softeam.cameldesigner.api.metricmodel.standard.class_.RawMetric; import fr.softeam.cameldesigner.api.securitymodel.standard.class_.CompositeSecurityMetric; @@ -72,9 +71,10 @@ public static CompositeMetric create() { } /** - * Tries to instantiate a {@link CompositeMetric} proxy from a {@link Class} stereotyped << CompositeMetric >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link CompositeMetric} proxy from a {@link Class} stereotyped << CompositeMetric >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link CompositeMetric} proxy or null. */ @@ -84,26 +84,26 @@ public static CompositeMetric instantiate(final Class obj) { } /** - * Tries to instantiate a {@link CompositeMetric} proxy from a {@link Class} stereotyped << CompositeMetric >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link CompositeMetric} proxy from a {@link Class} stereotyped << CompositeMetric >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link CompositeMetric} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("b0c10c95-3e06-42ff-9547-b69f0df31d0f") public static CompositeMetric safeInstantiate(final Class obj) throws IllegalArgumentException { if (CompositeMetric.canInstantiate(obj)) - return new CompositeMetric(obj); + return new CompositeMetric(obj); else - throw new IllegalArgumentException("CompositeMetric: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("CompositeMetric: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'componentMetrics' role.

* Role description: * null - * */ @objid ("b5cc55de-aebf-492d-99bb-e654a9405061") public void addComponentMetrics(final Metric obj) { @@ -135,7 +135,6 @@ public boolean equals(final Object obj) { * Get the values of the 'componentMetrics' role.

* Role description: * null - * */ @objid ("7c4b1e7f-cc25-4d93-8032-d693c288c375") public List getComponentMetrics() { @@ -159,7 +158,8 @@ public List getComponentMetrics() { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("79de585c-47cc-4756-8f10-47bd0d633666") @@ -188,7 +188,6 @@ public int hashCode() { * Remove a value from the 'componentMetrics' role.

* Role description: * null - * */ @objid ("5cb8241f-a515-45bf-ad6a-a346e38617ef") public boolean removeComponentMetrics(final Metric obj) { @@ -250,11 +249,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/CompositeMetricContext.java b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/CompositeMetricContext.java index 3ff5b958..1defb125 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/CompositeMetricContext.java +++ b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/CompositeMetricContext.java @@ -14,7 +14,6 @@ import fr.softeam.cameldesigner.api.CamelDesignerProxyFactory; import fr.softeam.cameldesigner.api.ICamelDesignerPeerModule; import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; -import fr.softeam.cameldesigner.api.metricmodel.standard.class_.MetricContext; import fr.softeam.cameldesigner.api.metricmodel.standard.class_.RawMetricContext; import fr.softeam.cameldesigner.impl.CamelDesignerModule; import org.modelio.api.modelio.model.IModelingSession; @@ -69,9 +68,10 @@ public static CompositeMetricContext create() { } /** - * Tries to instantiate a {@link CompositeMetricContext} proxy from a {@link Class} stereotyped << CompositeMetricContext >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link CompositeMetricContext} proxy from a {@link Class} stereotyped << CompositeMetricContext >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link CompositeMetricContext} proxy or null. */ @@ -81,26 +81,26 @@ public static CompositeMetricContext instantiate(final Class obj) { } /** - * Tries to instantiate a {@link CompositeMetricContext} proxy from a {@link Class} stereotyped << CompositeMetricContext >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link CompositeMetricContext} proxy from a {@link Class} stereotyped << CompositeMetricContext >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link CompositeMetricContext} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("b5845e4e-3b01-4f65-a8f4-b03936b550b2") public static CompositeMetricContext safeInstantiate(final Class obj) throws IllegalArgumentException { if (CompositeMetricContext.canInstantiate(obj)) - return new CompositeMetricContext(obj); + return new CompositeMetricContext(obj); else - throw new IllegalArgumentException("CompositeMetricContext: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("CompositeMetricContext: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'composingMetricContexts' role.

* Role description: * null - * */ @objid ("e3bc5abd-dc9a-43d8-b0e0-691c61188d3e") public void addComposingMetricContexts(final MetricContext obj) { @@ -132,7 +132,6 @@ public boolean equals(final Object obj) { * Get the values of the 'composingMetricContexts' role.

* Role description: * null - * */ @objid ("70210b21-cc93-4371-8687-beffa77d374f") public List getComposingMetricContexts() { @@ -150,7 +149,8 @@ public List getComposingMetricContexts() { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("84bf27c2-6085-403a-b78d-e06c0f9bba05") @@ -179,7 +179,6 @@ public int hashCode() { * Remove a value from the 'composingMetricContexts' role.

* Role description: * null - * */ @objid ("bf6c2481-0a1d-410e-b638-427cc91b3927") public boolean removeComposingMetricContexts(final MetricContext obj) { @@ -241,11 +240,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/Function.java b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/Function.java index 08756704..12523440 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/Function.java +++ b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/Function.java @@ -71,9 +71,10 @@ public static Function create() { } /** - * Tries to instantiate a {@link Function} proxy from a {@link Class} stereotyped << Function >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Function} proxy from a {@link Class} stereotyped << Function >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link Function} proxy or null. */ @@ -83,19 +84,20 @@ public static Function instantiate(final Class obj) { } /** - * Tries to instantiate a {@link Function} proxy from a {@link Class} stereotyped << Function >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Function} proxy from a {@link Class} stereotyped << Function >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link Function} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("e6c0b47f-296d-4a93-b6e8-18e540bd86c4") public static Function safeInstantiate(final Class obj) throws IllegalArgumentException { if (Function.canInstantiate(obj)) - return new Function(obj); + return new Function(obj); else - throw new IllegalArgumentException("Function: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("Function: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("db4c2ef3-07b8-42e8-bafe-0e561a269724") @@ -125,7 +127,8 @@ public List getArguments() { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("75d74542-7c13-4a90-9585-dfdbf9992cf5") @@ -210,11 +213,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/Metric.java b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/Metric.java index be9e4405..fd222d2b 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/Metric.java +++ b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/Metric.java @@ -15,7 +15,6 @@ import fr.softeam.cameldesigner.api.ICamelDesignerPeerModule; import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; import fr.softeam.cameldesigner.api.camelcore.standard.class_.FeatureClass; -import fr.softeam.cameldesigner.api.metricmodel.standard.class_.MetricTemplate; import fr.softeam.cameldesigner.impl.CamelDesignerModule; import org.modelio.api.modelio.model.IModelingSession; import org.modelio.api.modelio.model.PropertyConverter; @@ -77,7 +76,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("431d3471-dc5b-4081-8cdc-03b200a659a4") @@ -90,7 +90,6 @@ public Class getElement() { * Get the value of the 'metricTemplate' role.

* Role description: * null - * */ @objid ("7c9cf13a-3d20-4f11-96c0-65e39da5a6e4") public MetricTemplate getMetricTemplate() { @@ -114,7 +113,6 @@ public int hashCode() { * Set the value of the 'metricTemplate' role.

* Role description: * null - * */ @objid ("7fe23818-565d-48a1-8e1d-f0d746c469d3") public void setMetricTemplate(final MetricTemplate obj) { @@ -168,11 +166,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/MetricContext.java b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/MetricContext.java index 33cb27f1..3a3e0e10 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/MetricContext.java +++ b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/MetricContext.java @@ -17,12 +17,8 @@ import fr.softeam.cameldesigner.api.camelcore.standard.class_.FeatureClass; import fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.MetricConstraint; import fr.softeam.cameldesigner.api.metricmodel.standard.class_.CompositeMetric; -import fr.softeam.cameldesigner.api.metricmodel.standard.class_.Metric; import fr.softeam.cameldesigner.api.metricmodel.standard.class_.MetricVariable; -import fr.softeam.cameldesigner.api.metricmodel.standard.class_.ObjectContext; import fr.softeam.cameldesigner.api.metricmodel.standard.class_.RawMetric; -import fr.softeam.cameldesigner.api.metricmodel.standard.class_.Schedule; -import fr.softeam.cameldesigner.api.metricmodel.standard.class_.Window; import fr.softeam.cameldesigner.api.securitymodel.standard.class_.CompositeSecurityMetric; import fr.softeam.cameldesigner.api.securitymodel.standard.class_.RawSecurityMetric; import fr.softeam.cameldesigner.impl.CamelDesignerModule; @@ -67,7 +63,6 @@ public static boolean canInstantiate(final MObject elt) { * Add a value to the 'metricConstraint' role.

* Role description: * null - * */ @objid ("e4ff5eae-88ad-4d04-a8e7-db3fa6bd7b82") public void addMetricConstraint(final MetricConstraint obj) { @@ -92,7 +87,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("5ce0ae84-c7bd-4c30-a71b-c97d4786225a") @@ -105,7 +101,6 @@ public Class getElement() { * Get the value of the 'metric' role.

* Role description: * null - * */ @objid ("42b07ea4-727a-4bd4-b16f-65cb4c2d82ed") public Metric getMetric() { @@ -131,15 +126,14 @@ public Metric getMetric() { * Get the values of the 'metricConstraint' role.

* Role description: * null - * */ @objid ("e3bc8acb-2fee-4e06-bfe9-b469d7fcd2a3") public List getMetricConstraint() { List results = new ArrayList<>(); for (Constraint mObj : ((Class) this.elt).getConstraintDefinition()){ - if (MetricConstraint.canInstantiate(mObj)) - results.add((MetricConstraint)CamelDesignerProxyFactory.instantiate(mObj, MetricConstraint.STEREOTYPE_NAME)); - } + if (MetricConstraint.canInstantiate(mObj)) + results.add((MetricConstraint)CamelDesignerProxyFactory.instantiate(mObj, MetricConstraint.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -147,7 +141,6 @@ public List getMetricConstraint() { * Get the value of the 'objectContext' role.

* Role description: * null - * */ @objid ("e487cac6-bf98-4275-a176-ad3d41f6c818") public ObjectContext getObjectContext() { @@ -165,7 +158,6 @@ public ObjectContext getObjectContext() { * Get the value of the 'schedule' role.

* Role description: * null - * */ @objid ("f50b929b-6c0d-4fd1-a594-fd3227aeb6e9") public Schedule getSchedule() { @@ -183,7 +175,6 @@ public Schedule getSchedule() { * Get the value of the 'window' role.

* Role description: * null - * */ @objid ("dae46bd4-5cc6-425b-a3e2-98d048b49dab") public Window getWindow() { @@ -207,7 +198,6 @@ public int hashCode() { * Remove a value from the 'metricConstraint' role.

* Role description: * null - * */ @objid ("d7bd27db-f4a6-41f5-ac4a-03897d25b0b0") public boolean removeMetricConstraint(final MetricConstraint obj) { @@ -218,7 +208,6 @@ public boolean removeMetricConstraint(final MetricConstraint obj) { * Set the value of the 'metric' role.

* Role description: * null - * */ @objid ("0c3de3e0-3659-4240-a54e-fa4c12bde45d") public void setMetric(final Metric obj) { @@ -244,7 +233,6 @@ public void setMetric(final Metric obj) { * Set the value of the 'objectContext' role.

* Role description: * null - * */ @objid ("b900c77e-5cfe-4ec6-af82-4f2e946f2063") public void setObjectContext(final ObjectContext obj) { @@ -270,7 +258,6 @@ public void setObjectContext(final ObjectContext obj) { * Set the value of the 'schedule' role.

* Role description: * null - * */ @objid ("ff51587c-78c5-45ff-965a-63c4cb2a2967") public void setSchedule(final Schedule obj) { @@ -296,7 +283,6 @@ public void setSchedule(final Schedule obj) { * Set the value of the 'window' role.

* Role description: * null - * */ @objid ("bcdde6cb-6413-4565-9162-6267cbc95378") public void setWindow(final Window obj) { @@ -350,11 +336,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/MetricObjectBinding.java b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/MetricObjectBinding.java index afcce3be..a0822c6e 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/MetricObjectBinding.java +++ b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/MetricObjectBinding.java @@ -72,9 +72,10 @@ public static MetricObjectBinding create() { } /** - * Tries to instantiate a {@link MetricObjectBinding} proxy from a {@link Class} stereotyped << MetricObjectBinding >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link MetricObjectBinding} proxy from a {@link Class} stereotyped << MetricObjectBinding >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link MetricObjectBinding} proxy or null. */ @@ -84,19 +85,20 @@ public static MetricObjectBinding instantiate(final Class obj) { } /** - * Tries to instantiate a {@link MetricObjectBinding} proxy from a {@link Class} stereotyped << MetricObjectBinding >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link MetricObjectBinding} proxy from a {@link Class} stereotyped << MetricObjectBinding >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link MetricObjectBinding} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("d73564a0-a81d-4d8f-ac18-98fe311c60d3") public static MetricObjectBinding safeInstantiate(final Class obj) throws IllegalArgumentException { if (MetricObjectBinding.canInstantiate(obj)) - return new MetricObjectBinding(obj); + return new MetricObjectBinding(obj); else - throw new IllegalArgumentException("MetricObjectBinding: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("MetricObjectBinding: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("ef5a0999-f9f5-444d-831d-dbb1042e3a4b") @@ -119,7 +121,6 @@ public boolean equals(final Object obj) { * Get the value of the 'communicationInstance' role.

* Role description: * null - * */ @objid ("aea7bf63-15b4-421a-ba5d-712f57a4f2ab") public CommunicationInstance getCommunicationInstance() { @@ -137,7 +138,6 @@ public CommunicationInstance getCommunicationInstance() { * Get the value of the 'componentInstance' role.

* Role description: * null - * */ @objid ("1007808f-0620-4566-ba3b-87f8efa57e0f") public ComponentInstance getComponentInstance() { @@ -158,7 +158,8 @@ public ComponentInstance getComponentInstance() { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("4dbefc5e-424e-4502-bac1-c71003ab3a09") @@ -171,7 +172,6 @@ public Class getElement() { * Get the value of the 'executionModel' role.

* Role description: * null - * */ @objid ("f9b20ed2-5cc5-405c-ab9c-9411a95f8deb") public ExecutionModel getExecutionModel() { @@ -195,7 +195,6 @@ public int hashCode() { * Set the value of the 'communicationInstance' role.

* Role description: * null - * */ @objid ("aecc1cba-1101-4c64-b4c3-45e79c7f2f7f") public void setCommunicationInstance(final CommunicationInstance obj) { @@ -221,7 +220,6 @@ public void setCommunicationInstance(final CommunicationInstance obj) { * Set the value of the 'componentInstance' role.

* Role description: * null - * */ @objid ("1219d3ac-0338-46ad-a6a7-2a99e15e646d") public void setComponentInstance(final ComponentInstance obj) { @@ -247,7 +245,6 @@ public void setComponentInstance(final ComponentInstance obj) { * Set the value of the 'executionModel' role.

* Role description: * null - * */ @objid ("f898bbbb-1960-4282-91c2-4ddcdba17040") public void setExecutionModel(final ExecutionModel obj) { @@ -301,11 +298,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/MetricTemplate.java b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/MetricTemplate.java index befc8de2..b31af923 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/MetricTemplate.java +++ b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/MetricTemplate.java @@ -79,9 +79,10 @@ public static MetricTemplate create() { } /** - * Tries to instantiate a {@link MetricTemplate} proxy from a {@link Class} stereotyped << MetricTemplate >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link MetricTemplate} proxy from a {@link Class} stereotyped << MetricTemplate >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link MetricTemplate} proxy or null. */ @@ -91,19 +92,20 @@ public static MetricTemplate instantiate(final Class obj) { } /** - * Tries to instantiate a {@link MetricTemplate} proxy from a {@link Class} stereotyped << MetricTemplate >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link MetricTemplate} proxy from a {@link Class} stereotyped << MetricTemplate >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link MetricTemplate} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("499aaba2-a9d0-4a53-a96c-e5314017244d") public static MetricTemplate safeInstantiate(final Class obj) throws IllegalArgumentException { if (MetricTemplate.canInstantiate(obj)) - return new MetricTemplate(obj); + return new MetricTemplate(obj); else - throw new IllegalArgumentException("MetricTemplate: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("MetricTemplate: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("99cb1dde-cbde-43e6-a3a0-ec1f77f09062") @@ -126,7 +128,6 @@ public boolean equals(final Object obj) { * Get the value of the 'attribute' role.

* Role description: * null - * */ @objid ("34c415cb-0fa6-4903-bdd5-145904ee5225") public MeasurableAttributeClass getAttribute() { @@ -141,7 +142,8 @@ public MeasurableAttributeClass getAttribute() { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("1277724e-600e-4b6d-b3ab-c9f8e05e434b") @@ -154,7 +156,6 @@ public Class getElement() { * Get the value of the 'unit' role.

* Role description: * null - * */ @objid ("ab3f33b5-627d-4e7c-9f5f-555a11ddf801") public Unit getUnit() { @@ -186,7 +187,6 @@ public String getValueDirection() { * Get the value of the 'valueType' role.

* Role description: * null - * */ @objid ("1f001063-84d8-4728-b1e6-8b2467ee8000") public ValueType getValueType() { @@ -218,7 +218,6 @@ public int hashCode() { * Set the value of the 'attribute' role.

* Role description: * null - * */ @objid ("f559310b-26ac-4fe1-980b-ae024f05abc9") public void setAttribute(final MeasurableAttributeClass obj) { @@ -244,7 +243,6 @@ public void setAttribute(final MeasurableAttributeClass obj) { * Set the value of the 'unit' role.

* Role description: * null - * */ @objid ("b5e3383b-5508-4b60-bf3b-4080d1077f26") public void setUnit(final Unit obj) { @@ -280,7 +278,6 @@ public void setValueDirection(final String value) { * Set the value of the 'valueType' role.

* Role description: * null - * */ @objid ("4ba793d1-ebc8-41a1-bc73-196bc87df6b3") public void setValueType(final ValueType obj) { @@ -338,11 +335,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/MetricVariable.java b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/MetricVariable.java index c116936b..ab116a6c 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/MetricVariable.java +++ b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/MetricVariable.java @@ -21,7 +21,6 @@ import fr.softeam.cameldesigner.api.deploymentmodel.standard.component.SoftwareComponent; import fr.softeam.cameldesigner.api.deploymentmodel.standard.component.VM; import fr.softeam.cameldesigner.api.metricmodel.standard.class_.CompositeMetric; -import fr.softeam.cameldesigner.api.metricmodel.standard.class_.Metric; import fr.softeam.cameldesigner.api.metricmodel.standard.class_.RawMetric; import fr.softeam.cameldesigner.api.metricmodel.standard.component.Sensor; import fr.softeam.cameldesigner.api.securitymodel.standard.class_.CompositeSecurityMetric; @@ -86,9 +85,10 @@ public static MetricVariable create() { } /** - * Tries to instantiate a {@link MetricVariable} proxy from a {@link Class} stereotyped << MetricVariable >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link MetricVariable} proxy from a {@link Class} stereotyped << MetricVariable >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link MetricVariable} proxy or null. */ @@ -98,26 +98,26 @@ public static MetricVariable instantiate(final Class obj) { } /** - * Tries to instantiate a {@link MetricVariable} proxy from a {@link Class} stereotyped << MetricVariable >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link MetricVariable} proxy from a {@link Class} stereotyped << MetricVariable >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link MetricVariable} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("01096191-bc1e-4ecf-b1a2-f2de0775588d") public static MetricVariable safeInstantiate(final Class obj) throws IllegalArgumentException { if (MetricVariable.canInstantiate(obj)) - return new MetricVariable(obj); + return new MetricVariable(obj); else - throw new IllegalArgumentException("MetricVariable: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("MetricVariable: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'componentMetrics' role.

* Role description: * null - * */ @objid ("f23006f4-3f4e-4db1-9eaf-b9759b8041d5") public void addComponentMetrics(final Metric obj) { @@ -133,7 +133,6 @@ public void addComponentMetrics(final Metric obj) { * Add a value to the 'metricVariableConstraint' role.

* Role description: * null - * */ @objid ("8b6069c0-a46e-4bd0-ae88-6f7d198c0d58") public void addMetricVariableConstraint(final MetricVariableConstraint obj) { @@ -161,7 +160,6 @@ public boolean equals(final Object obj) { * Get the value of the 'component' role.

* Role description: * null - * */ @objid ("c7470f0d-b4dd-4dd2-b126-f8fb55e6ede3") public CamelComponent getComponent() { @@ -187,7 +185,6 @@ public CamelComponent getComponent() { * Get the values of the 'componentMetrics' role.

* Role description: * null - * */ @objid ("ce23207e-a5f4-44ce-b7f6-8bd11acf9880") public List getComponentMetrics() { @@ -211,7 +208,8 @@ public List getComponentMetrics() { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("54343cda-ee0c-4eb6-a6aa-edf2745696ac") @@ -234,15 +232,14 @@ public String getFormula() { * Get the values of the 'metricVariableConstraint' role.

* Role description: * null - * */ @objid ("f7ee0590-c889-4eef-8f8d-3bc776fec289") public List getMetricVariableConstraint() { List results = new ArrayList<>(); for (Constraint mObj : ((Class) this.elt).getConstraintDefinition()){ - if (MetricVariableConstraint.canInstantiate(mObj)) - results.add((MetricVariableConstraint)CamelDesignerProxyFactory.instantiate(mObj, MetricVariableConstraint.STEREOTYPE_NAME)); - } + if (MetricVariableConstraint.canInstantiate(mObj)) + results.add((MetricVariableConstraint)CamelDesignerProxyFactory.instantiate(mObj, MetricVariableConstraint.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -276,7 +273,6 @@ public boolean isOnNodeCandidates() { * Remove a value from the 'componentMetrics' role.

* Role description: * null - * */ @objid ("859bfb55-5b71-413e-b9b6-ba2492c6c428") public boolean removeComponentMetrics(final Metric obj) { @@ -296,7 +292,6 @@ public boolean removeComponentMetrics(final Metric obj) { * Remove a value from the 'metricVariableConstraint' role.

* Role description: * null - * */ @objid ("1ab1bb24-9f0c-4200-bb30-a3ecfeedd53e") public boolean removeMetricVariableConstraint(final MetricVariableConstraint obj) { @@ -307,7 +302,6 @@ public boolean removeMetricVariableConstraint(final MetricVariableConstraint obj * Set the value of the 'component' role.

* Role description: * null - * */ @objid ("6e826295-daa2-41b6-96e5-e9c61031f755") public void setComponent(final CamelComponent obj) { @@ -409,11 +403,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/ObjectContext.java b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/ObjectContext.java index f00d8e38..e119bdd3 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/ObjectContext.java +++ b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/ObjectContext.java @@ -73,9 +73,10 @@ public static ObjectContext create() { } /** - * Tries to instantiate a {@link ObjectContext} proxy from a {@link Class} stereotyped << ObjectContext >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ObjectContext} proxy from a {@link Class} stereotyped << ObjectContext >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link ObjectContext} proxy or null. */ @@ -85,19 +86,20 @@ public static ObjectContext instantiate(final Class obj) { } /** - * Tries to instantiate a {@link ObjectContext} proxy from a {@link Class} stereotyped << ObjectContext >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ObjectContext} proxy from a {@link Class} stereotyped << ObjectContext >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link ObjectContext} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("45d5acec-0156-4bb7-aef8-b635428840ac") public static ObjectContext safeInstantiate(final Class obj) throws IllegalArgumentException { if (ObjectContext.canInstantiate(obj)) - return new ObjectContext(obj); + return new ObjectContext(obj); else - throw new IllegalArgumentException("ObjectContext: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("ObjectContext: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("a5344e23-8631-4e70-8837-82b886a96f60") @@ -120,7 +122,6 @@ public boolean equals(final Object obj) { * Get the value of the 'communication' role.

* Role description: * null - * */ @objid ("99dbdf14-3fc5-48f3-8a73-94de13152a3f") public Communication getCommunication() { @@ -138,7 +139,6 @@ public Communication getCommunication() { * Get the value of the 'component' role.

* Role description: * null - * */ @objid ("938145ea-96ad-4f23-8b54-3727e9840fe5") public CamelComponent getComponent() { @@ -164,7 +164,6 @@ public CamelComponent getComponent() { * Get the value of the 'data' role.

* Role description: * null - * */ @objid ("d2284069-60a7-410c-be31-8b9bb82812d0") public Data getData() { @@ -179,7 +178,8 @@ public Data getData() { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("1d248e99-2365-4d0a-b539-1f3f9ae5477f") @@ -198,7 +198,6 @@ public int hashCode() { * Set the value of the 'communication' role.

* Role description: * null - * */ @objid ("f1d38417-2b24-436f-899b-9443b01b6f6b") public void setCommunication(final Communication obj) { @@ -224,7 +223,6 @@ public void setCommunication(final Communication obj) { * Set the value of the 'component' role.

* Role description: * null - * */ @objid ("3b5e376a-20cc-4738-a5cd-7f437187b067") public void setComponent(final CamelComponent obj) { @@ -250,7 +248,6 @@ public void setComponent(final CamelComponent obj) { * Set the value of the 'data' role.

* Role description: * null - * */ @objid ("89253c10-7e1b-4b63-a4d1-b9029e330d46") public void setData(final Data obj) { @@ -304,11 +301,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/RawMetric.java b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/RawMetric.java index 91281207..442f77e2 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/RawMetric.java +++ b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/RawMetric.java @@ -64,9 +64,10 @@ public static RawMetric create() { } /** - * Tries to instantiate a {@link RawMetric} proxy from a {@link Class} stereotyped << RawMetric >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link RawMetric} proxy from a {@link Class} stereotyped << RawMetric >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link RawMetric} proxy or null. */ @@ -76,19 +77,20 @@ public static RawMetric instantiate(final Class obj) { } /** - * Tries to instantiate a {@link RawMetric} proxy from a {@link Class} stereotyped << RawMetric >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link RawMetric} proxy from a {@link Class} stereotyped << RawMetric >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link RawMetric} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("6d890759-1470-4f09-ac05-1e32922dccdc") public static RawMetric safeInstantiate(final Class obj) throws IllegalArgumentException { if (RawMetric.canInstantiate(obj)) - return new RawMetric(obj); + return new RawMetric(obj); else - throw new IllegalArgumentException("RawMetric: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("RawMetric: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("5b379b00-e9ba-414f-b768-50b988dde269") @@ -108,7 +110,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("bbf23b94-3bc6-4832-8b2d-bd9175bb2205") @@ -155,11 +158,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/RawMetricContext.java b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/RawMetricContext.java index 56a7bc7b..312e88e6 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/RawMetricContext.java +++ b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/RawMetricContext.java @@ -65,9 +65,10 @@ public static RawMetricContext create() { } /** - * Tries to instantiate a {@link RawMetricContext} proxy from a {@link Class} stereotyped << RawMetricContext >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link RawMetricContext} proxy from a {@link Class} stereotyped << RawMetricContext >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link RawMetricContext} proxy or null. */ @@ -77,19 +78,20 @@ public static RawMetricContext instantiate(final Class obj) { } /** - * Tries to instantiate a {@link RawMetricContext} proxy from a {@link Class} stereotyped << RawMetricContext >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link RawMetricContext} proxy from a {@link Class} stereotyped << RawMetricContext >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link RawMetricContext} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("cc14a1b1-b145-48f7-8967-7bfd9d546fdc") public static RawMetricContext safeInstantiate(final Class obj) throws IllegalArgumentException { if (RawMetricContext.canInstantiate(obj)) - return new RawMetricContext(obj); + return new RawMetricContext(obj); else - throw new IllegalArgumentException("RawMetricContext: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("RawMetricContext: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("d6675941-21fb-4601-b118-aa08cf523a90") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("0965f91b-11c7-49bd-811c-a375eb8dc8e6") @@ -122,7 +125,6 @@ public Class getElement() { * Get the value of the 'sensor' role.

* Role description: * null - * */ @objid ("f57ded58-87a8-44a9-8dd3-c78a45f49f62") public Sensor getSensor() { @@ -146,7 +148,6 @@ public int hashCode() { * Set the value of the 'sensor' role.

* Role description: * null - * */ @objid ("73965773-5967-4622-b531-c96e86367bbd") public void setSensor(final Sensor obj) { @@ -200,11 +201,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/Schedule.java b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/Schedule.java index 23db7686..8c0a7f12 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/Schedule.java +++ b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/Schedule.java @@ -81,9 +81,10 @@ public static Schedule create() { } /** - * Tries to instantiate a {@link Schedule} proxy from a {@link Class} stereotyped << Schedule >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Schedule} proxy from a {@link Class} stereotyped << Schedule >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link Schedule} proxy or null. */ @@ -93,19 +94,20 @@ public static Schedule instantiate(final Class obj) { } /** - * Tries to instantiate a {@link Schedule} proxy from a {@link Class} stereotyped << Schedule >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Schedule} proxy from a {@link Class} stereotyped << Schedule >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link Schedule} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("6a75431c-d2d2-45f8-a94e-a44fb8a7ebdd") public static Schedule safeInstantiate(final Class obj) throws IllegalArgumentException { if (Schedule.canInstantiate(obj)) - return new Schedule(obj); + return new Schedule(obj); else - throw new IllegalArgumentException("Schedule: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("Schedule: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("f949b157-4d4b-49f3-8110-974f75766f41") @@ -125,7 +127,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("73f34d25-99e2-4068-8afa-0c7179149e1e") @@ -178,7 +181,6 @@ public String getStart() { * Get the value of the 'timeUnit' role.

* Role description: * null - * */ @objid ("d35441e4-e274-4b86-a9dd-50ee84bfe9e7") public Unit getTimeUnit() { @@ -246,7 +248,6 @@ public void setStart(final String value) { * Set the value of the 'timeUnit' role.

* Role description: * null - * */ @objid ("70c15678-4607-449d-a0f4-a38dcb4f5f13") public void setTimeUnit(final Unit obj) { @@ -316,11 +317,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/Window.java b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/Window.java index c9e4336a..67a40699 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/Window.java +++ b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/Window.java @@ -81,9 +81,10 @@ public static Window create() { } /** - * Tries to instantiate a {@link Window} proxy from a {@link Class} stereotyped << Window >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Window} proxy from a {@link Class} stereotyped << Window >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link Window} proxy or null. */ @@ -93,19 +94,20 @@ public static Window instantiate(final Class obj) { } /** - * Tries to instantiate a {@link Window} proxy from a {@link Class} stereotyped << Window >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Window} proxy from a {@link Class} stereotyped << Window >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link Window} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("087df638-32be-4c63-ae8d-c1ded284756f") public static Window safeInstantiate(final Class obj) throws IllegalArgumentException { if (Window.canInstantiate(obj)) - return new Window(obj); + return new Window(obj); else - throw new IllegalArgumentException("Window: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("Window: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("dc8b208a-f929-4754-80cd-bf9510ea00c2") @@ -125,7 +127,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("8b38993e-aa9d-4dba-ab76-81c0cbda37c4") @@ -168,7 +171,6 @@ public String getTimeSize() { * Get the value of the 'timeUnit' role.

* Role description: * null - * */ @objid ("08eba475-7efa-4f71-ae3f-7ff491afa4ad") public Unit getTimeUnit() { @@ -236,7 +238,6 @@ public void setTimeSize(final String value) { * Set the value of the 'timeUnit' role.

* Role description: * null - * */ @objid ("1e8a4445-473e-4c05-a23c-7e1b8d262aa8") public void setTimeUnit(final Unit obj) { @@ -316,11 +317,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/component/Sensor.java b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/component/Sensor.java index 895e0681..fe301090 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/component/Sensor.java +++ b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/component/Sensor.java @@ -71,9 +71,10 @@ public static Sensor create() { } /** - * Tries to instantiate a {@link Sensor} proxy from a {@link Component} stereotyped << Sensor >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Sensor} proxy from a {@link Component} stereotyped << Sensor >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Component * @return a {@link Sensor} proxy or null. */ @@ -83,19 +84,20 @@ public static Sensor instantiate(final Component obj) { } /** - * Tries to instantiate a {@link Sensor} proxy from a {@link Component} stereotyped << Sensor >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Sensor} proxy from a {@link Component} stereotyped << Sensor >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Component} * @return a {@link Sensor} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("18403c83-d032-4ed4-8913-ab76231e82c9") public static Sensor safeInstantiate(final Component obj) throws IllegalArgumentException { if (Sensor.canInstantiate(obj)) - return new Sensor(obj); + return new Sensor(obj); else - throw new IllegalArgumentException("Sensor: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("Sensor: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("96fec0a9-e31f-44ed-ae20-e840d5cf9642") @@ -125,7 +127,8 @@ public String getConfiguration() { } /** - * Get the underlying {@link Component}. + * Get the underlying {@link Component}. + * * @return the Component represented by this proxy, never null. */ @objid ("b2ae3b11-a69b-4917-94a5-875ab2c5ee99") @@ -213,11 +216,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/instance/MetricInstance.java b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/instance/MetricInstance.java index 5fba66c7..a1412131 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/instance/MetricInstance.java +++ b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/instance/MetricInstance.java @@ -69,9 +69,10 @@ public static MetricInstance create() { } /** - * Tries to instantiate a {@link MetricInstance} proxy from a {@link Instance} stereotyped << MetricInstance >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link MetricInstance} proxy from a {@link Instance} stereotyped << MetricInstance >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Instance * @return a {@link MetricInstance} proxy or null. */ @@ -81,26 +82,26 @@ public static MetricInstance instantiate(final Instance obj) { } /** - * Tries to instantiate a {@link MetricInstance} proxy from a {@link Instance} stereotyped << MetricInstance >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link MetricInstance} proxy from a {@link Instance} stereotyped << MetricInstance >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Instance} * @return a {@link MetricInstance} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("6b876ffa-04d0-469a-abb3-a91029ac56fd") public static MetricInstance safeInstantiate(final Instance obj) throws IllegalArgumentException { if (MetricInstance.canInstantiate(obj)) - return new MetricInstance(obj); + return new MetricInstance(obj); else - throw new IllegalArgumentException("MetricInstance: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("MetricInstance: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value of the 'composingMetricInstances' role.

* Role description: * null - * */ @objid ("6ce3f047-8ba1-49a9-9d92-2e543d90e7cc") public void addComposingMetricInstances(final MetricInstance obj) { @@ -132,7 +133,6 @@ public boolean equals(final Object obj) { * Get the values of the 'composingMetricInstances' role.

* Role description: * null - * */ @objid ("edef1622-ff74-41c6-9b59-94fad120d248") public List getComposingMetricInstances() { @@ -148,7 +148,8 @@ public List getComposingMetricInstances() { } /** - * Get the underlying {@link Instance}. + * Get the underlying {@link Instance}. + * * @return the Instance represented by this proxy, never null. */ @objid ("03f3eb52-73b4-4f14-8c7e-9dc30e137f64") @@ -161,7 +162,6 @@ public Instance getElement() { * Get the value of the 'metricContext' role.

* Role description: * null - * */ @objid ("0ee52127-1d0d-45bf-9f23-0d2caa382436") public MetricContext getMetricContext() { @@ -181,7 +181,6 @@ public MetricContext getMetricContext() { * Get the value of the 'objectBinding' role.

* Role description: * null - * */ @objid ("a96767a1-3152-4086-9c12-802f30909cd2") public MetricObjectBinding getObjectBinding() { @@ -205,7 +204,6 @@ public int hashCode() { * Remove a value from 'composingMetricInstances' role.

* Role description: * null - * */ @objid ("6b66a046-5b5e-4f9b-9e1a-9d46f9bd3341") public boolean removeComposingMetricInstances(final MetricInstance obj) { @@ -225,7 +223,6 @@ public boolean removeComposingMetricInstances(final MetricInstance obj) { * Set the value of the 'metricContext' role.

* Role description: * null - * */ @objid ("6918273b-38e9-4be2-a3a0-a9320923bd88") public void setMetricContext(final MetricContext obj) { @@ -251,7 +248,6 @@ public void setMetricContext(final MetricContext obj) { * Set the value of the 'objectBinding' role.

* Role description: * null - * */ @objid ("eb57bcf0-9386-4eba-bb34-70d43d537fbe") public void setObjectBinding(final MetricObjectBinding obj) { @@ -305,11 +301,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/package_/MetricInstanceModel.java b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/package_/MetricInstanceModel.java index 4d2911bb..bae8f7a9 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/package_/MetricInstanceModel.java +++ b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/package_/MetricInstanceModel.java @@ -16,7 +16,6 @@ import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; import fr.softeam.cameldesigner.api.metricmodel.standard.class_.MetricObjectBinding; import fr.softeam.cameldesigner.api.metricmodel.standard.instance.MetricInstance; -import fr.softeam.cameldesigner.api.metricmodel.standard.package_.MetricTypeModel; import fr.softeam.cameldesigner.api.securitymodel.standard.instance.SecurityMetricInstance; import fr.softeam.cameldesigner.impl.CamelDesignerModule; import org.modelio.api.modelio.model.IModelingSession; @@ -70,9 +69,10 @@ public static MetricInstanceModel create() { } /** - * Tries to instantiate a {@link MetricInstanceModel} proxy from a {@link Package} stereotyped << MetricInstanceModel >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link MetricInstanceModel} proxy from a {@link Package} stereotyped << MetricInstanceModel >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Package * @return a {@link MetricInstanceModel} proxy or null. */ @@ -82,26 +82,26 @@ public static MetricInstanceModel instantiate(final Package obj) { } /** - * Tries to instantiate a {@link MetricInstanceModel} proxy from a {@link Package} stereotyped << MetricInstanceModel >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link MetricInstanceModel} proxy from a {@link Package} stereotyped << MetricInstanceModel >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Package} * @return a {@link MetricInstanceModel} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("d014fd46-5466-4d00-aca6-6c66ca315c3a") public static MetricInstanceModel safeInstantiate(final Package obj) throws IllegalArgumentException { if (MetricInstanceModel.canInstantiate(obj)) - return new MetricInstanceModel(obj); + return new MetricInstanceModel(obj); else - throw new IllegalArgumentException("MetricInstanceModel: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("MetricInstanceModel: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'bindings' role.

* Role description: * null - * */ @objid ("bf911d29-f0ef-4169-8f46-fb0bdfec061c") public void addBindings(final MetricObjectBinding obj) { @@ -113,7 +113,6 @@ public void addBindings(final MetricObjectBinding obj) { * Add a value to the 'metricInstances' role.

* Role description: * null - * */ @objid ("b55af172-3bc6-4345-92d1-92d9f9cd4eaa") public void addMetricInstances(final MetricInstance obj) { @@ -141,20 +140,20 @@ public boolean equals(final Object obj) { * Get the values of the 'bindings' role.

* Role description: * null - * */ @objid ("8d2a8972-202d-4b58-99dc-ede68318b293") public List getBindings() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (MetricObjectBinding.canInstantiate(mObj)) - results.add((MetricObjectBinding)CamelDesignerProxyFactory.instantiate(mObj, MetricObjectBinding.STEREOTYPE_NAME)); - } + if (MetricObjectBinding.canInstantiate(mObj)) + results.add((MetricObjectBinding)CamelDesignerProxyFactory.instantiate(mObj, MetricObjectBinding.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } /** - * Get the underlying {@link Package}. + * Get the underlying {@link Package}. + * * @return the Package represented by this proxy, never null. */ @objid ("9204ca65-2847-4418-badd-3b34b9171e59") @@ -167,17 +166,16 @@ public Package getElement() { * Get the values of the 'metricInstances' role.

* Role description: * null - * */ @objid ("9b05c101-ac9b-4484-9251-93d80ff2ac71") public List getMetricInstances() { List results = new ArrayList<>(); for (Instance mObj : ((Package) this.elt).getDeclared()){ - if (SecurityMetricInstance.canInstantiate(mObj)) - results.add((SecurityMetricInstance)CamelDesignerProxyFactory.instantiate(mObj, SecurityMetricInstance.STEREOTYPE_NAME)); - if (MetricInstance.canInstantiate(mObj)) - results.add((MetricInstance)CamelDesignerProxyFactory.instantiate(mObj, MetricInstance.STEREOTYPE_NAME)); - } + if (SecurityMetricInstance.canInstantiate(mObj)) + results.add((SecurityMetricInstance)CamelDesignerProxyFactory.instantiate(mObj, SecurityMetricInstance.STEREOTYPE_NAME)); + if (MetricInstance.canInstantiate(mObj)) + results.add((MetricInstance)CamelDesignerProxyFactory.instantiate(mObj, MetricInstance.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -185,7 +183,6 @@ public List getMetricInstances() { * Get the value of the 'type' role.

* Role description: * null - * */ @objid ("e7de06f5-ffcb-4b0f-8120-e9c89e2a24c7") public MetricTypeModel getType() { @@ -209,7 +206,6 @@ public int hashCode() { * Remove a value from the 'bindings' role.

* Role description: * null - * */ @objid ("112cc47c-8616-4f7f-bdc4-72d0fdc0e118") public boolean removeBindings(final MetricObjectBinding obj) { @@ -220,7 +216,6 @@ public boolean removeBindings(final MetricObjectBinding obj) { * Remove a value from the 'metricInstances' role.

* Role description: * null - * */ @objid ("eeb7b416-f514-46c3-b585-22ccfcac4783") public boolean removeMetricInstances(final MetricInstance obj) { @@ -231,7 +226,6 @@ public boolean removeMetricInstances(final MetricInstance obj) { * Set the value of the 'type' role.

* Role description: * null - * */ @objid ("df359627-78ef-41ff-b4a0-bd3cef682de3") public void setType(final MetricTypeModel obj) { @@ -285,11 +279,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/package_/MetricModel.java b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/package_/MetricModel.java index e97ddeab..6818130e 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/package_/MetricModel.java +++ b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/package_/MetricModel.java @@ -69,7 +69,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Package}. + * Get the underlying {@link Package}. + * * @return the Package represented by this proxy, never null. */ @objid ("d3a4c0b8-e689-4d5e-bcb7-7f8f13f192ef") @@ -116,11 +117,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/package_/MetricTypeModel.java b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/package_/MetricTypeModel.java index ead3319e..a96c9e83 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/package_/MetricTypeModel.java +++ b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/package_/MetricTypeModel.java @@ -84,9 +84,10 @@ public static MetricTypeModel create() { } /** - * Tries to instantiate a {@link MetricTypeModel} proxy from a {@link Package} stereotyped << MetricTypeModel >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link MetricTypeModel} proxy from a {@link Package} stereotyped << MetricTypeModel >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Package * @return a {@link MetricTypeModel} proxy or null. */ @@ -96,26 +97,26 @@ public static MetricTypeModel instantiate(final Package obj) { } /** - * Tries to instantiate a {@link MetricTypeModel} proxy from a {@link Package} stereotyped << MetricTypeModel >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link MetricTypeModel} proxy from a {@link Package} stereotyped << MetricTypeModel >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Package} * @return a {@link MetricTypeModel} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("3bf39040-c1b4-47f3-be78-8c63c775b109") public static MetricTypeModel safeInstantiate(final Package obj) throws IllegalArgumentException { if (MetricTypeModel.canInstantiate(obj)) - return new MetricTypeModel(obj); + return new MetricTypeModel(obj); else - throw new IllegalArgumentException("MetricTypeModel: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("MetricTypeModel: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'attributContexts' role.

* Role description: * null - * */ @objid ("b8dae037-b82c-4fa4-8c44-ee08c4336d0f") public void addAttributContexts(final AttributeContext obj) { @@ -127,7 +128,6 @@ public void addAttributContexts(final AttributeContext obj) { * Add a value to the 'functions' role.

* Role description: * null - * */ @objid ("2b832fd9-f02e-480b-956a-82e82c7545d6") public void addFunctions(final Function obj) { @@ -139,7 +139,6 @@ public void addFunctions(final Function obj) { * Add a value to the 'metricContexts' role.

* Role description: * null - * */ @objid ("8e4a79db-2c88-475c-ba14-5a559fb24549") public void addMetricContexts(final MetricContext obj) { @@ -151,7 +150,6 @@ public void addMetricContexts(final MetricContext obj) { * Add a value to the 'metrics' role.

* Role description: * null - * */ @objid ("ae5048f1-97f8-4478-938f-e321927ad162") public void addMetrics(final Metric obj) { @@ -163,7 +161,6 @@ public void addMetrics(final Metric obj) { * Add a value to the 'objectContexts' role.

* Role description: * null - * */ @objid ("9718ce8c-ae89-4c5a-ae64-a88c1f981c88") public void addObjectContexts(final ObjectContext obj) { @@ -175,7 +172,6 @@ public void addObjectContexts(final ObjectContext obj) { * Add a value to the 'schedules' role.

* Role description: * null - * */ @objid ("9831c4d9-952a-4fe2-9aad-4da2f9a90898") public void addSchedules(final Schedule obj) { @@ -187,7 +183,6 @@ public void addSchedules(final Schedule obj) { * Add a value to the 'sensors' role.

* Role description: * null - * */ @objid ("1b4dfdef-fbad-4abf-be6e-8522d5463706") public void addSensors(final Sensor obj) { @@ -199,7 +194,6 @@ public void addSensors(final Sensor obj) { * Add a value to the 'templates' role.

* Role description: * null - * */ @objid ("0a35e4f7-63df-4a2c-b9bf-f587e3c56b4b") public void addTemplates(final MetricTemplate obj) { @@ -211,7 +205,6 @@ public void addTemplates(final MetricTemplate obj) { * Add a value to the 'windows' role.

* Role description: * null - * */ @objid ("f527b953-661e-4548-af24-5b3e8a18b81f") public void addWindows(final Window obj) { @@ -239,20 +232,20 @@ public boolean equals(final Object obj) { * Get the values of the 'attributContexts' role.

* Role description: * null - * */ @objid ("759a97f8-f746-477c-bf44-fdfa12b84448") public List getAttributContexts() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (AttributeContext.canInstantiate(mObj)) - results.add((AttributeContext)CamelDesignerProxyFactory.instantiate(mObj, AttributeContext.STEREOTYPE_NAME)); - } + if (AttributeContext.canInstantiate(mObj)) + results.add((AttributeContext)CamelDesignerProxyFactory.instantiate(mObj, AttributeContext.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } /** - * Get the underlying {@link Package}. + * Get the underlying {@link Package}. + * * @return the Package represented by this proxy, never null. */ @objid ("52809e05-68b1-4709-a21e-f01d7f043b69") @@ -265,15 +258,14 @@ public Package getElement() { * Get the values of the 'functions' role.

* Role description: * null - * */ @objid ("ef4a4ea1-dc0e-4633-8690-c46e4841dc3c") public List getFunctions() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (Function.canInstantiate(mObj)) - results.add((Function)CamelDesignerProxyFactory.instantiate(mObj, Function.STEREOTYPE_NAME)); - } + if (Function.canInstantiate(mObj)) + results.add((Function)CamelDesignerProxyFactory.instantiate(mObj, Function.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -281,17 +273,16 @@ public List getFunctions() { * Get the values of the 'metricContexts' role.

* Role description: * null - * */ @objid ("8d562caa-2ee3-4435-9201-7898c09c79e0") public List getMetricContexts() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (CompositeMetricContext.canInstantiate(mObj)) - results.add((CompositeMetricContext)CamelDesignerProxyFactory.instantiate(mObj, CompositeMetricContext.STEREOTYPE_NAME)); - if (RawMetricContext.canInstantiate(mObj)) - results.add((RawMetricContext)CamelDesignerProxyFactory.instantiate(mObj, RawMetricContext.STEREOTYPE_NAME)); - } + if (CompositeMetricContext.canInstantiate(mObj)) + results.add((CompositeMetricContext)CamelDesignerProxyFactory.instantiate(mObj, CompositeMetricContext.STEREOTYPE_NAME)); + if (RawMetricContext.canInstantiate(mObj)) + results.add((RawMetricContext)CamelDesignerProxyFactory.instantiate(mObj, RawMetricContext.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -299,23 +290,22 @@ public List getMetricContexts() { * Get the values of the 'metrics' role.

* Role description: * null - * */ @objid ("bd6de2b6-7a7c-4f3e-b565-c7e5ca2a566f") public List getMetrics() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (CompositeSecurityMetric.canInstantiate(mObj)) - results.add((CompositeSecurityMetric)CamelDesignerProxyFactory.instantiate(mObj, CompositeSecurityMetric.STEREOTYPE_NAME)); - if (CompositeMetric.canInstantiate(mObj)) - results.add((CompositeMetric)CamelDesignerProxyFactory.instantiate(mObj, CompositeMetric.STEREOTYPE_NAME)); - if (MetricVariable.canInstantiate(mObj)) - results.add((MetricVariable)CamelDesignerProxyFactory.instantiate(mObj, MetricVariable.STEREOTYPE_NAME)); - if (RawSecurityMetric.canInstantiate(mObj)) - results.add((RawSecurityMetric)CamelDesignerProxyFactory.instantiate(mObj, RawSecurityMetric.STEREOTYPE_NAME)); - if (RawMetric.canInstantiate(mObj)) - results.add((RawMetric)CamelDesignerProxyFactory.instantiate(mObj, RawMetric.STEREOTYPE_NAME)); - } + if (CompositeSecurityMetric.canInstantiate(mObj)) + results.add((CompositeSecurityMetric)CamelDesignerProxyFactory.instantiate(mObj, CompositeSecurityMetric.STEREOTYPE_NAME)); + if (CompositeMetric.canInstantiate(mObj)) + results.add((CompositeMetric)CamelDesignerProxyFactory.instantiate(mObj, CompositeMetric.STEREOTYPE_NAME)); + if (MetricVariable.canInstantiate(mObj)) + results.add((MetricVariable)CamelDesignerProxyFactory.instantiate(mObj, MetricVariable.STEREOTYPE_NAME)); + if (RawSecurityMetric.canInstantiate(mObj)) + results.add((RawSecurityMetric)CamelDesignerProxyFactory.instantiate(mObj, RawSecurityMetric.STEREOTYPE_NAME)); + if (RawMetric.canInstantiate(mObj)) + results.add((RawMetric)CamelDesignerProxyFactory.instantiate(mObj, RawMetric.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -323,15 +313,14 @@ public List getMetrics() { * Get the values of the 'objectContexts' role.

* Role description: * null - * */ @objid ("f0ae1435-6f02-43a8-94e7-5b532d3d9090") public List getObjectContexts() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (ObjectContext.canInstantiate(mObj)) - results.add((ObjectContext)CamelDesignerProxyFactory.instantiate(mObj, ObjectContext.STEREOTYPE_NAME)); - } + if (ObjectContext.canInstantiate(mObj)) + results.add((ObjectContext)CamelDesignerProxyFactory.instantiate(mObj, ObjectContext.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -339,15 +328,14 @@ public List getObjectContexts() { * Get the values of the 'schedules' role.

* Role description: * null - * */ @objid ("63f6035a-9171-44e3-9a3a-abe61698a667") public List getSchedules() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (Schedule.canInstantiate(mObj)) - results.add((Schedule)CamelDesignerProxyFactory.instantiate(mObj, Schedule.STEREOTYPE_NAME)); - } + if (Schedule.canInstantiate(mObj)) + results.add((Schedule)CamelDesignerProxyFactory.instantiate(mObj, Schedule.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -355,15 +343,14 @@ public List getSchedules() { * Get the values of the 'sensors' role.

* Role description: * null - * */ @objid ("246dfe45-e537-44c6-b378-d657fd2ed6a4") public List getSensors() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (Sensor.canInstantiate(mObj)) - results.add((Sensor)CamelDesignerProxyFactory.instantiate(mObj, Sensor.STEREOTYPE_NAME)); - } + if (Sensor.canInstantiate(mObj)) + results.add((Sensor)CamelDesignerProxyFactory.instantiate(mObj, Sensor.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -371,15 +358,14 @@ public List getSensors() { * Get the values of the 'templates' role.

* Role description: * null - * */ @objid ("f6ab2df8-6ba5-4342-a5e6-caf24cc779ab") public List getTemplates() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (MetricTemplate.canInstantiate(mObj)) - results.add((MetricTemplate)CamelDesignerProxyFactory.instantiate(mObj, MetricTemplate.STEREOTYPE_NAME)); - } + if (MetricTemplate.canInstantiate(mObj)) + results.add((MetricTemplate)CamelDesignerProxyFactory.instantiate(mObj, MetricTemplate.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -387,15 +373,14 @@ public List getTemplates() { * Get the values of the 'windows' role.

* Role description: * null - * */ @objid ("431001cb-4b36-426d-a7ac-0f40123d2c11") public List getWindows() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (Window.canInstantiate(mObj)) - results.add((Window)CamelDesignerProxyFactory.instantiate(mObj, Window.STEREOTYPE_NAME)); - } + if (Window.canInstantiate(mObj)) + results.add((Window)CamelDesignerProxyFactory.instantiate(mObj, Window.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -409,7 +394,6 @@ public int hashCode() { * Remove a value from the 'attributContexts' role.

* Role description: * null - * */ @objid ("935ed4d5-a9e6-4dd6-91bf-0e2655446268") public boolean removeAttributContexts(final AttributeContext obj) { @@ -420,7 +404,6 @@ public boolean removeAttributContexts(final AttributeContext obj) { * Remove a value from the 'functions' role.

* Role description: * null - * */ @objid ("31f9d6ac-d409-4b80-ac4b-9a7ce394b68a") public boolean removeFunctions(final Function obj) { @@ -431,7 +414,6 @@ public boolean removeFunctions(final Function obj) { * Remove a value from the 'metricContexts' role.

* Role description: * null - * */ @objid ("58c91b05-7bb7-4fbb-8c34-2e9e41548e2f") public boolean removeMetricContexts(final MetricContext obj) { @@ -442,7 +424,6 @@ public boolean removeMetricContexts(final MetricContext obj) { * Remove a value from the 'metrics' role.

* Role description: * null - * */ @objid ("3c014d70-3372-4521-ad3b-53279c198c30") public boolean removeMetrics(final Metric obj) { @@ -453,7 +434,6 @@ public boolean removeMetrics(final Metric obj) { * Remove a value from the 'objectContexts' role.

* Role description: * null - * */ @objid ("b70cabd7-5826-4ad1-9d0d-b9000090c97f") public boolean removeObjectContexts(final ObjectContext obj) { @@ -464,7 +444,6 @@ public boolean removeObjectContexts(final ObjectContext obj) { * Remove a value from the 'schedules' role.

* Role description: * null - * */ @objid ("dde8659f-e016-407d-989e-2c179653c686") public boolean removeSchedules(final Schedule obj) { @@ -475,7 +454,6 @@ public boolean removeSchedules(final Schedule obj) { * Remove a value from the 'sensors' role.

* Role description: * null - * */ @objid ("ce3f3446-86d5-4762-bf8e-36eefd812d1c") public boolean removeSensors(final Sensor obj) { @@ -486,7 +464,6 @@ public boolean removeSensors(final Sensor obj) { * Remove a value from the 'templates' role.

* Role description: * null - * */ @objid ("2d4c4f78-daf6-49e5-b243-d306aa07ebb1") public boolean removeTemplates(final MetricTemplate obj) { @@ -497,7 +474,6 @@ public boolean removeTemplates(final MetricTemplate obj) { * Remove a value from the 'windows' role.

* Role description: * null - * */ @objid ("63fdd304-ad1b-4193-ae43-07ba70de7eb6") public boolean removeWindows(final Window obj) { @@ -608,11 +584,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/CloudCredentials.java b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/CloudCredentials.java index 7db6db9c..e36bcf33 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/CloudCredentials.java +++ b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/CloudCredentials.java @@ -82,9 +82,10 @@ public static CloudCredentials create() { } /** - * Tries to instantiate a {@link CloudCredentials} proxy from a {@link Class} stereotyped << CloudCredentials >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link CloudCredentials} proxy from a {@link Class} stereotyped << CloudCredentials >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link CloudCredentials} proxy or null. */ @@ -94,19 +95,20 @@ public static CloudCredentials instantiate(final Class obj) { } /** - * Tries to instantiate a {@link CloudCredentials} proxy from a {@link Class} stereotyped << CloudCredentials >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link CloudCredentials} proxy from a {@link Class} stereotyped << CloudCredentials >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link CloudCredentials} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("c6a0d3ec-2273-475b-b264-5249bc40c07b") public static CloudCredentials safeInstantiate(final Class obj) throws IllegalArgumentException { if (CloudCredentials.canInstantiate(obj)) - return new CloudCredentials(obj); + return new CloudCredentials(obj); else - throw new IllegalArgumentException("CloudCredentials: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("CloudCredentials: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("1c39bf86-6cf0-43c1-ab20-e69c422b57c6") @@ -136,7 +138,8 @@ public String getCloudProviderName() { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("62a8bc04-b7ba-47d3-890f-fd5a0fb53449") @@ -317,11 +320,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/CloudProvider.java b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/CloudProvider.java index 46bdff5a..0a26385f 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/CloudProvider.java +++ b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/CloudProvider.java @@ -76,9 +76,10 @@ public static CloudProvider create() { } /** - * Tries to instantiate a {@link CloudProvider} proxy from a {@link Class} stereotyped << CloudProvider >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link CloudProvider} proxy from a {@link Class} stereotyped << CloudProvider >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link CloudProvider} proxy or null. */ @@ -88,19 +89,20 @@ public static CloudProvider instantiate(final Class obj) { } /** - * Tries to instantiate a {@link CloudProvider} proxy from a {@link Class} stereotyped << CloudProvider >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link CloudProvider} proxy from a {@link Class} stereotyped << CloudProvider >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link CloudProvider} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("d18a7fae-b434-43fa-87ae-8551291bf2b0") public static CloudProvider safeInstantiate(final Class obj) throws IllegalArgumentException { if (CloudProvider.canInstantiate(obj)) - return new CloudProvider(obj); + return new CloudProvider(obj); else - throw new IllegalArgumentException("CloudProvider: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("CloudProvider: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("1bd4118e-235f-4345-9928-331ed958b9ad") @@ -120,7 +122,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("de890f52-79db-475a-a48b-e557b43b406a") @@ -275,11 +278,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/Credentials.java b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/Credentials.java index e940b540..53f27c30 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/Credentials.java +++ b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/Credentials.java @@ -69,7 +69,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("1f78ef32-ec9a-4926-b18b-bafb831d27b6") @@ -116,11 +117,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/DataResourceFilter.java b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/DataResourceFilter.java index 059304c6..fb94f1b7 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/DataResourceFilter.java +++ b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/DataResourceFilter.java @@ -73,9 +73,10 @@ public static DataResourceFilter create() { } /** - * Tries to instantiate a {@link DataResourceFilter} proxy from a {@link Class} stereotyped << DataResourceFilter >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link DataResourceFilter} proxy from a {@link Class} stereotyped << DataResourceFilter >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link DataResourceFilter} proxy or null. */ @@ -85,26 +86,26 @@ public static DataResourceFilter instantiate(final Class obj) { } /** - * Tries to instantiate a {@link DataResourceFilter} proxy from a {@link Class} stereotyped << DataResourceFilter >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link DataResourceFilter} proxy from a {@link Class} stereotyped << DataResourceFilter >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link DataResourceFilter} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("f15d319e-2c9b-4ea0-8a91-fcc2a70d4876") public static DataResourceFilter safeInstantiate(final Class obj) throws IllegalArgumentException { if (DataResourceFilter.canInstantiate(obj)) - return new DataResourceFilter(obj); + return new DataResourceFilter(obj); else - throw new IllegalArgumentException("DataResourceFilter: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("DataResourceFilter: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'data' role.

* Role description: * null - * */ @objid ("f6d5fc9d-3978-464f-862e-207e7f10c49d") public void addData(final Data obj) { @@ -120,7 +121,6 @@ public void addData(final Data obj) { * Add a value to the 'dataInstances' role.

* Role description: * null - * */ @objid ("c259412b-7eb8-4fd7-b91d-530e13930b3c") public void addDataInstances(final DataInstance obj) { @@ -136,7 +136,6 @@ public void addDataInstances(final DataInstance obj) { * Add a value to the 'locations' role.

* Role description: * null - * */ @objid ("7c028f9d-804e-48c7-8108-3b92557293d2") public void addLocations(final Location obj) { @@ -168,7 +167,6 @@ public boolean equals(final Object obj) { * Get the values of the 'data' role.

* Role description: * null - * */ @objid ("116c7437-3ef7-4280-b5c4-4c07a5fd4823") public List getData() { @@ -187,7 +185,6 @@ public List getData() { * Get the values of the 'dataInstances' role.

* Role description: * null - * */ @objid ("d5b95609-f083-48fa-9b42-a1ffa2335992") public List getDataInstances() { @@ -205,7 +202,8 @@ public List getDataInstances() { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("34bede00-995e-4f8c-bfb4-a1c6b2f0353f") @@ -218,7 +216,6 @@ public Class getElement() { * Get the values of the 'locations' role.

* Role description: * null - * */ @objid ("e49736a7-fe28-4f18-a1db-0601a37549ea") public List getLocations() { @@ -255,7 +252,6 @@ public boolean isEveryData() { * Remove a value from the 'data' role.

* Role description: * null - * */ @objid ("070d408d-ab28-4fd2-8063-0ae328bb2bc5") public boolean removeData(final Data obj) { @@ -275,7 +271,6 @@ public boolean removeData(final Data obj) { * Remove a value from the 'dataInstances' role.

* Role description: * null - * */ @objid ("cb7a61e9-4b51-42dd-82fa-406ab8bf5db9") public boolean removeDataInstances(final DataInstance obj) { @@ -295,7 +290,6 @@ public boolean removeDataInstances(final DataInstance obj) { * Remove a value from the 'locations' role.

* Role description: * null - * */ @objid ("5578e754-d399-45e5-b59f-3a8dadc64238") public boolean removeLocations(final Location obj) { @@ -360,11 +354,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/Entity.java b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/Entity.java index 305e0d59..3d13d3d5 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/Entity.java +++ b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/Entity.java @@ -65,9 +65,10 @@ public static Entity create() { } /** - * Tries to instantiate a {@link Entity} proxy from a {@link Class} stereotyped << Entity >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Entity} proxy from a {@link Class} stereotyped << Entity >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link Entity} proxy or null. */ @@ -77,19 +78,20 @@ public static Entity instantiate(final Class obj) { } /** - * Tries to instantiate a {@link Entity} proxy from a {@link Class} stereotyped << Entity >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Entity} proxy from a {@link Class} stereotyped << Entity >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link Entity} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("2a79e9cc-6c69-49e2-b2c4-9af72342b7bd") public static Entity safeInstantiate(final Class obj) throws IllegalArgumentException { if (Entity.canInstantiate(obj)) - return new Entity(obj); + return new Entity(obj); else - throw new IllegalArgumentException("Entity: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("Entity: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("0e3862b4-62d6-46db-9209-ad1ac3ae5928") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("f3496b23-3d16-48ed-8129-e6a26ab54fe4") @@ -156,11 +159,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/ExternalIdentifier.java b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/ExternalIdentifier.java index 50370c05..6faeae8f 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/ExternalIdentifier.java +++ b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/ExternalIdentifier.java @@ -68,9 +68,10 @@ public static ExternalIdentifier create() { } /** - * Tries to instantiate a {@link ExternalIdentifier} proxy from a {@link Class} stereotyped << ExternalIdentifier >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ExternalIdentifier} proxy from a {@link Class} stereotyped << ExternalIdentifier >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link ExternalIdentifier} proxy or null. */ @@ -80,19 +81,20 @@ public static ExternalIdentifier instantiate(final Class obj) { } /** - * Tries to instantiate a {@link ExternalIdentifier} proxy from a {@link Class} stereotyped << ExternalIdentifier >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ExternalIdentifier} proxy from a {@link Class} stereotyped << ExternalIdentifier >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link ExternalIdentifier} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("14563f5b-3a6e-4925-9f3e-403c4787ca03") public static ExternalIdentifier safeInstantiate(final Class obj) throws IllegalArgumentException { if (ExternalIdentifier.canInstantiate(obj)) - return new ExternalIdentifier(obj); + return new ExternalIdentifier(obj); else - throw new IllegalArgumentException("ExternalIdentifier: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("ExternalIdentifier: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("02d48c3d-2bd3-4de4-8f13-4d74eb4e08f7") @@ -112,7 +114,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("5e596891-a74a-4f25-b33b-7339a9d86465") @@ -183,11 +186,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/ModelResourceFilter.java b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/ModelResourceFilter.java index d57d121c..81cb9340 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/ModelResourceFilter.java +++ b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/ModelResourceFilter.java @@ -70,9 +70,10 @@ public static ModelResourceFilter create() { } /** - * Tries to instantiate a {@link ModelResourceFilter} proxy from a {@link Class} stereotyped << ModelResourceFilter >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ModelResourceFilter} proxy from a {@link Class} stereotyped << ModelResourceFilter >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link ModelResourceFilter} proxy or null. */ @@ -82,19 +83,20 @@ public static ModelResourceFilter instantiate(final Class obj) { } /** - * Tries to instantiate a {@link ModelResourceFilter} proxy from a {@link Class} stereotyped << ModelResourceFilter >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ModelResourceFilter} proxy from a {@link Class} stereotyped << ModelResourceFilter >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link ModelResourceFilter} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("683d3fdb-81bb-435a-b302-b715e186f30e") public static ModelResourceFilter safeInstantiate(final Class obj) throws IllegalArgumentException { if (ModelResourceFilter.canInstantiate(obj)) - return new ModelResourceFilter(obj); + return new ModelResourceFilter(obj); else - throw new IllegalArgumentException("ModelResourceFilter: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("ModelResourceFilter: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("5a7d64f1-53de-4ade-ad84-84d79da1547a") @@ -114,7 +116,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("c9521f64-5cd7-4e1e-80f2-b555f2bbfc87") @@ -212,11 +215,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/Organisation.java b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/Organisation.java index a7aa20ff..01b60871 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/Organisation.java +++ b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/Organisation.java @@ -14,7 +14,6 @@ import fr.softeam.cameldesigner.api.CamelDesignerProxyFactory; import fr.softeam.cameldesigner.api.ICamelDesignerPeerModule; import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; -import fr.softeam.cameldesigner.api.organisationmodel.standard.class_.CloudCredentials; import fr.softeam.cameldesigner.impl.CamelDesignerModule; import org.modelio.api.modelio.model.IModelingSession; import org.modelio.api.modelio.model.PropertyConverter; @@ -75,9 +74,10 @@ public static Organisation create() { } /** - * Tries to instantiate a {@link Organisation} proxy from a {@link Class} stereotyped << Organisation >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Organisation} proxy from a {@link Class} stereotyped << Organisation >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link Organisation} proxy or null. */ @@ -87,26 +87,26 @@ public static Organisation instantiate(final Class obj) { } /** - * Tries to instantiate a {@link Organisation} proxy from a {@link Class} stereotyped << Organisation >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Organisation} proxy from a {@link Class} stereotyped << Organisation >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link Organisation} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("1a78fa18-2180-40ff-8646-9fab6592a26b") public static Organisation safeInstantiate(final Class obj) throws IllegalArgumentException { if (Organisation.canInstantiate(obj)) - return new Organisation(obj); + return new Organisation(obj); else - throw new IllegalArgumentException("Organisation: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("Organisation: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'cloudCredentials' role.

* Role description: * null - * */ @objid ("05d8fc13-a79b-425c-a785-92c587754436") public void addCloudCredentials(final CloudCredentials obj) { @@ -134,20 +134,20 @@ public boolean equals(final Object obj) { * Get the values of the 'cloudCredentials' role.

* Role description: * null - * */ @objid ("7f4bca89-accc-456f-9731-7ef5862494e0") public List getCloudCredentials() { List results = new ArrayList<>(); for (ModelTree mObj : ((Class) this.elt).getOwnedElement()){ - if (CloudCredentials.canInstantiate(mObj)) - results.add((CloudCredentials)CamelDesignerProxyFactory.instantiate(mObj, CloudCredentials.STEREOTYPE_NAME)); - } + if (CloudCredentials.canInstantiate(mObj)) + results.add((CloudCredentials)CamelDesignerProxyFactory.instantiate(mObj, CloudCredentials.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("f192cec7-c7ed-4bf6-aca7-92d4b27090c9") @@ -196,7 +196,6 @@ public int hashCode() { * Remove a value from the 'cloudCredentials' role.

* Role description: * null - * */ @objid ("4ddd0101-62a9-46e9-aba2-3844a3ed8099") public boolean removeCloudCredentials(final CloudCredentials obj) { @@ -277,11 +276,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/Permission.java b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/Permission.java index f1735cb8..cdcf7f3c 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/Permission.java +++ b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/Permission.java @@ -17,8 +17,6 @@ import fr.softeam.cameldesigner.api.camelcore.standard.class_.FeatureClass; import fr.softeam.cameldesigner.api.organisationmodel.standard.class_.DataResourceFilter; import fr.softeam.cameldesigner.api.organisationmodel.standard.class_.ModelResourceFilter; -import fr.softeam.cameldesigner.api.organisationmodel.standard.class_.ResourceFilter; -import fr.softeam.cameldesigner.api.organisationmodel.standard.class_.Role; import fr.softeam.cameldesigner.api.organisationmodel.standard.class_.ServiceResourceFilter; import fr.softeam.cameldesigner.api.organisationmodel.standard.class_.SoftwareComponentResourceFilter; import fr.softeam.cameldesigner.impl.CamelDesignerModule; @@ -80,9 +78,10 @@ public static Permission create() { } /** - * Tries to instantiate a {@link Permission} proxy from a {@link Class} stereotyped << Permission >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Permission} proxy from a {@link Class} stereotyped << Permission >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link Permission} proxy or null. */ @@ -92,19 +91,20 @@ public static Permission instantiate(final Class obj) { } /** - * Tries to instantiate a {@link Permission} proxy from a {@link Class} stereotyped << Permission >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Permission} proxy from a {@link Class} stereotyped << Permission >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link Permission} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("366f3634-0a27-413a-9e60-25d3506d0e6f") public static Permission safeInstantiate(final Class obj) throws IllegalArgumentException { if (Permission.canInstantiate(obj)) - return new Permission(obj); + return new Permission(obj); else - throw new IllegalArgumentException("Permission: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("Permission: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("e7b83414-b9e0-4fa7-8156-11a54ed80d05") @@ -134,7 +134,8 @@ public String getAction() { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("e5dae3f6-759a-4311-8186-807dd99b5257") @@ -157,7 +158,6 @@ public String getEndTime() { * Get the value of the 'resourceFilter' role.

* Role description: * null - * */ @objid ("5535e20a-ca56-4958-b753-a06341ad958d") public ResourceFilter getResourceFilter() { @@ -181,7 +181,6 @@ public ResourceFilter getResourceFilter() { * Get the value of the 'role' role.

* Role description: * null - * */ @objid ("1aed6b0b-1541-42d5-a8f1-2e25fb9f73f7") public Role getRole() { @@ -235,7 +234,6 @@ public void setEndTime(final String value) { * Set the value of the 'resourceFilter' role.

* Role description: * null - * */ @objid ("a4c9b180-a8bf-406a-b601-28190fdf3277") public void setResourceFilter(final ResourceFilter obj) { @@ -261,7 +259,6 @@ public void setResourceFilter(final ResourceFilter obj) { * Set the value of the 'role' role.

* Role description: * null - * */ @objid ("ac38888e-976e-45e3-ac5b-a368d19a8b9d") public void setRole(final Role obj) { @@ -337,11 +334,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/PlatformCredentials.java b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/PlatformCredentials.java index 423d28c4..db6fdab9 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/PlatformCredentials.java +++ b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/PlatformCredentials.java @@ -67,9 +67,10 @@ public static PlatformCredentials create() { } /** - * Tries to instantiate a {@link PlatformCredentials} proxy from a {@link Class} stereotyped << PlatformCredentials >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link PlatformCredentials} proxy from a {@link Class} stereotyped << PlatformCredentials >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link PlatformCredentials} proxy or null. */ @@ -79,19 +80,20 @@ public static PlatformCredentials instantiate(final Class obj) { } /** - * Tries to instantiate a {@link PlatformCredentials} proxy from a {@link Class} stereotyped << PlatformCredentials >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link PlatformCredentials} proxy from a {@link Class} stereotyped << PlatformCredentials >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link PlatformCredentials} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("f758b8d2-2337-4996-8824-f21f2e82d814") public static PlatformCredentials safeInstantiate(final Class obj) throws IllegalArgumentException { if (PlatformCredentials.canInstantiate(obj)) - return new PlatformCredentials(obj); + return new PlatformCredentials(obj); else - throw new IllegalArgumentException("PlatformCredentials: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("PlatformCredentials: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("6b4b9e5e-2433-4d10-b943-68ac2f83bc14") @@ -111,7 +113,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("43f0ed2c-ad69-4caa-87ce-c15b26f580e3") @@ -182,11 +185,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/ResourceFilter.java b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/ResourceFilter.java index 6d9bf786..21bc9ec4 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/ResourceFilter.java +++ b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/ResourceFilter.java @@ -72,7 +72,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("9bed5e2b-02b7-47f1-a759-0fb6e74b7410") @@ -143,11 +144,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/Role.java b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/Role.java index e37e001c..1c5c0ad5 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/Role.java +++ b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/Role.java @@ -65,9 +65,10 @@ public static Role create() { } /** - * Tries to instantiate a {@link Role} proxy from a {@link Class} stereotyped << Role >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Role} proxy from a {@link Class} stereotyped << Role >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link Role} proxy or null. */ @@ -77,19 +78,20 @@ public static Role instantiate(final Class obj) { } /** - * Tries to instantiate a {@link Role} proxy from a {@link Class} stereotyped << Role >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Role} proxy from a {@link Class} stereotyped << Role >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link Role} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("1ecf5860-4682-4f63-81dd-809b8769cfbb") public static Role safeInstantiate(final Class obj) throws IllegalArgumentException { if (Role.canInstantiate(obj)) - return new Role(obj); + return new Role(obj); else - throw new IllegalArgumentException("Role: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("Role: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("2ffd2a7e-3f40-4722-a0db-0f61ba39689a") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("497122a9-7edc-4275-b1e4-25c86ba05a8c") @@ -156,11 +159,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/RoleAssignment.java b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/RoleAssignment.java index 0b3e4e39..2d36ab73 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/RoleAssignment.java +++ b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/RoleAssignment.java @@ -15,9 +15,6 @@ import fr.softeam.cameldesigner.api.ICamelDesignerPeerModule; import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; import fr.softeam.cameldesigner.api.camelcore.standard.class_.FeatureClass; -import fr.softeam.cameldesigner.api.organisationmodel.standard.class_.Role; -import fr.softeam.cameldesigner.api.organisationmodel.standard.class_.User; -import fr.softeam.cameldesigner.api.organisationmodel.standard.class_.UserGroup; import fr.softeam.cameldesigner.impl.CamelDesignerModule; import org.modelio.api.modelio.model.IModelingSession; import org.modelio.api.modelio.model.PropertyConverter; @@ -77,9 +74,10 @@ public static RoleAssignment create() { } /** - * Tries to instantiate a {@link RoleAssignment} proxy from a {@link Class} stereotyped << RoleAssignment >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link RoleAssignment} proxy from a {@link Class} stereotyped << RoleAssignment >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link RoleAssignment} proxy or null. */ @@ -89,19 +87,20 @@ public static RoleAssignment instantiate(final Class obj) { } /** - * Tries to instantiate a {@link RoleAssignment} proxy from a {@link Class} stereotyped << RoleAssignment >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link RoleAssignment} proxy from a {@link Class} stereotyped << RoleAssignment >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link RoleAssignment} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("14c51174-49be-4af7-84f1-3c460c6b9a86") public static RoleAssignment safeInstantiate(final Class obj) throws IllegalArgumentException { if (RoleAssignment.canInstantiate(obj)) - return new RoleAssignment(obj); + return new RoleAssignment(obj); else - throw new IllegalArgumentException("RoleAssignment: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("RoleAssignment: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("8d7a7308-c451-4b61-8a31-a0f4ef412902") @@ -131,7 +130,8 @@ public String getAssignmentTime() { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("e01c7e57-ac37-450f-bed0-60f50b52a9ef") @@ -154,7 +154,6 @@ public String getEndTime() { * Get the value of the 'role' role.

* Role description: * null - * */ @objid ("cea09db5-0f4e-4e81-b3a4-95a8b45080ef") public Role getRole() { @@ -182,7 +181,6 @@ public String getStartTime() { * Get the value of the 'user' role.

* Role description: * null - * */ @objid ("b23fe89b-026c-4df8-87cf-6946472d3c45") public User getUser() { @@ -200,7 +198,6 @@ public User getUser() { * Get the value of the 'userGroup' role.

* Role description: * null - * */ @objid ("875ce6c5-9a7c-4e0e-9c41-ab71dc699fe5") public UserGroup getUserGroup() { @@ -244,7 +241,6 @@ public void setEndTime(final String value) { * Set the value of the 'role' role.

* Role description: * null - * */ @objid ("8f28f6fc-8367-464e-92a9-2320626ec492") public void setRole(final Role obj) { @@ -280,7 +276,6 @@ public void setStartTime(final String value) { * Set the value of the 'user' role.

* Role description: * null - * */ @objid ("4bf6d5ba-b7a6-4b51-85ed-b7cfbd823e80") public void setUser(final User obj) { @@ -306,7 +301,6 @@ public void setUser(final User obj) { * Set the value of the 'userGroup' role.

* Role description: * null - * */ @objid ("4613320d-7c7a-4a3e-9783-c423434b2d9a") public void setUserGroup(final UserGroup obj) { @@ -372,11 +366,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/ServiceResourceFilter.java b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/ServiceResourceFilter.java index 4aaec851..32a09098 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/ServiceResourceFilter.java +++ b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/ServiceResourceFilter.java @@ -70,9 +70,10 @@ public static ServiceResourceFilter create() { } /** - * Tries to instantiate a {@link ServiceResourceFilter} proxy from a {@link Class} stereotyped << ServiceResourceFilter >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ServiceResourceFilter} proxy from a {@link Class} stereotyped << ServiceResourceFilter >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link ServiceResourceFilter} proxy or null. */ @@ -82,19 +83,20 @@ public static ServiceResourceFilter instantiate(final Class obj) { } /** - * Tries to instantiate a {@link ServiceResourceFilter} proxy from a {@link Class} stereotyped << ServiceResourceFilter >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ServiceResourceFilter} proxy from a {@link Class} stereotyped << ServiceResourceFilter >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link ServiceResourceFilter} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("8081b89b-9d26-4e2b-a8d5-c7b04916b3db") public static ServiceResourceFilter safeInstantiate(final Class obj) throws IllegalArgumentException { if (ServiceResourceFilter.canInstantiate(obj)) - return new ServiceResourceFilter(obj); + return new ServiceResourceFilter(obj); else - throw new IllegalArgumentException("ServiceResourceFilter: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("ServiceResourceFilter: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("c1554e09-afc8-4d86-8cae-6d24ffd282ce") @@ -114,7 +116,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("ac40b125-b0da-439e-bc73-07b4d59000e8") @@ -212,11 +215,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/SoftwareComponentResourceFilter.java b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/SoftwareComponentResourceFilter.java index aad34c4e..ac1669f6 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/SoftwareComponentResourceFilter.java +++ b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/SoftwareComponentResourceFilter.java @@ -70,9 +70,10 @@ public static SoftwareComponentResourceFilter create() { } /** - * Tries to instantiate a {@link SoftwareComponentResourceFilter} proxy from a {@link Class} stereotyped << SoftwareComponentResourceFilter >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link SoftwareComponentResourceFilter} proxy from a {@link Class} stereotyped << SoftwareComponentResourceFilter >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link SoftwareComponentResourceFilter} proxy or null. */ @@ -82,26 +83,26 @@ public static SoftwareComponentResourceFilter instantiate(final Class obj) { } /** - * Tries to instantiate a {@link SoftwareComponentResourceFilter} proxy from a {@link Class} stereotyped << SoftwareComponentResourceFilter >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link SoftwareComponentResourceFilter} proxy from a {@link Class} stereotyped << SoftwareComponentResourceFilter >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link SoftwareComponentResourceFilter} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("903f3fa4-14f2-4aaa-9968-e18ff3ce6a04") public static SoftwareComponentResourceFilter safeInstantiate(final Class obj) throws IllegalArgumentException { if (SoftwareComponentResourceFilter.canInstantiate(obj)) - return new SoftwareComponentResourceFilter(obj); + return new SoftwareComponentResourceFilter(obj); else - throw new IllegalArgumentException("SoftwareComponentResourceFilter: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("SoftwareComponentResourceFilter: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'softwareComponents' role.

* Role description: * null - * */ @objid ("7cdf5c68-7a27-468b-9bf6-64c04603ca99") public void addSoftwareComponents(final SoftwareComponent obj) { @@ -133,7 +134,6 @@ public boolean equals(final Object obj) { * Get the value of the 'application' role.

* Role description: * null - * */ @objid ("6cfdc9aa-fd5d-4542-ad7f-007d54a56ad1") public CamelModel getApplication() { @@ -148,7 +148,8 @@ public CamelModel getApplication() { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("e241209d-8d4a-4a92-85d6-9b734a88b863") @@ -161,7 +162,6 @@ public Class getElement() { * Get the values of the 'softwareComponents' role.

* Role description: * null - * */ @objid ("46a2a2a5-9666-4773-9ea4-7739a2af0d60") public List getSoftwareComponents() { @@ -198,7 +198,6 @@ public boolean isEveryComponent() { * Remove a value from the 'softwareComponents' role.

* Role description: * null - * */ @objid ("298fcac0-ee48-412f-8b61-0861166a11ba") public boolean removeSoftwareComponents(final SoftwareComponent obj) { @@ -218,7 +217,6 @@ public boolean removeSoftwareComponents(final SoftwareComponent obj) { * Set the value of the 'application' role.

* Role description: * null - * */ @objid ("9d96aedc-9107-48e2-a287-059d16db6e35") public void setApplication(final CamelModel obj) { @@ -289,11 +287,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/User.java b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/User.java index 2ffe15ac..f6c0b87f 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/User.java +++ b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/User.java @@ -20,8 +20,6 @@ import fr.softeam.cameldesigner.api.metricmodel.standard.package_.MetricInstanceModel; import fr.softeam.cameldesigner.api.metricmodel.standard.package_.MetricModel; import fr.softeam.cameldesigner.api.metricmodel.standard.package_.MetricTypeModel; -import fr.softeam.cameldesigner.api.organisationmodel.standard.class_.ExternalIdentifier; -import fr.softeam.cameldesigner.api.organisationmodel.standard.class_.PlatformCredentials; import fr.softeam.cameldesigner.api.requirementmodel.standard.package_.RequirementModel; import fr.softeam.cameldesigner.api.scalabilitymodel.standard.package_.ScalabilityModel; import fr.softeam.cameldesigner.impl.CamelDesignerModule; @@ -93,9 +91,10 @@ public static User create() { } /** - * Tries to instantiate a {@link User} proxy from a {@link Class} stereotyped << User >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link User} proxy from a {@link Class} stereotyped << User >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link User} proxy or null. */ @@ -105,26 +104,26 @@ public static User instantiate(final Class obj) { } /** - * Tries to instantiate a {@link User} proxy from a {@link Class} stereotyped << User >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link User} proxy from a {@link Class} stereotyped << User >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link User} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("52ff3bf4-eb45-480a-b9e5-b536bcc18880") public static User safeInstantiate(final Class obj) throws IllegalArgumentException { if (User.canInstantiate(obj)) - return new User(obj); + return new User(obj); else - throw new IllegalArgumentException("User: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("User: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'deploymentModels' role.

* Role description: * null - * */ @objid ("2ce26ddd-6f07-42b6-852f-ceedaf39908b") public void addDeploymentModels(final DeploymentModel obj) { @@ -140,7 +139,6 @@ public void addDeploymentModels(final DeploymentModel obj) { * Add a value to the 'externalIdentifiers' role.

* Role description: * null - * */ @objid ("c877445c-b999-49fb-b569-93947cedc1f9") public void addExternalIdentifiers(final ExternalIdentifier obj) { @@ -152,7 +150,6 @@ public void addExternalIdentifiers(final ExternalIdentifier obj) { * Add a value to the 'metricModels' role.

* Role description: * null - * */ @objid ("ecfe3a75-5188-498c-ac92-0411f6b0a084") public void addMetricModels(final MetricModel obj) { @@ -168,7 +165,6 @@ public void addMetricModels(final MetricModel obj) { * Add a value to the 'requirementModels' role.

* Role description: * null - * */ @objid ("533e0538-12c0-488d-b181-d52999304a63") public void addRequirementModels(final RequirementModel obj) { @@ -184,7 +180,6 @@ public void addRequirementModels(final RequirementModel obj) { * Add a value to the 'scalabilityModels' role.

* Role description: * null - * */ @objid ("0766dd27-0608-4540-a4d6-388f84262f02") public void addScalabilityModels(final ScalabilityModel obj) { @@ -216,7 +211,6 @@ public boolean equals(final Object obj) { * Get the values of the 'deploymentModels' role.

* Role description: * null - * */ @objid ("9ede7478-9691-4074-9831-00c5dd228c38") public List getDeploymentModels() { @@ -234,7 +228,8 @@ public List getDeploymentModels() { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("adca9042-d2ea-4323-ae5b-87ab04051805") @@ -257,15 +252,14 @@ public String getEmail() { * Get the values of the 'externalIdentifiers' role.

* Role description: * null - * */ @objid ("b9609b65-d888-4676-a906-935e8bf229c4") public List getExternalIdentifiers() { List results = new ArrayList<>(); for (ModelTree mObj : ((Class) this.elt).getOwnedElement()){ - if (ExternalIdentifier.canInstantiate(mObj)) - results.add((ExternalIdentifier)CamelDesignerProxyFactory.instantiate(mObj, ExternalIdentifier.STEREOTYPE_NAME)); - } + if (ExternalIdentifier.canInstantiate(mObj)) + results.add((ExternalIdentifier)CamelDesignerProxyFactory.instantiate(mObj, ExternalIdentifier.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -293,7 +287,6 @@ public String getLastName() { * Get the values of the 'metricModels' role.

* Role description: * null - * */ @objid ("196f1536-2087-4c30-9bfb-2ef48a3381ab") public List getMetricModels() { @@ -334,22 +327,20 @@ public String getPlatformCredentialPassword() { * Get the value to the 'platformCredentials' role.

* Role description: * null - * */ @objid ("f44eaef0-9b46-42d5-8acd-f2f20c73d771") public PlatformCredentials getPlatformCredentials() { - for (Class obj : ((Class) this.elt).getOwnedElement(Class.class)) { - if (PlatformCredentials.canInstantiate(obj)) - return (PlatformCredentials)CamelDesignerProxyFactory.instantiate(obj, PlatformCredentials.STEREOTYPE_NAME); - } - return null; + for (Class obj : ((Class) this.elt).getOwnedElement(Class.class)) { + if (PlatformCredentials.canInstantiate(obj)) + return (PlatformCredentials)CamelDesignerProxyFactory.instantiate(obj, PlatformCredentials.STEREOTYPE_NAME); + } + return null; } /** * Get the values of the 'requirementModels' role.

* Role description: * null - * */ @objid ("0e0e3544-44cf-4940-aa64-9c6c0a628387") public List getRequirementModels() { @@ -368,7 +359,6 @@ public List getRequirementModels() { * Get the values of the 'scalabilityModels' role.

* Role description: * null - * */ @objid ("55c6f744-3477-453a-a91f-0c0c51806506") public List getScalabilityModels() { @@ -403,7 +393,6 @@ public int hashCode() { * Remove a value from the 'deploymentModels' role.

* Role description: * null - * */ @objid ("33f33ae6-07fa-4a37-aa13-9992328db02b") public boolean removeDeploymentModels(final DeploymentModel obj) { @@ -423,7 +412,6 @@ public boolean removeDeploymentModels(final DeploymentModel obj) { * Remove a value from the 'externalIdentifiers' role.

* Role description: * null - * */ @objid ("3762e001-61c3-4103-8a43-e62aea40a87b") public boolean removeExternalIdentifiers(final ExternalIdentifier obj) { @@ -434,7 +422,6 @@ public boolean removeExternalIdentifiers(final ExternalIdentifier obj) { * Remove a value from the 'metricModels' role.

* Role description: * null - * */ @objid ("20926ee3-3b36-4770-9d20-16dd88dcbf7e") public boolean removeMetricModels(final MetricModel obj) { @@ -454,7 +441,6 @@ public boolean removeMetricModels(final MetricModel obj) { * Remove a value from the 'requirementModels' role.

* Role description: * null - * */ @objid ("bcd0fbca-d8f0-4065-b7c6-70310456a8d9") public boolean removeRequirementModels(final RequirementModel obj) { @@ -474,7 +460,6 @@ public boolean removeRequirementModels(final RequirementModel obj) { * Remove a value from the 'scalabilityModels' role.

* Role description: * null - * */ @objid ("f9b2c754-b10a-4fb2-b162-8cde53d43422") public boolean removeScalabilityModels(final ScalabilityModel obj) { @@ -544,7 +529,6 @@ public void setPlatformCredentialPassword(final String value) { * Set the value of the 'platformCredentials' role.

* Role description: * null - * */ @objid ("71e80d7b-8a27-491d-b332-3827b2f87de7") public void setPlatformCredentials(final PlatformCredentials obj) { @@ -626,11 +610,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/UserGroup.java b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/UserGroup.java index 15891c31..ab36ac68 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/UserGroup.java +++ b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/UserGroup.java @@ -15,7 +15,6 @@ import fr.softeam.cameldesigner.api.ICamelDesignerPeerModule; import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; import fr.softeam.cameldesigner.api.camelcore.standard.class_.FeatureClass; -import fr.softeam.cameldesigner.api.organisationmodel.standard.class_.User; import fr.softeam.cameldesigner.impl.CamelDesignerModule; import org.modelio.api.modelio.model.IModelingSession; import org.modelio.api.modelio.model.PropertyConverter; @@ -66,9 +65,10 @@ public static UserGroup create() { } /** - * Tries to instantiate a {@link UserGroup} proxy from a {@link Class} stereotyped << UserGroup >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link UserGroup} proxy from a {@link Class} stereotyped << UserGroup >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link UserGroup} proxy or null. */ @@ -78,26 +78,26 @@ public static UserGroup instantiate(final Class obj) { } /** - * Tries to instantiate a {@link UserGroup} proxy from a {@link Class} stereotyped << UserGroup >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link UserGroup} proxy from a {@link Class} stereotyped << UserGroup >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link UserGroup} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("c04e999d-e3a6-4d67-9c3c-b16caa31fa45") public static UserGroup safeInstantiate(final Class obj) throws IllegalArgumentException { if (UserGroup.canInstantiate(obj)) - return new UserGroup(obj); + return new UserGroup(obj); else - throw new IllegalArgumentException("UserGroup: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("UserGroup: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'users' role.

* Role description: * null - * */ @objid ("52c27f10-0a15-4979-a122-9454b88eaf9f") public void addUsers(final User obj) { @@ -126,7 +126,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("9349e71b-d948-493c-a115-9f036eb2626a") @@ -139,7 +140,6 @@ public Class getElement() { * Get the values of the 'users' role.

* Role description: * null - * */ @objid ("4c96966b-ba74-4a48-80aa-1f7a762559a5") public List getUsers() { @@ -164,7 +164,6 @@ public int hashCode() { * Remove a value from the 'users' role.

* Role description: * null - * */ @objid ("b82ea76f-b05f-45a0-b902-feebf40989b0") public boolean removeUsers(final User obj) { @@ -212,11 +211,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/package_/OrganisationModel.java b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/package_/OrganisationModel.java index f07f8fbc..2facc14f 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/package_/OrganisationModel.java +++ b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/package_/OrganisationModel.java @@ -92,9 +92,10 @@ public static OrganisationModel create() { } /** - * Tries to instantiate a {@link OrganisationModel} proxy from a {@link Package} stereotyped << OrganisationModel >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link OrganisationModel} proxy from a {@link Package} stereotyped << OrganisationModel >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Package * @return a {@link OrganisationModel} proxy or null. */ @@ -104,26 +105,26 @@ public static OrganisationModel instantiate(final Package obj) { } /** - * Tries to instantiate a {@link OrganisationModel} proxy from a {@link Package} stereotyped << OrganisationModel >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link OrganisationModel} proxy from a {@link Package} stereotyped << OrganisationModel >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Package} * @return a {@link OrganisationModel} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("73dbaa0e-24be-49df-ae05-75cf16686109") public static OrganisationModel safeInstantiate(final Package obj) throws IllegalArgumentException { if (OrganisationModel.canInstantiate(obj)) - return new OrganisationModel(obj); + return new OrganisationModel(obj); else - throw new IllegalArgumentException("OrganisationModel: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("OrganisationModel: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'externalIdentifiers' role.

* Role description: * null - * */ @objid ("57a4b872-6c98-4bda-b400-6ffd60852d2b") public void addExternalIdentifiers(final ExternalIdentifier obj) { @@ -135,7 +136,6 @@ public void addExternalIdentifiers(final ExternalIdentifier obj) { * Add a value to the 'permissions' role.

* Role description: * null - * */ @objid ("b1cd4c84-4b4f-44e2-9f9b-b5ea5afd20f1") public void addPermissions(final Permission obj) { @@ -147,7 +147,6 @@ public void addPermissions(final Permission obj) { * Add a value to the 'resourceFilters' role.

* Role description: * null - * */ @objid ("dffc504a-07f6-4a66-9774-c25b520e13cd") public void addResourceFilters(final ResourceFilter obj) { @@ -159,7 +158,6 @@ public void addResourceFilters(final ResourceFilter obj) { * Add a value to the 'roles' role.

* Role description: * null - * */ @objid ("75bc44c0-a10c-4e5e-ad5d-e5038d271866") public void addRoles(final Role obj) { @@ -171,7 +169,6 @@ public void addRoles(final Role obj) { * Add a value to the 'rolesAssignements' role.

* Role description: * null - * */ @objid ("567a48c2-ca3b-41b6-b7e3-ae78023ada38") public void addRolesAssignements(final RoleAssignment obj) { @@ -183,7 +180,6 @@ public void addRolesAssignements(final RoleAssignment obj) { * Add a value to the 'userGroups' role.

* Role description: * null - * */ @objid ("a4812cbe-93b0-4f3c-934a-e43a3cd7b207") public void addUserGroups(final UserGroup obj) { @@ -195,7 +191,6 @@ public void addUserGroups(final UserGroup obj) { * Add a value to the 'users' role.

* Role description: * null - * */ @objid ("6cf93fc3-8d87-4e20-8c6b-b11233457081") public void addUsers(final User obj) { @@ -223,7 +218,6 @@ public boolean equals(final Object obj) { * Get the value to the 'camelModel' role.

* Role description: * null - * */ @objid ("a3660187-7360-41c0-a5e7-8e9416d5a576") public CamelModel getCamelModel() { @@ -231,7 +225,8 @@ public CamelModel getCamelModel() { } /** - * Get the underlying {@link Package}. + * Get the underlying {@link Package}. + * * @return the Package represented by this proxy, never null. */ @objid ("ea44931c-d698-4ecd-95b5-676de1ce17cb") @@ -244,15 +239,14 @@ public Package getElement() { * Get the values of the 'externalIdentifiers' role.

* Role description: * null - * */ @objid ("e17f0a13-ed9e-460e-9cad-7f04a8891a31") public List getExternalIdentifiers() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (ExternalIdentifier.canInstantiate(mObj)) - results.add((ExternalIdentifier)CamelDesignerProxyFactory.instantiate(mObj, ExternalIdentifier.STEREOTYPE_NAME)); - } + if (ExternalIdentifier.canInstantiate(mObj)) + results.add((ExternalIdentifier)CamelDesignerProxyFactory.instantiate(mObj, ExternalIdentifier.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -260,15 +254,14 @@ public List getExternalIdentifiers() { * Get the value to the 'organisation' role.

* Role description: * null - * */ @objid ("6179c527-a52f-4a4a-a5ec-737f79dc168c") public Organisation getOrganisation() { - for (Class obj : ((Package) this.elt).getOwnedElement(Class.class)) { - if (Organisation.canInstantiate(obj)) - return (Organisation)CamelDesignerProxyFactory.instantiate(obj, Organisation.STEREOTYPE_NAME); - } - return null; + for (Class obj : ((Package) this.elt).getOwnedElement(Class.class)) { + if (Organisation.canInstantiate(obj)) + return (Organisation)CamelDesignerProxyFactory.instantiate(obj, Organisation.STEREOTYPE_NAME); + } + return null; } /** @@ -305,15 +298,14 @@ public String getOrganisationWebsite() { * Get the values of the 'permissions' role.

* Role description: * null - * */ @objid ("67a3ee06-1461-401b-8737-8bc74caa7b4d") public List getPermissions() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (Permission.canInstantiate(mObj)) - results.add((Permission)CamelDesignerProxyFactory.instantiate(mObj, Permission.STEREOTYPE_NAME)); - } + if (Permission.canInstantiate(mObj)) + results.add((Permission)CamelDesignerProxyFactory.instantiate(mObj, Permission.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -321,21 +313,20 @@ public List getPermissions() { * Get the values of the 'resourceFilters' role.

* Role description: * null - * */ @objid ("3b8036fa-c5d1-4fb5-a063-2c5679cb25be") public List getResourceFilters() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (DataResourceFilter.canInstantiate(mObj)) - results.add((DataResourceFilter)CamelDesignerProxyFactory.instantiate(mObj, DataResourceFilter.STEREOTYPE_NAME)); - if (ModelResourceFilter.canInstantiate(mObj)) - results.add((ModelResourceFilter)CamelDesignerProxyFactory.instantiate(mObj, ModelResourceFilter.STEREOTYPE_NAME)); - if (ServiceResourceFilter.canInstantiate(mObj)) - results.add((ServiceResourceFilter)CamelDesignerProxyFactory.instantiate(mObj, ServiceResourceFilter.STEREOTYPE_NAME)); - if (SoftwareComponentResourceFilter.canInstantiate(mObj)) - results.add((SoftwareComponentResourceFilter)CamelDesignerProxyFactory.instantiate(mObj, SoftwareComponentResourceFilter.STEREOTYPE_NAME)); - } + if (DataResourceFilter.canInstantiate(mObj)) + results.add((DataResourceFilter)CamelDesignerProxyFactory.instantiate(mObj, DataResourceFilter.STEREOTYPE_NAME)); + if (ModelResourceFilter.canInstantiate(mObj)) + results.add((ModelResourceFilter)CamelDesignerProxyFactory.instantiate(mObj, ModelResourceFilter.STEREOTYPE_NAME)); + if (ServiceResourceFilter.canInstantiate(mObj)) + results.add((ServiceResourceFilter)CamelDesignerProxyFactory.instantiate(mObj, ServiceResourceFilter.STEREOTYPE_NAME)); + if (SoftwareComponentResourceFilter.canInstantiate(mObj)) + results.add((SoftwareComponentResourceFilter)CamelDesignerProxyFactory.instantiate(mObj, SoftwareComponentResourceFilter.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -343,15 +334,14 @@ public List getResourceFilters() { * Get the values of the 'roles' role.

* Role description: * null - * */ @objid ("9015c6e5-4d10-4f98-819a-af29d53aed97") public List getRoles() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (Role.canInstantiate(mObj)) - results.add((Role)CamelDesignerProxyFactory.instantiate(mObj, Role.STEREOTYPE_NAME)); - } + if (Role.canInstantiate(mObj)) + results.add((Role)CamelDesignerProxyFactory.instantiate(mObj, Role.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -359,15 +349,14 @@ public List getRoles() { * Get the values of the 'rolesAssignements' role.

* Role description: * null - * */ @objid ("3ba73ccd-5d8e-4d1b-8d5d-4268165207a6") public List getRolesAssignements() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (RoleAssignment.canInstantiate(mObj)) - results.add((RoleAssignment)CamelDesignerProxyFactory.instantiate(mObj, RoleAssignment.STEREOTYPE_NAME)); - } + if (RoleAssignment.canInstantiate(mObj)) + results.add((RoleAssignment)CamelDesignerProxyFactory.instantiate(mObj, RoleAssignment.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -385,15 +374,14 @@ public String getSecurityLevel() { * Get the values of the 'userGroups' role.

* Role description: * null - * */ @objid ("19aac4e3-0cea-463a-bd19-cd3d9ea44fa6") public List getUserGroups() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (UserGroup.canInstantiate(mObj)) - results.add((UserGroup)CamelDesignerProxyFactory.instantiate(mObj, UserGroup.STEREOTYPE_NAME)); - } + if (UserGroup.canInstantiate(mObj)) + results.add((UserGroup)CamelDesignerProxyFactory.instantiate(mObj, UserGroup.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -401,15 +389,14 @@ public List getUserGroups() { * Get the values of the 'users' role.

* Role description: * null - * */ @objid ("5124945b-a2c8-49b0-b7a4-eeb4465757c6") public List getUsers() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (User.canInstantiate(mObj)) - results.add((User)CamelDesignerProxyFactory.instantiate(mObj, User.STEREOTYPE_NAME)); - } + if (User.canInstantiate(mObj)) + results.add((User)CamelDesignerProxyFactory.instantiate(mObj, User.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -423,7 +410,6 @@ public int hashCode() { * Remove a value from the 'externalIdentifiers' role.

* Role description: * null - * */ @objid ("05bf7618-ab8d-4d6c-94ca-f30989b522ed") public boolean removeExternalIdentifiers(final ExternalIdentifier obj) { @@ -434,7 +420,6 @@ public boolean removeExternalIdentifiers(final ExternalIdentifier obj) { * Remove a value from the 'permissions' role.

* Role description: * null - * */ @objid ("9e927750-2783-4815-8ae5-7f632502ef3f") public boolean removePermissions(final Permission obj) { @@ -445,7 +430,6 @@ public boolean removePermissions(final Permission obj) { * Remove a value from the 'resourceFilters' role.

* Role description: * null - * */ @objid ("e9560073-be52-4a95-9774-2c2d319eff30") public boolean removeResourceFilters(final ResourceFilter obj) { @@ -456,7 +440,6 @@ public boolean removeResourceFilters(final ResourceFilter obj) { * Remove a value from the 'roles' role.

* Role description: * null - * */ @objid ("99758d7a-fcd1-4eb4-9961-ad1aebce8c32") public boolean removeRoles(final Role obj) { @@ -467,7 +450,6 @@ public boolean removeRoles(final Role obj) { * Remove a value from the 'rolesAssignements' role.

* Role description: * null - * */ @objid ("1e7c74a5-dc43-4ba6-88b2-13910d28c567") public boolean removeRolesAssignements(final RoleAssignment obj) { @@ -478,7 +460,6 @@ public boolean removeRolesAssignements(final RoleAssignment obj) { * Remove a value from the 'userGroups' role.

* Role description: * null - * */ @objid ("4affc6f1-67a1-413b-b60a-b3b42c2c0aa4") public boolean removeUserGroups(final UserGroup obj) { @@ -489,7 +470,6 @@ public boolean removeUserGroups(final UserGroup obj) { * Remove a value from the 'users' role.

* Role description: * null - * */ @objid ("197edc24-88bd-45fd-ab14-9c85610929d8") public boolean removeUsers(final User obj) { @@ -500,7 +480,6 @@ public boolean removeUsers(final User obj) { * Set the value of the 'camelModel' role.

* Role description: * null - * */ @objid ("0173f0ce-6a1f-4004-ae0e-9479c57ab894") public void setCamelModel(final CamelModel obj) { @@ -511,7 +490,6 @@ public void setCamelModel(final CamelModel obj) { * Set the value of the 'organisation' role.

* Role description: * null - * */ @objid ("305993ea-4409-4703-bb22-c3d4023d6450") public void setOrganisation(final Organisation obj) { @@ -615,11 +593,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/HorizontalScaleRequirement.java b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/HorizontalScaleRequirement.java index bcaaf4f9..58c3f405 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/HorizontalScaleRequirement.java +++ b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/HorizontalScaleRequirement.java @@ -71,9 +71,10 @@ public static HorizontalScaleRequirement create() { } /** - * Tries to instantiate a {@link HorizontalScaleRequirement} proxy from a {@link Class} stereotyped << HorizontalScaleRequirement >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link HorizontalScaleRequirement} proxy from a {@link Class} stereotyped << HorizontalScaleRequirement >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link HorizontalScaleRequirement} proxy or null. */ @@ -83,19 +84,20 @@ public static HorizontalScaleRequirement instantiate(final Class obj) { } /** - * Tries to instantiate a {@link HorizontalScaleRequirement} proxy from a {@link Class} stereotyped << HorizontalScaleRequirement >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link HorizontalScaleRequirement} proxy from a {@link Class} stereotyped << HorizontalScaleRequirement >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link HorizontalScaleRequirement} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("17c39e32-b105-4b19-896f-240454252ebe") public static HorizontalScaleRequirement safeInstantiate(final Class obj) throws IllegalArgumentException { if (HorizontalScaleRequirement.canInstantiate(obj)) - return new HorizontalScaleRequirement(obj); + return new HorizontalScaleRequirement(obj); else - throw new IllegalArgumentException("HorizontalScaleRequirement: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("HorizontalScaleRequirement: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("4fe909bf-b87b-412e-9ff5-51402e231d0b") @@ -115,7 +117,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("fc9a7b3f-19f3-43f5-a934-bb4b6171a7f1") @@ -210,11 +213,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/LocationRequirement.java b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/LocationRequirement.java index e9418ea1..8c9695d8 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/LocationRequirement.java +++ b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/LocationRequirement.java @@ -71,9 +71,10 @@ public static LocationRequirement create() { } /** - * Tries to instantiate a {@link LocationRequirement} proxy from a {@link Class} stereotyped << LocationRequirement >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link LocationRequirement} proxy from a {@link Class} stereotyped << LocationRequirement >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link LocationRequirement} proxy or null. */ @@ -83,26 +84,26 @@ public static LocationRequirement instantiate(final Class obj) { } /** - * Tries to instantiate a {@link LocationRequirement} proxy from a {@link Class} stereotyped << LocationRequirement >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link LocationRequirement} proxy from a {@link Class} stereotyped << LocationRequirement >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link LocationRequirement} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("524d18ff-f584-4ca4-8723-b058f90f058a") public static LocationRequirement safeInstantiate(final Class obj) throws IllegalArgumentException { if (LocationRequirement.canInstantiate(obj)) - return new LocationRequirement(obj); + return new LocationRequirement(obj); else - throw new IllegalArgumentException("LocationRequirement: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("LocationRequirement: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'locations' role.

* Role description: * null - * */ @objid ("2d36917e-e49b-4545-a226-f3fde1bfa2bc") public void addLocations(final Location obj) { @@ -131,7 +132,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("f4e93185-69fd-4fde-8618-b38d47270e42") @@ -144,7 +146,6 @@ public Class getElement() { * Get the values of the 'locations' role.

* Role description: * null - * */ @objid ("cc24a9ba-a26a-4bac-86e7-0d31955570af") public List getLocations() { @@ -181,7 +182,6 @@ public boolean isAllRequired() { * Remove a value from the 'locations' role.

* Role description: * null - * */ @objid ("48ba23c7-eb32-459c-a05f-a7e83ac1fc12") public boolean removeLocations(final Location obj) { @@ -246,11 +246,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/OSRequirement.java b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/OSRequirement.java index 807db1aa..244c723b 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/OSRequirement.java +++ b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/OSRequirement.java @@ -71,9 +71,10 @@ public static OSRequirement create() { } /** - * Tries to instantiate a {@link OSRequirement} proxy from a {@link Class} stereotyped << OSRequirement >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link OSRequirement} proxy from a {@link Class} stereotyped << OSRequirement >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link OSRequirement} proxy or null. */ @@ -83,19 +84,20 @@ public static OSRequirement instantiate(final Class obj) { } /** - * Tries to instantiate a {@link OSRequirement} proxy from a {@link Class} stereotyped << OSRequirement >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link OSRequirement} proxy from a {@link Class} stereotyped << OSRequirement >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link OSRequirement} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("5b7b62ef-442f-44b7-ad5c-bb5a3201d913") public static OSRequirement safeInstantiate(final Class obj) throws IllegalArgumentException { if (OSRequirement.canInstantiate(obj)) - return new OSRequirement(obj); + return new OSRequirement(obj); else - throw new IllegalArgumentException("OSRequirement: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("OSRequirement: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("eed7e73d-9300-413b-b9a8-e64d00d38e43") @@ -115,7 +117,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("175765cc-9337-464a-bf7b-f485615f8ab9") @@ -213,11 +216,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/OptimisationRequirement.java b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/OptimisationRequirement.java index a73ff6e0..59d72998 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/OptimisationRequirement.java +++ b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/OptimisationRequirement.java @@ -72,9 +72,10 @@ public static OptimisationRequirement create() { } /** - * Tries to instantiate a {@link OptimisationRequirement} proxy from a {@link Class} stereotyped << OptimisationRequirement >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link OptimisationRequirement} proxy from a {@link Class} stereotyped << OptimisationRequirement >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link OptimisationRequirement} proxy or null. */ @@ -84,19 +85,20 @@ public static OptimisationRequirement instantiate(final Class obj) { } /** - * Tries to instantiate a {@link OptimisationRequirement} proxy from a {@link Class} stereotyped << OptimisationRequirement >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link OptimisationRequirement} proxy from a {@link Class} stereotyped << OptimisationRequirement >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link OptimisationRequirement} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("6f75422f-fd0d-4d2b-a7ea-0982847acd5f") public static OptimisationRequirement safeInstantiate(final Class obj) throws IllegalArgumentException { if (OptimisationRequirement.canInstantiate(obj)) - return new OptimisationRequirement(obj); + return new OptimisationRequirement(obj); else - throw new IllegalArgumentException("OptimisationRequirement: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("OptimisationRequirement: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("51945e9e-9f87-419b-8e6c-6f49be96e110") @@ -116,7 +118,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("ec74b14f-04a1-4dd7-a3be-144f82ef0598") @@ -129,7 +132,6 @@ public Class getElement() { * Get the value of the 'metricContext' role.

* Role description: * null - * */ @objid ("0d3ef2a4-22e9-481c-8cff-a0a99f3e8835") public MetricContext getMetricContext() { @@ -149,7 +151,6 @@ public MetricContext getMetricContext() { * Get the value of the 'metricVariable' role.

* Role description: * null - * */ @objid ("f2028fc8-8cc7-4490-9bb1-75f0810541dc") public MetricVariable getMetricVariable() { @@ -183,7 +184,6 @@ public boolean isMinimise() { * Set the value of the 'metricContext' role.

* Role description: * null - * */ @objid ("eb734306-0fa1-4d39-bf50-54975b63056c") public void setMetricContext(final MetricContext obj) { @@ -209,7 +209,6 @@ public void setMetricContext(final MetricContext obj) { * Set the value of the 'metricVariable' role.

* Role description: * null - * */ @objid ("41d27050-236c-4804-9267-2ba7dcbc3200") public void setMetricVariable(final MetricVariable obj) { @@ -280,11 +279,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/PaaSRequirement.java b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/PaaSRequirement.java index 5c65c85c..fca7e237 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/PaaSRequirement.java +++ b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/PaaSRequirement.java @@ -65,9 +65,10 @@ public static PaaSRequirement create() { } /** - * Tries to instantiate a {@link PaaSRequirement} proxy from a {@link Class} stereotyped << PaaSRequirement >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link PaaSRequirement} proxy from a {@link Class} stereotyped << PaaSRequirement >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link PaaSRequirement} proxy or null. */ @@ -77,19 +78,20 @@ public static PaaSRequirement instantiate(final Class obj) { } /** - * Tries to instantiate a {@link PaaSRequirement} proxy from a {@link Class} stereotyped << PaaSRequirement >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link PaaSRequirement} proxy from a {@link Class} stereotyped << PaaSRequirement >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link PaaSRequirement} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("7577cc2c-1704-44ef-ba5b-ba6f4792ed32") public static PaaSRequirement safeInstantiate(final Class obj) throws IllegalArgumentException { if (PaaSRequirement.canInstantiate(obj)) - return new PaaSRequirement(obj); + return new PaaSRequirement(obj); else - throw new IllegalArgumentException("PaaSRequirement: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("PaaSRequirement: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("7d43fcb4-1d16-43a0-909c-4cc053d47c46") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("5e8cd5fe-9166-4d9e-bc75-2e93189372e6") @@ -156,11 +159,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/ProviderRequirement.java b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/ProviderRequirement.java index d9e62586..6b9cbfc3 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/ProviderRequirement.java +++ b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/ProviderRequirement.java @@ -71,9 +71,10 @@ public static ProviderRequirement create() { } /** - * Tries to instantiate a {@link ProviderRequirement} proxy from a {@link Class} stereotyped << ProviderRequirement >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ProviderRequirement} proxy from a {@link Class} stereotyped << ProviderRequirement >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link ProviderRequirement} proxy or null. */ @@ -83,19 +84,20 @@ public static ProviderRequirement instantiate(final Class obj) { } /** - * Tries to instantiate a {@link ProviderRequirement} proxy from a {@link Class} stereotyped << ProviderRequirement >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ProviderRequirement} proxy from a {@link Class} stereotyped << ProviderRequirement >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link ProviderRequirement} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("92ca397c-d27d-4503-b439-4530100e29b8") public static ProviderRequirement safeInstantiate(final Class obj) throws IllegalArgumentException { if (ProviderRequirement.canInstantiate(obj)) - return new ProviderRequirement(obj); + return new ProviderRequirement(obj); else - throw new IllegalArgumentException("ProviderRequirement: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("ProviderRequirement: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("5e2ba2be-1d70-42bc-84fd-2e568d83d85a") @@ -125,7 +127,8 @@ public String getCloudType() { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("e2579083-f86b-4377-a42a-17b1378859b5") @@ -210,11 +213,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/ResourceRequirement.java b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/ResourceRequirement.java index f9ff80bf..1499a7da 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/ResourceRequirement.java +++ b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/ResourceRequirement.java @@ -65,9 +65,10 @@ public static ResourceRequirement create() { } /** - * Tries to instantiate a {@link ResourceRequirement} proxy from a {@link Class} stereotyped << ResourceRequirement >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ResourceRequirement} proxy from a {@link Class} stereotyped << ResourceRequirement >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link ResourceRequirement} proxy or null. */ @@ -77,19 +78,20 @@ public static ResourceRequirement instantiate(final Class obj) { } /** - * Tries to instantiate a {@link ResourceRequirement} proxy from a {@link Class} stereotyped << ResourceRequirement >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ResourceRequirement} proxy from a {@link Class} stereotyped << ResourceRequirement >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link ResourceRequirement} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("14f26158-63ea-43c7-a7c6-4cf3b91630b1") public static ResourceRequirement safeInstantiate(final Class obj) throws IllegalArgumentException { if (ResourceRequirement.canInstantiate(obj)) - return new ResourceRequirement(obj); + return new ResourceRequirement(obj); else - throw new IllegalArgumentException("ResourceRequirement: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("ResourceRequirement: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("d9e94329-f8d2-4af8-852c-c4bb747f4088") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("9bfebb93-79ee-4082-b090-0dd1f419b942") @@ -156,11 +159,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/SecurityRequirement.java b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/SecurityRequirement.java index 4c1ee939..b2d72bfa 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/SecurityRequirement.java +++ b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/SecurityRequirement.java @@ -66,9 +66,10 @@ public static SecurityRequirement create() { } /** - * Tries to instantiate a {@link SecurityRequirement} proxy from a {@link Class} stereotyped << SecurityRequirement >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link SecurityRequirement} proxy from a {@link Class} stereotyped << SecurityRequirement >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link SecurityRequirement} proxy or null. */ @@ -78,26 +79,26 @@ public static SecurityRequirement instantiate(final Class obj) { } /** - * Tries to instantiate a {@link SecurityRequirement} proxy from a {@link Class} stereotyped << SecurityRequirement >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link SecurityRequirement} proxy from a {@link Class} stereotyped << SecurityRequirement >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link SecurityRequirement} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("e62d3a79-7923-4625-98ef-9cfc3d473df7") public static SecurityRequirement safeInstantiate(final Class obj) throws IllegalArgumentException { if (SecurityRequirement.canInstantiate(obj)) - return new SecurityRequirement(obj); + return new SecurityRequirement(obj); else - throw new IllegalArgumentException("SecurityRequirement: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("SecurityRequirement: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'securityControls' role.

* Role description: * null - * */ @objid ("f1f65e0d-d0c1-4b3d-86fa-2628e6119e11") public void addSecurityControls(final SecurityControl obj) { @@ -126,7 +127,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("c515ce6e-1fd5-45e3-a062-3ab2086d58c9") @@ -139,7 +141,6 @@ public Class getElement() { * Get the values of the 'securityControls' role.

* Role description: * null - * */ @objid ("cfa95e30-1194-4a4d-91ba-a7d004b57693") public List getSecurityControls() { @@ -164,7 +165,6 @@ public int hashCode() { * Remove a value from the 'securityControls' role.

* Role description: * null - * */ @objid ("973b938b-2180-475e-9285-404b6a2054eb") public boolean removeSecurityControls(final SecurityControl obj) { @@ -212,11 +212,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/ServiceLevelObjective.java b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/ServiceLevelObjective.java index afe2a776..8144261c 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/ServiceLevelObjective.java +++ b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/ServiceLevelObjective.java @@ -76,9 +76,10 @@ public static ServiceLevelObjective create() { } /** - * Tries to instantiate a {@link ServiceLevelObjective} proxy from a {@link Class} stereotyped << ServiceLevelObjective >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ServiceLevelObjective} proxy from a {@link Class} stereotyped << ServiceLevelObjective >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link ServiceLevelObjective} proxy or null. */ @@ -88,19 +89,20 @@ public static ServiceLevelObjective instantiate(final Class obj) { } /** - * Tries to instantiate a {@link ServiceLevelObjective} proxy from a {@link Class} stereotyped << ServiceLevelObjective >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ServiceLevelObjective} proxy from a {@link Class} stereotyped << ServiceLevelObjective >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link ServiceLevelObjective} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("7ccb1149-a4d4-49b2-82cf-b6bcc405298a") public static ServiceLevelObjective safeInstantiate(final Class obj) throws IllegalArgumentException { if (ServiceLevelObjective.canInstantiate(obj)) - return new ServiceLevelObjective(obj); + return new ServiceLevelObjective(obj); else - throw new IllegalArgumentException("ServiceLevelObjective: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("ServiceLevelObjective: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("849346ef-dd3e-4be9-98fa-e2ef341918d8") @@ -123,7 +125,6 @@ public boolean equals(final Object obj) { * Get the value of the 'constraint' role.

* Role description: * null - * */ @objid ("e7bad791-3a65-4154-a8ec-40c8fd0772ef") public CamelConstraint getConstraint() { @@ -146,7 +147,8 @@ public CamelConstraint getConstraint() { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("6eb93bba-d8b7-4a2d-bc22-0fdecf07e002") @@ -159,7 +161,6 @@ public Class getElement() { * Get the value of the 'violationEvent' role.

* Role description: * null - * */ @objid ("00443517-f30b-4b5e-8bd9-6f91cb3efd05") public Event getViolationEvent() { @@ -189,7 +190,6 @@ public int hashCode() { * Set the value of the 'constraint' role.

* Role description: * null - * */ @objid ("5b1cc775-4990-4755-9e3b-6d7624e2aede") public void setConstraint(final CamelConstraint obj) { @@ -215,7 +215,6 @@ public void setConstraint(final CamelConstraint obj) { * Set the value of the 'violationEvent' role.

* Role description: * null - * */ @objid ("1dfbdcf0-cbb1-412d-b792-43513858f014") public void setViolationEvent(final Event obj) { @@ -269,11 +268,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/VerticalScaleRequirement.java b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/VerticalScaleRequirement.java index 19293439..af94eada 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/VerticalScaleRequirement.java +++ b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/VerticalScaleRequirement.java @@ -65,9 +65,10 @@ public static VerticalScaleRequirement create() { } /** - * Tries to instantiate a {@link VerticalScaleRequirement} proxy from a {@link Class} stereotyped << VerticalScaleRequirement >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link VerticalScaleRequirement} proxy from a {@link Class} stereotyped << VerticalScaleRequirement >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link VerticalScaleRequirement} proxy or null. */ @@ -77,19 +78,20 @@ public static VerticalScaleRequirement instantiate(final Class obj) { } /** - * Tries to instantiate a {@link VerticalScaleRequirement} proxy from a {@link Class} stereotyped << VerticalScaleRequirement >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link VerticalScaleRequirement} proxy from a {@link Class} stereotyped << VerticalScaleRequirement >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link VerticalScaleRequirement} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("e72a9f51-50bf-480b-be65-65dc8a1b3a77") public static VerticalScaleRequirement safeInstantiate(final Class obj) throws IllegalArgumentException { if (VerticalScaleRequirement.canInstantiate(obj)) - return new VerticalScaleRequirement(obj); + return new VerticalScaleRequirement(obj); else - throw new IllegalArgumentException("VerticalScaleRequirement: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("VerticalScaleRequirement: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("8fb9241c-48f8-439d-bc62-9773e8cc50db") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("dc58243a-8002-4ee0-94f8-00a36aa655c3") @@ -156,11 +159,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/enumeration/ImageRequirement.java b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/enumeration/ImageRequirement.java index 9dc2b881..ae61fc9b 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/enumeration/ImageRequirement.java +++ b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/enumeration/ImageRequirement.java @@ -68,9 +68,10 @@ public static ImageRequirement create() { } /** - * Tries to instantiate a {@link ImageRequirement} proxy from a {@link Enumeration} stereotyped << ImageRequirement >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ImageRequirement} proxy from a {@link Enumeration} stereotyped << ImageRequirement >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Enumeration * @return a {@link ImageRequirement} proxy or null. */ @@ -80,19 +81,20 @@ public static ImageRequirement instantiate(final Enumeration obj) { } /** - * Tries to instantiate a {@link ImageRequirement} proxy from a {@link Enumeration} stereotyped << ImageRequirement >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ImageRequirement} proxy from a {@link Enumeration} stereotyped << ImageRequirement >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Enumeration} * @return a {@link ImageRequirement} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("fd9a73c1-38bd-4f18-8bed-065b69fe9015") public static ImageRequirement safeInstantiate(final Enumeration obj) throws IllegalArgumentException { if (ImageRequirement.canInstantiate(obj)) - return new ImageRequirement(obj); + return new ImageRequirement(obj); else - throw new IllegalArgumentException("ImageRequirement: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("ImageRequirement: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("7eef459b-8982-489f-81e6-f91be2ee05d9") @@ -112,7 +114,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Enumeration}. + * Get the underlying {@link Enumeration}. + * * @return the Enumeration represented by this proxy, never null. */ @objid ("fcb99de4-9505-472f-90ce-d92681cb438a") @@ -183,11 +186,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/generalclass/HardRequirement.java b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/generalclass/HardRequirement.java index b93500f0..20845037 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/generalclass/HardRequirement.java +++ b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/generalclass/HardRequirement.java @@ -68,7 +68,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link GeneralClass}. + * Get the underlying {@link GeneralClass}. + * * @return the GeneralClass represented by this proxy, never null. */ @objid ("a8851f14-57f1-47fb-be87-9724236daa10") @@ -115,11 +116,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/generalclass/Requirement.java b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/generalclass/Requirement.java index b99a34fa..810dafa5 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/generalclass/Requirement.java +++ b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/generalclass/Requirement.java @@ -69,7 +69,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link GeneralClass}. + * Get the underlying {@link GeneralClass}. + * * @return the GeneralClass represented by this proxy, never null. */ @objid ("db137d7f-dee5-4999-97f1-1d5780b806c1") @@ -116,11 +117,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/generalclass/ScaleRequirement.java b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/generalclass/ScaleRequirement.java index d98861b4..59336be7 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/generalclass/ScaleRequirement.java +++ b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/generalclass/ScaleRequirement.java @@ -68,7 +68,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link GeneralClass}. + * Get the underlying {@link GeneralClass}. + * * @return the GeneralClass represented by this proxy, never null. */ @objid ("4cac3943-63af-4768-9883-e864ff00a8b7") @@ -115,11 +116,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/generalclass/SoftRequirement.java b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/generalclass/SoftRequirement.java index 32203621..c583517f 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/generalclass/SoftRequirement.java +++ b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/generalclass/SoftRequirement.java @@ -71,7 +71,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link GeneralClass}. + * Get the underlying {@link GeneralClass}. + * * @return the GeneralClass represented by this proxy, never null. */ @objid ("9c7c6a36-7a45-4c81-8deb-c489b3ea1021") @@ -142,11 +143,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/package_/RequirementModel.java b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/package_/RequirementModel.java index e4d1d201..f36d78c3 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/package_/RequirementModel.java +++ b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/package_/RequirementModel.java @@ -83,9 +83,10 @@ public static RequirementModel create() { } /** - * Tries to instantiate a {@link RequirementModel} proxy from a {@link Package} stereotyped << RequirementModel >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link RequirementModel} proxy from a {@link Package} stereotyped << RequirementModel >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Package * @return a {@link RequirementModel} proxy or null. */ @@ -95,26 +96,26 @@ public static RequirementModel instantiate(final Package obj) { } /** - * Tries to instantiate a {@link RequirementModel} proxy from a {@link Package} stereotyped << RequirementModel >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link RequirementModel} proxy from a {@link Package} stereotyped << RequirementModel >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Package} * @return a {@link RequirementModel} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("90d04f9b-8888-4e21-bb43-f0312b38682b") public static RequirementModel safeInstantiate(final Package obj) throws IllegalArgumentException { if (RequirementModel.canInstantiate(obj)) - return new RequirementModel(obj); + return new RequirementModel(obj); else - throw new IllegalArgumentException("RequirementModel: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("RequirementModel: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'requirements' role.

* Role description: * null - * */ @objid ("02994a90-0cf5-4893-b377-01d0c2f4b0e0") public void addRequirements(final Requirement obj) { @@ -142,7 +143,6 @@ public boolean equals(final Object obj) { * Get the value to the 'camelModel' role.

* Role description: * null - * */ @objid ("1c098574-642f-4c00-b9f1-92fe9f302b6d") public CamelModel getCamelModel() { @@ -150,7 +150,8 @@ public CamelModel getCamelModel() { } /** - * Get the underlying {@link Package}. + * Get the underlying {@link Package}. + * * @return the Package represented by this proxy, never null. */ @objid ("ec99cb41-f0bf-46be-9ab4-2b5a9af86f1a") @@ -163,37 +164,36 @@ public Package getElement() { * Get the values of the 'requirements' role.

* Role description: * null - * */ @objid ("0ccf1ace-45b3-4103-83ed-a0024521236e") public List getRequirements() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (ImageRequirement.canInstantiate(mObj)) - results.add((ImageRequirement)CamelDesignerProxyFactory.instantiate(mObj, ImageRequirement.STEREOTYPE_NAME)); - if (LocationRequirement.canInstantiate(mObj)) - results.add((LocationRequirement)CamelDesignerProxyFactory.instantiate(mObj, LocationRequirement.STEREOTYPE_NAME)); - if (OSRequirement.canInstantiate(mObj)) - results.add((OSRequirement)CamelDesignerProxyFactory.instantiate(mObj, OSRequirement.STEREOTYPE_NAME)); - if (PaaSRequirement.canInstantiate(mObj)) - results.add((PaaSRequirement)CamelDesignerProxyFactory.instantiate(mObj, PaaSRequirement.STEREOTYPE_NAME)); - if (ProviderRequirement.canInstantiate(mObj)) - results.add((ProviderRequirement)CamelDesignerProxyFactory.instantiate(mObj, ProviderRequirement.STEREOTYPE_NAME)); - if (ResourceRequirement.canInstantiate(mObj)) - results.add((ResourceRequirement)CamelDesignerProxyFactory.instantiate(mObj, ResourceRequirement.STEREOTYPE_NAME)); - if (HorizontalScaleRequirement.canInstantiate(mObj)) - results.add((HorizontalScaleRequirement)CamelDesignerProxyFactory.instantiate(mObj, HorizontalScaleRequirement.STEREOTYPE_NAME)); - if (VerticalScaleRequirement.canInstantiate(mObj)) - results.add((VerticalScaleRequirement)CamelDesignerProxyFactory.instantiate(mObj, VerticalScaleRequirement.STEREOTYPE_NAME)); - if (SecurityRequirement.canInstantiate(mObj)) - results.add((SecurityRequirement)CamelDesignerProxyFactory.instantiate(mObj, SecurityRequirement.STEREOTYPE_NAME)); - if (SecuritySLO.canInstantiate(mObj)) - results.add((SecuritySLO)CamelDesignerProxyFactory.instantiate(mObj, SecuritySLO.STEREOTYPE_NAME)); - if (ServiceLevelObjective.canInstantiate(mObj)) - results.add((ServiceLevelObjective)CamelDesignerProxyFactory.instantiate(mObj, ServiceLevelObjective.STEREOTYPE_NAME)); - if (OptimisationRequirement.canInstantiate(mObj)) - results.add((OptimisationRequirement)CamelDesignerProxyFactory.instantiate(mObj, OptimisationRequirement.STEREOTYPE_NAME)); - } + if (ImageRequirement.canInstantiate(mObj)) + results.add((ImageRequirement)CamelDesignerProxyFactory.instantiate(mObj, ImageRequirement.STEREOTYPE_NAME)); + if (LocationRequirement.canInstantiate(mObj)) + results.add((LocationRequirement)CamelDesignerProxyFactory.instantiate(mObj, LocationRequirement.STEREOTYPE_NAME)); + if (OSRequirement.canInstantiate(mObj)) + results.add((OSRequirement)CamelDesignerProxyFactory.instantiate(mObj, OSRequirement.STEREOTYPE_NAME)); + if (PaaSRequirement.canInstantiate(mObj)) + results.add((PaaSRequirement)CamelDesignerProxyFactory.instantiate(mObj, PaaSRequirement.STEREOTYPE_NAME)); + if (ProviderRequirement.canInstantiate(mObj)) + results.add((ProviderRequirement)CamelDesignerProxyFactory.instantiate(mObj, ProviderRequirement.STEREOTYPE_NAME)); + if (ResourceRequirement.canInstantiate(mObj)) + results.add((ResourceRequirement)CamelDesignerProxyFactory.instantiate(mObj, ResourceRequirement.STEREOTYPE_NAME)); + if (HorizontalScaleRequirement.canInstantiate(mObj)) + results.add((HorizontalScaleRequirement)CamelDesignerProxyFactory.instantiate(mObj, HorizontalScaleRequirement.STEREOTYPE_NAME)); + if (VerticalScaleRequirement.canInstantiate(mObj)) + results.add((VerticalScaleRequirement)CamelDesignerProxyFactory.instantiate(mObj, VerticalScaleRequirement.STEREOTYPE_NAME)); + if (SecurityRequirement.canInstantiate(mObj)) + results.add((SecurityRequirement)CamelDesignerProxyFactory.instantiate(mObj, SecurityRequirement.STEREOTYPE_NAME)); + if (SecuritySLO.canInstantiate(mObj)) + results.add((SecuritySLO)CamelDesignerProxyFactory.instantiate(mObj, SecuritySLO.STEREOTYPE_NAME)); + if (ServiceLevelObjective.canInstantiate(mObj)) + results.add((ServiceLevelObjective)CamelDesignerProxyFactory.instantiate(mObj, ServiceLevelObjective.STEREOTYPE_NAME)); + if (OptimisationRequirement.canInstantiate(mObj)) + results.add((OptimisationRequirement)CamelDesignerProxyFactory.instantiate(mObj, OptimisationRequirement.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -207,7 +207,6 @@ public int hashCode() { * Remove a value from the 'requirements' role.

* Role description: * null - * */ @objid ("8cbcc953-4165-48d1-9823-4135fa86b94e") public boolean removeRequirements(final Requirement obj) { @@ -218,7 +217,6 @@ public boolean removeRequirements(final Requirement obj) { * Set the value of the 'camelModel' role.

* Role description: * null - * */ @objid ("c7c92d65-bc4d-42ab-bc6c-307dae1e97cf") public void setCamelModel(final CamelModel obj) { @@ -327,11 +325,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/BinaryEventPattern.java b/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/BinaryEventPattern.java index 8f3f8d2b..34240372 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/BinaryEventPattern.java +++ b/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/BinaryEventPattern.java @@ -14,7 +14,6 @@ import fr.softeam.cameldesigner.api.CamelDesignerProxyFactory; import fr.softeam.cameldesigner.api.ICamelDesignerPeerModule; import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; -import fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.Event; import fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.FunctionalEvent; import fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.NonFunctionalEvent; import fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.UnaryEventPattern; @@ -77,9 +76,10 @@ public static BinaryEventPattern create() { } /** - * Tries to instantiate a {@link BinaryEventPattern} proxy from a {@link Class} stereotyped << BinaryEventPattern >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link BinaryEventPattern} proxy from a {@link Class} stereotyped << BinaryEventPattern >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link BinaryEventPattern} proxy or null. */ @@ -89,19 +89,20 @@ public static BinaryEventPattern instantiate(final Class obj) { } /** - * Tries to instantiate a {@link BinaryEventPattern} proxy from a {@link Class} stereotyped << BinaryEventPattern >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link BinaryEventPattern} proxy from a {@link Class} stereotyped << BinaryEventPattern >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link BinaryEventPattern} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("4149d440-5c8b-4391-9b65-fde73f92976a") public static BinaryEventPattern safeInstantiate(final Class obj) throws IllegalArgumentException { if (BinaryEventPattern.canInstantiate(obj)) - return new BinaryEventPattern(obj); + return new BinaryEventPattern(obj); else - throw new IllegalArgumentException("BinaryEventPattern: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("BinaryEventPattern: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("8142d492-a757-4428-b21b-7914c54928d0") @@ -121,7 +122,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("2be7c7cc-565d-455d-a080-e6bb102d495b") @@ -134,7 +136,6 @@ public Class getElement() { * Get the value of the 'leftEvent' role.

* Role description: * null - * */ @objid ("1ced70c0-047b-471e-adab-af61272db93a") public Event getLeftEvent() { @@ -178,7 +179,6 @@ public String getOperator() { * Get the value of the 'rightEvent' role.

* Role description: * null - * */ @objid ("b815a9cc-6bb2-48e5-8ba5-c3f19e420a40") public Event getRightEvent() { @@ -218,7 +218,6 @@ public int hashCode() { * Set the value of the 'leftEvent' role.

* Role description: * null - * */ @objid ("e336336b-e1ba-46eb-8b67-ef2fee77655d") public void setLeftEvent(final Event obj) { @@ -264,7 +263,6 @@ public void setOperator(final String value) { * Set the value of the 'rightEvent' role.

* Role description: * null - * */ @objid ("d2c73bb2-82b0-4a70-9b84-caf407b8d129") public void setRightEvent(final Event obj) { @@ -340,11 +338,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/Event.java b/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/Event.java index d756b1d7..b95965bb 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/Event.java +++ b/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/Event.java @@ -69,7 +69,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("7374298b-7e3e-4437-8c9c-d4eb9038caf6") @@ -116,11 +117,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/EventPattern.java b/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/EventPattern.java index 652b9d12..6aa16f2e 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/EventPattern.java +++ b/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/EventPattern.java @@ -14,7 +14,6 @@ import fr.softeam.cameldesigner.api.CamelDesignerProxyFactory; import fr.softeam.cameldesigner.api.ICamelDesignerPeerModule; import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; -import fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.Timer; import fr.softeam.cameldesigner.impl.CamelDesignerModule; import org.modelio.api.modelio.model.IModelingSession; import org.modelio.api.modelio.model.PropertyConverter; @@ -69,7 +68,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("9631b680-37f3-4b05-8385-15d3b84fe77d") @@ -82,7 +82,6 @@ public Class getElement() { * Get the value of the 'timer' role.

* Role description: * null - * */ @objid ("a5390f06-3ba1-4f66-8b4c-853889c4a23e") public Timer getTimer() { @@ -106,7 +105,6 @@ public int hashCode() { * Set the value of the 'timer' role.

* Role description: * null - * */ @objid ("88ecc94e-9bcd-4998-a9e2-356807bc2549") public void setTimer(final Timer obj) { @@ -160,11 +158,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/FunctionalEvent.java b/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/FunctionalEvent.java index cbc68db9..d343c7a6 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/FunctionalEvent.java +++ b/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/FunctionalEvent.java @@ -79,9 +79,10 @@ public static FunctionalEvent create() { } /** - * Tries to instantiate a {@link FunctionalEvent} proxy from a {@link Class} stereotyped << FunctionalEvent >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link FunctionalEvent} proxy from a {@link Class} stereotyped << FunctionalEvent >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link FunctionalEvent} proxy or null. */ @@ -91,19 +92,20 @@ public static FunctionalEvent instantiate(final Class obj) { } /** - * Tries to instantiate a {@link FunctionalEvent} proxy from a {@link Class} stereotyped << FunctionalEvent >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link FunctionalEvent} proxy from a {@link Class} stereotyped << FunctionalEvent >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link FunctionalEvent} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("c0771d80-a02b-462c-af7c-f1020083a200") public static FunctionalEvent safeInstantiate(final Class obj) throws IllegalArgumentException { if (FunctionalEvent.canInstantiate(obj)) - return new FunctionalEvent(obj); + return new FunctionalEvent(obj); else - throw new IllegalArgumentException("FunctionalEvent: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("FunctionalEvent: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("7f0e0d9b-6589-4b30-a7c7-67bf1d790a4a") @@ -126,7 +128,6 @@ public boolean equals(final Object obj) { * Get the value of the 'component' role.

* Role description: * - * */ @objid ("893ba6a8-7ead-4189-aad9-d4752ce68351") public CamelComponent getComponent() { @@ -149,7 +150,8 @@ public CamelComponent getComponent() { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("da9348ae-b8ad-4bee-b1e3-cfa9bd084b46") @@ -162,7 +164,6 @@ public Class getElement() { * Get the value of the 'functionalType' role.

* Role description: * - * */ @objid ("8fdf1850-4650-45f2-bf36-c31832586a28") public CamelAttribute getFunctionalType() { @@ -200,7 +201,6 @@ public int hashCode() { * Set the value of the 'component' role.

* Role description: * - * */ @objid ("dbf7b87a-3510-4283-8a1e-f88b9358d5a9") public void setComponent(final CamelComponent obj) { @@ -226,7 +226,6 @@ public void setComponent(final CamelComponent obj) { * Set the value of the 'functionalType' role.

* Role description: * - * */ @objid ("a633901a-622c-46d1-9de5-82a21dc7a95d") public void setFunctionalType(final CamelAttribute obj) { @@ -280,11 +279,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/HorizontalScalingAction.java b/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/HorizontalScalingAction.java index 20c871f0..16a459a3 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/HorizontalScalingAction.java +++ b/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/HorizontalScalingAction.java @@ -68,9 +68,10 @@ public static HorizontalScalingAction create() { } /** - * Tries to instantiate a {@link HorizontalScalingAction} proxy from a {@link Class} stereotyped << HorizontalScalingAction >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link HorizontalScalingAction} proxy from a {@link Class} stereotyped << HorizontalScalingAction >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link HorizontalScalingAction} proxy or null. */ @@ -80,19 +81,20 @@ public static HorizontalScalingAction instantiate(final Class obj) { } /** - * Tries to instantiate a {@link HorizontalScalingAction} proxy from a {@link Class} stereotyped << HorizontalScalingAction >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link HorizontalScalingAction} proxy from a {@link Class} stereotyped << HorizontalScalingAction >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link HorizontalScalingAction} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("54977388-23c9-41da-a180-1840ef746ab5") public static HorizontalScalingAction safeInstantiate(final Class obj) throws IllegalArgumentException { if (HorizontalScalingAction.canInstantiate(obj)) - return new HorizontalScalingAction(obj); + return new HorizontalScalingAction(obj); else - throw new IllegalArgumentException("HorizontalScalingAction: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("HorizontalScalingAction: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("14746e4f-52dc-4bfd-8e57-e16360ee7793") @@ -122,7 +124,8 @@ public String getCount() { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("4416b0c8-6df9-4add-92e1-203f4b0e553c") @@ -183,11 +186,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/NonFunctionalEvent.java b/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/NonFunctionalEvent.java index 7c8af89e..b27843c6 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/NonFunctionalEvent.java +++ b/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/NonFunctionalEvent.java @@ -68,9 +68,10 @@ public static NonFunctionalEvent create() { } /** - * Tries to instantiate a {@link NonFunctionalEvent} proxy from a {@link Class} stereotyped << NonFunctionalEvent >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link NonFunctionalEvent} proxy from a {@link Class} stereotyped << NonFunctionalEvent >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link NonFunctionalEvent} proxy or null. */ @@ -80,19 +81,20 @@ public static NonFunctionalEvent instantiate(final Class obj) { } /** - * Tries to instantiate a {@link NonFunctionalEvent} proxy from a {@link Class} stereotyped << NonFunctionalEvent >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link NonFunctionalEvent} proxy from a {@link Class} stereotyped << NonFunctionalEvent >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link NonFunctionalEvent} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("a7a11ae0-71cf-4d75-a544-70f2a82271bd") public static NonFunctionalEvent safeInstantiate(final Class obj) throws IllegalArgumentException { if (NonFunctionalEvent.canInstantiate(obj)) - return new NonFunctionalEvent(obj); + return new NonFunctionalEvent(obj); else - throw new IllegalArgumentException("NonFunctionalEvent: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("NonFunctionalEvent: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("10770085-b021-4095-887b-413b38f12396") @@ -112,7 +114,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("ec3a6e45-6e62-4ef2-ac65-618f02391f75") @@ -125,7 +128,6 @@ public Class getElement() { * Get the value of the 'metricConstraint' role.

* Role description: * null - * */ @objid ("8475b6cb-7642-4e3b-973f-f6ffb1459813") public MetricConstraint getMetricConstraint() { @@ -172,7 +174,6 @@ public void setIsViolation(final boolean value) { * Set the value of the 'metricConstraint' role.

* Role description: * null - * */ @objid ("07105cd1-acf5-43ea-af48-f1a8e06bade0") public void setMetricConstraint(final MetricConstraint obj) { @@ -230,11 +231,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/ScalabilityRule.java b/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/ScalabilityRule.java index 624cb221..974372b9 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/ScalabilityRule.java +++ b/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/ScalabilityRule.java @@ -17,7 +17,6 @@ import fr.softeam.cameldesigner.api.camelcore.standard.class_.FeatureClass; import fr.softeam.cameldesigner.api.camelcore.standard.namespace.Action; import fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.BinaryEventPattern; -import fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.Event; import fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.FunctionalEvent; import fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.HorizontalScalingAction; import fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.NonFunctionalEvent; @@ -73,9 +72,10 @@ public static ScalabilityRule create() { } /** - * Tries to instantiate a {@link ScalabilityRule} proxy from a {@link Class} stereotyped << ScalabilityRule >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ScalabilityRule} proxy from a {@link Class} stereotyped << ScalabilityRule >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link ScalabilityRule} proxy or null. */ @@ -85,26 +85,26 @@ public static ScalabilityRule instantiate(final Class obj) { } /** - * Tries to instantiate a {@link ScalabilityRule} proxy from a {@link Class} stereotyped << ScalabilityRule >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ScalabilityRule} proxy from a {@link Class} stereotyped << ScalabilityRule >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link ScalabilityRule} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("7b09a6dd-0c71-4e8f-a661-adc0619d01d2") public static ScalabilityRule safeInstantiate(final Class obj) throws IllegalArgumentException { if (ScalabilityRule.canInstantiate(obj)) - return new ScalabilityRule(obj); + return new ScalabilityRule(obj); else - throw new IllegalArgumentException("ScalabilityRule: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("ScalabilityRule: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'actions' role.

* Role description: * null - * */ @objid ("82a7a7d4-022e-451a-9d62-fee177fc878c") public void addActions(final Action obj) { @@ -136,7 +136,6 @@ public boolean equals(final Object obj) { * Get the values of the 'actions' role.

* Role description: * null - * */ @objid ("b876d081-2a90-4186-a95d-df5936bf448f") public List getActions() { @@ -154,7 +153,8 @@ public List getActions() { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("67e6ded2-df83-4808-95f7-75dbba91deda") @@ -167,7 +167,6 @@ public Class getElement() { * Get the value of the 'event' role.

* Role description: * null - * */ @objid ("d3eb7eee-8ace-4571-ab2d-7c834520fbe2") public Event getEvent() { @@ -197,7 +196,6 @@ public int hashCode() { * Remove a value from the 'actions' role.

* Role description: * null - * */ @objid ("a9761c0d-1d9c-4234-a8b0-7f855b5511fc") public boolean removeActions(final Action obj) { @@ -217,7 +215,6 @@ public boolean removeActions(final Action obj) { * Set the value of the 'event' role.

* Role description: * null - * */ @objid ("79fa1e3f-ec40-4132-b616-143b0cef249f") public void setEvent(final Event obj) { @@ -271,11 +268,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/SingleEvent.java b/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/SingleEvent.java index c98ac84d..ff75193a 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/SingleEvent.java +++ b/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/SingleEvent.java @@ -68,7 +68,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("31ea8313-e4a2-42c8-ae92-3fc50f890639") @@ -115,11 +116,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/Timer.java b/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/Timer.java index ec513575..d6554e8e 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/Timer.java +++ b/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/Timer.java @@ -78,9 +78,10 @@ public static Timer create() { } /** - * Tries to instantiate a {@link Timer} proxy from a {@link Class} stereotyped << Timer >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Timer} proxy from a {@link Class} stereotyped << Timer >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link Timer} proxy or null. */ @@ -90,19 +91,20 @@ public static Timer instantiate(final Class obj) { } /** - * Tries to instantiate a {@link Timer} proxy from a {@link Class} stereotyped << Timer >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Timer} proxy from a {@link Class} stereotyped << Timer >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link Timer} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("0ea73825-abd0-47be-9652-0c0c93f50941") public static Timer safeInstantiate(final Class obj) throws IllegalArgumentException { if (Timer.canInstantiate(obj)) - return new Timer(obj); + return new Timer(obj); else - throw new IllegalArgumentException("Timer: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("Timer: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("160318e8-8192-475d-87e4-c2a1782ef381") @@ -122,7 +124,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("7d5c5563-5935-4138-96cb-84a2c9ffe5a9") @@ -165,7 +168,6 @@ public String getType() { * Get the value of the 'unit' role.

* Role description: * null - * */ @objid ("20fcb0e0-96f7-4359-ae0a-93a1d0771a72") public Unit getUnit() { @@ -223,7 +225,6 @@ public void setType(final String value) { * Set the value of the 'unit' role.

* Role description: * null - * */ @objid ("a1476385-c72c-456b-9068-b3ac14c7dbfb") public void setUnit(final Unit obj) { @@ -289,11 +290,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/UnaryEventPattern.java b/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/UnaryEventPattern.java index 3417959c..b032970d 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/UnaryEventPattern.java +++ b/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/UnaryEventPattern.java @@ -15,7 +15,6 @@ import fr.softeam.cameldesigner.api.ICamelDesignerPeerModule; import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; import fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.BinaryEventPattern; -import fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.Event; import fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.FunctionalEvent; import fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.NonFunctionalEvent; import fr.softeam.cameldesigner.impl.CamelDesignerModule; @@ -74,9 +73,10 @@ public static UnaryEventPattern create() { } /** - * Tries to instantiate a {@link UnaryEventPattern} proxy from a {@link Class} stereotyped << UnaryEventPattern >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link UnaryEventPattern} proxy from a {@link Class} stereotyped << UnaryEventPattern >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link UnaryEventPattern} proxy or null. */ @@ -86,19 +86,20 @@ public static UnaryEventPattern instantiate(final Class obj) { } /** - * Tries to instantiate a {@link UnaryEventPattern} proxy from a {@link Class} stereotyped << UnaryEventPattern >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link UnaryEventPattern} proxy from a {@link Class} stereotyped << UnaryEventPattern >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link UnaryEventPattern} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("12aba1d3-9a79-4a8f-afb4-2063894e9588") public static UnaryEventPattern safeInstantiate(final Class obj) throws IllegalArgumentException { if (UnaryEventPattern.canInstantiate(obj)) - return new UnaryEventPattern(obj); + return new UnaryEventPattern(obj); else - throw new IllegalArgumentException("UnaryEventPattern: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("UnaryEventPattern: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("c1cf348e-38df-4ffa-b29a-bbc327fa0cd5") @@ -118,7 +119,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("f8801f21-4ada-48ef-a8a9-2c277359c10c") @@ -131,7 +133,6 @@ public Class getElement() { * Get the value of the 'event' role.

* Role description: * null - * */ @objid ("b7d1726f-a2a9-49fe-8dc8-c03cc15236f8") public Event getEvent() { @@ -181,7 +182,6 @@ public int hashCode() { * Set the value of the 'event' role.

* Role description: * null - * */ @objid ("b0b73576-c772-4005-89dc-0c9e526ae5b5") public void setEvent(final Event obj) { @@ -263,11 +263,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/VerticalScalingAction.java b/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/VerticalScalingAction.java index 994a274f..d0c652e5 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/VerticalScalingAction.java +++ b/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/VerticalScalingAction.java @@ -65,9 +65,10 @@ public static VerticalScalingAction create() { } /** - * Tries to instantiate a {@link VerticalScalingAction} proxy from a {@link Class} stereotyped << VerticalScalingAction >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link VerticalScalingAction} proxy from a {@link Class} stereotyped << VerticalScalingAction >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link VerticalScalingAction} proxy or null. */ @@ -77,19 +78,20 @@ public static VerticalScalingAction instantiate(final Class obj) { } /** - * Tries to instantiate a {@link VerticalScalingAction} proxy from a {@link Class} stereotyped << VerticalScalingAction >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link VerticalScalingAction} proxy from a {@link Class} stereotyped << VerticalScalingAction >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link VerticalScalingAction} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("5aef03ac-1b90-4858-ba46-5668bcfbc499") public static VerticalScalingAction safeInstantiate(final Class obj) throws IllegalArgumentException { if (VerticalScalingAction.canInstantiate(obj)) - return new VerticalScalingAction(obj); + return new VerticalScalingAction(obj); else - throw new IllegalArgumentException("VerticalScalingAction: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("VerticalScalingAction: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("51cc7fdc-cef4-4beb-8751-0bba935f2baf") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("04651872-4000-4b2d-a693-f70bffd3379e") @@ -156,11 +159,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/instance/EventInstance.java b/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/instance/EventInstance.java index 37d52aee..627cc335 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/instance/EventInstance.java +++ b/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/instance/EventInstance.java @@ -76,7 +76,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Instance}. + * Get the underlying {@link Instance}. + * * @return the Instance represented by this proxy, never null. */ @objid ("61af20ea-cdee-4a6e-90df-3369fe9c80f1") @@ -109,7 +110,6 @@ public String getStatus() { * Get the value to the 'type' role.

* Role description: * null - * */ @objid ("431f3493-f550-4464-9ed3-0543f75a3219") public Event getType() { @@ -146,7 +146,6 @@ public void setStatus(final String value) { * Set the value of the 'type' role.

* Role description: * null - * */ @objid ("f5b4360a-be50-4435-9a63-75949fd704fb") public void setType(final Event obj) { @@ -193,11 +192,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/instance/FunctionalEventInstance.java b/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/instance/FunctionalEventInstance.java index cba5a716..ed7ec9dc 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/instance/FunctionalEventInstance.java +++ b/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/instance/FunctionalEventInstance.java @@ -69,9 +69,10 @@ public static FunctionalEventInstance create() { } /** - * Tries to instantiate a {@link FunctionalEventInstance} proxy from a {@link Instance} stereotyped << FunctionalEventInstance >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link FunctionalEventInstance} proxy from a {@link Instance} stereotyped << FunctionalEventInstance >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Instance * @return a {@link FunctionalEventInstance} proxy or null. */ @@ -81,19 +82,20 @@ public static FunctionalEventInstance instantiate(final Instance obj) { } /** - * Tries to instantiate a {@link FunctionalEventInstance} proxy from a {@link Instance} stereotyped << FunctionalEventInstance >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link FunctionalEventInstance} proxy from a {@link Instance} stereotyped << FunctionalEventInstance >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Instance} * @return a {@link FunctionalEventInstance} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("24866283-859d-42c1-9130-a7b12c7c0351") public static FunctionalEventInstance safeInstantiate(final Instance obj) throws IllegalArgumentException { if (FunctionalEventInstance.canInstantiate(obj)) - return new FunctionalEventInstance(obj); + return new FunctionalEventInstance(obj); else - throw new IllegalArgumentException("FunctionalEventInstance: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("FunctionalEventInstance: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("f5afed4f-63e8-4065-882f-ac4f996878db") @@ -116,7 +118,6 @@ public boolean equals(final Object obj) { * Get the value of the 'componentInstance' role.

* Role description: * null - * */ @objid ("73b4bbc4-b8a3-4562-bf68-a170b598a0ee") public ComponentInstance getComponentInstance() { @@ -137,7 +138,8 @@ public ComponentInstance getComponentInstance() { } /** - * Get the underlying {@link Instance}. + * Get the underlying {@link Instance}. + * * @return the Instance represented by this proxy, never null. */ @objid ("f634ab0c-9e07-483e-a53a-b96404f85cd1") @@ -156,7 +158,6 @@ public int hashCode() { * Set the value of the 'componentInstance' role.

* Role description: * null - * */ @objid ("343df868-14cf-4531-a70b-6e09c353d7bb") public void setComponentInstance(final ComponentInstance obj) { @@ -210,11 +211,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/instance/NonFunctionalEventInstance.java b/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/instance/NonFunctionalEventInstance.java index 12983f81..c60ab067 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/instance/NonFunctionalEventInstance.java +++ b/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/instance/NonFunctionalEventInstance.java @@ -66,9 +66,10 @@ public static NonFunctionalEventInstance create() { } /** - * Tries to instantiate a {@link NonFunctionalEventInstance} proxy from a {@link Instance} stereotyped << NonFunctionalEventInstance >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link NonFunctionalEventInstance} proxy from a {@link Instance} stereotyped << NonFunctionalEventInstance >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Instance * @return a {@link NonFunctionalEventInstance} proxy or null. */ @@ -78,19 +79,20 @@ public static NonFunctionalEventInstance instantiate(final Instance obj) { } /** - * Tries to instantiate a {@link NonFunctionalEventInstance} proxy from a {@link Instance} stereotyped << NonFunctionalEventInstance >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link NonFunctionalEventInstance} proxy from a {@link Instance} stereotyped << NonFunctionalEventInstance >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Instance} * @return a {@link NonFunctionalEventInstance} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("5421c9ea-d313-4fd7-a8ac-99dd584f2f24") public static NonFunctionalEventInstance safeInstantiate(final Instance obj) throws IllegalArgumentException { if (NonFunctionalEventInstance.canInstantiate(obj)) - return new NonFunctionalEventInstance(obj); + return new NonFunctionalEventInstance(obj); else - throw new IllegalArgumentException("NonFunctionalEventInstance: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("NonFunctionalEventInstance: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("50ef9ff3-f7e8-4ad3-b951-78bdbda4e684") @@ -110,7 +112,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Instance}. + * Get the underlying {@link Instance}. + * * @return the Instance represented by this proxy, never null. */ @objid ("cdbd546d-feab-4a1e-b6ae-02db0a51154f") @@ -123,7 +126,6 @@ public Instance getElement() { * Get the value of the 'metricInstance' role.

* Role description: * null - * */ @objid ("5751c7b2-3093-480f-9546-cee9e00b4ce6") public MetricInstance getMetricInstance() { @@ -149,7 +151,6 @@ public int hashCode() { * Set the value of the 'metricInstance' role.

* Role description: * null - * */ @objid ("52f66025-bba9-4116-a82a-5f3d58e2d795") public void setMetricInstance(final MetricInstance obj) { @@ -203,11 +204,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/namespace/ScalingAction.java b/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/namespace/ScalingAction.java index f9c3104b..12a1af0e 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/namespace/ScalingAction.java +++ b/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/namespace/ScalingAction.java @@ -71,7 +71,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link NameSpace}. + * Get the underlying {@link NameSpace}. + * * @return the NameSpace represented by this proxy, never null. */ @objid ("9c4848f0-4776-4eec-91c6-f46130e6f2bd") @@ -84,7 +85,6 @@ public NameSpace getElement() { * Get the value of the 'softwareComponent' role.

* Role description: * null - * */ @objid ("0f6fcc6c-0549-49d8-b10b-bb983d47406f") public SoftwareComponent getSoftwareComponent() { @@ -110,7 +110,6 @@ public int hashCode() { * Set the value of the 'softwareComponent' role.

* Role description: * null - * */ @objid ("a0cf0009-c534-4525-927d-8ef1205b365f") public void setSoftwareComponent(final SoftwareComponent obj) { @@ -164,11 +163,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/package_/ScalabilityModel.java b/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/package_/ScalabilityModel.java index 20d3eb1d..6369a8a4 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/package_/ScalabilityModel.java +++ b/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/package_/ScalabilityModel.java @@ -82,9 +82,10 @@ public static ScalabilityModel create() { } /** - * Tries to instantiate a {@link ScalabilityModel} proxy from a {@link Package} stereotyped << ScalabilityModel >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ScalabilityModel} proxy from a {@link Package} stereotyped << ScalabilityModel >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Package * @return a {@link ScalabilityModel} proxy or null. */ @@ -94,26 +95,26 @@ public static ScalabilityModel instantiate(final Package obj) { } /** - * Tries to instantiate a {@link ScalabilityModel} proxy from a {@link Package} stereotyped << ScalabilityModel >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link ScalabilityModel} proxy from a {@link Package} stereotyped << ScalabilityModel >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Package} * @return a {@link ScalabilityModel} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("f284edb0-5dc9-497d-b523-1cd619210e11") public static ScalabilityModel safeInstantiate(final Package obj) throws IllegalArgumentException { if (ScalabilityModel.canInstantiate(obj)) - return new ScalabilityModel(obj); + return new ScalabilityModel(obj); else - throw new IllegalArgumentException("ScalabilityModel: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("ScalabilityModel: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'actions' role.

* Role description: * null - * */ @objid ("46dc6d41-dff5-49b7-82d9-7666df69b402") public void addActions(final ScalingAction obj) { @@ -125,7 +126,6 @@ public void addActions(final ScalingAction obj) { * Add a value to the 'eventInstances' role.

* Role description: * null - * */ @objid ("d4d41efb-9663-4f40-8018-6093ec7cbd48") public void addEventInstances(final EventInstance obj) { @@ -137,7 +137,6 @@ public void addEventInstances(final EventInstance obj) { * Add a value to the 'events' role.

* Role description: * null - * */ @objid ("c2013f96-c98b-4f50-a905-72a3ca5d5bf2") public void addEvents(final SingleEvent obj) { @@ -149,7 +148,6 @@ public void addEvents(final SingleEvent obj) { * Add a value to the 'patterns' role.

* Role description: * null - * */ @objid ("a8e8fd39-1cf5-44d8-892c-ed51173aa42b") public void addPatterns(final EventPattern obj) { @@ -161,7 +159,6 @@ public void addPatterns(final EventPattern obj) { * Add a value to the 'rules' role.

* Role description: * null - * */ @objid ("8c919cef-fa0d-4dcd-893e-d0d91e4688ec") public void addRules(final ScalabilityRule obj) { @@ -173,7 +170,6 @@ public void addRules(final ScalabilityRule obj) { * Add a value to the 'timers' role.

* Role description: * null - * */ @objid ("9e50d765-3d6e-4548-8159-47de6c8adbf8") public void addTimers(final Timer obj) { @@ -201,17 +197,16 @@ public boolean equals(final Object obj) { * Get the values of the 'actions' role.

* Role description: * null - * */ @objid ("3b36126f-a185-4119-afbe-a0c5796fe99b") public List getActions() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (HorizontalScalingAction.canInstantiate(mObj)) - results.add((HorizontalScalingAction)CamelDesignerProxyFactory.instantiate(mObj, HorizontalScalingAction.STEREOTYPE_NAME)); - if (VerticalScalingAction.canInstantiate(mObj)) - results.add((VerticalScalingAction)CamelDesignerProxyFactory.instantiate(mObj, VerticalScalingAction.STEREOTYPE_NAME)); - } + if (HorizontalScalingAction.canInstantiate(mObj)) + results.add((HorizontalScalingAction)CamelDesignerProxyFactory.instantiate(mObj, HorizontalScalingAction.STEREOTYPE_NAME)); + if (VerticalScalingAction.canInstantiate(mObj)) + results.add((VerticalScalingAction)CamelDesignerProxyFactory.instantiate(mObj, VerticalScalingAction.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -219,7 +214,6 @@ public List getActions() { * Get the value to the 'camelModel' role.

* Role description: * null - * */ @objid ("3a273cd0-5b7f-4f70-bbaa-b64e655515ff") public CamelModel getCamelModel() { @@ -227,7 +221,8 @@ public CamelModel getCamelModel() { } /** - * Get the underlying {@link Package}. + * Get the underlying {@link Package}. + * * @return the Package represented by this proxy, never null. */ @objid ("c7b9a76b-d20d-44d5-b3a0-0a457ca60d2e") @@ -240,17 +235,16 @@ public Package getElement() { * Get the values of the 'eventInstances' role.

* Role description: * null - * */ @objid ("ecddd0b0-80c4-487b-ab65-2b1d47075af5") public List getEventInstances() { List results = new ArrayList<>(); for (Instance mObj : ((Package) this.elt).getDeclared()){ - if (FunctionalEventInstance.canInstantiate(mObj)) - results.add((FunctionalEventInstance)CamelDesignerProxyFactory.instantiate(mObj, FunctionalEventInstance.STEREOTYPE_NAME)); - if (NonFunctionalEventInstance.canInstantiate(mObj)) - results.add((NonFunctionalEventInstance)CamelDesignerProxyFactory.instantiate(mObj, NonFunctionalEventInstance.STEREOTYPE_NAME)); - } + if (FunctionalEventInstance.canInstantiate(mObj)) + results.add((FunctionalEventInstance)CamelDesignerProxyFactory.instantiate(mObj, FunctionalEventInstance.STEREOTYPE_NAME)); + if (NonFunctionalEventInstance.canInstantiate(mObj)) + results.add((NonFunctionalEventInstance)CamelDesignerProxyFactory.instantiate(mObj, NonFunctionalEventInstance.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -258,17 +252,16 @@ public List getEventInstances() { * Get the values of the 'events' role.

* Role description: * null - * */ @objid ("8f0101b3-2120-451e-940a-210cd731f01f") public List getEvents() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (FunctionalEvent.canInstantiate(mObj)) - results.add((FunctionalEvent)CamelDesignerProxyFactory.instantiate(mObj, FunctionalEvent.STEREOTYPE_NAME)); - if (NonFunctionalEvent.canInstantiate(mObj)) - results.add((NonFunctionalEvent)CamelDesignerProxyFactory.instantiate(mObj, NonFunctionalEvent.STEREOTYPE_NAME)); - } + if (FunctionalEvent.canInstantiate(mObj)) + results.add((FunctionalEvent)CamelDesignerProxyFactory.instantiate(mObj, FunctionalEvent.STEREOTYPE_NAME)); + if (NonFunctionalEvent.canInstantiate(mObj)) + results.add((NonFunctionalEvent)CamelDesignerProxyFactory.instantiate(mObj, NonFunctionalEvent.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -276,17 +269,16 @@ public List getEvents() { * Get the values of the 'patterns' role.

* Role description: * null - * */ @objid ("28f79d73-7bca-4fc5-86d9-63dc4042e02a") public List getPatterns() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (BinaryEventPattern.canInstantiate(mObj)) - results.add((BinaryEventPattern)CamelDesignerProxyFactory.instantiate(mObj, BinaryEventPattern.STEREOTYPE_NAME)); - if (UnaryEventPattern.canInstantiate(mObj)) - results.add((UnaryEventPattern)CamelDesignerProxyFactory.instantiate(mObj, UnaryEventPattern.STEREOTYPE_NAME)); - } + if (BinaryEventPattern.canInstantiate(mObj)) + results.add((BinaryEventPattern)CamelDesignerProxyFactory.instantiate(mObj, BinaryEventPattern.STEREOTYPE_NAME)); + if (UnaryEventPattern.canInstantiate(mObj)) + results.add((UnaryEventPattern)CamelDesignerProxyFactory.instantiate(mObj, UnaryEventPattern.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -294,15 +286,14 @@ public List getPatterns() { * Get the values of the 'rules' role.

* Role description: * null - * */ @objid ("b6562520-7c24-4ba6-95b6-7d9e3c32a6f5") public List getRules() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (ScalabilityRule.canInstantiate(mObj)) - results.add((ScalabilityRule)CamelDesignerProxyFactory.instantiate(mObj, ScalabilityRule.STEREOTYPE_NAME)); - } + if (ScalabilityRule.canInstantiate(mObj)) + results.add((ScalabilityRule)CamelDesignerProxyFactory.instantiate(mObj, ScalabilityRule.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -310,15 +301,14 @@ public List getRules() { * Get the values of the 'timers' role.

* Role description: * null - * */ @objid ("f587c04a-825c-4f14-b30f-b9cd4503510a") public List getTimers() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (Timer.canInstantiate(mObj)) - results.add((Timer)CamelDesignerProxyFactory.instantiate(mObj, Timer.STEREOTYPE_NAME)); - } + if (Timer.canInstantiate(mObj)) + results.add((Timer)CamelDesignerProxyFactory.instantiate(mObj, Timer.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -332,7 +322,6 @@ public int hashCode() { * Remove a value from the 'actions' role.

* Role description: * null - * */ @objid ("dd41bf5f-b327-4ec8-a02d-7109e2c4f53a") public boolean removeActions(final ScalingAction obj) { @@ -343,7 +332,6 @@ public boolean removeActions(final ScalingAction obj) { * Remove a value from the 'eventInstances' role.

* Role description: * null - * */ @objid ("90b2a994-30d4-4791-8cbe-8b1d484a59d6") public boolean removeEventInstances(final EventInstance obj) { @@ -354,7 +342,6 @@ public boolean removeEventInstances(final EventInstance obj) { * Remove a value from the 'events' role.

* Role description: * null - * */ @objid ("ca40d1ae-91a5-44dd-91c2-5ca4ba52df26") public boolean removeEvents(final SingleEvent obj) { @@ -365,7 +352,6 @@ public boolean removeEvents(final SingleEvent obj) { * Remove a value from the 'patterns' role.

* Role description: * null - * */ @objid ("778d589e-bca2-487e-b396-768a0a79b290") public boolean removePatterns(final EventPattern obj) { @@ -376,7 +362,6 @@ public boolean removePatterns(final EventPattern obj) { * Remove a value from the 'rules' role.

* Role description: * null - * */ @objid ("3089382a-a260-4b46-85d5-cfb61eaf03e3") public boolean removeRules(final ScalabilityRule obj) { @@ -387,7 +372,6 @@ public boolean removeRules(final ScalabilityRule obj) { * Remove a value from the 'timers' role.

* Role description: * null - * */ @objid ("8080fc79-1829-443f-a5da-20160b9b5d24") public boolean removeTimers(final Timer obj) { @@ -398,7 +382,6 @@ public boolean removeTimers(final Timer obj) { * Set the value of the 'camelModel' role.

* Role description: * null - * */ @objid ("c5aa0e2b-cfcb-4731-8bd9-b1f505783585") public void setCamelModel(final CamelModel obj) { @@ -437,11 +420,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/securitymodel/standard/class_/Certifiable.java b/src/main/java/fr/softeam/cameldesigner/api/securitymodel/standard/class_/Certifiable.java index 3e6fed25..b04ecbbe 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/securitymodel/standard/class_/Certifiable.java +++ b/src/main/java/fr/softeam/cameldesigner/api/securitymodel/standard/class_/Certifiable.java @@ -64,9 +64,10 @@ public static Certifiable create() { } /** - * Tries to instantiate a {@link Certifiable} proxy from a {@link Class} stereotyped << Certifiable >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Certifiable} proxy from a {@link Class} stereotyped << Certifiable >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link Certifiable} proxy or null. */ @@ -76,19 +77,20 @@ public static Certifiable instantiate(final Class obj) { } /** - * Tries to instantiate a {@link Certifiable} proxy from a {@link Class} stereotyped << Certifiable >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Certifiable} proxy from a {@link Class} stereotyped << Certifiable >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link Certifiable} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("869f366e-7475-41e5-b5a3-d74dbd4c3c1f") public static Certifiable safeInstantiate(final Class obj) throws IllegalArgumentException { if (Certifiable.canInstantiate(obj)) - return new Certifiable(obj); + return new Certifiable(obj); else - throw new IllegalArgumentException("Certifiable: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("Certifiable: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("2efc482b-98f3-4428-8d57-67187e3d078b") @@ -108,7 +110,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("0454ea7a-3181-42e7-b3cd-03248d7e26dd") @@ -155,11 +158,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/securitymodel/standard/class_/CompositeSecurityMetric.java b/src/main/java/fr/softeam/cameldesigner/api/securitymodel/standard/class_/CompositeSecurityMetric.java index ca443eb1..6b4c18be 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/securitymodel/standard/class_/CompositeSecurityMetric.java +++ b/src/main/java/fr/softeam/cameldesigner/api/securitymodel/standard/class_/CompositeSecurityMetric.java @@ -15,7 +15,6 @@ import fr.softeam.cameldesigner.api.ICamelDesignerPeerModule; import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; import fr.softeam.cameldesigner.api.metricmodel.standard.class_.CompositeMetric; -import fr.softeam.cameldesigner.api.securitymodel.standard.class_.SecurityDomain; import fr.softeam.cameldesigner.impl.CamelDesignerModule; import org.modelio.api.modelio.model.IModelingSession; import org.modelio.api.modelio.model.PropertyConverter; @@ -66,9 +65,10 @@ public static CompositeSecurityMetric create() { } /** - * Tries to instantiate a {@link CompositeSecurityMetric} proxy from a {@link Class} stereotyped << CompositeSecurityMetric >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link CompositeSecurityMetric} proxy from a {@link Class} stereotyped << CompositeSecurityMetric >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link CompositeSecurityMetric} proxy or null. */ @@ -78,19 +78,20 @@ public static CompositeSecurityMetric instantiate(final Class obj) { } /** - * Tries to instantiate a {@link CompositeSecurityMetric} proxy from a {@link Class} stereotyped << CompositeSecurityMetric >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link CompositeSecurityMetric} proxy from a {@link Class} stereotyped << CompositeSecurityMetric >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link CompositeSecurityMetric} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("2398d6f4-b33c-48c7-a576-abda5d1e70a2") public static CompositeSecurityMetric safeInstantiate(final Class obj) throws IllegalArgumentException { if (CompositeSecurityMetric.canInstantiate(obj)) - return new CompositeSecurityMetric(obj); + return new CompositeSecurityMetric(obj); else - throw new IllegalArgumentException("CompositeSecurityMetric: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("CompositeSecurityMetric: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("0cf5f6fa-ffa6-490b-aae9-29855a5c5736") @@ -113,7 +114,6 @@ public boolean equals(final Object obj) { * Get the value of the 'domain' role.

* Role description: * null - * */ @objid ("e3a9b619-df16-4cf1-a66e-86de666b49da") public SecurityDomain getDomain() { @@ -128,7 +128,8 @@ public SecurityDomain getDomain() { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("757331d8-cf9c-4c31-8155-0910f84a163f") @@ -147,7 +148,6 @@ public int hashCode() { * Set the value of the 'domain' role.

* Role description: * null - * */ @objid ("cf33eccd-d7ca-463c-b8b3-82e969883bba") public void setDomain(final SecurityDomain obj) { @@ -201,11 +201,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/securitymodel/standard/class_/RawSecurityMetric.java b/src/main/java/fr/softeam/cameldesigner/api/securitymodel/standard/class_/RawSecurityMetric.java index baf25ed1..40a40655 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/securitymodel/standard/class_/RawSecurityMetric.java +++ b/src/main/java/fr/softeam/cameldesigner/api/securitymodel/standard/class_/RawSecurityMetric.java @@ -15,7 +15,6 @@ import fr.softeam.cameldesigner.api.ICamelDesignerPeerModule; import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; import fr.softeam.cameldesigner.api.metricmodel.standard.class_.RawMetric; -import fr.softeam.cameldesigner.api.securitymodel.standard.class_.SecurityDomain; import fr.softeam.cameldesigner.impl.CamelDesignerModule; import org.modelio.api.modelio.model.IModelingSession; import org.modelio.api.modelio.model.PropertyConverter; @@ -66,9 +65,10 @@ public static RawSecurityMetric create() { } /** - * Tries to instantiate a {@link RawSecurityMetric} proxy from a {@link Class} stereotyped << RawSecurityMetric >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link RawSecurityMetric} proxy from a {@link Class} stereotyped << RawSecurityMetric >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link RawSecurityMetric} proxy or null. */ @@ -78,19 +78,20 @@ public static RawSecurityMetric instantiate(final Class obj) { } /** - * Tries to instantiate a {@link RawSecurityMetric} proxy from a {@link Class} stereotyped << RawSecurityMetric >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link RawSecurityMetric} proxy from a {@link Class} stereotyped << RawSecurityMetric >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link RawSecurityMetric} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("adb85af2-914e-410d-9e6b-eb1c5a1a8ed5") public static RawSecurityMetric safeInstantiate(final Class obj) throws IllegalArgumentException { if (RawSecurityMetric.canInstantiate(obj)) - return new RawSecurityMetric(obj); + return new RawSecurityMetric(obj); else - throw new IllegalArgumentException("RawSecurityMetric: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("RawSecurityMetric: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("98401846-3223-4748-94af-d33699b4dafa") @@ -113,7 +114,6 @@ public boolean equals(final Object obj) { * Get the value of the 'domain' role.

* Role description: * null - * */ @objid ("0acb3f2c-6ce8-4ed7-b937-b57396d78aee") public SecurityDomain getDomain() { @@ -128,7 +128,8 @@ public SecurityDomain getDomain() { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("52ca3a04-dce1-4170-b182-6571cf704358") @@ -147,7 +148,6 @@ public int hashCode() { * Set the value of the 'domain' role.

* Role description: * null - * */ @objid ("6a51ab97-a010-4076-a538-7990049e6e88") public void setDomain(final SecurityDomain obj) { @@ -201,11 +201,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/securitymodel/standard/class_/SecurityAttribute.java b/src/main/java/fr/softeam/cameldesigner/api/securitymodel/standard/class_/SecurityAttribute.java index 9d9d32e2..8a0534e1 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/securitymodel/standard/class_/SecurityAttribute.java +++ b/src/main/java/fr/softeam/cameldesigner/api/securitymodel/standard/class_/SecurityAttribute.java @@ -15,7 +15,6 @@ import fr.softeam.cameldesigner.api.ICamelDesignerPeerModule; import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; import fr.softeam.cameldesigner.api.camelcore.standard.class_.QualityAttributeClass; -import fr.softeam.cameldesigner.api.securitymodel.standard.class_.SecurityDomain; import fr.softeam.cameldesigner.impl.CamelDesignerModule; import org.modelio.api.modelio.model.IModelingSession; import org.modelio.api.modelio.model.PropertyConverter; @@ -66,9 +65,10 @@ public static SecurityAttribute create() { } /** - * Tries to instantiate a {@link SecurityAttribute} proxy from a {@link Class} stereotyped << SecurityAttribute >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link SecurityAttribute} proxy from a {@link Class} stereotyped << SecurityAttribute >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link SecurityAttribute} proxy or null. */ @@ -78,19 +78,20 @@ public static SecurityAttribute instantiate(final Class obj) { } /** - * Tries to instantiate a {@link SecurityAttribute} proxy from a {@link Class} stereotyped << SecurityAttribute >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link SecurityAttribute} proxy from a {@link Class} stereotyped << SecurityAttribute >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link SecurityAttribute} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("db2896e8-c392-45f5-a5c5-9cf0bd25323a") public static SecurityAttribute safeInstantiate(final Class obj) throws IllegalArgumentException { if (SecurityAttribute.canInstantiate(obj)) - return new SecurityAttribute(obj); + return new SecurityAttribute(obj); else - throw new IllegalArgumentException("SecurityAttribute: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("SecurityAttribute: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("7f4b1e24-b266-4ea7-8480-6124a39db0a1") @@ -113,7 +114,6 @@ public boolean equals(final Object obj) { * Get the value of the 'domain' role.

* Role description: * null - * */ @objid ("bc3304a0-817d-423e-becc-c09b511e1785") public SecurityDomain getDomain() { @@ -128,7 +128,8 @@ public SecurityDomain getDomain() { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("56baa593-ad5b-42c7-8bc0-4a40b60e9ea9") @@ -147,7 +148,6 @@ public int hashCode() { * Set the value of the 'domain' role.

* Role description: * null - * */ @objid ("c06f51b2-44b7-4385-9454-b6ee395b9529") public void setDomain(final SecurityDomain obj) { @@ -201,11 +201,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/securitymodel/standard/class_/SecurityControl.java b/src/main/java/fr/softeam/cameldesigner/api/securitymodel/standard/class_/SecurityControl.java index 4fe94634..99f9b05e 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/securitymodel/standard/class_/SecurityControl.java +++ b/src/main/java/fr/softeam/cameldesigner/api/securitymodel/standard/class_/SecurityControl.java @@ -16,10 +16,6 @@ import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; import fr.softeam.cameldesigner.api.camelcore.standard.class_.FeatureClass; import fr.softeam.cameldesigner.api.securitymodel.standard.class_.Certifiable; -import fr.softeam.cameldesigner.api.securitymodel.standard.class_.CompositeSecurityMetric; -import fr.softeam.cameldesigner.api.securitymodel.standard.class_.RawSecurityMetric; -import fr.softeam.cameldesigner.api.securitymodel.standard.class_.SecurityAttribute; -import fr.softeam.cameldesigner.api.securitymodel.standard.class_.SecurityDomain; import fr.softeam.cameldesigner.impl.CamelDesignerModule; import org.modelio.api.modelio.model.IModelingSession; import org.modelio.api.modelio.model.PropertyConverter; @@ -76,9 +72,10 @@ public static SecurityControl create() { } /** - * Tries to instantiate a {@link SecurityControl} proxy from a {@link Class} stereotyped << SecurityControl >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link SecurityControl} proxy from a {@link Class} stereotyped << SecurityControl >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link SecurityControl} proxy or null. */ @@ -88,26 +85,26 @@ public static SecurityControl instantiate(final Class obj) { } /** - * Tries to instantiate a {@link SecurityControl} proxy from a {@link Class} stereotyped << SecurityControl >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link SecurityControl} proxy from a {@link Class} stereotyped << SecurityControl >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link SecurityControl} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("2f6cdef6-093a-428d-974c-7439b31a0557") public static SecurityControl safeInstantiate(final Class obj) throws IllegalArgumentException { if (SecurityControl.canInstantiate(obj)) - return new SecurityControl(obj); + return new SecurityControl(obj); else - throw new IllegalArgumentException("SecurityControl: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("SecurityControl: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'compositeSecurityMetrics' role.

* Role description: * null - * */ @objid ("1e1377e9-2c60-4a4c-b74e-a21e9c236d11") public void addCompositeSecurityMetrics(final CompositeSecurityMetric obj) { @@ -123,7 +120,6 @@ public void addCompositeSecurityMetrics(final CompositeSecurityMetric obj) { * Add a value to the 'rawSecurityMetrics' role.

* Role description: * null - * */ @objid ("4aa97517-031a-4f8f-b1c7-d47cf260a777") public void addRawSecurityMetrics(final RawSecurityMetric obj) { @@ -139,7 +135,6 @@ public void addRawSecurityMetrics(final RawSecurityMetric obj) { * Add a value to the 'securityProperties' role.

* Role description: * null - * */ @objid ("6144f64c-1e9e-4668-a166-2858596471cf") public void addSecurityProperties(final SecurityAttribute obj) { @@ -171,7 +166,6 @@ public boolean equals(final Object obj) { * Get the values of the 'compositeSecurityMetrics' role.

* Role description: * null - * */ @objid ("681976ea-d9fe-4372-af32-031616a6639e") public List getCompositeSecurityMetrics() { @@ -190,7 +184,6 @@ public List getCompositeSecurityMetrics() { * Get the value of the 'domain' role.

* Role description: * null - * */ @objid ("ddc717c2-993e-4034-848e-132d02551ee3") public SecurityDomain getDomain() { @@ -205,7 +198,8 @@ public SecurityDomain getDomain() { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("df88c443-a049-47f1-9816-01036c1370f0") @@ -228,7 +222,6 @@ public String getId() { * Get the values of the 'rawSecurityMetrics' role.

* Role description: * null - * */ @objid ("b70161b0-89ba-4715-87ae-fce544249280") public List getRawSecurityMetrics() { @@ -247,7 +240,6 @@ public List getRawSecurityMetrics() { * Get the values of the 'securityProperties' role.

* Role description: * null - * */ @objid ("0d6fdbed-1167-41bb-b249-53e1b3f86d2d") public List getSecurityProperties() { @@ -278,7 +270,6 @@ public String getSpecification() { * Get the value of the 'subDomain' role.

* Role description: * null - * */ @objid ("4c4f40c0-1dc3-4c85-802a-628be382399d") public SecurityDomain getSubDomain() { @@ -302,7 +293,6 @@ public int hashCode() { * Remove a value from the 'compositeSecurityMetrics' role.

* Role description: * null - * */ @objid ("fac6a47e-eea9-4b6b-be8f-d837d1b16a67") public boolean removeCompositeSecurityMetrics(final CompositeSecurityMetric obj) { @@ -322,7 +312,6 @@ public boolean removeCompositeSecurityMetrics(final CompositeSecurityMetric obj) * Remove a value from the 'rawSecurityMetrics' role.

* Role description: * null - * */ @objid ("a3039df4-b0b7-4fc6-bb77-4951de161f18") public boolean removeRawSecurityMetrics(final RawSecurityMetric obj) { @@ -342,7 +331,6 @@ public boolean removeRawSecurityMetrics(final RawSecurityMetric obj) { * Remove a value from the 'securityProperties' role.

* Role description: * null - * */ @objid ("323e6d6e-9458-46be-a5b9-eca37624d253") public boolean removeSecurityProperties(final SecurityAttribute obj) { @@ -362,7 +350,6 @@ public boolean removeSecurityProperties(final SecurityAttribute obj) { * Set the value of the 'domain' role.

* Role description: * null - * */ @objid ("836d33fc-4af4-40f3-a580-9a40d0998359") public void setDomain(final SecurityDomain obj) { @@ -408,7 +395,6 @@ public void setSpecification(final String value) { * Set the value of the 'subDomain' role.

* Role description: * null - * */ @objid ("68b45cbd-934a-49d0-b917-42bac24ef91c") public void setSubDomain(final SecurityDomain obj) { @@ -470,11 +456,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/securitymodel/standard/class_/SecurityDomain.java b/src/main/java/fr/softeam/cameldesigner/api/securitymodel/standard/class_/SecurityDomain.java index a14a555b..3ecaa1df 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/securitymodel/standard/class_/SecurityDomain.java +++ b/src/main/java/fr/softeam/cameldesigner/api/securitymodel/standard/class_/SecurityDomain.java @@ -68,9 +68,10 @@ public static SecurityDomain create() { } /** - * Tries to instantiate a {@link SecurityDomain} proxy from a {@link Class} stereotyped << SecurityDomain >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link SecurityDomain} proxy from a {@link Class} stereotyped << SecurityDomain >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link SecurityDomain} proxy or null. */ @@ -80,26 +81,26 @@ public static SecurityDomain instantiate(final Class obj) { } /** - * Tries to instantiate a {@link SecurityDomain} proxy from a {@link Class} stereotyped << SecurityDomain >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link SecurityDomain} proxy from a {@link Class} stereotyped << SecurityDomain >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link SecurityDomain} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("97ae9dc9-da26-4934-bffb-13d33d3cb850") public static SecurityDomain safeInstantiate(final Class obj) throws IllegalArgumentException { if (SecurityDomain.canInstantiate(obj)) - return new SecurityDomain(obj); + return new SecurityDomain(obj); else - throw new IllegalArgumentException("SecurityDomain: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("SecurityDomain: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value of the 'subDomains' role.

* Role description: * null - * */ @objid ("52b29911-fd65-4918-8e88-42c33925d69a") public void addSubDomains(final SecurityDomain obj) { @@ -128,7 +129,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("cfcc984e-db56-4eed-b21e-31f329e5780a") @@ -151,7 +153,6 @@ public String getId() { * Get the values of the 'subDomains' role.

* Role description: * null - * */ @objid ("57a4d1eb-e71f-45e6-93a6-e22d851b6e02") public List getSubDomains() { @@ -176,7 +177,6 @@ public int hashCode() { * Remove a value from 'subDomains' role.

* Role description: * null - * */ @objid ("1965b806-1086-44ae-ba72-e6835f6e26f9") public boolean removeSubDomains(final SecurityDomain obj) { @@ -238,11 +238,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/securitymodel/standard/class_/SecuritySLO.java b/src/main/java/fr/softeam/cameldesigner/api/securitymodel/standard/class_/SecuritySLO.java index 6a7c15ba..a7745ff0 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/securitymodel/standard/class_/SecuritySLO.java +++ b/src/main/java/fr/softeam/cameldesigner/api/securitymodel/standard/class_/SecuritySLO.java @@ -65,9 +65,10 @@ public static SecuritySLO create() { } /** - * Tries to instantiate a {@link SecuritySLO} proxy from a {@link Class} stereotyped << SecuritySLO >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link SecuritySLO} proxy from a {@link Class} stereotyped << SecuritySLO >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link SecuritySLO} proxy or null. */ @@ -77,19 +78,20 @@ public static SecuritySLO instantiate(final Class obj) { } /** - * Tries to instantiate a {@link SecuritySLO} proxy from a {@link Class} stereotyped << SecuritySLO >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link SecuritySLO} proxy from a {@link Class} stereotyped << SecuritySLO >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link SecuritySLO} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("a56d8b07-2736-43e3-b7c9-52ff934e2570") public static SecuritySLO safeInstantiate(final Class obj) throws IllegalArgumentException { if (SecuritySLO.canInstantiate(obj)) - return new SecuritySLO(obj); + return new SecuritySLO(obj); else - throw new IllegalArgumentException("SecuritySLO: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("SecuritySLO: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("a83fcd55-e06e-49c0-8a20-8a19f5644db0") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("3f34b02e-4ae5-467a-aecf-bccec51e3473") @@ -156,11 +159,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/securitymodel/standard/instance/SecurityMetricInstance.java b/src/main/java/fr/softeam/cameldesigner/api/securitymodel/standard/instance/SecurityMetricInstance.java index 060dffda..aea6316a 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/securitymodel/standard/instance/SecurityMetricInstance.java +++ b/src/main/java/fr/softeam/cameldesigner/api/securitymodel/standard/instance/SecurityMetricInstance.java @@ -65,9 +65,10 @@ public static SecurityMetricInstance create() { } /** - * Tries to instantiate a {@link SecurityMetricInstance} proxy from a {@link Instance} stereotyped << SecurityMetricInstance >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link SecurityMetricInstance} proxy from a {@link Instance} stereotyped << SecurityMetricInstance >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Instance * @return a {@link SecurityMetricInstance} proxy or null. */ @@ -77,19 +78,20 @@ public static SecurityMetricInstance instantiate(final Instance obj) { } /** - * Tries to instantiate a {@link SecurityMetricInstance} proxy from a {@link Instance} stereotyped << SecurityMetricInstance >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link SecurityMetricInstance} proxy from a {@link Instance} stereotyped << SecurityMetricInstance >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Instance} * @return a {@link SecurityMetricInstance} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("cb3a2e36-7bdf-4f8c-90c6-01b2dd1ce3f9") public static SecurityMetricInstance safeInstantiate(final Instance obj) throws IllegalArgumentException { if (SecurityMetricInstance.canInstantiate(obj)) - return new SecurityMetricInstance(obj); + return new SecurityMetricInstance(obj); else - throw new IllegalArgumentException("SecurityMetricInstance: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("SecurityMetricInstance: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("8993b7fc-9e91-4728-9733-eca1c35aeb99") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Instance}. + * Get the underlying {@link Instance}. + * * @return the Instance represented by this proxy, never null. */ @objid ("985d605a-c6f9-4a29-ac54-eea5b5b0ced3") @@ -156,11 +159,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/securitymodel/standard/package_/SecurityModel.java b/src/main/java/fr/softeam/cameldesigner/api/securitymodel/standard/package_/SecurityModel.java index 97337748..51457fe1 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/securitymodel/standard/package_/SecurityModel.java +++ b/src/main/java/fr/softeam/cameldesigner/api/securitymodel/standard/package_/SecurityModel.java @@ -77,9 +77,10 @@ public static SecurityModel create() { } /** - * Tries to instantiate a {@link SecurityModel} proxy from a {@link Package} stereotyped << SecurityModel >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link SecurityModel} proxy from a {@link Package} stereotyped << SecurityModel >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Package * @return a {@link SecurityModel} proxy or null. */ @@ -89,26 +90,26 @@ public static SecurityModel instantiate(final Package obj) { } /** - * Tries to instantiate a {@link SecurityModel} proxy from a {@link Package} stereotyped << SecurityModel >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link SecurityModel} proxy from a {@link Package} stereotyped << SecurityModel >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Package} * @return a {@link SecurityModel} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("d95f255a-8da0-4e93-a18f-8dcd23d0f985") public static SecurityModel safeInstantiate(final Package obj) throws IllegalArgumentException { if (SecurityModel.canInstantiate(obj)) - return new SecurityModel(obj); + return new SecurityModel(obj); else - throw new IllegalArgumentException("SecurityModel: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("SecurityModel: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'compositeSecurityInstances' role.

* Role description: * null - * */ @objid ("b7ab98ec-7128-4e33-aca2-07b36864d3a9") public void addCompositeSecurityInstances(final CompositeSecurityMetric obj) { @@ -120,7 +121,6 @@ public void addCompositeSecurityInstances(final CompositeSecurityMetric obj) { * Add a value to the 'rawSecurityMetrics' role.

* Role description: * null - * */ @objid ("52340c4e-2100-45e1-bb60-a790de733b27") public void addRawSecurityMetrics(final RawSecurityMetric obj) { @@ -132,7 +132,6 @@ public void addRawSecurityMetrics(final RawSecurityMetric obj) { * Add a value to the 'securityAttributes' role.

* Role description: * null - * */ @objid ("fa506e2b-950a-48c8-ac87-86d9d525f63e") public void addSecurityAttributes(final SecurityAttribute obj) { @@ -144,7 +143,6 @@ public void addSecurityAttributes(final SecurityAttribute obj) { * Add a value to the 'securityControls' role.

* Role description: * null - * */ @objid ("1f175996-46c2-4ad0-88d5-55833180f546") public void addSecurityControls(final SecurityControl obj) { @@ -156,7 +154,6 @@ public void addSecurityControls(final SecurityControl obj) { * Add a value to the 'securityDomains' role.

* Role description: * null - * */ @objid ("f6f1eb33-df33-419f-92a7-6f7b000c25a9") public void addSecurityDomains(final SecurityDomain obj) { @@ -168,7 +165,6 @@ public void addSecurityDomains(final SecurityDomain obj) { * Add a value to the 'securityMetricInstances' role.

* Role description: * null - * */ @objid ("b801f888-5cf5-4885-be52-eec8102acda4") public void addSecurityMetricInstances(final SecurityMetricInstance obj) { @@ -180,7 +176,6 @@ public void addSecurityMetricInstances(final SecurityMetricInstance obj) { * Add a value to the 'securityRequirements' role.

* Role description: * null - * */ @objid ("ee39e700-2a7e-4ae8-b63f-7a976f936efd") public void addSecurityRequirements(final SecurityRequirement obj) { @@ -192,7 +187,6 @@ public void addSecurityRequirements(final SecurityRequirement obj) { * Add a value to the 'securitySLOs' role.

* Role description: * null - * */ @objid ("311f1de9-f0bc-415f-8bfe-6b31cefc7586") public void addSecuritySLOs(final SecuritySLO obj) { @@ -220,7 +214,6 @@ public boolean equals(final Object obj) { * Get the value to the 'camelModel' role.

* Role description: * null - * */ @objid ("58bd0cb3-aa23-4a3c-8f4f-300f28bfb1aa") public CamelModel getCamelModel() { @@ -231,20 +224,20 @@ public CamelModel getCamelModel() { * Get the values of the 'compositeSecurityInstances' role.

* Role description: * null - * */ @objid ("f817356c-b149-49bc-a107-bad23478ab36") public List getCompositeSecurityInstances() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (CompositeSecurityMetric.canInstantiate(mObj)) - results.add((CompositeSecurityMetric)CamelDesignerProxyFactory.instantiate(mObj, CompositeSecurityMetric.STEREOTYPE_NAME)); - } + if (CompositeSecurityMetric.canInstantiate(mObj)) + results.add((CompositeSecurityMetric)CamelDesignerProxyFactory.instantiate(mObj, CompositeSecurityMetric.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } /** - * Get the underlying {@link Package}. + * Get the underlying {@link Package}. + * * @return the Package represented by this proxy, never null. */ @objid ("f602ee22-8dfa-4469-91a8-758ea5724533") @@ -257,15 +250,14 @@ public Package getElement() { * Get the values of the 'rawSecurityMetrics' role.

* Role description: * null - * */ @objid ("331c5a40-b37d-4bae-ba36-6813766ba39b") public List getRawSecurityMetrics() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (RawSecurityMetric.canInstantiate(mObj)) - results.add((RawSecurityMetric)CamelDesignerProxyFactory.instantiate(mObj, RawSecurityMetric.STEREOTYPE_NAME)); - } + if (RawSecurityMetric.canInstantiate(mObj)) + results.add((RawSecurityMetric)CamelDesignerProxyFactory.instantiate(mObj, RawSecurityMetric.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -273,17 +265,16 @@ public List getRawSecurityMetrics() { * Get the values of the 'securityAttributes' role.

* Role description: * null - * */ @objid ("2ef81252-9755-4f91-8393-a5c62ec161b4") public List getSecurityAttributes() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (Certifiable.canInstantiate(mObj)) - results.add((Certifiable)CamelDesignerProxyFactory.instantiate(mObj, Certifiable.STEREOTYPE_NAME)); - if (SecurityAttribute.canInstantiate(mObj)) - results.add((SecurityAttribute)CamelDesignerProxyFactory.instantiate(mObj, SecurityAttribute.STEREOTYPE_NAME)); - } + if (Certifiable.canInstantiate(mObj)) + results.add((Certifiable)CamelDesignerProxyFactory.instantiate(mObj, Certifiable.STEREOTYPE_NAME)); + if (SecurityAttribute.canInstantiate(mObj)) + results.add((SecurityAttribute)CamelDesignerProxyFactory.instantiate(mObj, SecurityAttribute.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -291,15 +282,14 @@ public List getSecurityAttributes() { * Get the values of the 'securityControls' role.

* Role description: * null - * */ @objid ("32a27f30-4776-41e2-b632-ce2f4fdd8cc1") public List getSecurityControls() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (SecurityControl.canInstantiate(mObj)) - results.add((SecurityControl)CamelDesignerProxyFactory.instantiate(mObj, SecurityControl.STEREOTYPE_NAME)); - } + if (SecurityControl.canInstantiate(mObj)) + results.add((SecurityControl)CamelDesignerProxyFactory.instantiate(mObj, SecurityControl.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -307,15 +297,14 @@ public List getSecurityControls() { * Get the values of the 'securityDomains' role.

* Role description: * null - * */ @objid ("6e172278-8e83-450c-888d-aea52fa5f998") public List getSecurityDomains() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (SecurityDomain.canInstantiate(mObj)) - results.add((SecurityDomain)CamelDesignerProxyFactory.instantiate(mObj, SecurityDomain.STEREOTYPE_NAME)); - } + if (SecurityDomain.canInstantiate(mObj)) + results.add((SecurityDomain)CamelDesignerProxyFactory.instantiate(mObj, SecurityDomain.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -323,15 +312,14 @@ public List getSecurityDomains() { * Get the values of the 'securityMetricInstances' role.

* Role description: * null - * */ @objid ("3e51c867-5355-43a3-9b8c-a78bd32e81b9") public List getSecurityMetricInstances() { List results = new ArrayList<>(); for (Instance mObj : ((Package) this.elt).getDeclared()){ - if (SecurityMetricInstance.canInstantiate(mObj)) - results.add((SecurityMetricInstance)CamelDesignerProxyFactory.instantiate(mObj, SecurityMetricInstance.STEREOTYPE_NAME)); - } + if (SecurityMetricInstance.canInstantiate(mObj)) + results.add((SecurityMetricInstance)CamelDesignerProxyFactory.instantiate(mObj, SecurityMetricInstance.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -339,15 +327,14 @@ public List getSecurityMetricInstances() { * Get the values of the 'securityRequirements' role.

* Role description: * null - * */ @objid ("10dce469-be99-4019-8a7b-7624c70a0856") public List getSecurityRequirements() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (SecurityRequirement.canInstantiate(mObj)) - results.add((SecurityRequirement)CamelDesignerProxyFactory.instantiate(mObj, SecurityRequirement.STEREOTYPE_NAME)); - } + if (SecurityRequirement.canInstantiate(mObj)) + results.add((SecurityRequirement)CamelDesignerProxyFactory.instantiate(mObj, SecurityRequirement.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -355,15 +342,14 @@ public List getSecurityRequirements() { * Get the values of the 'securitySLOs' role.

* Role description: * null - * */ @objid ("e75d123d-8294-420d-8391-f37c8bd3c8e6") public List getSecuritySLOs() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (SecuritySLO.canInstantiate(mObj)) - results.add((SecuritySLO)CamelDesignerProxyFactory.instantiate(mObj, SecuritySLO.STEREOTYPE_NAME)); - } + if (SecuritySLO.canInstantiate(mObj)) + results.add((SecuritySLO)CamelDesignerProxyFactory.instantiate(mObj, SecuritySLO.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -377,7 +363,6 @@ public int hashCode() { * Remove a value from the 'compositeSecurityInstances' role.

* Role description: * null - * */ @objid ("06c397b7-eb54-4580-8608-2ada324c547d") public boolean removeCompositeSecurityInstances(final CompositeSecurityMetric obj) { @@ -388,7 +373,6 @@ public boolean removeCompositeSecurityInstances(final CompositeSecurityMetric ob * Remove a value from the 'rawSecurityMetrics' role.

* Role description: * null - * */ @objid ("db66802b-dbd3-4764-9d0f-37ae86ff0cc0") public boolean removeRawSecurityMetrics(final RawSecurityMetric obj) { @@ -399,7 +383,6 @@ public boolean removeRawSecurityMetrics(final RawSecurityMetric obj) { * Remove a value from the 'securityAttributes' role.

* Role description: * null - * */ @objid ("2ac724ec-e868-4467-ac5c-a5882f0f2112") public boolean removeSecurityAttributes(final SecurityAttribute obj) { @@ -410,7 +393,6 @@ public boolean removeSecurityAttributes(final SecurityAttribute obj) { * Remove a value from the 'securityControls' role.

* Role description: * null - * */ @objid ("b01b8eb3-47d4-4b33-96ce-efc4b96a43af") public boolean removeSecurityControls(final SecurityControl obj) { @@ -421,7 +403,6 @@ public boolean removeSecurityControls(final SecurityControl obj) { * Remove a value from the 'securityDomains' role.

* Role description: * null - * */ @objid ("f9378e76-6f81-4127-99c1-8cc35041c80f") public boolean removeSecurityDomains(final SecurityDomain obj) { @@ -432,7 +413,6 @@ public boolean removeSecurityDomains(final SecurityDomain obj) { * Remove a value from the 'securityMetricInstances' role.

* Role description: * null - * */ @objid ("111e65ce-f8e2-4c4e-b4df-5ae1b16f00f5") public boolean removeSecurityMetricInstances(final SecurityMetricInstance obj) { @@ -443,7 +423,6 @@ public boolean removeSecurityMetricInstances(final SecurityMetricInstance obj) { * Remove a value from the 'securityRequirements' role.

* Role description: * null - * */ @objid ("31db9d60-319f-4ad7-8781-b2d2583b495e") public boolean removeSecurityRequirements(final SecurityRequirement obj) { @@ -454,7 +433,6 @@ public boolean removeSecurityRequirements(final SecurityRequirement obj) { * Remove a value from the 'securitySLOs' role.

* Role description: * null - * */ @objid ("363a9a5f-eb04-46a2-928f-184bc3f5f62b") public boolean removeSecuritySLOs(final SecuritySLO obj) { @@ -465,7 +443,6 @@ public boolean removeSecuritySLOs(final SecuritySLO obj) { * Set the value of the 'camelModel' role.

* Role description: * null - * */ @objid ("5f682f2e-7895-4fae-a4a6-dadada73637c") public void setCamelModel(final CamelModel obj) { @@ -512,11 +489,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/class_/BooleanValue.java b/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/class_/BooleanValue.java index 96836ea8..09634d68 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/class_/BooleanValue.java +++ b/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/class_/BooleanValue.java @@ -65,9 +65,10 @@ public static BooleanValue create() { } /** - * Tries to instantiate a {@link BooleanValue} proxy from a {@link Class} stereotyped << BooleanValue >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link BooleanValue} proxy from a {@link Class} stereotyped << BooleanValue >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link BooleanValue} proxy or null. */ @@ -77,19 +78,20 @@ public static BooleanValue instantiate(final Class obj) { } /** - * Tries to instantiate a {@link BooleanValue} proxy from a {@link Class} stereotyped << BooleanValue >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link BooleanValue} proxy from a {@link Class} stereotyped << BooleanValue >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link BooleanValue} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("91c1ee59-1a6e-4cab-9210-e7d62ed46c2c") public static BooleanValue safeInstantiate(final Class obj) throws IllegalArgumentException { if (BooleanValue.canInstantiate(obj)) - return new BooleanValue(obj); + return new BooleanValue(obj); else - throw new IllegalArgumentException("BooleanValue: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("BooleanValue: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("c8abba04-0a18-46c6-a913-3d33106f4cfb") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("94cb6415-b805-4499-9c37-f937858a45f6") @@ -175,11 +178,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/class_/DoubleValue.java b/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/class_/DoubleValue.java index 3f2107ff..f847a82e 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/class_/DoubleValue.java +++ b/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/class_/DoubleValue.java @@ -65,9 +65,10 @@ public static DoubleValue create() { } /** - * Tries to instantiate a {@link DoubleValue} proxy from a {@link Class} stereotyped << DoubleValue >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link DoubleValue} proxy from a {@link Class} stereotyped << DoubleValue >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link DoubleValue} proxy or null. */ @@ -77,19 +78,20 @@ public static DoubleValue instantiate(final Class obj) { } /** - * Tries to instantiate a {@link DoubleValue} proxy from a {@link Class} stereotyped << DoubleValue >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link DoubleValue} proxy from a {@link Class} stereotyped << DoubleValue >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link DoubleValue} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("28300f9b-5b6b-4e54-b458-6d82f56015d3") public static DoubleValue safeInstantiate(final Class obj) throws IllegalArgumentException { if (DoubleValue.canInstantiate(obj)) - return new DoubleValue(obj); + return new DoubleValue(obj); else - throw new IllegalArgumentException("DoubleValue: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("DoubleValue: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("8175ef82-94ce-4c00-bb0b-e73e471d6801") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("450e60b7-bd6c-4888-b547-daa38197175b") @@ -172,11 +175,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/class_/FloatValue.java b/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/class_/FloatValue.java index 3f49b8c9..6d02afff 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/class_/FloatValue.java +++ b/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/class_/FloatValue.java @@ -65,9 +65,10 @@ public static FloatValue create() { } /** - * Tries to instantiate a {@link FloatValue} proxy from a {@link Class} stereotyped << FloatValue >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link FloatValue} proxy from a {@link Class} stereotyped << FloatValue >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link FloatValue} proxy or null. */ @@ -77,19 +78,20 @@ public static FloatValue instantiate(final Class obj) { } /** - * Tries to instantiate a {@link FloatValue} proxy from a {@link Class} stereotyped << FloatValue >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link FloatValue} proxy from a {@link Class} stereotyped << FloatValue >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link FloatValue} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("628a9fe4-389d-4d37-9d22-1e7a10f5de2b") public static FloatValue safeInstantiate(final Class obj) throws IllegalArgumentException { if (FloatValue.canInstantiate(obj)) - return new FloatValue(obj); + return new FloatValue(obj); else - throw new IllegalArgumentException("FloatValue: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("FloatValue: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("4f975dac-4e91-4cd2-a4b3-81a8472ce949") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("dba7e90b-8974-4c53-b0dc-c9aad2b5a686") @@ -172,11 +175,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/class_/IntValue.java b/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/class_/IntValue.java index 9b9b3307..de3ef246 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/class_/IntValue.java +++ b/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/class_/IntValue.java @@ -65,9 +65,10 @@ public static IntValue create() { } /** - * Tries to instantiate a {@link IntValue} proxy from a {@link Class} stereotyped << IntValue >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link IntValue} proxy from a {@link Class} stereotyped << IntValue >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link IntValue} proxy or null. */ @@ -77,19 +78,20 @@ public static IntValue instantiate(final Class obj) { } /** - * Tries to instantiate a {@link IntValue} proxy from a {@link Class} stereotyped << IntValue >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link IntValue} proxy from a {@link Class} stereotyped << IntValue >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link IntValue} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("f5cc15d3-c60a-4f4f-85b3-73d1bd35dbf7") public static IntValue safeInstantiate(final Class obj) throws IllegalArgumentException { if (IntValue.canInstantiate(obj)) - return new IntValue(obj); + return new IntValue(obj); else - throw new IllegalArgumentException("IntValue: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("IntValue: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("16f30429-5fe0-4c6a-8e37-6c5dc395d2ad") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("3cd341ec-beef-4e5f-81ec-d12c0edef183") @@ -172,11 +175,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/class_/Limit.java b/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/class_/Limit.java index b1823e31..9dfc38e9 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/class_/Limit.java +++ b/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/class_/Limit.java @@ -74,9 +74,10 @@ public static Limit create() { } /** - * Tries to instantiate a {@link Limit} proxy from a {@link Class} stereotyped << Limit >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Limit} proxy from a {@link Class} stereotyped << Limit >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link Limit} proxy or null. */ @@ -86,19 +87,20 @@ public static Limit instantiate(final Class obj) { } /** - * Tries to instantiate a {@link Limit} proxy from a {@link Class} stereotyped << Limit >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Limit} proxy from a {@link Class} stereotyped << Limit >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link Limit} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("373f49bb-4cb6-469a-b978-2f9dea1548f5") public static Limit safeInstantiate(final Class obj) throws IllegalArgumentException { if (Limit.canInstantiate(obj)) - return new Limit(obj); + return new Limit(obj); else - throw new IllegalArgumentException("Limit: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("Limit: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("67891e87-8cf6-45d0-9802-0e2e6dc3e6a4") @@ -118,7 +120,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("4a6b9b83-7b3b-47fe-99c7-0352be0fe695") @@ -207,11 +210,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/class_/NumericValue.java b/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/class_/NumericValue.java index cfe523ab..97eaed1e 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/class_/NumericValue.java +++ b/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/class_/NumericValue.java @@ -66,7 +66,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("12eb4e5e-9e90-4897-91cf-fd66cbc662a6") @@ -105,11 +106,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/class_/StringValue.java b/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/class_/StringValue.java index 89512fae..bd936448 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/class_/StringValue.java +++ b/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/class_/StringValue.java @@ -65,9 +65,10 @@ public static StringValue create() { } /** - * Tries to instantiate a {@link StringValue} proxy from a {@link Class} stereotyped << StringValue >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link StringValue} proxy from a {@link Class} stereotyped << StringValue >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Class * @return a {@link StringValue} proxy or null. */ @@ -77,19 +78,20 @@ public static StringValue instantiate(final Class obj) { } /** - * Tries to instantiate a {@link StringValue} proxy from a {@link Class} stereotyped << StringValue >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link StringValue} proxy from a {@link Class} stereotyped << StringValue >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Class} * @return a {@link StringValue} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("d2ee2681-2a0f-42f5-9ffe-559d13f40cb2") public static StringValue safeInstantiate(final Class obj) throws IllegalArgumentException { if (StringValue.canInstantiate(obj)) - return new StringValue(obj); + return new StringValue(obj); else - throw new IllegalArgumentException("StringValue: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("StringValue: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("4889ecef-603c-4001-a1b1-4aae752cff47") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("bd32f3d1-ef18-45ba-9ee5-5f7ff6fb76a7") @@ -172,11 +175,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/class_/Value.java b/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/class_/Value.java index 450c8a01..32151e29 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/class_/Value.java +++ b/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/class_/Value.java @@ -72,7 +72,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link Class}. + * Get the underlying {@link Class}. + * * @return the Class represented by this proxy, never null. */ @objid ("ed2193c3-cca4-49ee-b044-0f61c8422808") @@ -110,11 +111,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/datatype/BooleanValueType.java b/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/datatype/BooleanValueType.java index 4ee41b21..c83b5a4e 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/datatype/BooleanValueType.java +++ b/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/datatype/BooleanValueType.java @@ -64,9 +64,10 @@ public static BooleanValueType create() { } /** - * Tries to instantiate a {@link BooleanValueType} proxy from a {@link DataType} stereotyped << BooleanValueType >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link BooleanValueType} proxy from a {@link DataType} stereotyped << BooleanValueType >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a DataType * @return a {@link BooleanValueType} proxy or null. */ @@ -76,19 +77,20 @@ public static BooleanValueType instantiate(final DataType obj) { } /** - * Tries to instantiate a {@link BooleanValueType} proxy from a {@link DataType} stereotyped << BooleanValueType >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link BooleanValueType} proxy from a {@link DataType} stereotyped << BooleanValueType >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link DataType} * @return a {@link BooleanValueType} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("5314b1ea-56e6-49ad-ae91-92648a2747ba") public static BooleanValueType safeInstantiate(final DataType obj) throws IllegalArgumentException { if (BooleanValueType.canInstantiate(obj)) - return new BooleanValueType(obj); + return new BooleanValueType(obj); else - throw new IllegalArgumentException("BooleanValueType: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("BooleanValueType: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("29b01c46-eb5c-49bd-b89c-bd725f12dfdb") @@ -108,7 +110,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link DataType}. + * Get the underlying {@link DataType}. + * * @return the DataType represented by this proxy, never null. */ @objid ("12f9e489-b3fd-490b-aebf-5a3149135aed") @@ -155,11 +158,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/datatype/CamelList.java b/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/datatype/CamelList.java index 194765eb..6ec82132 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/datatype/CamelList.java +++ b/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/datatype/CamelList.java @@ -63,9 +63,10 @@ public static CamelList create() { } /** - * Tries to instantiate a {@link CamelList} proxy from a {@link DataType} stereotyped << CamelList >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link CamelList} proxy from a {@link DataType} stereotyped << CamelList >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a DataType * @return a {@link CamelList} proxy or null. */ @@ -75,19 +76,20 @@ public static CamelList instantiate(final DataType obj) { } /** - * Tries to instantiate a {@link CamelList} proxy from a {@link DataType} stereotyped << CamelList >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link CamelList} proxy from a {@link DataType} stereotyped << CamelList >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link DataType} * @return a {@link CamelList} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("ec09c47f-99d2-470d-a523-1e494829d371") public static CamelList safeInstantiate(final DataType obj) throws IllegalArgumentException { if (CamelList.canInstantiate(obj)) - return new CamelList(obj); + return new CamelList(obj); else - throw new IllegalArgumentException("CamelList: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("CamelList: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("b9d73f16-a518-4ef1-bf0a-da68e8e7c1d1") @@ -107,7 +109,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link DataType}. + * Get the underlying {@link DataType}. + * * @return the DataType represented by this proxy, never null. */ @objid ("4da763d5-1515-4348-a457-7ef830132158") @@ -154,11 +157,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/datatype/Range.java b/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/datatype/Range.java index 8b6b17ed..2165c0bb 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/datatype/Range.java +++ b/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/datatype/Range.java @@ -70,9 +70,10 @@ public static Range create() { } /** - * Tries to instantiate a {@link Range} proxy from a {@link DataType} stereotyped << Range >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Range} proxy from a {@link DataType} stereotyped << Range >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a DataType * @return a {@link Range} proxy or null. */ @@ -82,19 +83,20 @@ public static Range instantiate(final DataType obj) { } /** - * Tries to instantiate a {@link Range} proxy from a {@link DataType} stereotyped << Range >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Range} proxy from a {@link DataType} stereotyped << Range >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link DataType} * @return a {@link Range} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("2e878cb7-0dc1-4441-858d-d33256a11083") public static Range safeInstantiate(final DataType obj) throws IllegalArgumentException { if (Range.canInstantiate(obj)) - return new Range(obj); + return new Range(obj); else - throw new IllegalArgumentException("Range: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("Range: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("39068c2d-d24d-4247-b697-83aba6773423") @@ -114,7 +116,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link DataType}. + * Get the underlying {@link DataType}. + * * @return the DataType represented by this proxy, never null. */ @objid ("03b22553-7255-4508-bb37-ef4fcb2f4d19") @@ -209,11 +212,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/datatype/RangeUnion.java b/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/datatype/RangeUnion.java index 9bfe2464..179838a4 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/datatype/RangeUnion.java +++ b/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/datatype/RangeUnion.java @@ -64,9 +64,10 @@ public static RangeUnion create() { } /** - * Tries to instantiate a {@link RangeUnion} proxy from a {@link DataType} stereotyped << RangeUnion >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link RangeUnion} proxy from a {@link DataType} stereotyped << RangeUnion >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a DataType * @return a {@link RangeUnion} proxy or null. */ @@ -76,19 +77,20 @@ public static RangeUnion instantiate(final DataType obj) { } /** - * Tries to instantiate a {@link RangeUnion} proxy from a {@link DataType} stereotyped << RangeUnion >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link RangeUnion} proxy from a {@link DataType} stereotyped << RangeUnion >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link DataType} * @return a {@link RangeUnion} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("d6be555f-c198-4a68-ab90-0b687ef10175") public static RangeUnion safeInstantiate(final DataType obj) throws IllegalArgumentException { if (RangeUnion.canInstantiate(obj)) - return new RangeUnion(obj); + return new RangeUnion(obj); else - throw new IllegalArgumentException("RangeUnion: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("RangeUnion: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("f49b5618-b789-45c3-bee8-69107b590257") @@ -108,7 +110,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link DataType}. + * Get the underlying {@link DataType}. + * * @return the DataType represented by this proxy, never null. */ @objid ("4c0e1154-13c1-4942-ad24-6d00766e6046") @@ -155,11 +158,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/datatype/StringValueType.java b/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/datatype/StringValueType.java index f24d9005..763ce2c4 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/datatype/StringValueType.java +++ b/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/datatype/StringValueType.java @@ -64,9 +64,10 @@ public static StringValueType create() { } /** - * Tries to instantiate a {@link StringValueType} proxy from a {@link DataType} stereotyped << StringValueType >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link StringValueType} proxy from a {@link DataType} stereotyped << StringValueType >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a DataType * @return a {@link StringValueType} proxy or null. */ @@ -76,19 +77,20 @@ public static StringValueType instantiate(final DataType obj) { } /** - * Tries to instantiate a {@link StringValueType} proxy from a {@link DataType} stereotyped << StringValueType >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link StringValueType} proxy from a {@link DataType} stereotyped << StringValueType >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link DataType} * @return a {@link StringValueType} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("9d6a6fad-7229-4508-8849-bf54a0bbcc1d") public static StringValueType safeInstantiate(final DataType obj) throws IllegalArgumentException { if (StringValueType.canInstantiate(obj)) - return new StringValueType(obj); + return new StringValueType(obj); else - throw new IllegalArgumentException("StringValueType: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("StringValueType: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("c7eea196-0f64-4aba-81ab-6e907c682ff3") @@ -108,7 +110,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link DataType}. + * Get the underlying {@link DataType}. + * * @return the DataType represented by this proxy, never null. */ @objid ("e273056d-d8d8-4dcc-9d66-de92fb5c2f00") @@ -155,11 +158,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/datatype/ValueType.java b/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/datatype/ValueType.java index 046c1875..1b725a81 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/datatype/ValueType.java +++ b/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/datatype/ValueType.java @@ -82,7 +82,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link DataType}. + * Get the underlying {@link DataType}. + * * @return the DataType represented by this proxy, never null. */ @objid ("f6da753f-d492-4eda-b1dc-7cd13659ec2d") @@ -153,11 +154,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/package_/TypeModel.java b/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/package_/TypeModel.java index c8f51b25..3e2d558e 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/package_/TypeModel.java +++ b/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/package_/TypeModel.java @@ -66,9 +66,10 @@ public static TypeModel create() { } /** - * Tries to instantiate a {@link TypeModel} proxy from a {@link Package} stereotyped << TypeModel >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link TypeModel} proxy from a {@link Package} stereotyped << TypeModel >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Package * @return a {@link TypeModel} proxy or null. */ @@ -78,19 +79,20 @@ public static TypeModel instantiate(final Package obj) { } /** - * Tries to instantiate a {@link TypeModel} proxy from a {@link Package} stereotyped << TypeModel >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link TypeModel} proxy from a {@link Package} stereotyped << TypeModel >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Package} * @return a {@link TypeModel} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("c4f6492b-1750-4a8b-89fb-4548218ca599") public static TypeModel safeInstantiate(final Package obj) throws IllegalArgumentException { if (TypeModel.canInstantiate(obj)) - return new TypeModel(obj); + return new TypeModel(obj); else - throw new IllegalArgumentException("TypeModel: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("TypeModel: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("da7a8aff-d951-4850-bada-a73fa79a46c1") @@ -113,7 +115,6 @@ public boolean equals(final Object obj) { * Get the value to the 'camelModel' role.

* Role description: * null - * */ @objid ("4b231fc9-78ee-4f5f-9d8d-aecf9370d3a9") public CamelModel getCamelModel() { @@ -121,7 +122,8 @@ public CamelModel getCamelModel() { } /** - * Get the underlying {@link Package}. + * Get the underlying {@link Package}. + * * @return the Package represented by this proxy, never null. */ @objid ("f6fce248-3622-46cd-948b-24969f5a9259") @@ -140,7 +142,6 @@ public int hashCode() { * Set the value of the 'camelModel' role.

* Role description: * null - * */ @objid ("a18f2835-d2ce-4717-8641-6d5e87419461") public void setCamelModel(final CamelModel obj) { @@ -179,11 +180,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/unitmodel/standard/datatype/CompositeUnit.java b/src/main/java/fr/softeam/cameldesigner/api/unitmodel/standard/datatype/CompositeUnit.java index a8fc3dad..4939f34f 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/unitmodel/standard/datatype/CompositeUnit.java +++ b/src/main/java/fr/softeam/cameldesigner/api/unitmodel/standard/datatype/CompositeUnit.java @@ -16,7 +16,6 @@ import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; import fr.softeam.cameldesigner.api.unitmodel.standard.datatype.Dimensionless; import fr.softeam.cameldesigner.api.unitmodel.standard.datatype.SingleUnit; -import fr.softeam.cameldesigner.api.unitmodel.standard.datatype.Unit; import fr.softeam.cameldesigner.impl.CamelDesignerModule; import org.modelio.api.modelio.model.IModelingSession; import org.modelio.api.modelio.model.PropertyConverter; @@ -70,9 +69,10 @@ public static CompositeUnit create() { } /** - * Tries to instantiate a {@link CompositeUnit} proxy from a {@link DataType} stereotyped << CompositeUnit >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link CompositeUnit} proxy from a {@link DataType} stereotyped << CompositeUnit >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a DataType * @return a {@link CompositeUnit} proxy or null. */ @@ -82,26 +82,26 @@ public static CompositeUnit instantiate(final DataType obj) { } /** - * Tries to instantiate a {@link CompositeUnit} proxy from a {@link DataType} stereotyped << CompositeUnit >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link CompositeUnit} proxy from a {@link DataType} stereotyped << CompositeUnit >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link DataType} * @return a {@link CompositeUnit} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("dd56c4f2-7b48-4fad-87f6-2043b601a81d") public static CompositeUnit safeInstantiate(final DataType obj) throws IllegalArgumentException { if (CompositeUnit.canInstantiate(obj)) - return new CompositeUnit(obj); + return new CompositeUnit(obj); else - throw new IllegalArgumentException("CompositeUnit: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("CompositeUnit: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'componentsUnits' role.

* Role description: * null - * */ @objid ("63b180ee-0543-4ed7-8432-3ab56b690e28") public void addComponentsUnits(final Unit obj) { @@ -133,7 +133,6 @@ public boolean equals(final Object obj) { * Get the values of the 'componentsUnits' role.

* Role description: * null - * */ @objid ("f6eb3034-8b80-40a2-9031-393397c9781b") public List getComponentsUnits() { @@ -153,7 +152,8 @@ public List getComponentsUnits() { } /** - * Get the underlying {@link DataType}. + * Get the underlying {@link DataType}. + * * @return the DataType represented by this proxy, never null. */ @objid ("8bfc5212-c07e-4f7a-b289-4e656410c43d") @@ -182,7 +182,6 @@ public int hashCode() { * Remove a value from the 'componentsUnits' role.

* Role description: * null - * */ @objid ("7ebb9200-4e69-4e9c-81a4-efbb729f6b80") public boolean removeComponentsUnits(final Unit obj) { @@ -244,11 +243,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/unitmodel/standard/datatype/DimensionedUnit.java b/src/main/java/fr/softeam/cameldesigner/api/unitmodel/standard/datatype/DimensionedUnit.java index 28701045..253dea3f 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/unitmodel/standard/datatype/DimensionedUnit.java +++ b/src/main/java/fr/softeam/cameldesigner/api/unitmodel/standard/datatype/DimensionedUnit.java @@ -14,7 +14,6 @@ import fr.softeam.cameldesigner.api.CamelDesignerProxyFactory; import fr.softeam.cameldesigner.api.ICamelDesignerPeerModule; import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; -import fr.softeam.cameldesigner.api.unitmodel.standard.datatype.UnitDimension; import fr.softeam.cameldesigner.impl.CamelDesignerModule; import org.modelio.api.modelio.model.IModelingSession; import org.modelio.api.modelio.model.PropertyConverter; @@ -77,7 +76,6 @@ public boolean equals(final Object obj) { * Get the value of the 'dimension' role.

* Role description: * null - * */ @objid ("ed21c615-82e8-44f3-8ea9-c9cf77df5ef5") public UnitDimension getDimension() { @@ -92,7 +90,8 @@ public UnitDimension getDimension() { } /** - * Get the underlying {@link DataType}. + * Get the underlying {@link DataType}. + * * @return the DataType represented by this proxy, never null. */ @objid ("fd0543bc-054c-4158-886c-809e5b4a2048") @@ -111,7 +110,6 @@ public int hashCode() { * Set the value of the 'dimension' role.

* Role description: * null - * */ @objid ("3835c9c4-d0c4-4d5f-85ee-04b370020324") public void setDimension(final UnitDimension obj) { @@ -165,11 +163,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/unitmodel/standard/datatype/Dimensionless.java b/src/main/java/fr/softeam/cameldesigner/api/unitmodel/standard/datatype/Dimensionless.java index 4973453a..61625beb 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/unitmodel/standard/datatype/Dimensionless.java +++ b/src/main/java/fr/softeam/cameldesigner/api/unitmodel/standard/datatype/Dimensionless.java @@ -64,9 +64,10 @@ public static Dimensionless create() { } /** - * Tries to instantiate a {@link Dimensionless} proxy from a {@link DataType} stereotyped << Dimensionless >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Dimensionless} proxy from a {@link DataType} stereotyped << Dimensionless >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a DataType * @return a {@link Dimensionless} proxy or null. */ @@ -76,19 +77,20 @@ public static Dimensionless instantiate(final DataType obj) { } /** - * Tries to instantiate a {@link Dimensionless} proxy from a {@link DataType} stereotyped << Dimensionless >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link Dimensionless} proxy from a {@link DataType} stereotyped << Dimensionless >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link DataType} * @return a {@link Dimensionless} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("5c5e1ed9-1bfe-4219-9365-3ea026a7c63c") public static Dimensionless safeInstantiate(final DataType obj) throws IllegalArgumentException { if (Dimensionless.canInstantiate(obj)) - return new Dimensionless(obj); + return new Dimensionless(obj); else - throw new IllegalArgumentException("Dimensionless: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("Dimensionless: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("98602ee2-5265-4e53-a8e6-127beb95db79") @@ -108,7 +110,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link DataType}. + * Get the underlying {@link DataType}. + * * @return the DataType represented by this proxy, never null. */ @objid ("f95db2aa-0ff8-47bf-9c00-c29d3531f245") @@ -155,11 +158,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/unitmodel/standard/datatype/SingleUnit.java b/src/main/java/fr/softeam/cameldesigner/api/unitmodel/standard/datatype/SingleUnit.java index 0906961b..87e1c3be 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/unitmodel/standard/datatype/SingleUnit.java +++ b/src/main/java/fr/softeam/cameldesigner/api/unitmodel/standard/datatype/SingleUnit.java @@ -64,9 +64,10 @@ public static SingleUnit create() { } /** - * Tries to instantiate a {@link SingleUnit} proxy from a {@link DataType} stereotyped << SingleUnit >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link SingleUnit} proxy from a {@link DataType} stereotyped << SingleUnit >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a DataType * @return a {@link SingleUnit} proxy or null. */ @@ -76,19 +77,20 @@ public static SingleUnit instantiate(final DataType obj) { } /** - * Tries to instantiate a {@link SingleUnit} proxy from a {@link DataType} stereotyped << SingleUnit >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link SingleUnit} proxy from a {@link DataType} stereotyped << SingleUnit >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link DataType} * @return a {@link SingleUnit} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("abdf644a-0143-4f7d-b62d-20d3ac413195") public static SingleUnit safeInstantiate(final DataType obj) throws IllegalArgumentException { if (SingleUnit.canInstantiate(obj)) - return new SingleUnit(obj); + return new SingleUnit(obj); else - throw new IllegalArgumentException("SingleUnit: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("SingleUnit: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("8768357e-f8d6-47ee-9ab0-6869078821db") @@ -108,7 +110,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link DataType}. + * Get the underlying {@link DataType}. + * * @return the DataType represented by this proxy, never null. */ @objid ("8f55dee3-31b4-4b4d-88bb-f7000308faf1") @@ -155,11 +158,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/unitmodel/standard/datatype/Unit.java b/src/main/java/fr/softeam/cameldesigner/api/unitmodel/standard/datatype/Unit.java index 1799826b..e77b550d 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/unitmodel/standard/datatype/Unit.java +++ b/src/main/java/fr/softeam/cameldesigner/api/unitmodel/standard/datatype/Unit.java @@ -61,7 +61,6 @@ public static Unit instantiate(final DataType obj) { * Add a value of the 'multipleOf' role.

* Role description: * null - * */ @objid ("b1351911-200b-4a3a-a266-57034a249f6f") public void addMultipleOf(final Unit obj) { @@ -90,7 +89,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link DataType}. + * Get the underlying {@link DataType}. + * * @return the DataType represented by this proxy, never null. */ @objid ("beaab2de-ed3c-4e6b-a1e3-c9c81a916660") @@ -103,7 +103,6 @@ public DataType getElement() { * Get the values of the 'multipleOf' role.

* Role description: * null - * */ @objid ("ff0777a8-7c02-4247-9a42-23ec6b352476") public List getMultipleOf() { @@ -128,7 +127,6 @@ public int hashCode() { * Remove a value from 'multipleOf' role.

* Role description: * null - * */ @objid ("1afce388-d973-4ced-b9b6-0d485d524ae9") public boolean removeMultipleOf(final Unit obj) { @@ -176,11 +174,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/unitmodel/standard/datatype/UnitDimension.java b/src/main/java/fr/softeam/cameldesigner/api/unitmodel/standard/datatype/UnitDimension.java index 37864d72..9987948a 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/unitmodel/standard/datatype/UnitDimension.java +++ b/src/main/java/fr/softeam/cameldesigner/api/unitmodel/standard/datatype/UnitDimension.java @@ -65,9 +65,10 @@ public static UnitDimension create() { } /** - * Tries to instantiate a {@link UnitDimension} proxy from a {@link DataType} stereotyped << UnitDimension >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link UnitDimension} proxy from a {@link DataType} stereotyped << UnitDimension >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a DataType * @return a {@link UnitDimension} proxy or null. */ @@ -77,19 +78,20 @@ public static UnitDimension instantiate(final DataType obj) { } /** - * Tries to instantiate a {@link UnitDimension} proxy from a {@link DataType} stereotyped << UnitDimension >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link UnitDimension} proxy from a {@link DataType} stereotyped << UnitDimension >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link DataType} * @return a {@link UnitDimension} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("a559a708-caf7-40c5-a8bd-9280f9ad80bf") public static UnitDimension safeInstantiate(final DataType obj) throws IllegalArgumentException { if (UnitDimension.canInstantiate(obj)) - return new UnitDimension(obj); + return new UnitDimension(obj); else - throw new IllegalArgumentException("UnitDimension: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("UnitDimension: Cannot instantiate "+obj+": wrong element type or stereotype"); } @objid ("0b022b62-6a2e-489d-8b7c-1a92f57dd371") @@ -109,7 +111,8 @@ public boolean equals(final Object obj) { } /** - * Get the underlying {@link DataType}. + * Get the underlying {@link DataType}. + * * @return the DataType represented by this proxy, never null. */ @objid ("ff0c1f09-9651-40bc-9c5e-a73c40f1221e") @@ -156,11 +159,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/api/unitmodel/standard/package_/UnitModel.java b/src/main/java/fr/softeam/cameldesigner/api/unitmodel/standard/package_/UnitModel.java index 65dd720c..87bb25d6 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/unitmodel/standard/package_/UnitModel.java +++ b/src/main/java/fr/softeam/cameldesigner/api/unitmodel/standard/package_/UnitModel.java @@ -72,9 +72,10 @@ public static UnitModel create() { } /** - * Tries to instantiate a {@link UnitModel} proxy from a {@link Package} stereotyped << UnitModel >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link UnitModel} proxy from a {@link Package} stereotyped << UnitModel >> checking its metaclass and its stereotype. *

* The method returns null if the instantiation cannot be carried out. + * * @param obj a Package * @return a {@link UnitModel} proxy or null. */ @@ -84,26 +85,26 @@ public static UnitModel instantiate(final Package obj) { } /** - * Tries to instantiate a {@link UnitModel} proxy from a {@link Package} stereotyped << UnitModel >> checking its metaclass and its stereotype. + * Tries to instantiate a {@link UnitModel} proxy from a {@link Package} stereotyped << UnitModel >> checking its metaclass and its stereotype. *

* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out. + * * @param obj a {@link Package} * @return a {@link UnitModel} proxy. - * @throws IllegalArgumentException if the instantiation cannot be carried out. + * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out. */ @objid ("a643b9bd-c8a1-4419-9295-a434287b1f61") public static UnitModel safeInstantiate(final Package obj) throws IllegalArgumentException { if (UnitModel.canInstantiate(obj)) - return new UnitModel(obj); + return new UnitModel(obj); else - throw new IllegalArgumentException("UnitModel: Cannot instantiate "+obj+": wrong element type or stereotype"); + throw new IllegalArgumentException("UnitModel: Cannot instantiate "+obj+": wrong element type or stereotype"); } /** * Add a value to the 'dimensions' role.

* Role description: * null - * */ @objid ("82f7f6b4-dcd0-469b-a774-878369fb64a8") public void addDimensions(final UnitDimension obj) { @@ -115,7 +116,6 @@ public void addDimensions(final UnitDimension obj) { * Add a value to the 'units' role.

* Role description: * null - * */ @objid ("8138ffc0-2d42-44f3-b85b-c5103c58c8ff") public void addUnits(final Unit obj) { @@ -143,7 +143,6 @@ public boolean equals(final Object obj) { * Get the value to the 'camelModel' role.

* Role description: * null - * */ @objid ("668d8cbe-3e4c-45fb-b0aa-0a0979feacb4") public CamelModel getCamelModel() { @@ -154,20 +153,20 @@ public CamelModel getCamelModel() { * Get the values of the 'dimensions' role.

* Role description: * null - * */ @objid ("e8a37b19-1b18-44f8-8b13-b7104cfd501a") public List getDimensions() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (UnitDimension.canInstantiate(mObj)) - results.add((UnitDimension)CamelDesignerProxyFactory.instantiate(mObj, UnitDimension.STEREOTYPE_NAME)); - } + if (UnitDimension.canInstantiate(mObj)) + results.add((UnitDimension)CamelDesignerProxyFactory.instantiate(mObj, UnitDimension.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } /** - * Get the underlying {@link Package}. + * Get the underlying {@link Package}. + * * @return the Package represented by this proxy, never null. */ @objid ("897b56c6-302b-43f5-84bf-e169db5c06df") @@ -180,19 +179,18 @@ public Package getElement() { * Get the values of the 'units' role.

* Role description: * null - * */ @objid ("cabc1082-18e2-4c86-9a14-ba277f6dda2a") public List getUnits() { List results = new ArrayList<>(); for (ModelTree mObj : ((Package) this.elt).getOwnedElement()){ - if (SingleUnit.canInstantiate(mObj)) - results.add((SingleUnit)CamelDesignerProxyFactory.instantiate(mObj, SingleUnit.STEREOTYPE_NAME)); - if (CompositeUnit.canInstantiate(mObj)) - results.add((CompositeUnit)CamelDesignerProxyFactory.instantiate(mObj, CompositeUnit.STEREOTYPE_NAME)); - if (Dimensionless.canInstantiate(mObj)) - results.add((Dimensionless)CamelDesignerProxyFactory.instantiate(mObj, Dimensionless.STEREOTYPE_NAME)); - } + if (SingleUnit.canInstantiate(mObj)) + results.add((SingleUnit)CamelDesignerProxyFactory.instantiate(mObj, SingleUnit.STEREOTYPE_NAME)); + if (CompositeUnit.canInstantiate(mObj)) + results.add((CompositeUnit)CamelDesignerProxyFactory.instantiate(mObj, CompositeUnit.STEREOTYPE_NAME)); + if (Dimensionless.canInstantiate(mObj)) + results.add((Dimensionless)CamelDesignerProxyFactory.instantiate(mObj, Dimensionless.STEREOTYPE_NAME)); + } return Collections.unmodifiableList(results); } @@ -206,7 +204,6 @@ public int hashCode() { * Remove a value from the 'dimensions' role.

* Role description: * null - * */ @objid ("799977da-b347-4139-b9ec-5a3530f0bd2c") public boolean removeDimensions(final UnitDimension obj) { @@ -217,7 +214,6 @@ public boolean removeDimensions(final UnitDimension obj) { * Remove a value from the 'units' role.

* Role description: * null - * */ @objid ("05e5d106-ef23-46df-b6e0-66f6e02d0ad5") public boolean removeUnits(final Unit obj) { @@ -228,7 +224,6 @@ public boolean removeUnits(final Unit obj) { * Set the value of the 'camelModel' role.

* Role description: * null - * */ @objid ("d6bfdc34-b78b-42be-9add-43c679fec60f") public void setCamelModel(final CamelModel obj) { @@ -267,11 +262,11 @@ public static void init(final IModuleContext ctx) { } - static { - if(CamelDesignerModule.getInstance() != null) { - init(CamelDesignerModule.getInstance().getModuleContext()); - } - } +static { + if(CamelDesignerModule.getInstance() != null) { + init(CamelDesignerModule.getInstance().getModuleContext()); + } + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/conversion/process/reverse/AbstractReverseProcess.java b/src/main/java/fr/softeam/cameldesigner/conversion/process/reverse/AbstractReverseProcess.java index f04fc14d..776a85a6 100644 --- a/src/main/java/fr/softeam/cameldesigner/conversion/process/reverse/AbstractReverseProcess.java +++ b/src/main/java/fr/softeam/cameldesigner/conversion/process/reverse/AbstractReverseProcess.java @@ -1,7 +1,11 @@ package fr.softeam.cameldesigner.conversion.process.reverse; import java.util.Map; +import camel.core.NamedElement; +import camel.mms.MmsObject; import com.modeliosoft.modelio.javadesigner.annotations.objid; +import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; +import fr.softeam.cameldesigner.conversion.process.IElementProcess; import org.eclipse.emf.cdo.CDOObject; import org.eclipse.emf.common.util.EList; import org.modelio.metamodel.uml.infrastructure.ModelElement; @@ -9,10 +13,6 @@ import org.modelio.metamodel.uml.statik.Attribute; import org.modelio.metamodel.uml.statik.Classifier; import org.modelio.metamodel.uml.statik.Port; -import camel.core.NamedElement; -import camel.mms.MmsObject; -import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; -import fr.softeam.cameldesigner.conversion.process.IElementProcess; @objid ("8252e63d-68de-4dd8-8beb-0144ac974cd4") public abstract class AbstractReverseProcess implements IElementProcess { @@ -85,34 +85,34 @@ public CamelElement process(CDOObject element) { // System.out.println(sb.toString()); // } // System.out.println(map); - + CamelElement processedElement = null; if(this.processedCamelElements.containsKey(element)) { processedElement = this.processedCamelElements.get(element); } else { processedElement = this.switchReverse (element); - + /* * update name and add annotations */ if(processedElement != null) { - + if(element instanceof NamedElement) { NamedElement namedElement = (NamedElement)element; processedElement.getElement().setName(((NamedElement)element).getName()); - + EList annotations = namedElement.getAnnotations(); - - + + } else if (element instanceof MmsObject) { processedElement.getElement().setName(((MmsObject)element).getName()); - - - + + + } this.processedCamelElements.put(element, processedElement); } - + } if(processedElement != null) { this.updateOwner(processedElement.getElement(), element); diff --git a/src/main/java/fr/softeam/cameldesigner/conversion/process/reverse/ReverseProcess.java b/src/main/java/fr/softeam/cameldesigner/conversion/process/reverse/ReverseProcess.java index 0e0005fc..8e63d0e9 100644 --- a/src/main/java/fr/softeam/cameldesigner/conversion/process/reverse/ReverseProcess.java +++ b/src/main/java/fr/softeam/cameldesigner/conversion/process/reverse/ReverseProcess.java @@ -1,9 +1,6 @@ package fr.softeam.cameldesigner.conversion.process.reverse; import java.util.Map; -import com.modeliosoft.modelio.javadesigner.annotations.objid; -import org.eclipse.emf.cdo.CDOObject; -import org.modelio.metamodel.uml.infrastructure.ModelElement; import camel.constraint.ConstraintModel; import camel.core.CamelModel; import camel.data.DataInstanceModel; @@ -23,8 +20,11 @@ import camel.scalability.ScalabilityModel; import camel.security.SecurityModel; import camel.unit.UnitModel; +import com.modeliosoft.modelio.javadesigner.annotations.objid; import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; import fr.softeam.cameldesigner.elementmodel.umlmodel.UmlModelService; +import org.eclipse.emf.cdo.CDOObject; +import org.modelio.metamodel.uml.infrastructure.ModelElement; @objid ("61cfea5e-b244-4a01-aee7-1fe4568a7930") public class ReverseProcess extends AbstractReverseProcess { @@ -190,6 +190,7 @@ private fr.softeam.cameldesigner.api.datamodel.standard.package_.DataTypeModel r return fr.softeam.cameldesigner.api.datamodel.standard.package_.DataTypeModel.create(); } + @objid ("840ffbb4-513a-467e-ac4b-22a120a08063") @Override public Object process(Object element, Object context) { // TODO Auto-generated method stub diff --git a/src/main/java/fr/softeam/cameldesigner/conversion/process/reverse/ReverseProcessConstraint.java b/src/main/java/fr/softeam/cameldesigner/conversion/process/reverse/ReverseProcessConstraint.java index bbffd1c7..9358ecc4 100644 --- a/src/main/java/fr/softeam/cameldesigner/conversion/process/reverse/ReverseProcessConstraint.java +++ b/src/main/java/fr/softeam/cameldesigner/conversion/process/reverse/ReverseProcessConstraint.java @@ -2,9 +2,9 @@ import java.util.Map; import com.modeliosoft.modelio.javadesigner.annotations.objid; +import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; import org.eclipse.emf.cdo.CDOObject; import org.modelio.metamodel.uml.infrastructure.ModelElement; -import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; @objid ("fbb40d5f-4d55-4ca5-8749-d9c38003bf08") public class ReverseProcessConstraint extends AbstractReverseProcess { @@ -44,6 +44,7 @@ private CamelElement reverse(camel.constraint.MetricConstraint element) { return null; } + @objid ("0ee7d04d-5caf-4764-88bb-b51e44a9261c") @Override public Object process(Object element, Object context) { // TODO Auto-generated method stub diff --git a/src/main/java/fr/softeam/cameldesigner/conversion/process/reverse/ReverseProcessDataInstance.java b/src/main/java/fr/softeam/cameldesigner/conversion/process/reverse/ReverseProcessDataInstance.java index b2fad26e..87b4330c 100644 --- a/src/main/java/fr/softeam/cameldesigner/conversion/process/reverse/ReverseProcessDataInstance.java +++ b/src/main/java/fr/softeam/cameldesigner/conversion/process/reverse/ReverseProcessDataInstance.java @@ -2,9 +2,9 @@ import java.util.Map; import com.modeliosoft.modelio.javadesigner.annotations.objid; +import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; import org.eclipse.emf.cdo.CDOObject; import org.modelio.metamodel.uml.infrastructure.ModelElement; -import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; @objid ("68b2c559-4db3-46f8-8fb3-9e8ed406692d") public class ReverseProcessDataInstance extends AbstractReverseProcess { @@ -21,6 +21,7 @@ protected CamelElement switchReverse(CDOObject element) { return null; } + @objid ("6322874e-86d2-4adf-b1df-f81802349397") @Override public Object process(Object element, Object context) { // TODO Auto-generated method stub diff --git a/src/main/java/fr/softeam/cameldesigner/conversion/process/reverse/ReverseProcessDataType.java b/src/main/java/fr/softeam/cameldesigner/conversion/process/reverse/ReverseProcessDataType.java index 0182299e..eb8c8dc5 100644 --- a/src/main/java/fr/softeam/cameldesigner/conversion/process/reverse/ReverseProcessDataType.java +++ b/src/main/java/fr/softeam/cameldesigner/conversion/process/reverse/ReverseProcessDataType.java @@ -1,13 +1,13 @@ package fr.softeam.cameldesigner.conversion.process.reverse; import java.util.Map; -import com.modeliosoft.modelio.javadesigner.annotations.objid; -import org.eclipse.emf.cdo.CDOObject; -import org.modelio.metamodel.uml.infrastructure.ModelElement; import camel.data.Data; import camel.data.DataSource; +import com.modeliosoft.modelio.javadesigner.annotations.objid; import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; import fr.softeam.cameldesigner.api.deploymentmodel.standard.component.SoftwareComponent; +import org.eclipse.emf.cdo.CDOObject; +import org.modelio.metamodel.uml.infrastructure.ModelElement; @objid ("55fbdd24-7cd9-4ac6-94f2-52970c5c2f46") public class ReverseProcessDataType extends AbstractReverseProcess { @@ -38,7 +38,7 @@ private fr.softeam.cameldesigner.api.datamodel.standard.class_.Data reverse(Data proxyDataSource = (fr.softeam.cameldesigner.api.datamodel.standard.class_.DataSource) (new ReverseProcessDeploymentType(null, this.processedCamelElements)).switchReverse(element.getDataSource()); proxyDataSource.getElement().setName(element.getDataSource().getName()); this.processedCamelElements.put(element.getDataSource(), proxyDataSource); - + } proxyData.setDataSource(proxyDataSource); } @@ -56,13 +56,14 @@ private fr.softeam.cameldesigner.api.datamodel.standard.class_.DataSource revers umlSoftwareComponent = (SoftwareComponent) (new ReverseProcessDeploymentType(null, this.processedCamelElements)).switchReverse(element.getComponent()); umlSoftwareComponent.getElement().setName(element.getComponent().getName()); this.processedCamelElements.put(element.getComponent(), umlSoftwareComponent); - + } proxyDataSource.setSoftwareComponent(umlSoftwareComponent); } return proxyDataSource; } + @objid ("85fd3b77-555d-45ba-b0b4-4c5a8e1c8176") @Override public Object process(Object element, Object context) { // TODO Auto-generated method stub diff --git a/src/main/java/fr/softeam/cameldesigner/conversion/process/reverse/ReverseProcessDeploymentInstance.java b/src/main/java/fr/softeam/cameldesigner/conversion/process/reverse/ReverseProcessDeploymentInstance.java index e2ef2713..8aed5093 100644 --- a/src/main/java/fr/softeam/cameldesigner/conversion/process/reverse/ReverseProcessDeploymentInstance.java +++ b/src/main/java/fr/softeam/cameldesigner/conversion/process/reverse/ReverseProcessDeploymentInstance.java @@ -2,9 +2,9 @@ import java.util.Map; import com.modeliosoft.modelio.javadesigner.annotations.objid; +import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; import org.eclipse.emf.cdo.CDOObject; import org.modelio.metamodel.uml.infrastructure.ModelElement; -import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; @objid ("8a5d011d-a580-4191-a186-be222c71e3e1") public class ReverseProcessDeploymentInstance extends AbstractReverseProcess { @@ -20,6 +20,7 @@ protected CamelElement switchReverse(CDOObject element) { return null; } + @objid ("5a38cb00-b3de-46ed-be96-804ea207f000") @Override public Object process(Object element, Object context) { // TODO Auto-generated method stub diff --git a/src/main/java/fr/softeam/cameldesigner/conversion/process/reverse/ReverseProcessDeploymentType.java b/src/main/java/fr/softeam/cameldesigner/conversion/process/reverse/ReverseProcessDeploymentType.java index d9bb6a61..d303f2dd 100644 --- a/src/main/java/fr/softeam/cameldesigner/conversion/process/reverse/ReverseProcessDeploymentType.java +++ b/src/main/java/fr/softeam/cameldesigner/conversion/process/reverse/ReverseProcessDeploymentType.java @@ -1,13 +1,6 @@ package fr.softeam.cameldesigner.conversion.process.reverse; import java.util.Map; -import com.modeliosoft.modelio.javadesigner.annotations.objid; -import org.eclipse.emf.cdo.CDOObject; -import org.modelio.api.modelio.model.IUmlModel; -import org.modelio.metamodel.uml.infrastructure.ModelElement; -import org.modelio.metamodel.uml.statik.ConnectorEnd; -import org.modelio.metamodel.uml.statik.Instance; -import org.modelio.metamodel.uml.statik.PortOrientation; import camel.core.NamedElement; import camel.deployment.BuildConfiguration; import camel.deployment.ClusterConfiguration; @@ -30,6 +23,7 @@ import camel.deployment.SoftwareComponent; import camel.deployment.VM; import camel.requirement.Requirement; +import com.modeliosoft.modelio.javadesigner.annotations.objid; import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; import fr.softeam.cameldesigner.api.requirementmodel.standard.class_.HorizontalScaleRequirement; import fr.softeam.cameldesigner.api.requirementmodel.standard.class_.LocationRequirement; @@ -41,6 +35,12 @@ import fr.softeam.cameldesigner.api.requirementmodel.standard.class_.VerticalScaleRequirement; import fr.softeam.cameldesigner.api.requirementmodel.standard.enumeration.ImageRequirement; import fr.softeam.cameldesigner.impl.CamelDesignerModule; +import org.eclipse.emf.cdo.CDOObject; +import org.modelio.api.modelio.model.IUmlModel; +import org.modelio.metamodel.uml.infrastructure.ModelElement; +import org.modelio.metamodel.uml.statik.ConnectorEnd; +import org.modelio.metamodel.uml.statik.Instance; +import org.modelio.metamodel.uml.statik.PortOrientation; @objid ("5c7d0fea-5720-4505-9709-5bcfaec4af3e") public class ReverseProcessDeploymentType extends AbstractReverseProcess { @@ -52,65 +52,65 @@ public ReverseProcessDeploymentType(ModelElement umlElementParent, Map processedCamelElements = new HashMap<>(); ReverseProcess reverseProcess = new ReverseProcess(packageOwner, processedCamelElements); AbstractCamelWalker camelWalker = new CamelWalker (reverseProcess); diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/exporter/ExporterFactory.java b/src/main/java/fr/softeam/cameldesigner/exchange/exporter/ExporterFactory.java index 7a7b702b..0c0a4574 100644 --- a/src/main/java/fr/softeam/cameldesigner/exchange/exporter/ExporterFactory.java +++ b/src/main/java/fr/softeam/cameldesigner/exchange/exporter/ExporterFactory.java @@ -1,26 +1,6 @@ package fr.softeam.cameldesigner.exchange.exporter; import com.modeliosoft.modelio.javadesigner.annotations.objid; -import org.modelio.metamodel.mda.ModuleComponent; -import org.modelio.metamodel.uml.infrastructure.Dependency; -import org.modelio.metamodel.uml.infrastructure.Element; -import org.modelio.metamodel.uml.infrastructure.ModelElement; -import org.modelio.metamodel.uml.infrastructure.Stereotype; -import org.modelio.metamodel.uml.statik.Artifact; -import org.modelio.metamodel.uml.statik.Attribute; -import org.modelio.metamodel.uml.statik.AttributeLink; -import org.modelio.metamodel.uml.statik.Class; -import org.modelio.metamodel.uml.statik.Component; -import org.modelio.metamodel.uml.statik.Connector; -import org.modelio.metamodel.uml.statik.DataType; -import org.modelio.metamodel.uml.statik.Enumeration; -import org.modelio.metamodel.uml.statik.GeneralClass; -import org.modelio.metamodel.uml.statik.Instance; -import org.modelio.metamodel.uml.statik.Package; -import org.modelio.metamodel.uml.statik.Port; -import org.modelio.metamodel.visitors.IDefaultInfrastructureVisitor; -import org.modelio.metamodel.visitors.IDefaultModelVisitor; -import org.modelio.metamodel.visitors.IInfrastructureVisitor; import fr.softeam.cameldesigner.api.ICamelDesignerPeerModule; import fr.softeam.cameldesigner.exchange.exporter.core.AttributeAttributeExporter; import fr.softeam.cameldesigner.exchange.exporter.core.AttributeClassExporter; @@ -145,6 +125,26 @@ import fr.softeam.cameldesigner.exchange.exporter.security.SecuritySLOExporter; import fr.softeam.cameldesigner.exchange.exporter.type.TypeModelExporter; import fr.softeam.cameldesigner.exchange.exporter.unit.UnitModelExporter; +import org.modelio.metamodel.mda.ModuleComponent; +import org.modelio.metamodel.uml.infrastructure.Dependency; +import org.modelio.metamodel.uml.infrastructure.Element; +import org.modelio.metamodel.uml.infrastructure.ModelElement; +import org.modelio.metamodel.uml.infrastructure.Stereotype; +import org.modelio.metamodel.uml.statik.Artifact; +import org.modelio.metamodel.uml.statik.Attribute; +import org.modelio.metamodel.uml.statik.AttributeLink; +import org.modelio.metamodel.uml.statik.Class; +import org.modelio.metamodel.uml.statik.Component; +import org.modelio.metamodel.uml.statik.Connector; +import org.modelio.metamodel.uml.statik.DataType; +import org.modelio.metamodel.uml.statik.Enumeration; +import org.modelio.metamodel.uml.statik.GeneralClass; +import org.modelio.metamodel.uml.statik.Instance; +import org.modelio.metamodel.uml.statik.Package; +import org.modelio.metamodel.uml.statik.Port; +import org.modelio.metamodel.visitors.IDefaultInfrastructureVisitor; +import org.modelio.metamodel.visitors.IDefaultModelVisitor; +import org.modelio.metamodel.visitors.IInfrastructureVisitor; /** * Factory that instantiates the right exporter class for a model element stereotyped by a 'CamelDesigner' module stereotype. @@ -158,7 +158,7 @@ public class ExporterFactory { * Instantiates the right proxy class the given element. *
The model element must be stereotyped by a 'CamelDesigner' module stereotype. *
In the other case the method will return null. - * + * * @param e A model element * @return the right proxy or null. */ @@ -177,7 +177,7 @@ public static final Object instantiateExporter(final ModelElement e) { * Instantiates the right proxy class the given element with a stereotype name. * The stereotype must be one of the 'CamelDesigner' module stereotypes. * In the other case the method will return null. - * + * * @param e A model element. * @param stName A stereotype name. * @return the right proxy or null. @@ -468,7 +468,7 @@ public final Object visitPort(Port obj) { /** * Get the visitor to delegate to when a {@link IInfrastructureVisitor} is needed. *

If null is returned the caller will return null. - * + * * @return the {@link IInfrastructureVisitor} visitor or null. */ @objid ("811fd899-8f65-4257-b11f-cffff1d5ef23") diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/exporter/GenerateProcess.java b/src/main/java/fr/softeam/cameldesigner/exchange/exporter/GenerateProcess.java index ea2f6064..2f56a502 100644 --- a/src/main/java/fr/softeam/cameldesigner/exchange/exporter/GenerateProcess.java +++ b/src/main/java/fr/softeam/cameldesigner/exchange/exporter/GenerateProcess.java @@ -1,16 +1,16 @@ package fr.softeam.cameldesigner.exchange.exporter; import com.modeliosoft.modelio.javadesigner.annotations.objid; -import org.eclipse.emf.cdo.CDOObject; -import org.modelio.metamodel.uml.infrastructure.ModelElement; import fr.softeam.cameldesigner.api.CamelDesignerProxyFactory; import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; import fr.softeam.cameldesigner.conversion.process.IElementProcess; import fr.softeam.cameldesigner.exchange.exporter.core.CamelElementExporter; import fr.softeam.cameldesigner.impl.CamelDesignerModule; +import org.eclipse.emf.cdo.CDOObject; +import org.modelio.metamodel.uml.infrastructure.ModelElement; @objid ("9d3c43e8-d77f-4de9-89be-8e5ed21b089a") -public class GenerateProcess implements IElementProcess { +public class GenerateProcess implements IElementProcess { @objid ("c38ecb82-ebdb-4e95-8828-9fddc1cc8acf") private CamelElement camelElementParent; @@ -24,11 +24,11 @@ public GenerateProcess(CamelElement camelElementParent) { public CDOObject process(CamelElement element, CamelElement context) { CDOObject processedElement = null; GenerateMap genMap = GenerateMap.getInstance(); - + try { CamelElementExporter exporter = (CamelElementExporter) ExporterFactory.instantiateExporter(element.getElement()); exporter.setProcess(this); - + if(genMap.containsKey(element.getElement())) { processedElement = genMap.get(element.getElement()); } else { @@ -40,7 +40,7 @@ public CDOObject process(CamelElement element, CamelElement context) { } } exporter.setProperties(processedElement); - + }catch (Exception e) { CamelDesignerModule.logService.error(e); return null; diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/exporter/execution/ExecutionModelExporter.java b/src/main/java/fr/softeam/cameldesigner/exchange/exporter/execution/ExecutionModelExporter.java index 7d8b171d..b5931f17 100644 --- a/src/main/java/fr/softeam/cameldesigner/exchange/exporter/execution/ExecutionModelExporter.java +++ b/src/main/java/fr/softeam/cameldesigner/exchange/exporter/execution/ExecutionModelExporter.java @@ -1,11 +1,11 @@ package fr.softeam.cameldesigner.exchange.exporter.execution; import java.sql.Date; -import com.modeliosoft.modelio.javadesigner.annotations.objid; -import org.eclipse.emf.cdo.CDOObject; import camel.execution.ExecutionFactory; +import com.modeliosoft.modelio.javadesigner.annotations.objid; import fr.softeam.cameldesigner.api.executionmodel.standard.package_.ExecutionModel; import fr.softeam.cameldesigner.exchange.exporter.core.SubModelExporter; +import org.eclipse.emf.cdo.CDOObject; @objid ("db11059e-f431-4aad-810b-e8fb3c3299a6") public class ExecutionModelExporter extends SubModelExporter { diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/importer/AbstractImporterService.java b/src/main/java/fr/softeam/cameldesigner/exchange/importer/AbstractImporterService.java index 9153ca17..9ef5060a 100644 --- a/src/main/java/fr/softeam/cameldesigner/exchange/importer/AbstractImporterService.java +++ b/src/main/java/fr/softeam/cameldesigner/exchange/importer/AbstractImporterService.java @@ -1,13 +1,13 @@ package fr.softeam.cameldesigner.exchange.importer; import java.util.Map; -import com.modeliosoft.modelio.javadesigner.annotations.objid; -import org.eclipse.emf.cdo.CDOObject; -import org.modelio.metamodel.uml.statik.Package; import camel.core.CamelModel; +import com.modeliosoft.modelio.javadesigner.annotations.objid; import fr.softeam.cameldesigner.exchange.walker.CamelWalker; import fr.softeam.cameldesigner.exchange.walker.IWalker; import fr.softeam.cameldesigner.impl.CamelDesignerModule; +import org.eclipse.emf.cdo.CDOObject; +import org.modelio.metamodel.uml.statik.Package; @objid ("acd66265-f660-48ff-a105-5a526a8cf126") public abstract class AbstractImporterService { @@ -20,6 +20,7 @@ public abstract class AbstractImporterService { @objid ("3b1d9df4-1bc3-420a-829d-fe3b1e8ee131") private final String _rootID = "5fe3c74b-bdb5-411d-a9c9-80e86449b9a5"; + @objid ("f6a56885-cec4-4955-98d9-659ab3b3dc00") protected Object loadOption; @objid ("00e744cb-1a7a-4020-82a3-69cdb4acf049") @@ -29,45 +30,16 @@ public AbstractImporterService(Map options, String fileExtensio this._fileExtension = fileExtension; } - @objid ("c193b036-5cad-4b90-b6af-ec22d0ecb154") - protected abstract CamelModel importCamel(String filePath); - - - private fr.softeam.cameldesigner.api.camelcore.standard.package_.CamelModel createCamelModelRoot(CamelModel rootProxy, Package root) { - - //Creates root Camel Model - fr.softeam.cameldesigner.api.camelcore.standard.package_.CamelModel camelModel = fr.softeam.cameldesigner.api.camelcore.standard.package_.CamelModel.create(); - camelModel.setName(rootProxy.getName()); - - root.getOwnedElement().add(camelModel.getElement()); - - //Creates Application -// Application application = CoreFactory.eINSTANCE.createApplication(); -// application.setName(rootProxy.getApplicationName()); -// application.setVersion(rootProxy.getApplicationVersion()); -// camelModel.setApplication(application); - - //Adds Library -// Package root = CamelDesignerModule.getInstance().getModuleContext().getModelingSession().findElementById(Package.class, this._rootID); -// for (ModelTree ownedElt : root.getOwnedElement()) { -// if (ownedElt.isStereotyped(CamelDesignerPeerModule.MODULE_NAME, fr.softeam.cameldesigner.api.camelcore.standard.package_.CamelModel.STEREOTYPE_NAME)) { -// genMap.put(ownedElt, camelModel); -// } -// } - -// genMap.put(camelModel ) ; - return camelModel; - } - + @objid ("ca80b229-66ad-4f42-b548-ae2feea0296c") public void importFromFile(Package selectedElt, String absolutePath) { ImportMap impMap = ImportMap.getInstance(); impMap.clear(); - + CamelModel camelModel = this.importCamel(absolutePath); - + fr.softeam.cameldesigner.api.camelcore.standard.package_.CamelModel impCamelModel = createCamelModelRoot(camelModel, selectedElt); impMap.put(camelModel, impCamelModel); - + ImportProcess importProcess = new ImportProcess(null); try { IWalker camelWalker = new CamelWalker(importProcess); @@ -77,4 +49,33 @@ public void importFromFile(Package selectedElt, String absolutePath) { } } + @objid ("c193b036-5cad-4b90-b6af-ec22d0ecb154") + protected abstract CamelModel importCamel(String filePath); + + @objid ("7c41b8f0-f3f1-4e91-ad62-7516ea5b0816") + private fr.softeam.cameldesigner.api.camelcore.standard.package_.CamelModel createCamelModelRoot(CamelModel rootProxy, Package root) { + //Creates root Camel Model + fr.softeam.cameldesigner.api.camelcore.standard.package_.CamelModel camelModel = fr.softeam.cameldesigner.api.camelcore.standard.package_.CamelModel.create(); + camelModel.setName(rootProxy.getName()); + + root.getOwnedElement().add(camelModel.getElement()); + + //Creates Application + // Application application = CoreFactory.eINSTANCE.createApplication(); + // application.setName(rootProxy.getApplicationName()); + // application.setVersion(rootProxy.getApplicationVersion()); + // camelModel.setApplication(application); + + //Adds Library + // Package root = CamelDesignerModule.getInstance().getModuleContext().getModelingSession().findElementById(Package.class, this._rootID); + // for (ModelTree ownedElt : root.getOwnedElement()) { + // if (ownedElt.isStereotyped(CamelDesignerPeerModule.MODULE_NAME, fr.softeam.cameldesigner.api.camelcore.standard.package_.CamelModel.STEREOTYPE_NAME)) { + // genMap.put(ownedElt, camelModel); + // } + // } + + // genMap.put(camelModel ) ; + return camelModel; + } + } diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/importer/CamelContainment.java b/src/main/java/fr/softeam/cameldesigner/exchange/importer/CamelContainment.java index 17e7f454..7d4d6149 100644 --- a/src/main/java/fr/softeam/cameldesigner/exchange/importer/CamelContainment.java +++ b/src/main/java/fr/softeam/cameldesigner/exchange/importer/CamelContainment.java @@ -3,41 +3,45 @@ import java.util.ArrayList; import java.util.Collection; import java.util.List; -import org.eclipse.emf.cdo.CDOObject; import camel.core.CamelModel; import camel.core.Feature; import camel.mms.MetaDataModel; import camel.mms.MmsConcept; +import com.modeliosoft.modelio.javadesigner.annotations.objid; import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; import fr.softeam.cameldesigner.exchange.importer.core.CamelElementImporter; import fr.softeam.cameldesigner.exchange.importer.core.CamelModelImporter; import fr.softeam.cameldesigner.exchange.importer.core.FeatureImporter; import fr.softeam.cameldesigner.exchange.importer.metadata.MetaDataModelImporter; import fr.softeam.cameldesigner.exchange.importer.metadata.MmsConceptImporter; +import org.eclipse.emf.cdo.CDOObject; - -public class CamelContainment{ - +@objid ("63498b40-f2f0-4924-a856-cf2209bafd01") +public class CamelContainment { + @objid ("e284ef3b-02da-4cdd-b3c2-b346d83d54a7") private static CamelContainerVisitor _containmentVisitor = new CamelContainerVisitor(); - public final static Object getChilds(final CamelElementImporter e){ + @objid ("1609744f-bf9d-42e0-b9c1-aecaac7b6ed8") + public static final Object getChilds(final CamelElementImporter e) { return e.accept(_containmentVisitor); } - private static class CamelContainerVisitor implements IDefaultCamelVisitor{ - + @objid ("da0bb1cb-1d34-4092-9915-c67b99b5656c") + private static class CamelContainerVisitor implements IDefaultCamelVisitor { + @objid ("ad92355c-1062-4a06-8a79-46b067534fa2") @Override - public Object visitCamelElement(CamelElementImporter camelModel) { + public Object visitCamelElement(CamelElementImporter camelModel) { return new ArrayList(); } + @objid ("76f04c91-fb4a-489f-89bb-3c14511d5695") @Override - public Object visitCamelModel(CamelModelImporter camelModel){ + public Object visitCamelModel(CamelModelImporter camelModel) { List childs = new ArrayList<>(); childs.addAll((Collection) this.visitModel(camelModel)); CamelModel cdoElt = camelModel.getElement(); childs.addAll(cdoElt.getActions()); -// childs.addAll(cdoElt.getApplication()); + // childs.addAll(cdoElt.getApplication()); childs.addAll(cdoElt.getConstraintModels()); childs.addAll(cdoElt.getDataModels()); childs.addAll(cdoElt.getDeploymentModels()); @@ -54,9 +58,9 @@ public Object visitCamelModel(CamelModelImporter feature) { + public Object visitFeature(FeatureImporter feature) { List childs = new ArrayList<>(); childs.addAll((Collection) this.visitNamedElement(feature)); Feature cdoElt = feature.getElement(); @@ -65,8 +69,9 @@ public Object visitFeature(FeatureImporter mmsConcept) { + public Object visitMmsConcept(MmsConceptImporter mmsConcept) { List childs = new ArrayList<>(); childs.addAll((Collection) this.visitMmsObject(mmsConcept)); MmsConcept cdoElt = mmsConcept.getElement(); @@ -75,8 +80,9 @@ public Object visitMmsConcept(MmsConceptImporter metaDataModel){ + public Object visitMetaDataModel(MetaDataModelImporter metaDataModel) { List childs = new ArrayList<>(); childs.addAll((Collection) this.visitModel(metaDataModel)); MetaDataModel cdoElt = metaDataModel.getElement(); @@ -85,4 +91,5 @@ public Object visitMetaDataModel(MetaDataModelImporter feature); + @objid ("61ac27e7-298d-4e74-aec8-bfade56f0124") + Object visitCamelElement(CamelElementImporter camelElt); - Object visitFeature(FeatureImporter feature); - - Object visitCamelElement(CamelElementImporter camelElt); - - Object visitCamelModel(CamelModelImporter camelModel); - - Object visitMetaDataModel(MetaDataModelImporter metaDataModel); - - Object visitMmsConcept(MmsConceptImporter mmsConcept); + @objid ("0f5c93cf-a438-452b-b6c7-cb9dae88213c") + Object visitCamelModel(CamelModelImporter camelModel); - Object visitMmsObject(MmsObjectImporter model); + @objid ("59147e43-ac65-47c2-9df8-6d8805845b36") + Object visitMetaDataModel(MetaDataModelImporter metaDataModel); - Object visitModel(SubModelImporter model); + @objid ("b75bc1a4-1898-403e-a81e-96d631631865") + Object visitMmsConcept(MmsConceptImporter mmsConcept); - Object visitNamedElement(NamedElementImporter namedElement); + @objid ("f46ebae5-307e-430b-9155-49ae56a79256") + Object visitMmsObject(MmsObjectImporter model); + @objid ("2269adb3-46e6-49db-9caf-a9af09b65e0b") + Object visitModel(SubModelImporter model); + @objid ("574d70c1-bbda-487a-9786-0f722d3a62c6") + Object visitNamedElement(NamedElementImporter namedElement); } diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/importer/ICamelVisitor.java b/src/main/java/fr/softeam/cameldesigner/exchange/importer/ICamelVisitor.java index 5eac5e98..da6de1d8 100644 --- a/src/main/java/fr/softeam/cameldesigner/exchange/importer/ICamelVisitor.java +++ b/src/main/java/fr/softeam/cameldesigner/exchange/importer/ICamelVisitor.java @@ -1,6 +1,5 @@ package fr.softeam.cameldesigner.exchange.importer; -import org.eclipse.emf.cdo.CDOObject; import camel.core.CamelModel; import camel.core.Feature; import camel.core.Model; @@ -8,26 +7,33 @@ import camel.mms.MetaDataModel; import camel.mms.MmsConcept; import camel.mms.MmsObject; +import com.modeliosoft.modelio.javadesigner.annotations.objid; +import org.eclipse.emf.cdo.CDOObject; +@objid ("a8b19413-363c-45c2-b062-781347a5179f") public interface ICamelVisitor { - - + @objid ("47b2b7ac-40ff-403f-a428-5d50daef663b") Object visitFeature(Feature feature); - Object visitCDOObject(CDOObject object); - + @objid ("f62b36a3-8219-495d-b0a2-c7d5fa08ff18") Object visitCamelModel(CamelModel camelModel); + @objid ("8d04ac43-9de3-4004-97ae-bbaadb48aa8b") Object visitMetaDataModel(MetaDataModel metaDataModel); + @objid ("fe6417ad-2239-40c2-b19a-a787367e2b55") Object visitMmsConcept(MmsConcept mmsConcept); + @objid ("78535d51-26aa-44b0-b3d9-bb6a0ebf53f0") Object visitMmsObject(MmsObject mmsObject); + @objid ("43faa31c-f7cd-4f1f-8a0c-7829130cf68c") Object visitModel(Model model); + @objid ("206112f4-6089-4bfc-ab1d-03f9b3f57f84") Object visitNamedElement(NamedElement namedElement); - + @objid ("84bb23e0-7ca5-4e7d-823b-a5e28d32efa6") + Object visitCDOObject(CDOObject object); } diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/importer/IDefaultCamelVisitor.java b/src/main/java/fr/softeam/cameldesigner/exchange/importer/IDefaultCamelVisitor.java index a344becc..be7fd93a 100644 --- a/src/main/java/fr/softeam/cameldesigner/exchange/importer/IDefaultCamelVisitor.java +++ b/src/main/java/fr/softeam/cameldesigner/exchange/importer/IDefaultCamelVisitor.java @@ -1,6 +1,5 @@ package fr.softeam.cameldesigner.exchange.importer; -import org.eclipse.emf.cdo.CDOObject; import camel.core.CamelModel; import camel.core.Feature; import camel.core.Model; @@ -8,6 +7,7 @@ import camel.mms.MetaDataModel; import camel.mms.MmsConcept; import camel.mms.MmsObject; +import com.modeliosoft.modelio.javadesigner.annotations.objid; import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; import fr.softeam.cameldesigner.exchange.importer.core.CamelElementImporter; import fr.softeam.cameldesigner.exchange.importer.core.CamelModelImporter; @@ -17,49 +17,56 @@ import fr.softeam.cameldesigner.exchange.importer.metadata.MetaDataModelImporter; import fr.softeam.cameldesigner.exchange.importer.metadata.MmsConceptImporter; import fr.softeam.cameldesigner.exchange.importer.metadata.MmsObjectImporter; +import org.eclipse.emf.cdo.CDOObject; -public interface IDefaultCamelVisitor extends ICamelImporterVisitor{ - +@objid ("95d27772-cd96-4ee0-9c20-5c6b05231e69") +public interface IDefaultCamelVisitor extends ICamelImporterVisitor { + @objid ("d8679bed-cac7-448a-a256-4116c2c3fca0") @Override - default Object visitFeature(FeatureImporter feature) { + default Object visitFeature(FeatureImporter feature) { return visitNamedElement(feature); } + @objid ("413623cd-f194-47d4-b365-88cf49900c0b") @Override - default Object visitCamelElement(CamelElementImporter camelElt) { + default Object visitCamelElement(CamelElementImporter camelElt) { return null; } + @objid ("c4ae23ff-147f-45b2-8152-4eaace3f3df2") @Override - default Object visitCamelModel(CamelModelImporter camelModel){ + default Object visitCamelModel(CamelModelImporter camelModel) { return visitModel(camelModel); } + @objid ("87331245-7ea6-4eff-9417-7fa2cefc4a8b") @Override - default Object visitMetaDataModel(MetaDataModelImporter metaDataModel){ + default Object visitMetaDataModel(MetaDataModelImporter metaDataModel) { return visitModel(metaDataModel); } + @objid ("de3712b3-db3c-45de-bf38-272cd41fed53") @Override - default Object visitMmsConcept(MmsConceptImporter mmsConcept) { + default Object visitMmsConcept(MmsConceptImporter mmsConcept) { return visitMmsObject(mmsConcept); } + @objid ("0a5d2736-c4a5-493a-9b38-e8450cfd3784") @Override - default Object visitMmsObject(MmsObjectImporter model) { + default Object visitMmsObject(MmsObjectImporter model) { return null; } + @objid ("f5b2ba18-24d4-4e9a-a4d0-8d2bcd34be4d") @Override - default Object visitModel(SubModelImporter model){ + default Object visitModel(SubModelImporter model) { return visitNamedElement(model); } + @objid ("132652c3-4893-4c7e-b78f-d7216ea6e485") @Override - default Object visitNamedElement(NamedElementImporter namedElement){ + default Object visitNamedElement(NamedElementImporter namedElement) { return visitCamelElement(namedElement); } - - } diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/importer/IImporter.java b/src/main/java/fr/softeam/cameldesigner/exchange/importer/IImporter.java index 34489fa4..6c89e5b7 100644 --- a/src/main/java/fr/softeam/cameldesigner/exchange/importer/IImporter.java +++ b/src/main/java/fr/softeam/cameldesigner/exchange/importer/IImporter.java @@ -1,20 +1,18 @@ package fr.softeam.cameldesigner.exchange.importer; - -import org.eclipse.emf.cdo.CDOObject; +import com.modeliosoft.modelio.javadesigner.annotations.objid; import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; +import org.eclipse.emf.cdo.CDOObject; - +@objid ("357d3ae7-884b-4241-bf1b-90f61638a9fb") public interface IImporter { - + @objid ("9e1e49b6-9c14-427d-89cf-08ffe4085f65") CamelElement createCamelElt(T owner); - + @objid ("045aff1c-8bdb-4acc-93af-7c1da617be25") void setProperties(V elt); - + @objid ("5714b57b-1159-468e-a5e2-abd83b162dd6") void attach(V elt, W context); - - } diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/importer/ImportMap.java b/src/main/java/fr/softeam/cameldesigner/exchange/importer/ImportMap.java index ce40a3aa..4e064260 100644 --- a/src/main/java/fr/softeam/cameldesigner/exchange/importer/ImportMap.java +++ b/src/main/java/fr/softeam/cameldesigner/exchange/importer/ImportMap.java @@ -5,18 +5,18 @@ import java.util.Map; import java.util.Set; import com.modeliosoft.modelio.javadesigner.annotations.objid; +import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; import org.eclipse.emf.cdo.CDOObject; import org.modelio.metamodel.uml.infrastructure.ModelElement; -import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; @objid ("4970b2e0-5c04-4d3c-af4a-58f127b37f49") public class ImportMap { - @objid ("7ff8b324-7688-435d-bfdb-36c517a53f4a") - private Map modelMap; - @objid ("034701e6-8591-4a22-a63e-ef35db05bfaf") private static ImportMap theSingleInstance; + @objid ("afb95b99-d474-4012-8696-203a38976d19") + private Map modelMap; + @objid ("b844a873-fc30-42b1-9986-64d8385e3fc3") public void clear() { this.modelMap.clear(); diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/importer/ImportProcess.java b/src/main/java/fr/softeam/cameldesigner/exchange/importer/ImportProcess.java index ba3e98e2..5d344bec 100644 --- a/src/main/java/fr/softeam/cameldesigner/exchange/importer/ImportProcess.java +++ b/src/main/java/fr/softeam/cameldesigner/exchange/importer/ImportProcess.java @@ -1,15 +1,15 @@ package fr.softeam.cameldesigner.exchange.importer; import com.modeliosoft.modelio.javadesigner.annotations.objid; -import org.eclipse.emf.cdo.CDOObject; import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; import fr.softeam.cameldesigner.conversion.process.IElementProcess; import fr.softeam.cameldesigner.exchange.importer.core.CamelElementImporter; import fr.softeam.cameldesigner.impl.CamelDesignerModule; +import org.eclipse.emf.cdo.CDOObject; @objid ("c7582f35-a3a2-413e-a707-e71081547ee3") -public class ImportProcess implements IElementProcess { - @objid ("a1353cab-d454-45b1-acca-af0d25975791") +public class ImportProcess implements IElementProcess { + @objid ("f8d68a58-2f78-43a3-b927-8ad76acc7d6f") private CDOObject camelElementParent; @objid ("09776a3a-5b97-4ce8-ad1e-6e9f9ebcadb0") @@ -22,11 +22,11 @@ public ImportProcess(CDOObject camelElementParent) { public CamelElement process(CDOObject element, CDOObject context) { CamelElement processedElement = null; ImportMap importMap = ImportMap.getInstance(); - + try { CamelElementImporter importer = ImporterFactory.getImporter(element); importer.setProcess(this); - + if(importMap.containsKey(element)) { processedElement = importMap.get(element); } else { @@ -38,7 +38,7 @@ public CamelElement process(CDOObject element, CDOObject context) { } } importer.setProperties(processedElement); - + }catch (Exception e) { CamelDesignerModule.logService.error(e); return null; diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/importer/ImporterFactory.java b/src/main/java/fr/softeam/cameldesigner/exchange/importer/ImporterFactory.java index 519f4e65..ffa2aa7e 100644 --- a/src/main/java/fr/softeam/cameldesigner/exchange/importer/ImporterFactory.java +++ b/src/main/java/fr/softeam/cameldesigner/exchange/importer/ImporterFactory.java @@ -2,47 +2,44 @@ import java.util.HashMap; import java.util.Map; -import com.modeliosoft.modelio.javadesigner.annotations.objid; -import org.eclipse.emf.cdo.CDOObject; import camel.core.impl.CamelModelImpl; import camel.core.impl.FeatureImpl; import camel.mms.impl.MetaDataModelImpl; import camel.mms.impl.MmsConceptImpl; +import com.modeliosoft.modelio.javadesigner.annotations.objid; import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; import fr.softeam.cameldesigner.exchange.importer.core.CamelElementImporter; import fr.softeam.cameldesigner.exchange.importer.core.CamelModelImporter; import fr.softeam.cameldesigner.exchange.importer.core.FeatureImporter; import fr.softeam.cameldesigner.exchange.importer.metadata.MetaDataModelImporter; import fr.softeam.cameldesigner.exchange.importer.metadata.MmsConceptImporter; +import org.eclipse.emf.cdo.CDOObject; /** * Factory that instantiates the right importer class for a model element stereotyped by a 'CamelDesigner' module stereotype. */ @objid ("7b18247b-a2c1-4fda-8356-d4b90b2cb9f7") -public class ImporterFactory{ +public class ImporterFactory { + @objid ("c3ea94fe-bede-493a-997a-3217ea1176ee") + private static Map, CamelElementImporter> _factory = new HashMap<>(); + + @objid ("c8dc8e2d-b3e2-4418-9f8f-ec583df230cd") + public static CamelElementImporter getImporter(CDOObject elt) throws Exception { + if (!_factory.containsKey(elt.getClass())) { + throw new IllegalArgumentException("Missing Element Factory for Type " + elt.getClass()); + } + + CamelElementImporter importer = _factory.get(elt.getClass()); + importer.setElement(elt); + return importer; + } - private static Map, CamelElementImporter> _factory = new HashMap<>(); - static { +static { _factory.put(FeatureImpl.class, new FeatureImporter<>()); _factory.put(CamelModelImpl.class, new CamelModelImporter<>()); _factory.put(MetaDataModelImpl.class, new MetaDataModelImporter<>()); _factory.put(MmsConceptImpl.class, new MmsConceptImporter<>()); } - - public static CamelElementImporter getImporter(CDOObject elt) - throws Exception { - - if (!_factory.containsKey(elt.getClass())) { - throw new IllegalArgumentException("Missing Element Factory for Type " + elt.getClass()); - } - - CamelElementImporter importer = _factory.get(elt.getClass()); - importer.setElement(elt); - - return importer; - } - - } diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/importer/XMIImporterService.java b/src/main/java/fr/softeam/cameldesigner/exchange/importer/XMIImporterService.java index 7b7a3097..cc75a13a 100644 --- a/src/main/java/fr/softeam/cameldesigner/exchange/importer/XMIImporterService.java +++ b/src/main/java/fr/softeam/cameldesigner/exchange/importer/XMIImporterService.java @@ -1,23 +1,21 @@ package fr.softeam.cameldesigner.exchange.importer; import java.util.HashMap; +import camel.core.CamelModel; +import camel.core.CorePackage; import com.google.inject.Injector; import com.modeliosoft.modelio.javadesigner.annotations.objid; +import fr.softeam.cameldesigner.conversion.CamelDslManager; import org.eclipse.emf.common.util.URI; import org.eclipse.emf.ecore.resource.Resource; import org.eclipse.emf.ecore.xmi.XMLResource; import org.eclipse.xtext.resource.XtextResourceSet; -import camel.core.CamelModel; -import camel.core.CorePackage; -import fr.softeam.cameldesigner.conversion.CamelDslManager; @objid ("50c38cbf-2112-4e17-8072-ff333c032e3c") public class XMIImporterService extends AbstractImporterService { @objid ("db648b2c-da60-455e-be4d-fb4ac8bb29e5") private static final String XMI_EXTENSION = ".xmi"; - - @objid ("1bba9bfd-1c03-4d0b-a2b7-ad388035ef75") public XMIImporterService() { super(new HashMap() , XMI_EXTENSION); @@ -28,13 +26,12 @@ public XMIImporterService() { @Override protected CamelModel importCamel(String filePath) { Injector injector = CamelDslManager.getInstance().getInjector(); - + XtextResourceSet resourceSet = injector.getInstance(XtextResourceSet.class); resourceSet.getPackageRegistry().put(CorePackage.eNS_URI, CorePackage.eINSTANCE); resourceSet.addLoadOption(this.loadOption, Boolean.TRUE); Resource resource = resourceSet.getResource(URI.createFileURI(filePath), true); return(CamelModel) resource.getContents().get(0); - } } diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/CamelElementImporter.java b/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/CamelElementImporter.java index c6c7fbe8..4604983e 100644 --- a/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/CamelElementImporter.java +++ b/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/CamelElementImporter.java @@ -1,49 +1,57 @@ package fr.softeam.cameldesigner.exchange.importer.core; -import org.eclipse.emf.cdo.CDOObject; +import com.modeliosoft.modelio.javadesigner.annotations.objid; import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; import fr.softeam.cameldesigner.exchange.importer.ICamelImporterVisitor; import fr.softeam.cameldesigner.exchange.importer.IImporter; import fr.softeam.cameldesigner.exchange.importer.ImportProcess; +import org.eclipse.emf.cdo.CDOObject; +@objid ("a380bcee-5614-4bbb-ae51-4fce0eb8f1fe") public abstract class CamelElementImporter implements IImporter { - + @objid ("72ac129b-865a-47ac-9440-b567172e96f0") protected T _element; + @objid ("edd0298b-16e3-46e0-bcf3-8dd1863948ed") protected ImportProcess _process; + @objid ("fbe059da-0243-4e51-874b-1f0412e62979") public CamelElementImporter() { } - public CamelElementImporter(T elt) { - this._element = elt; - } - + @objid ("93478a3c-2728-4b98-9f08-e7cd1e1f160d") public T getElement() { return this._element; } - public void setElement(T element) { - this._element = element; - } - + @objid ("2c5f32c3-07a3-46e4-934d-da8a21604749") public void setProcess(ImportProcess process) { this._process = process; } - - + @objid ("521f0910-b058-4202-8256-2c442bff20d9") public abstract Object accept(ICamelImporterVisitor v); + @objid ("a2d8bacc-c359-4ec0-8d85-bae706a6edd6") @Override - public abstract CamelElement createCamelElt(V owner) ; - + public abstract CamelElement createCamelElt(V owner); + @objid ("80d2f453-7ccc-4c8d-bd48-9d8362a8f29f") @Override public abstract void setProperties(W elt); + @objid ("90b03904-5f6e-4eb7-a22c-f79a49b88847") @Override public abstract void attach(W elt, Z context); + @objid ("9a437226-becf-4f01-b153-a319f1fc2956") + public CamelElementImporter(T elt) { + this._element = elt; + } + + @objid ("e7d6b617-d856-4b6f-8348-3a9668df9cb8") + public void setElement(T element) { + this._element = element; + } } diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/CamelModelImporter.java b/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/CamelModelImporter.java index adf5edb0..9604b279 100644 --- a/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/CamelModelImporter.java +++ b/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/CamelModelImporter.java @@ -1,21 +1,25 @@ package fr.softeam.cameldesigner.exchange.importer.core; import camel.core.CamelModel; +import com.modeliosoft.modelio.javadesigner.annotations.objid; +import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.Feature; import fr.softeam.cameldesigner.exchange.importer.ICamelImporterVisitor; -public class CamelModelImporter extends SubModelImporter { - - +@objid ("dcd1a52b-ee35-4783-a5bb-62915c75b301") +public class CamelModelImporter extends SubModelImporter { + @objid ("7610ca38-80b1-41bb-be7d-db9c52aa40e6") public CamelModelImporter() { } - public CamelModelImporter(T elt) { - super(elt); - } - + @objid ("eec41fec-45bb-4547-87fe-b69558d92749") @Override public Object accept(ICamelImporterVisitor v) { - return v.visitCamelModel(this); + return v.visitCamelModel(this); + } + + @objid ("1bd1e6e7-684b-459a-bf7e-b6fcb394f81d") + public CamelModelImporter(T elt) { + super(elt); } } diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/FeatureImporter.java b/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/FeatureImporter.java index b3f16ef7..6cbf244e 100644 --- a/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/FeatureImporter.java +++ b/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/FeatureImporter.java @@ -1,40 +1,46 @@ package fr.softeam.cameldesigner.exchange.importer.core; import camel.core.Feature; +import com.modeliosoft.modelio.javadesigner.annotations.objid; import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; import fr.softeam.cameldesigner.api.camelcore.standard.class_.FeatureClass; import fr.softeam.cameldesigner.api.camelcore.standard.classifier.FeatureClassifier; import fr.softeam.cameldesigner.exchange.importer.ICamelImporterVisitor; -public class FeatureImporter extends NamedElementImporter { - +@objid ("bf556a2d-45ab-4b24-af20-959f70059208") +public class FeatureImporter extends NamedElementImporter { + @objid ("80b51352-eb0d-4d27-b95d-554c3ef0573b") public FeatureImporter() { } - public FeatureImporter(T elt) { - super(elt); - } - + @objid ("a85a72b5-333a-46ee-b978-d619a8aea5eb") @Override public Object accept(ICamelImporterVisitor v) { return v.visitFeature(this); } + @objid ("4aed461c-c348-4706-b1dc-affaad85e682") @Override public CamelElement createCamelElt(V owner) { return FeatureClass.create(); } + @objid ("1ef3d0b7-9c94-4c05-9e4c-2f501597611d") @Override public void setProperties(W elt) { super.setProperties(elt); - } + @objid ("6eed4777-b9bf-4368-8abf-f6569e14dde5") @Override public void attach(W elt, Z context) { if ((elt instanceof FeatureClassifier) && (context instanceof FeatureClassifier)) ((FeatureClassifier) elt).getSubFeatures().add((FeatureClassifier)context); } + @objid ("26dbd316-0ffe-469f-94ac-abf7ec73cedb") + public FeatureImporter(T elt) { + super(elt); + } + } diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/NamedElementImporter.java b/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/NamedElementImporter.java index bc96af7e..ed816a4a 100644 --- a/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/NamedElementImporter.java +++ b/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/NamedElementImporter.java @@ -2,28 +2,40 @@ import camel.core.Feature; import camel.core.NamedElement; +import com.modeliosoft.modelio.javadesigner.annotations.objid; import fr.softeam.cameldesigner.exchange.importer.ICamelImporterVisitor; +@objid ("1841f351-6417-46a7-aa5e-a351bae5ee5c") public abstract class NamedElementImporter extends CamelElementImporter { - + @objid ("0bc330fe-2803-44c9-972d-9415258cddd7") public NamedElementImporter() { } - public NamedElementImporter(T elt) { - super(elt); - } - + @objid ("66377a61-9115-4ce6-a58c-75ffb416b7ea") @Override public Object accept(ICamelImporterVisitor v) { return v.visitNamedElement(this); } + @objid ("63917946-0a1e-43c2-b762-845b284b915a") @Override public void setProperties(W elt) { setName(elt); setDescription(elt); } + @objid ("762fc7e2-08d2-4286-9ebd-939a94707389") + @Override + public void attach(W elt, Z context) { + // TODO Auto-generated method stub + } + + @objid ("bbd61cfc-d9ba-40e5-a08b-8e99cf29dbdb") + public NamedElementImporter(T elt) { + super(elt); + } + + @objid ("d8dd550c-d1f5-4535-934a-fc30ef216352") private void setDescription(W elt) { String descrip = this._element.getDescription(); if (descrip != null) { @@ -31,6 +43,7 @@ private void setDescription(W elt) { } } + @objid ("9f165a77-3d4b-4b2f-b059-851e8adf7833") private void setName(W elt) { String name = this._element.getName(); if (name != null) { @@ -38,9 +51,4 @@ private void setName(W elt) { } } - @Override - public void attach(W elt, Z context) { - // TODO Auto-generated method stub - } - } diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/SubModelImporter.java b/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/SubModelImporter.java index 720d8c49..37a51e52 100644 --- a/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/SubModelImporter.java +++ b/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/SubModelImporter.java @@ -2,20 +2,25 @@ import camel.core.CamelModel; import camel.core.Model; +import com.modeliosoft.modelio.javadesigner.annotations.objid; +import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.Feature; import fr.softeam.cameldesigner.exchange.importer.ICamelImporterVisitor; -public abstract class SubModelImporter extends FeatureImporter { - +@objid ("329577cf-315a-44c7-b7d4-9b1771dd725f") +public abstract class SubModelImporter extends FeatureImporter { + @objid ("2f78f8fd-2141-4844-8b82-7229f1f3ed51") public SubModelImporter() { } - public SubModelImporter(T elt) { - super(elt); - } - + @objid ("40236eee-a746-4b1f-b8c9-c1a0087a75bf") @Override public Object accept(ICamelImporterVisitor v) { - return v.visitModel(this); + return v.visitModel(this); + } + + @objid ("a7edf21f-3773-4ad0-b4bd-ec125dd1709b") + public SubModelImporter(T elt) { + super(elt); } } diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/importer/metadata/MetaDataModelImporter.java b/src/main/java/fr/softeam/cameldesigner/exchange/importer/metadata/MetaDataModelImporter.java index e6271213..1b76c4c5 100644 --- a/src/main/java/fr/softeam/cameldesigner/exchange/importer/metadata/MetaDataModelImporter.java +++ b/src/main/java/fr/softeam/cameldesigner/exchange/importer/metadata/MetaDataModelImporter.java @@ -2,33 +2,38 @@ import camel.core.CamelModel; import camel.mms.MetaDataModel; +import com.modeliosoft.modelio.javadesigner.annotations.objid; import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; import fr.softeam.cameldesigner.exchange.importer.ICamelImporterVisitor; import fr.softeam.cameldesigner.exchange.importer.core.SubModelImporter; +@objid ("4e87c36c-6977-4be6-b80b-a535ed82611a") public class MetaDataModelImporter extends SubModelImporter { - + @objid ("05bcba2f-7748-49b6-9ecb-8e36f4008abe") public MetaDataModelImporter() { } + @objid ("cdd56615-b13f-4971-95be-f0dc37772672") + @Override + public Object accept(ICamelImporterVisitor v) { + return v.visitMetaDataModel(this); + } + + @objid ("460e98a9-3240-4611-a398-73df79eecd40") public MetaDataModelImporter(T elt) { super(elt); } + @objid ("3b94e261-e393-4ac9-bbde-30102525b4b2") @Override public CamelElement createCamelElt(V owner) { return fr.softeam.cameldesigner.api.metadatamodel.standard.package_.MetaDataModel.create(); } - - @Override - public Object accept(ICamelImporterVisitor v) { - return v.visitMetaDataModel(this); - } - + @objid ("33402df9-93ae-41c0-882e-18672d5e9257") @Override public void attach(W elt, Z context) { - context.addMetaDataModels(elt); + context.addMetaDataModels(elt); } } diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/importer/metadata/MmsConceptImporter.java b/src/main/java/fr/softeam/cameldesigner/exchange/importer/metadata/MmsConceptImporter.java index 84c8e8b7..58d731b6 100644 --- a/src/main/java/fr/softeam/cameldesigner/exchange/importer/metadata/MmsConceptImporter.java +++ b/src/main/java/fr/softeam/cameldesigner/exchange/importer/metadata/MmsConceptImporter.java @@ -2,37 +2,43 @@ import camel.mms.MetaDataModel; import camel.mms.MmsConcept; +import com.modeliosoft.modelio.javadesigner.annotations.objid; import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; import fr.softeam.cameldesigner.exchange.importer.ICamelImporterVisitor; +@objid ("8e6da850-4801-4580-80f0-ea03bdaa333d") public class MmsConceptImporter extends MmsObjectImporter { - + @objid ("9adba51a-3733-4c74-8921-3e053fb47c21") public MmsConceptImporter() { } - public MmsConceptImporter(T elt) { - super(elt); - } - + @objid ("7207c3ca-56dd-4762-946e-dd0f2c09bda4") @Override public Object accept(ICamelImporterVisitor v) { - return v.visitMmsConcept(this); + return v.visitMmsConcept(this); } + @objid ("3721bac6-93aa-408d-aca7-e82f195b17f5") @Override public CamelElement createCamelElt(V owner) { return fr.softeam.cameldesigner.api.metadatamodel.standard.class_.MmsConcept.create(); } + @objid ("ba317b91-0a65-411e-a9ca-cbb389c4c465") @Override public void setProperties(W elt) { super.setProperties(elt); - } + @objid ("7d92a38d-8828-4e76-a077-00dda90be5b8") @Override public void attach(W elt, Z context) { super.attach(elt, context); } + @objid ("c6cb1e37-8b72-4f9c-b6f3-3d291ae521f3") + public MmsConceptImporter(T elt) { + super(elt); + } + } diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/importer/metadata/MmsObjectImporter.java b/src/main/java/fr/softeam/cameldesigner/exchange/importer/metadata/MmsObjectImporter.java index e62dd6ae..f097938d 100644 --- a/src/main/java/fr/softeam/cameldesigner/exchange/importer/metadata/MmsObjectImporter.java +++ b/src/main/java/fr/softeam/cameldesigner/exchange/importer/metadata/MmsObjectImporter.java @@ -2,46 +2,51 @@ import camel.mms.MetaDataModel; import camel.mms.MmsObject; +import com.modeliosoft.modelio.javadesigner.annotations.objid; import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; import fr.softeam.cameldesigner.api.metadatamodel.standard.class_.MmsConcept; import fr.softeam.cameldesigner.api.metadatamodel.standard.instance.MmsConceptInstance; import fr.softeam.cameldesigner.exchange.importer.ICamelImporterVisitor; import fr.softeam.cameldesigner.exchange.importer.core.CamelElementImporter; +@objid ("9d7ecbbd-376f-4a71-b826-0da2cd623e1d") public abstract class MmsObjectImporter extends CamelElementImporter { - - + @objid ("32c25f85-bc20-401f-815f-a2f9f1f723d1") public MmsObjectImporter() { } - public MmsObjectImporter(T elt) { - super(elt); - } - + @objid ("140c96f9-c433-40bc-999a-bf1146366e65") @Override public Object accept(ICamelImporterVisitor v) { return v.visitMmsObject(this); } + @objid ("74286bf3-f767-4b23-9725-f7c02459320c") @Override - abstract public CamelElement createCamelElt(V owner); + public abstract CamelElement createCamelElt(V owner); + @objid ("f977872f-84b1-4329-8358-d58336fe03fd") @Override public void setProperties(W elt) { elt.setId(this._element.getId()); elt.setUri(this._element.getUri()); elt.setName(this._element.getName()); elt.setDescription(this._element.getDescription()); - } + @objid ("da1b14e1-929b-4098-8d82-a5dd8568a00d") @Override public void attach(W elt, Z context) { - if (elt instanceof MmsConcept) { - context.getConcept().add((MmsConcept)elt); - }else if (elt instanceof MmsConceptInstance) { - context.getConceptInstance().add((MmsConceptInstance)elt); - } + if (elt instanceof MmsConcept) { + context.getConcept().add((MmsConcept)elt); + }else if (elt instanceof MmsConceptInstance) { + context.getConceptInstance().add((MmsConceptInstance)elt); + } + } + + @objid ("d2b35d4b-9f8d-4ece-a1c3-76d9495a30be") + public MmsObjectImporter(T elt) { + super(elt); } } diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/walker/CamelWalker.java b/src/main/java/fr/softeam/cameldesigner/exchange/walker/CamelWalker.java index da284025..0c596733 100644 --- a/src/main/java/fr/softeam/cameldesigner/exchange/walker/CamelWalker.java +++ b/src/main/java/fr/softeam/cameldesigner/exchange/walker/CamelWalker.java @@ -1,32 +1,32 @@ package fr.softeam.cameldesigner.exchange.walker; import java.util.Collection; -import org.eclipse.emf.cdo.CDOObject; +import com.modeliosoft.modelio.javadesigner.annotations.objid; import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement; import fr.softeam.cameldesigner.exchange.importer.CamelContainment; import fr.softeam.cameldesigner.exchange.importer.ImportProcess; import fr.softeam.cameldesigner.exchange.importer.ImporterFactory; import fr.softeam.cameldesigner.exchange.importer.core.CamelElementImporter; +import org.eclipse.emf.cdo.CDOObject; - +@objid ("caa31436-78ea-4c8a-8512-db7bd1a4aeea") public class CamelWalker implements IWalker { - + @objid ("64e1d14c-7456-49fd-864e-424acd033548") private ImportProcess importProcess; - + @objid ("818c1fbf-705a-44e1-bfbb-96a0d6a0db7b") public CamelWalker(ImportProcess importProcess) { this.importProcess = importProcess; } - + @objid ("e9fb16c6-bf07-4bce-869f-f85d0496d7df") @Override public void walk(CDOObject element) { - if(element != null) { CamelElementImporter importer; try { importer = ImporterFactory.getImporter(element); - + if (importer != null) { Object childs = CamelContainment.getChilds(importer); if (childs != null) { @@ -36,7 +36,7 @@ public void walk(CDOObject element) { } } } - + } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); diff --git a/src/main/java/fr/softeam/cameldesigner/handlers/commands/ExportModelCommand.java b/src/main/java/fr/softeam/cameldesigner/handlers/commands/ExportModelCommand.java index 80ee954f..af3f33a6 100644 --- a/src/main/java/fr/softeam/cameldesigner/handlers/commands/ExportModelCommand.java +++ b/src/main/java/fr/softeam/cameldesigner/handlers/commands/ExportModelCommand.java @@ -2,16 +2,15 @@ import java.util.List; import com.modeliosoft.modelio.javadesigner.annotations.objid; +import fr.softeam.cameldesigner.api.ICamelDesignerPeerModule; +import fr.softeam.cameldesigner.ui.WizardExport; import org.eclipse.swt.widgets.Display; import org.modelio.api.module.IModule; import org.modelio.api.module.command.DefaultModuleCommandHandler; import org.modelio.vcore.smkernel.mapi.MObject; -import fr.softeam.cameldesigner.api.ICamelDesignerPeerModule; -import fr.softeam.cameldesigner.ui.WizardExport; @objid ("330edc55-1a9c-496d-9ac1-caa6787c7cb7") public class ExportModelCommand extends DefaultModuleCommandHandler { - @objid ("7bd24768-2ef2-4f62-ac28-94559e720ca1") public ExportModelCommand() { super(); diff --git a/src/main/java/fr/softeam/cameldesigner/handlers/commands/ImportModelCommand.java b/src/main/java/fr/softeam/cameldesigner/handlers/commands/ImportModelCommand.java index 5a277aa1..355cfd2a 100644 --- a/src/main/java/fr/softeam/cameldesigner/handlers/commands/ImportModelCommand.java +++ b/src/main/java/fr/softeam/cameldesigner/handlers/commands/ImportModelCommand.java @@ -2,17 +2,16 @@ import java.util.List; import com.modeliosoft.modelio.javadesigner.annotations.objid; +import fr.softeam.cameldesigner.ui.WizardImport; import org.eclipse.swt.widgets.Display; import org.modelio.api.module.IModule; import org.modelio.api.module.command.DefaultModuleCommandHandler; import org.modelio.metamodel.uml.infrastructure.Profile; import org.modelio.metamodel.uml.statik.Package; import org.modelio.vcore.smkernel.mapi.MObject; -import fr.softeam.cameldesigner.ui.WizardImport; @objid ("1db725ea-c384-4cd8-bf87-df82b8ff219f") public class ImportModelCommand extends DefaultModuleCommandHandler { - @objid ("2403f9f2-9828-431f-a7a5-e0cd68fc713a") private String[] filterExtension = new String[] {"*.camel", "*.xmi"}; @@ -24,7 +23,6 @@ public ImportModelCommand() { @objid ("4e8c4c64-40e0-4f3a-8737-137365c18a1a") @Override public void actionPerformed(final List selectedElements, final IModule module) { - final WizardImport dialog = new WizardImport(Display.getCurrent().getActiveShell()); dialog.setSelectedElt((org.modelio.metamodel.uml.statik.Package) selectedElements.get(0)); dialog.open(); diff --git a/src/main/java/fr/softeam/cameldesigner/handlers/propertypages/core/CamelModelPropertyPage.java b/src/main/java/fr/softeam/cameldesigner/handlers/propertypages/core/CamelModelPropertyPage.java index a51cad74..a7d629db 100644 --- a/src/main/java/fr/softeam/cameldesigner/handlers/propertypages/core/CamelModelPropertyPage.java +++ b/src/main/java/fr/softeam/cameldesigner/handlers/propertypages/core/CamelModelPropertyPage.java @@ -1,9 +1,9 @@ package fr.softeam.cameldesigner.handlers.propertypages.core; import com.modeliosoft.modelio.javadesigner.annotations.objid; -import org.modelio.api.module.propertiesPage.IModulePropertyTable; import fr.softeam.cameldesigner.api.camelcore.standard.package_.CamelModel; import fr.softeam.cameldesigner.utils.CamelDesignerResourcesManager; +import org.modelio.api.module.propertiesPage.IModulePropertyTable; @objid ("6ee8965d-b749-42c1-bcc9-5b016e786200") public class CamelModelPropertyPage extends FeaturePackagePropertyPage { @@ -11,7 +11,7 @@ public class CamelModelPropertyPage extends FeaturePackage * This method handles the changes of the given property, identified by its row index, of a selected element * to a new value. * @param MObject : the selected element - * + * * @param row : the row of the changed property * @param value : the new value of the property */ @@ -19,7 +19,7 @@ public class CamelModelPropertyPage extends FeaturePackage @Override public void changeProperty(int row, String value) { super.changeProperty(row, value); - + if(this._currentRow == 1){ this._element.setApplicationName(value); }else if (this._currentRow == 2) { @@ -31,17 +31,17 @@ public void changeProperty(int row, String value) { /** * This method handles the construction of the property table of a selected element * @param MObject : the selected element - * + * * @param table : the property table to fulfill */ @objid ("43fc0f9d-24ea-4f6b-9357-991641830f78") @Override public void update(IModulePropertyTable table) { super.update(table); - + //Application Name table.addProperty(CamelDesignerResourcesManager.getPropertyName(CamelModel.APPLICATIONNAME_TAGTYPE), getNotNull(this._element.getApplicationName())); - + //Application Version table.addProperty(CamelDesignerResourcesManager.getPropertyName(CamelModel.APPLICATIONVERSION_TAGTYPE), getNotNull(this._element.getApplicationVersion())); } diff --git a/src/main/java/fr/softeam/cameldesigner/handlers/propertypages/core/FeaturePackagePropertyPage.java b/src/main/java/fr/softeam/cameldesigner/handlers/propertypages/core/FeaturePackagePropertyPage.java index 401ffd87..ecdff78f 100644 --- a/src/main/java/fr/softeam/cameldesigner/handlers/propertypages/core/FeaturePackagePropertyPage.java +++ b/src/main/java/fr/softeam/cameldesigner/handlers/propertypages/core/FeaturePackagePropertyPage.java @@ -1,18 +1,20 @@ package fr.softeam.cameldesigner.handlers.propertypages.core; -import org.modelio.api.module.propertiesPage.IModulePropertyTable; +import com.modeliosoft.modelio.javadesigner.annotations.objid; import fr.softeam.cameldesigner.api.camelcore.standard.package_.FeaturePackage; +import org.modelio.api.module.propertiesPage.IModulePropertyTable; - +@objid ("d32df3f4-bef9-487e-bd95-a5da94c8d85b") public class FeaturePackagePropertyPage extends FeaturePropertyPage { /** * This method handles the changes of the given property, identified by its row index, of a selected element * to a new value. * @param MObject : the selected element - * + * * @param row : the row of the changed property * @param value : the new value of the property */ + @objid ("c2d2e6aa-a5d8-4fce-b871-9da86a646ba2") @Override public void changeProperty(int row, String value) { super.changeProperty(row, value); @@ -21,14 +23,16 @@ public void changeProperty(int row, String value) { /** * This method handles the construction of the property table of a selected element * @param MObject : the selected element - * + * * @param table : the property table to fulfill */ + @objid ("04b2305a-b787-46ce-9fff-c274019787ac") @Override public void update(IModulePropertyTable table) { super.update(table); } + @objid ("ee1c377a-f29b-4965-8b9d-983ca96046ab") public FeaturePackagePropertyPage(T elt) { super(elt); } diff --git a/src/main/java/fr/softeam/cameldesigner/handlers/tools/core/CreateMeasurableAttributeTool.java b/src/main/java/fr/softeam/cameldesigner/handlers/tools/core/CreateMeasurableAttributeTool.java index e3ceaf31..d38b9ef5 100644 --- a/src/main/java/fr/softeam/cameldesigner/handlers/tools/core/CreateMeasurableAttributeTool.java +++ b/src/main/java/fr/softeam/cameldesigner/handlers/tools/core/CreateMeasurableAttributeTool.java @@ -1,6 +1,12 @@ package fr.softeam.cameldesigner.handlers.tools.core; import java.util.List; +import com.modeliosoft.modelio.javadesigner.annotations.objid; +import fr.softeam.cameldesigner.api.ICamelDesignerPeerModule; +import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelAttribute; +import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.Feature; +import fr.softeam.cameldesigner.impl.CamelDesignerModule; +import fr.softeam.cameldesigner.utils.CamelFactory; import org.eclipse.draw2d.geometry.Rectangle; import org.modelio.api.modelio.diagram.IDiagramGraphic; import org.modelio.api.modelio.diagram.IDiagramHandle; @@ -12,15 +18,10 @@ import org.modelio.metamodel.uml.infrastructure.ModelElement; import org.modelio.metamodel.uml.statik.Class; import org.modelio.vcore.smkernel.mapi.MObject; -import fr.softeam.cameldesigner.api.ICamelDesignerPeerModule; -import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelAttribute; -import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.Feature; -import fr.softeam.cameldesigner.impl.CamelDesignerModule; -import fr.softeam.cameldesigner.utils.CamelFactory; - +@objid ("803efa81-617c-469c-b48e-94dcde82d373") public class CreateMeasurableAttributeTool extends DefaultBoxTool { - + @objid ("c1fb65c3-d0aa-47a5-843d-54652038ecd0") @Override public boolean acceptElement(final IDiagramHandle diagramHandle, final IDiagramGraphic targetNode) { MObject owner = targetNode.getElement(); @@ -30,7 +31,7 @@ public boolean acceptElement(final IDiagramHandle diagramHandle, final IDiagramG && (((ModelElement)owner).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, Feature.STEREOTYPE_NAME))); } - + @objid ("3e453fa0-b415-42e8-8c98-72cb73026a22") @Override public void actionPerformed(final IDiagramHandle diagramHandle, final IDiagramGraphic parent, final Rectangle rect) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); diff --git a/src/main/java/fr/softeam/cameldesigner/impl/CamelDesignerModule.java b/src/main/java/fr/softeam/cameldesigner/impl/CamelDesignerModule.java index 341cfce4..18eec30d 100644 --- a/src/main/java/fr/softeam/cameldesigner/impl/CamelDesignerModule.java +++ b/src/main/java/fr/softeam/cameldesigner/impl/CamelDesignerModule.java @@ -1,13 +1,13 @@ package fr.softeam.cameldesigner.impl; import com.modeliosoft.modelio.javadesigner.annotations.objid; +import fr.softeam.cameldesigner.profiler.ProfilerDaemon; import org.modelio.api.module.AbstractJavaModule; import org.modelio.api.module.context.IModuleContext; import org.modelio.api.module.lifecycle.IModuleLifeCycleHandler; import org.modelio.api.module.mda.IMdaExpert; import org.modelio.api.module.parameter.IParameterEditionModel; import org.modelio.metamodel.uml.infrastructure.Stereotype; -import fr.softeam.cameldesigner.profiler.ProfilerDaemon; @objid ("8480a3b7-a19c-434e-b676-2cae92031b88") public class CamelDesignerModule extends AbstractJavaModule { @@ -26,12 +26,13 @@ public class CamelDesignerModule extends AbstractJavaModule { @objid ("637a5b96-f694-4b69-9e73-fdb2e8297735") public static CamelLogService logService; + @objid ("0a9d8ed3-7a82-45a2-ae22-dfa5a1347615") public static ProfilerDaemon daemon; @objid ("58ad7d4c-51e4-476c-b15e-443b4b46efb7") public CamelDesignerModule(final IModuleContext moduleContext) { super(moduleContext); - + CamelDesignerModule.instance = this; CamelDesignerModule.logService = new CamelLogService(this.getModuleContext().getLogService(), this); CamelDesignerModule.daemon = new ProfilerDaemon(); @@ -91,14 +92,14 @@ public IMdaExpert getMdaExpert(final Stereotype st) { /** * Generated expert looking for a MDA expert in the generated MDA API. - * + * * @param st a stereotype owned by the current module. * @return a MDA expert belonging to the MDA API or null. */ @objid ("ddbc46ba-b0a2-4b83-a992-693c23594931") private IMdaExpert getGeneratedMdaExpert(final Stereotype st) { switch (st.getUuid()) { - default: return null; + default: return null; } } diff --git a/src/main/java/fr/softeam/cameldesigner/profiler/ProfilerDaemon.java b/src/main/java/fr/softeam/cameldesigner/profiler/ProfilerDaemon.java index f2884fa6..c439e4f4 100644 --- a/src/main/java/fr/softeam/cameldesigner/profiler/ProfilerDaemon.java +++ b/src/main/java/fr/softeam/cameldesigner/profiler/ProfilerDaemon.java @@ -1,11 +1,11 @@ package fr.softeam.cameldesigner.profiler; -public class ProfilerDaemon { - - +import com.modeliosoft.modelio.javadesigner.annotations.objid; +@objid ("235c2785-ceff-4111-a446-d85afdacf1a3") +public class ProfilerDaemon { + @objid ("437aacb5-9bfc-4c8c-a159-0f6bdf18bd48") public ProfilerDaemon() { - } } diff --git a/src/main/java/fr/softeam/cameldesigner/profiler/data/Category.java b/src/main/java/fr/softeam/cameldesigner/profiler/data/Category.java index 5771ebd0..29209cde 100644 --- a/src/main/java/fr/softeam/cameldesigner/profiler/data/Category.java +++ b/src/main/java/fr/softeam/cameldesigner/profiler/data/Category.java @@ -1,57 +1,56 @@ - package fr.softeam.cameldesigner.profiler.data; import java.util.HashMap; import java.util.Map; import javax.annotation.Generated; import com.google.gson.annotations.SerializedName; - +import com.modeliosoft.modelio.javadesigner.annotations.objid; /** * Items *

- * - * */ +@objid ("bf1a6820-4f7d-4f31-bcc7-23294562384b") @Generated("jsonschema2pojo") public enum Category { - @SerializedName("cpu") - CPU("cpu"), + CPU ("cpu"), @SerializedName("gpu") - GPU("gpu"), + GPU ("gpu"), @SerializedName("fpga") - FPGA("fpga"), + FPGA ("fpga"), @SerializedName("vm") - VM("vm"), + VM ("vm"), @SerializedName("docker") - DOCKER("docker"), + DOCKER ("docker"), @SerializedName("serverless") - SERVERLESS("serverless"), + SERVERLESS ("serverless"), @SerializedName("hpc") - HPC("hpc"); + HPC ("hpc"); + + @objid ("ac97fb4e-3ffd-4b95-a997-2c32cb65bbb3") private final String value; - private final static Map CONSTANTS = new HashMap(); - static { - for (Category c: values()) { - CONSTANTS.put(c.value, c); - } - } + @objid ("6628276f-d656-418e-a2e7-4df942fb8c21") + private static final Map CONSTANTS = new HashMap(); + @objid ("a90f4a54-8b09-4531-bfbc-34fe598a147e") Category(String value) { this.value = value; } + @objid ("3bca6de0-5f0b-48d6-a6ba-970a11477827") @Override public String toString() { return this.value; } + @objid ("1a7ced66-12ef-4f5b-b267-1d0337a79b36") public String value() { return this.value; } + @objid ("4ca162cf-99ef-4115-9b77-4a10ecf1d5c9") public static Category fromValue(String value) { Category constant = CONSTANTS.get(value); if (constant == null) { @@ -61,4 +60,10 @@ public static Category fromValue(String value) { } } + +static { + for (Category c: values()) { + CONSTANTS.put(c.value, c); + } +} } diff --git a/src/main/java/fr/softeam/cameldesigner/profiler/data/ProvidingInfo.java b/src/main/java/fr/softeam/cameldesigner/profiler/data/ProvidingInfo.java index f0b2cc72..d805f39b 100644 --- a/src/main/java/fr/softeam/cameldesigner/profiler/data/ProvidingInfo.java +++ b/src/main/java/fr/softeam/cameldesigner/profiler/data/ProvidingInfo.java @@ -1,4 +1,3 @@ - package fr.softeam.cameldesigner.profiler.data; import java.util.ArrayList; @@ -6,54 +5,55 @@ import javax.annotation.Generated; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; - +import com.modeliosoft.modelio.javadesigner.annotations.objid; /** * Root *

- * - * */ +@objid ("2f882cea-0d39-4c82-979e-eb574e161383") @Generated("jsonschema2pojo") public class ProvidingInfo { - /** * Component_name *

- * + * * (Required) - * */ + @objid ("1bcda391-4ee6-4e49-986d-64e0c9d68b36") @SerializedName("component_name") @Expose private String componentName = ""; + /** * Categories *

- * + * * (Required) - * */ + @objid ("b53fab3c-29ce-457f-a103-12bc2365e7b1") @SerializedName("categories") @Expose private List categories = new ArrayList<>(); + /** * Language *

- * + * * (Required) - * */ + @objid ("2f5e047d-eeb2-4517-b520-ec193ca097e4") @SerializedName("language") @Expose private String language = ""; + /** * Repository *

- * + * * (Required) - * */ + @objid ("e0a4b6bd-c519-40db-84a4-7322f3dcbf3c") @SerializedName("repository") @Expose private String repository = ""; @@ -61,10 +61,10 @@ public class ProvidingInfo { /** * Component_name *

- * + * * (Required) - * */ + @objid ("a7fb52f6-c4fb-4c65-ad8c-b1876bd77174") public String getComponentName() { return componentName; } @@ -72,10 +72,10 @@ public String getComponentName() { /** * Component_name *

- * + * * (Required) - * */ + @objid ("88e87137-a568-49a0-9925-c0ace2f268a7") public void setComponentName(String componentName) { this.componentName = componentName; } @@ -83,10 +83,10 @@ public void setComponentName(String componentName) { /** * Categories *

- * + * * (Required) - * */ + @objid ("c88dd5d0-fe29-4c08-a305-399157240f6a") public List getCategories() { return categories; } @@ -94,10 +94,10 @@ public List getCategories() { /** * Categories *

- * + * * (Required) - * */ + @objid ("1951a11d-6859-4c94-b5b7-c5f9b731f3a6") public void setCategories(List categories) { this.categories = categories; } @@ -105,10 +105,10 @@ public void setCategories(List categories) { /** * Language *

- * + * * (Required) - * */ + @objid ("c473e0fb-a6d6-4954-a965-ce2f7fe952d8") public String getLanguage() { return language; } @@ -116,10 +116,10 @@ public String getLanguage() { /** * Language *

- * + * * (Required) - * */ + @objid ("e1e86394-4068-4b69-8097-bc48fd12b658") public void setLanguage(String language) { this.language = language; } @@ -127,10 +127,10 @@ public void setLanguage(String language) { /** * Repository *

- * + * * (Required) - * */ + @objid ("73fa2866-e298-4086-a473-87e014b7cd1f") public String getRepository() { return repository; } @@ -138,10 +138,10 @@ public String getRepository() { /** * Repository *

- * + * * (Required) - * */ + @objid ("1fa33433-9426-441c-9ef7-ceb57e65c17a") public void setRepository(String repository) { this.repository = repository; } diff --git a/src/main/java/fr/softeam/cameldesigner/profiler/data/ProvidingInfoResponse.java b/src/main/java/fr/softeam/cameldesigner/profiler/data/ProvidingInfoResponse.java index 9ffd1f7e..554146a9 100644 --- a/src/main/java/fr/softeam/cameldesigner/profiler/data/ProvidingInfoResponse.java +++ b/src/main/java/fr/softeam/cameldesigner/profiler/data/ProvidingInfoResponse.java @@ -1,47 +1,46 @@ - package fr.softeam.cameldesigner.profiler.data; import javax.annotation.Generated; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; - +import com.modeliosoft.modelio.javadesigner.annotations.objid; /** * Root *

- * - * */ +@objid ("5161f725-644b-4842-ba04-ae88d86a0e2d") @Generated("jsonschema2pojo") public class ProvidingInfoResponse { - /** * Status *

* * (Required) - * */ + @objid ("1e8b8d87-9027-463e-869c-9978e8f3a305") @SerializedName("status") @Expose private String status = ""; + /** * Code *

* * (Required) - * */ + @objid ("e6226852-f769-4049-8a71-5ad7243f9173") @SerializedName("code") @Expose private String code = ""; + /** * Message *

* * (Required) - * */ + @objid ("3dd3f347-b8e5-4302-a080-6d35a4af3224") @SerializedName("message") @Expose private String message = ""; @@ -51,8 +50,8 @@ public class ProvidingInfoResponse { *

* * (Required) - * */ + @objid ("b848cb02-d9c2-4306-91aa-aa0d4dc9e905") public String getStatus() { return status; } @@ -62,8 +61,8 @@ public String getStatus() { *

* * (Required) - * */ + @objid ("efc3dc91-e0e6-495e-a260-230d74617b9b") public void setStatus(String status) { this.status = status; } @@ -73,8 +72,8 @@ public void setStatus(String status) { *

* * (Required) - * */ + @objid ("79670efe-8278-404a-8a71-670bc6b4c499") public String getCode() { return code; } @@ -84,8 +83,8 @@ public String getCode() { *

* * (Required) - * */ + @objid ("e5d7d4fb-0aff-4207-8167-19d4c5030a36") public void setCode(String code) { this.code = code; } @@ -95,8 +94,8 @@ public void setCode(String code) { *

* * (Required) - * */ + @objid ("2b61d9a4-d777-4172-804c-8bc159ac194c") public String getMessage() { return message; } @@ -106,8 +105,8 @@ public String getMessage() { *

* * (Required) - * */ + @objid ("9adc3549-a689-44a9-8345-4701dba99258") public void setMessage(String message) { this.message = message; } diff --git a/src/main/java/fr/softeam/cameldesigner/profiler/data/RequestResultResponse.java b/src/main/java/fr/softeam/cameldesigner/profiler/data/RequestResultResponse.java index 2032a97f..f463f528 100644 --- a/src/main/java/fr/softeam/cameldesigner/profiler/data/RequestResultResponse.java +++ b/src/main/java/fr/softeam/cameldesigner/profiler/data/RequestResultResponse.java @@ -1,38 +1,36 @@ - package fr.softeam.cameldesigner.profiler.data; import java.util.List; import javax.annotation.Generated; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; - +import com.modeliosoft.modelio.javadesigner.annotations.objid; /** * Root *

- * - * */ +@objid ("4c0a2eaa-2f64-438b-b564-55eae3ebb477") @Generated("jsonschema2pojo") public class RequestResultResponse { - /** * Component_name *

* * (Required) - * */ + @objid ("5da98094-b792-4b1a-bdc3-3677f28fd7e1") @SerializedName("component_name") @Expose private String componentName = ""; + /** * Suggested_categories *

* * (Required) - * */ + @objid ("a01f5f7a-06ae-4a24-bf09-9395b2e6f2c2") @SerializedName("suggested_categories") @Expose private List suggestedCategories = null; @@ -42,8 +40,8 @@ public class RequestResultResponse { *

* * (Required) - * */ + @objid ("3ea60f88-27a1-4bbc-9c74-13e62b617997") public String getComponentName() { return componentName; } @@ -53,8 +51,8 @@ public String getComponentName() { *

* * (Required) - * */ + @objid ("b06b1d8c-297e-47fd-9403-49e3bbfb646c") public void setComponentName(String componentName) { this.componentName = componentName; } @@ -64,8 +62,8 @@ public void setComponentName(String componentName) { *

* * (Required) - * */ + @objid ("283b1c87-771a-4c9a-86c0-c486e8c88133") public List getSuggestedCategories() { return suggestedCategories; } @@ -75,8 +73,8 @@ public List getSuggestedCategories() { *

* * (Required) - * */ + @objid ("c1169c30-5850-451a-aeb1-33632592b78d") public void setSuggestedCategories(List suggestedCategories) { this.suggestedCategories = suggestedCategories; } diff --git a/src/main/java/fr/softeam/cameldesigner/profiler/data/SuggestedCategory.java b/src/main/java/fr/softeam/cameldesigner/profiler/data/SuggestedCategory.java index 88741eb2..07dfd8ab 100644 --- a/src/main/java/fr/softeam/cameldesigner/profiler/data/SuggestedCategory.java +++ b/src/main/java/fr/softeam/cameldesigner/profiler/data/SuggestedCategory.java @@ -1,57 +1,56 @@ - package fr.softeam.cameldesigner.profiler.data; import java.util.HashMap; import java.util.Map; import javax.annotation.Generated; import com.google.gson.annotations.SerializedName; - +import com.modeliosoft.modelio.javadesigner.annotations.objid; /** * Items *

- * - * */ +@objid ("94f409f8-97a8-42b0-95d8-0b26332fd03c") @Generated("jsonschema2pojo") public enum SuggestedCategory { - @SerializedName("cpu") - CPU("cpu"), + CPU ("cpu"), @SerializedName("gpu") - GPU("gpu"), + GPU ("gpu"), @SerializedName("fpga") - FPGA("fpga"), + FPGA ("fpga"), @SerializedName("vm") - VM("vm"), + VM ("vm"), @SerializedName("docker") - DOCKER("docker"), + DOCKER ("docker"), @SerializedName("serverless") - SERVERLESS("serverless"), + SERVERLESS ("serverless"), @SerializedName("hpc") - HPC("hpc"); + HPC ("hpc"); + + @objid ("e7dfcabd-b855-49b2-8fc7-045b138ed6cb") private final String value; - private final static Map CONSTANTS = new HashMap(); - static { - for (SuggestedCategory c: values()) { - CONSTANTS.put(c.value, c); - } - } + @objid ("bd483c2b-97bd-4f40-9c56-c40e79df7629") + private static final Map CONSTANTS = new HashMap(); + @objid ("ac3f27e7-6e7e-45a2-8499-722d2d80680f") SuggestedCategory(String value) { this.value = value; } + @objid ("71f23a7d-5c2c-45c0-9b9c-7a3ee065c467") @Override public String toString() { return this.value; } + @objid ("dad28401-2c60-4133-89e9-f3a73d0dc02f") public String value() { return this.value; } + @objid ("07d35530-9a94-4fe6-852d-6a1da3a9b1bf") public static SuggestedCategory fromValue(String value) { SuggestedCategory constant = CONSTANTS.get(value); if (constant == null) { @@ -61,4 +60,10 @@ public static SuggestedCategory fromValue(String value) { } } + +static { + for (SuggestedCategory c: values()) { + CONSTANTS.put(c.value, c); + } +} } diff --git a/src/main/java/fr/softeam/cameldesigner/ui/WizardImport.java b/src/main/java/fr/softeam/cameldesigner/ui/WizardImport.java index 72991733..4840f5f8 100644 --- a/src/main/java/fr/softeam/cameldesigner/ui/WizardImport.java +++ b/src/main/java/fr/softeam/cameldesigner/ui/WizardImport.java @@ -2,6 +2,12 @@ import java.io.File; import com.modeliosoft.modelio.javadesigner.annotations.objid; +import fr.softeam.cameldesigner.exchange.importer.AbstractImporterService; +import fr.softeam.cameldesigner.exchange.importer.CamelImporterService; +import fr.softeam.cameldesigner.exchange.importer.XMIImporterService; +import fr.softeam.cameldesigner.impl.CamelDesignerModule; +import fr.softeam.cameldesigner.ui.composite.FileChooserComposite; +import fr.softeam.cameldesigner.ui.composite.ValidationBoutonComposite; import org.eclipse.swt.SWT; import org.eclipse.swt.events.SelectionAdapter; import org.eclipse.swt.events.SelectionEvent; @@ -11,12 +17,6 @@ import org.eclipse.swt.layout.FormLayout; import org.eclipse.swt.widgets.Shell; import org.modelio.api.modelio.model.ITransaction; -import fr.softeam.cameldesigner.exchange.importer.AbstractImporterService; -import fr.softeam.cameldesigner.exchange.importer.CamelImporterService; -import fr.softeam.cameldesigner.exchange.importer.XMIImporterService; -import fr.softeam.cameldesigner.impl.CamelDesignerModule; -import fr.softeam.cameldesigner.ui.composite.FileChooserComposite; -import fr.softeam.cameldesigner.ui.composite.ValidationBoutonComposite; /** * This class provides the Camel export dialog @@ -27,21 +27,21 @@ public class WizardImport extends AbstractSwtWizardWindow { @objid ("60740ef0-15b0-4759-8c52-f220b48c041a") private void createContents() { setLabels(); - + this.shell = new Shell(getParent(), 67696 | SWT.APPLICATION_MODAL | SWT.RESIZE | SWT.TITLE); this.shell.setLayout( new FormLayout()); this.shell.setText(this.frametitle); - + // File chooser composite this.fileChooserComposite = new FileChooserComposite(this.shell, SWT.NONE, SWT.OPEN); - + // Validation Composite this. validateComposite = new ValidationBoutonComposite(this.shell, SWT.NONE, this.cancelButton, this.validateButton); - + this.validateComposite.getValidationButton().addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { - + if (getFileChooserComposite().getCurrentFile() != null) { validationAction(); } else { @@ -49,7 +49,7 @@ public void widgetSelected(SelectionEvent e) { } } }); - + this.validateComposite.getCancelButton().addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { @@ -57,32 +57,32 @@ public void widgetSelected(SelectionEvent e) { cancelAction(); } }); - + final FormData fd_fileChooserComposite = new FormData(); fd_fileChooserComposite.right = new FormAttachment(100, 0); fd_fileChooserComposite.bottom = new FormAttachment(0, 50); fd_fileChooserComposite.top = new FormAttachment(0, 0); fd_fileChooserComposite.left = new FormAttachment(0, 0); this.fileChooserComposite.setLayoutData(fd_fileChooserComposite); - + final FormData fd_validateComposite = new FormData(); fd_validateComposite.top = new FormAttachment(this.fileChooserComposite, 5); fd_validateComposite.bottom = new FormAttachment(100, -5); fd_validateComposite.left = new FormAttachment(this.fileChooserComposite, 0, SWT.LEFT); fd_validateComposite.right = new FormAttachment(this.fileChooserComposite, 0, SWT.RIGHT); this.validateComposite.setLayoutData(fd_validateComposite); - + this.fileChooserComposite.getSearch().addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { WizardImport.this.fileChooserComposite.searchFile(); } }); - + setDefaultDialog(); this.shell.pack(); this.shell.setMinimumSize(new Point(this.shell.getBounds().width, this.shell.getBounds().height)); - + this.validateComposite.getValidationButton().setFocus(); } @@ -90,31 +90,31 @@ public void widgetSelected(SelectionEvent e) { @Override public void validationAction() { File theFile = getFileChooserComposite().getCurrentFile(); - + if (theFile.exists() && theFile.isFile()) { - + try(ITransaction t = CamelDesignerModule.getInstance().getModuleContext().getModelingSession().createTransaction("Import") ) { - + AbstractImporterService importerService = null; - + if (theFile.getAbsolutePath().endsWith(".xmi")) { importerService = new XMIImporterService(); - + }else { importerService = new CamelImporterService(); } - - + + importerService.importFromFile(this.selectedElt, theFile.getAbsolutePath()); - + t.commit(); completeBox(); - - + + } catch (final Exception e) { CamelDesignerModule.logService.error(e); } - + } else { fileDontExist(); }