From b8211d88f56d4fed3bf85d1b5108cb17c11467de Mon Sep 17 00:00:00 2001 From: Etienne Brosse Date: Wed, 27 Apr 2022 17:48:46 +0200 Subject: [PATCH] fixes --- pom.xml | 2 +- src/main/conf/module.xml | 26 - .../res/generated/patterns/framework.umlt | Bin 5950 -> 5950 bytes .../api/CamelDesignerProxyFactory.java | 569 +++++++++--------- .../infrastructure/dependency/Annotation.java | 55 +- .../dependency/PropertyDependency.java | 55 +- .../modelelement/CamelAttribute.java | 37 +- .../modelelement/CamelElement.java | 39 +- .../modelelement/ExpendableElement.java | 48 +- .../infrastructure/modelelement/Feature.java | 37 +- .../modelelement/NamedElement.java | 37 +- .../standard/artifact/FeatureArtifact.java | 55 +- .../attribute/AttributeAttribute.java | 73 +-- .../MeasurableAttributeAttribute.java | 66 +- .../attribute/QualityAttributeAttribute.java | 55 +- .../standard/class_/Application.java | 63 +- .../standard/class_/AttributeClass.java | 117 ++-- .../standard/class_/FeatureClass.java | 55 +- .../class_/MeasurableAttributeClass.java | 66 +- .../class_/QualityAttributeClass.java | 55 +- .../classifier/FeatureClassifier.java | 421 ++++++------- .../standard/connector/FeatureConnector.java | 55 +- .../standard/datatype/FeatureDataType.java | 55 +- .../enumeration/FeatureEnumeration.java | 55 +- .../standard/instance/FeatureInstance.java | 55 +- .../camelcore/standard/namespace/Action.java | 37 +- .../standard/package_/CamelModel.java | 263 ++++---- .../standard/package_/FeaturePackage.java | 180 +++--- .../camelcore/standard/package_/SubModel.java | 68 +-- .../camelcore/standard/port/FeaturePort.java | 55 +- .../abstractdiagram/AbstractCamelDiagram.java | 37 +- .../classdiagram/CamelModelDiagram.java | 55 +- .../standard/classdiagram/CamelViewPoint.java | 57 +- .../classdiagram/ConstraintModelDiagram.java | 55 +- .../DataInstanceModelDiagram.java | 55 +- .../classdiagram/DataTypeModelDiagram.java | 55 +- .../DeploymentInstanceModelDiagram.java | 55 +- .../DeploymentTypeModelDiagram.java | 55 +- .../classdiagram/ExecutionModelDiagram.java | 61 +- .../classdiagram/LocationModelDiagram.java | 55 +- .../classdiagram/MetadataModelDiagram.java | 55 +- .../MetricInstanceModelDiagram.java | 55 +- .../classdiagram/MetricTypeModelDiagram.java | 55 +- .../OrganisationModelDiagram.java | 55 +- .../classdiagram/RequirementModelDiagram.java | 55 +- .../classdiagram/ScalabilityModelDiagram.java | 55 +- .../classdiagram/SecurityModelDiagram.java | 55 +- .../classdiagram/TypeModelDiagram.java | 55 +- .../classdiagram/UnitModelDiagram.java | 55 +- .../constraint/AttributeConstraint.java | 71 ++- .../standard/constraint/CamelConstraint.java | 37 +- .../constraint/CompositeConstraint.java | 37 +- .../standard/constraint/IfThenConstraint.java | 74 +-- .../constraint/LogicalConstraint.java | 75 +-- .../standard/constraint/MetricConstraint.java | 71 ++- .../constraint/MetricVariableConstraint.java | 71 ++- .../standard/constraint/UnaryConstraint.java | 61 +- .../standard/package_/ConstraintModel.java | 55 +- .../DataInstanceBindableInstance.java | 61 +- .../api/datamodel/standard/class_/Data.java | 83 +-- .../datamodel/standard/class_/DataSource.java | 69 ++- .../standard/instance/DataInstance.java | 89 +-- .../standard/instance/DataSourceInstance.java | 73 +-- .../standard/package_/DataInstanceModel.java | 100 +-- .../standard/package_/DataModel.java | 37 +- .../standard/package_/DataTypeModel.java | 92 +-- .../connector/CommunicationInstance.java | 67 ++- .../connector/ComponentRelationInstance.java | 37 +- .../standard/connector/HostingInstance.java | 61 +- .../standard/instance/ComponentInstance.java | 89 +-- .../standard/instance/ContainerInstance.java | 92 +-- .../standard/instance/PaaSInstance.java | 61 +- .../instance/SoftwareComponentInstance.java | 125 ++-- .../standard/instance/VMInstance.java | 73 +-- .../package_/DeploymentInstanceModel.java | 130 ++-- .../port/CommunicationPortInstance.java | 61 +- .../standard/port/HostingPortInstance.java | 61 +- .../standard/artifact/BuildConfiguration.java | 95 ++- .../artifact/ClusterConfiguration.java | 86 +-- .../standard/artifact/Configuration.java | 37 +- .../standard/artifact/EventConfiguration.java | 83 +-- .../standard/artifact/PaaSConfiguration.java | 87 ++- .../artifact/ScriptConfiguration.java | 135 ++--- .../artifact/ServerlessConfiguration.java | 128 ++-- .../standard/class_/RequirementSet.java | 109 ++-- .../standard/component/CamelComponent.java | 94 +-- .../standard/component/Container.java | 82 +-- .../standard/component/PaaS.java | 55 +- .../standard/component/SoftwareComponent.java | 141 +++-- .../standard/component/VM.java | 55 +- .../standard/connector/Communication.java | 67 ++- .../standard/connector/ComponentRelation.java | 37 +- .../standard/connector/Hosting.java | 72 +-- .../standard/connector/LocationCoupling.java | 82 +-- .../standard/package_/DeploymentModel.java | 43 +- .../package_/DeploymentTypeModel.java | 173 +++--- .../standard/port/CommunicationPort.java | 79 ++- .../standard/port/HostingPort.java | 55 +- .../class_/ApplicationMeasurement.java | 55 +- .../executionmodel/standard/class_/Cause.java | 74 +-- .../class_/CommunicationMeasurement.java | 79 +-- .../standard/class_/ContainerMeasurement.java | 67 ++- .../standard/class_/DataMeasurement.java | 67 ++- .../standard/class_/HistoryInfo.java | 97 +-- .../standard/class_/HistoryRecord.java | 124 ++-- .../standard/class_/Measurement.java | 65 +- .../standard/class_/PaaSMeasurement.java | 67 ++- .../standard/class_/RuleTrigger.java | 69 ++- .../standard/class_/SLOViolation.java | 76 +-- .../class_/SoftwareComponentMeasurement.java | 67 ++- .../standard/class_/VMMeasurement.java | 67 ++- .../standard/instance/ActionInstance.java | 79 ++- .../standard/package_/ExecutionModel.java | 208 ++++--- .../standard/enumeration/CloudLocation.java | 95 +-- .../enumeration/GeographicalRegion.java | 64 +- .../standard/enumeration/Location.java | 45 +- .../standard/package_/LocationModel.java | 98 +-- .../modelelement/MmsObject.java | 53 +- .../standard/attribute/MmsProperty.java | 100 ++- .../attributelink/MmsPropertyInstance.java | 75 +-- .../standard/class_/MmsConcept.java | 106 ++-- .../standard/instance/MmsConceptInstance.java | 70 +-- .../standard/package_/MetaDataModel.java | 91 +-- .../standard/class_/AttributeContext.java | 83 +-- .../standard/class_/CompositeMetric.java | 75 +-- .../class_/CompositeMetricContext.java | 75 +-- .../metricmodel/standard/class_/Function.java | 71 ++- .../metricmodel/standard/class_/Metric.java | 44 +- .../standard/class_/MetricContext.java | 80 ++- .../standard/class_/MetricObjectBinding.java | 73 +-- .../standard/class_/MetricTemplate.java | 123 ++-- .../standard/class_/MetricVariable.java | 112 ++-- .../standard/class_/ObjectContext.java | 73 +-- .../standard/class_/RawMetric.java | 55 +- .../standard/class_/RawMetricContext.java | 61 +- .../metricmodel/standard/class_/Schedule.java | 93 ++- .../metricmodel/standard/class_/Window.java | 93 ++- .../standard/component/Sensor.java | 71 ++- .../standard/instance/MetricInstance.java | 76 +-- .../package_/MetricInstanceModel.java | 96 +-- .../standard/package_/MetricModel.java | 37 +- .../standard/package_/MetricTypeModel.java | 217 ++++--- .../standard/class_/CloudCredentials.java | 103 ++-- .../standard/class_/CloudProvider.java | 87 ++- .../standard/class_/Credentials.java | 37 +- .../standard/class_/DataResourceFilter.java | 96 +-- .../standard/class_/Entity.java | 55 +- .../standard/class_/ExternalIdentifier.java | 63 +- .../standard/class_/ModelResourceFilter.java | 71 ++- .../standard/class_/Organisation.java | 95 +-- .../standard/class_/Permission.java | 93 +-- .../standard/class_/PlatformCredentials.java | 63 +- .../standard/class_/ResourceFilter.java | 45 +- .../standard/class_/Role.java | 55 +- .../standard/class_/RoleAssignment.java | 100 +-- .../class_/ServiceResourceFilter.java | 71 ++- .../SoftwareComponentResourceFilter.java | 80 +-- .../standard/class_/User.java | 180 +++--- .../standard/class_/UserGroup.java | 67 ++- .../standard/package_/OrganisationModel.java | 226 +++---- .../class_/HorizontalScaleRequirement.java | 71 ++- .../standard/class_/LocationRequirement.java | 74 +-- .../standard/class_/OSRequirement.java | 71 ++- .../class_/OptimisationRequirement.java | 75 +-- .../standard/class_/PaaSRequirement.java | 55 +- .../standard/class_/ProviderRequirement.java | 71 ++- .../standard/class_/ResourceRequirement.java | 55 +- .../standard/class_/SecurityRequirement.java | 66 +- .../class_/ServiceLevelObjective.java | 67 ++- .../class_/VerticalScaleRequirement.java | 55 +- .../enumeration/ImageRequirement.java | 63 +- .../generalclass/HardRequirement.java | 37 +- .../standard/generalclass/Requirement.java | 37 +- .../generalclass/ScaleRequirement.java | 37 +- .../generalclass/SoftRequirement.java | 45 +- .../standard/package_/RequirementModel.java | 120 ++-- .../standard/class_/BinaryEventPattern.java | 92 +-- .../standard/class_/Event.java | 37 +- .../standard/class_/EventPattern.java | 44 +- .../standard/class_/FunctionalEvent.java | 67 ++- .../class_/HorizontalScalingAction.java | 63 +- .../standard/class_/NonFunctionalEvent.java | 69 ++- .../standard/class_/ScalabilityRule.java | 73 +-- .../standard/class_/SingleEvent.java | 37 +- .../standard/class_/Timer.java | 85 ++- .../standard/class_/UnaryEventPattern.java | 78 +-- .../class_/VerticalScalingAction.java | 55 +- .../standard/instance/EventInstance.java | 59 +- .../instance/FunctionalEventInstance.java | 61 +- .../instance/NonFunctionalEventInstance.java | 61 +- .../standard/namespace/ScalingAction.java | 43 +- .../standard/package_/ScalabilityModel.java | 167 ++--- .../standard/class_/Certifiable.java | 55 +- .../class_/CompositeSecurityMetric.java | 62 +- .../standard/class_/RawSecurityMetric.java | 62 +- .../standard/class_/SecurityAttribute.java | 62 +- .../standard/class_/SecurityControl.java | 120 ++-- .../standard/class_/SecurityDomain.java | 72 +-- .../standard/class_/SecuritySLO.java | 55 +- .../instance/SecurityMetricInstance.java | 55 +- .../standard/package_/SecurityModel.java | 192 +++--- .../standard/class_/BooleanValue.java | 63 +- .../standard/class_/DoubleValue.java | 63 +- .../typemodel/standard/class_/FloatValue.java | 63 +- .../typemodel/standard/class_/IntValue.java | 63 +- .../api/typemodel/standard/class_/Limit.java | 73 ++- .../standard/class_/NumericValue.java | 37 +- .../standard/class_/StringValue.java | 63 +- .../api/typemodel/standard/class_/Value.java | 39 +- .../standard/datatype/BooleanValueType.java | 55 +- .../standard/datatype/CamelList.java | 55 +- .../typemodel/standard/datatype/Range.java | 71 ++- .../standard/datatype/RangeUnion.java | 55 +- .../standard/datatype/StringValueType.java | 55 +- .../standard/datatype/ValueType.java | 45 +- .../standard/package_/TypeModel.java | 61 +- .../standard/datatype/CompositeUnit.java | 75 +-- .../standard/datatype/DimensionedUnit.java | 44 +- .../standard/datatype/Dimensionless.java | 55 +- .../standard/datatype/SingleUnit.java | 55 +- .../api/unitmodel/standard/datatype/Unit.java | 46 +- .../standard/datatype/UnitDimension.java | 55 +- .../standard/package_/UnitModel.java | 99 +-- .../exchange/exporter/ExporterFactory.java | 46 +- .../execution/ExecutionModelExporter.java | 6 +- .../OrganisationModelExporter.java | 6 +- .../scalability/ScalabilityModelExporter.java | 6 +- .../core/AttributeAttributePropertyPage.java | 1 + .../core/AttributeClassPropertyPage.java | 74 +++ ...surableAttributeAttributePropertyPage.java | 20 + .../MeasurableAttributeClassPropertyPage.java | 20 + .../core/MeasurableAttributePropertyPage.java | 40 -- .../core/QualityAttributePropertyPage.java | 40 -- .../GeographicalRegionPropertyPage.java | 19 + .../metric/RawMetricContextPropertyPage.java | 2 - .../impl/CamelDesignerModule.java | 2 +- .../utils/PrimitiveTypeUtils.java | 20 +- 237 files changed, 8776 insertions(+), 8491 deletions(-) delete mode 100644 src/main/java/fr/softeam/cameldesigner/handlers/propertypages/core/MeasurableAttributePropertyPage.java delete mode 100644 src/main/java/fr/softeam/cameldesigner/handlers/propertypages/core/QualityAttributePropertyPage.java diff --git a/pom.xml b/pom.xml index 9eb7464a..01f3740b 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ fr.softeam cameldesigner - 1.0.09 + 1.0.10 CamelDesigner diff --git a/src/main/conf/module.xml b/src/main/conf/module.xml index ef66d998..0b1d4b76 100644 --- a/src/main/conf/module.xml +++ b/src/main/conf/module.xml @@ -2,31 +2,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - @@ -2967,7 +2942,6 @@ - diff --git a/src/main/conf/res/generated/patterns/framework.umlt b/src/main/conf/res/generated/patterns/framework.umlt index 298179e18d317032e22ec2b2b019b2b795378d60..2089b54512af3c26451a6fa2dc97d12a151b8c76 100644 GIT binary patch delta 3783 zcmV;&4mk0?F1{`eP)h>@6aWYa2mr!fo3RZj0RzHbo0B*JEPp8p1$3lR4x|R7rC~U7 zj84H34g^MbPdX(AD9GrLZhjym1nEWv{{BAi#ruCR-{)MM^PKZ}uFln07krC^9zae` z4(PPZgaH0a!T=J0o2R3=i<_N29OfqOZtdk|@9ByVhq<`BdHx;6b^m80W(&7QAg%`h zfOcaFbGA+7&3~8mGkwr?^mQb>WuEcwn% z1G)&!0F{3yaESD4U2BAG(#w{2$dQf+yDNuL+|AYf_MRhN9{L-}o@4axZ}jueKpDR6O!wMVQh)mNNmGPs%)=NsPBe=P%u02|%U8Tg zi3g_|%2bT{*Ew2L0vqDYx01`(oVBYCzb3tr_sllmPhl0zTm0DXtUc{iXQT^^jU0;V zSY~MI3U;*VzAEf&cKL;Ikc4&H1`B6IU7V*$OfKIe zWZy#{`M{)kVobvsWXybE-V0B9S}Tfh zCaSp%am=L+E|lK%U+0V(G8!@20@ky)_kZ8agAgVhUtD=RcSR?ljrJw9yuh>bVz_gq zs2kr07v{%LRpJJZf7CMy>fl8;QRPQxPYDU+FsWZ|!p#XSsmy5O=%Ou}xt`gQctv=R zP@DYTzM)ojAs8+tXe=XsMpRdXr!|P)?&CGKAPI>Kuu;HLny95wo|1Vx+zyB}?thaj z3Cv`u*I($*$8B&0;V>jG2}VOZn(AcQt;g` z9Lngj<)`v0pY&;qJM%8I_t%qN_T*B=nv_q`9<`mMj=0w=gO-glx z(x|LXB5bfPwW;Qt(HP@W4}Wc9+z!U9W#QTA7{iarBCyA{gOvl?OrmIf)p(JEI}T@V zYG02^+4wbV#$vY3n!(y6{aBA69|KqXiC-+MwOLcG9am2NbakaB3rA72BuIZCs;&z` zpT0`9Y|&1=HQxI$zRy^(A7J4BbH*-|Zk-Zsg&4!0CL}OJi#0IeFMrD;z5HU?fE6%j z_@hQ?8Mn%Xd7FmG$I=m~ZBtX(%4#>K#fDOkD2#(eT;HyiNmBZ+1sHWHTZ&Nm`2x<9W`BWl_m>1@9qe#65^M+Fc~J}=G*p_uox# z3n?kzdC~+&y?_5?KD|UTGpw4hWecONE`z?BhFp}FZ&qoV(0L0a7p0GpPc$6IkIaGG z%-Kj6l#nMo{HCK2{NcOI{r*AnY4IUjE*6jY1qTS$Pgm;cMupBKC$}@Nu*MFy`T=N{x6v~sv+j&`URpO!y zq|WaxLfH5bLOM=5wM#5o!o@qrHB`cVBE9)8b*!FDUU&lSL>|<+uuN&+@usF~g{WR* zGT>ohQW;FVfHvpp=g>qN;D{c=J+ER?qXb`7QI)>VBa-gdEtV2@R9O|uI~<^{`XpNq z3hGI*8h<9n=@}Q9sSx>OP)GqKZ96^GpMQxSE-{uJ_@^)_2uwRLQdpjTrQmPCtth@W z55{6fG`bDsbYF7l~&0mgI?cI z<$nya1n6_0JpsmDw$Y`(CYuLV^jyxOAHkA?D95 z#BMz%YXfe&@gsq8EU&C-UrU9T>TC;n44G!DR6k-mB0bOabWf4A3Ur#XNeuy*03Rk;zyH8Sx0Vya?H}wFtE?(};P- zXAtkA)T+Cb;UcJNEf}R32{|}?YiF{xkDkO%kuUZ6?P@xR7mX<>6&{*?)x0 z<-z5k=4EEZP%^~N>dpNJujB}k2Q|lmBp;4U)UtZrGY;-%wbSsi5vjlV_S{*#14+&2 zsAp>So9(55F2C&iqn#J`wK^(|9y*JEMO=W|9P<&)5naWOwG~DqHZ8=$^dBKs#l)%d zRHuGxu@S7_`4&UzaQ-5dHGQ|GC19w#K$>bAl-4qs8k!ZpA8#rm7b*N2Z|K)WVLqJXK1@=D%s;|WH3t*RBv~mevNDFX z`qMVQ0fx0scV^rA5zBbA?GcwTt{GtD>b;fmr_A`fjJl~^Na;2Y6bg)GN`C^%_U9Jn zP}PoVA~X#Z!)_y&wd4MN+cih2kZR-%$hh&zcS3r6d|-oW)}Kf;x$?e~aOc;Pg_5yn z&@`TmpRO|BWW55;M$H`9o-$s=ZAGT6QD?{GE*UG&q8`GZKXY}UoQo6ipi&5DuOrzV zkDz9Lfkj(mL9rG`emmZi2g>o z*Jj>o{dP$3WhCW!8QijOJ-iWp!7iFm%wYI)x^J^lDt$?k^L5`dI1#6N?9v?iell_} z-KAIZ>s3U1Gq6bl%x-10%{vW{V_V&Mbn_wJKlDOfBY>>*!-_#Odv3R0Tk_;>P^zz2 z3#tj`+lumW^2MTjV1K?c5gn{tvxCcgrV|zbp-AK4X#M03TL3#t&cVjeZ1V6g9nU`; zZ8DgJ^})sCgBIM{2K@7$^~I@R;Vv`}>cm;xwh)n2{c()QI`H&Uip3Sj$^E8WriL!8 z#KD94pmlK@D`Jsr>F6^yYN3OSy1r~}*T+vQI%pqPHb;H#GJo7Fi#cv?|5PyoEvf5e z&cgZ6Z~4^Rkjw9~Ax>_N(%wwgRqx2P8HLTPyXAQHr-Oy3rH&W33hs--M6YD;aN4>b zm_&&rKWyRIBr0r19lRQGQol2P>urTLw?C?1kgb3$qD5+G+@+SB)3!9WCQa>78F>1k zrbx$q(>~=yynps%NGjhIL&`CyHH5@=wWrzFqe-NjqV($(=+v@>?z}%%(-og03NCcM}_gMUhT(mTeUoA%zep)!lAgmcc% zJ{6=$&0m`_F8%H!xRUWYzOUO#AHUzrryw7vb4^)Yuo?o;1(T86DRB3c-vt0DcmRJr z5ivdBe@XDaZ~v0u|JDDK3w6PyxBrb1{Vj{Xot*k#_a9J82MD_ZZ-HD6004Uq002-+ x0|XQR2nGlU0K#6Iv&|2>1_Q!go0EzbHweOBn^e04Z-JA^7BK_DUYnEs7C|31XIlUO delta 3783 zcmV;&4mk0?F1{`eP)h>@6aWYa2ms-Mm9Y&d0R!QIm6JFDEPp|el5nI_4x|PnmBzuy zF**fDI1m`!J?WGfpdzC|>E=g_mTpww@9*&pDsx>Rf&Gz_&=~0p#T5 zfaS1c2;jdY3?Koxc{+-@xY^mmVQymX)?Qxro~{Tnn2Woc=igCG?|(L;ws30%;<_II zXg8s-VB0|6e1BO>v-k1h<_!p%OB7L7rJ^GysuNM3>JO~}2qjkHJNIhP(*yObT=2`7 zRd6(d(|dH>74cDn`spX?0=)NZx5wCt_N>%U5EhyFWGi8A`zF&eg%oHqdQJHy=$L)K zeLrYF=W@P0*Ox=Nux%)uHt=gW&B`;%tkSRIe{vYVe1A~VD^!9M(gYmR210a{N|u>v zKo_AIpz>t`he)6HwPx4`y=?hcInwXK?kZsvcXRcAyypm{%Qaxjfi98W74!FCP~7e2 z3^)|HFqBawbbv1^%mQa(l@J7k>z@|Z-18N&gH+c)$z&n1UpxqI3m0!$UwaYuK^Fmm zTAfPGhky1m*ZSg@F+A60tgnw(eqNv$7xBlgf#A+2g$wG>{VGF9WgHI5e5z=k-Bt>p4mC!MOpZ%NJyp4k@rDXfBd^B?=1bSB@_8S4RKBL}0t zE;2NA20PkxT@`jTyZpj9NWi*mgM~AqF3!`$#~R^h!n@3|-4trbN$ zQ?*=%IOfs@7fNsXZ!^XX8I7210qg18`+v@}AcQH$7gyen-A7~4M*9+4Uf|hzG2E&0 zksIF!7iMXB)wqG<&3Z;bUHqdBRQb`FJRyM`Ci%-vxH+LEl^JakU9?3r(>+}huLSQF zYE#(TH`2~71j8i-O=QH*i0X>)w1&~!y}TxtBq5OjHi}qEQ}r~;Q!;Od+X1mAy?=5g zftd{T26KJ+xOJ`|9ERit!FX^-OM^_Ob&(0}u0}Ikk|4oe4bKbmW~a%ZK!!LCW;O|s zLm6GR{8V4&lghV9Y~4r(DpRx;iP@8A$Rg|@;<1d#5*lBVPI*$?&Fj#e#!gT`Gj;s4J@ajleFwAg zfPpte@yin(C)nm^-&yL6)<-=Q{;~AWBpUVE^9bTulXmT*tVJ(VV^^j;7~wkGNLaj% ze4^%7ohgg-OaT}p^;6RpQd6hwIV_GMyk#&n4~SiT%ur6?$Qt(G+?zTCaDR+@&|$qm z5s^sHTMgv%4hysFkQR%?6UnJVGxdI!!}C#HbWJI5Tm-*45|&_WIct|GDnpeWVwoUX zFz~4ES&dZu9el5RN}WW`R24YVOX5u=S~KxD8@H3VfZIuEhgfsXD5h!8h_IoXl$z?FXD=gVqsR@G`pRgynlU8&2$QPeC6QXhz_>q5|{ zFH>K&=%n5n?RgmAYogQ#F!cX9Wfw}fMv1mUj9^a_5}2XInwanx<$sZ0ez9!83YZi8 zaif%sTjkuWO~bgfR0L|<%uKej+U?DJL#am;#=$bKcURjqDgD~J;`Z2RANQ4Ab3R9d{9z}skL3kTOfIV7vgpK+Wm zG#<9VWUn_5gB`@S!kApM7Wnk?U+=Eq72R2K%)^=iI!xD;= zDp9mhf`3{M?)h^WC))Fl$h}GQyqCgq&uB@JbWb4f4bA3JUVq!GRE$K)fRLXiCKBoQ zoMU2D-16l>ji_6^jD-ExQ8S)26PSD8<%elA#WZam8PBMPM-FoHvRk|QQ|eMpu1jX2 zNhX-PU8t{2*9?Xvj}^hbDx>hsWZsHLpMTYy=m;ylUB8S@546$h+=3=vE8mQ3>&bNq zDXZLh(ga7n|9@mLxj-^Cq?WK{3!|+rgT9=ET$Gn@RB4&gc?%>LrH_!0H5|u(p8>g9 zu#wIwBTsht&4wZP!*`kceFNl^VuQ9^EFST54iK!Lo}~PGh0@pxBcdOIdENB!oHHd? zdrIK(F)Ot|I{i)&WuwJ=Kfj0Ks@#nV6ZKEaGkE9MCVwVe^Bm3;%acaid0B5&;-U;C z&+pAc*!U4bx^HxA7g)4~i+4oI?*=4ApcRoH9-Z&HU>ba%}cJ?d*bkDY(Ndof3O?U-|*%6JXqB8(sQqvRPn7_vJJi;$-LG4}VWP$A5dBG%jrU%3}{K0P*48G|~Gd zM-`YtmhN`5=&|%jk|Mm|L`A^dE2l0jJ+~!vx#QeF1 z*saH8t;5aMHxn2~^2(a_wN-hk&bE-pkV&>m9)ry`W1W%Sbc2b^E1;37C6{D#rA2O| z(|_!>-A#$26g6uf$FXn!WmV_42@8Th)re7>d)uaUSJv=g-9|LUsGnm_^Nx839Jw2X zwdFpw6d%Y>bF*-MuS$O~0ieq>M4NIK^XTvP)WF_FCSxIF#NV;yMaZVDd8l=nX3SGg zi+cWJBgX40tmYIweE5EX*K~}I_gR~n)_>Hs!uA|NY9}gzC1y@P(ruJ8I`Yc4Q9^HY z@#nBl*X659?Yc`DE`pl&oN`9iPXu9kyH?q%KM1?jqc&@Pg{ zUVSLjr#M!VPG*ToohwQ?5*!pwbb;nw2JOGy1z|Mhen_cjZ!pDS9Oju9hZYrN6Mr%n z2Nr{x7nzkp$q+xQH})UAlp{nQ)Eozrd^j>y&+2i{IJleDPQ%AWq~ZMInUmO8BsHI- zzM1)Nwig0={Ic(lcAnqY{#t4L&`InY;sVs>n2%_V=qz@utuX#>(?Tpv{}EzUOq{Af zb?Ubo8^OBFHy>&+ZY#v%&hR9kI)Ag4A$AiF+)=xa8$sW)kc$9PUdgH#~PX+E>BU(5&$Ncry{XNa5FbBfm}xi=iaZNufrP@4DC@_{O34bWtms^-a zRXePO&@xgAyNz7biTnF)*Bs?Ss_$n&#`RCWV^X7|{p(cI{zQ+GEAPJ%?)Y{xS2FSx zn#Pmy(^ck&tXIILL8uQ&$JdnK%ItD#dX2I+ESd z2x{i%ShO`36l;0px8n_)CV$L^w^!XKZ&r*Bs^TOVw?$h(q!#)YGY^6MMCxgQ=pU4O zZ5FN8ZwCcmL{grY!C&>Rh4;aN)lEWxsZ*2URPha%)ET)jOVNgu7tYLv1FoF+$%VtJ zPx#nQliNvh&8CHA!*eD*U#D09VLQuK(QriyLkG-Tu2suRq9$Jon14-d^C!%4AK5{J zW~m%&Dn6a?;HZDU_)+-#ouhsnm!T^?(aF-|`!?&PQkNt--}XI&6LEUSF3q9u$0G;Q zU3w(GT}8Av1DnLb>{iCxypsSqww0a7Hy`5tLoYNm1IS80EEzVl=XUA0C6C_*rTTic zpqgO5ttg*2zF3qG%zsxV;wvlH^uQvY*_b6jDAFW2+8}w|7QoJubFe-*ojmkQ*YgiY zn+#@dZD9WRpar+O4*$GoeQ_#SxC_mLzTqrxn~O-Q{y0Kp9eDaF#qx^dK(Z@!3wl}1i&jc;S@+;<(ASrY(3wf2lgU_`c8@gE16r5lce2rEhn30 zChc9E9Yho#n1oO-3+V3&2dxhlSC1Q0=Z2r63D39Bpnnpc^p3ITW<9rUsLZ1(;heM6 z@`4np`KwbVrOQ5oOBt`@d%LU*@cTV{iVAVM*Ob)-DB6oNBT>yZB2k_Su z5z_1_R-Nm6M7VHwfW@l~e=Y&0~|v7BK_ift8c}7C{rFa4rA< diff --git a/src/main/java/fr/softeam/cameldesigner/api/CamelDesignerProxyFactory.java b/src/main/java/fr/softeam/cameldesigner/api/CamelDesignerProxyFactory.java index d62a2052..fcc9bebb 100644 --- a/src/main/java/fr/softeam/cameldesigner/api/CamelDesignerProxyFactory.java +++ b/src/main/java/fr/softeam/cameldesigner/api/CamelDesignerProxyFactory.java @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api; @@ -220,7 +220,7 @@ */ @objid ("3cb54811-d4bb-4bff-8dcf-3e2758d67f4d") public class CamelDesignerProxyFactory { - @objid ("36b2ea8c-4a71-47a3-9094-7f5eb49d9055") + @objid ("643750cb-d6da-4e85-90e5-895f9b38d3ba") private static final InstantiateVisitor instantiateVisitor = new InstantiateVisitor(); /** @@ -228,10 +228,11 @@ public class CamelDesignerProxyFactory { *
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. */ - @objid ("c4d1601b-bc63-4bb2-a903-864b4f1fd513") + @objid ("99cf4717-cdea-4034-bad3-d048c89bbdcc") public static final Object instantiate(final ModelElement e) { for (Stereotype s : e.getExtension()) { ModuleComponent module = s.getModule(); @@ -247,410 +248,430 @@ 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. */ - @objid ("7f9bb3e9-e0a2-4ac1-bd02-9e0a30b2ab7b") + @objid ("bf02faf3-4b59-4217-8fff-b8cfd4d96bc0") public static final Object instantiate(final Element e, final String stName) { instantiateVisitor.setStereotype(stName); return e.accept(instantiateVisitor); } - @objid ("384c3b12-cd12-43e1-92bb-d6b1228ef30e") + @objid ("a672884e-6f7e-49ab-81d4-b6e8e7770128") private static class InstantiateVisitor implements IDefaultModelVisitor, IDefaultInfrastructureVisitor { - @objid ("da5665d8-4b2f-464e-98b8-eb68b5a9ee72") + @objid ("54c1974d-91b5-4c94-aaca-f3f1e1237640") private String stName; - @objid ("28f71f49-d7af-4657-ae2a-0f2e2b346f47") + @objid ("e429bd0f-7de5-4fae-b3e9-1bf751cc8882") public final void setStereotype(final String stName) { this.stName = stName; } - @objid ("08a47ecd-13a5-4491-b78d-7dd7e2245eea") + @objid ("af120d09-ced3-4fc6-ac85-cf23abe4d116") @Override - public final Object visitAbstractDiagram(AbstractDiagram obj) { + public final Object visitGeneralClass(GeneralClass obj) { switch (this.stName) { - default: - break; + default: + break; } - return IDefaultInfrastructureVisitor.super.visitAbstractDiagram(obj); + + return IDefaultModelVisitor.super.visitGeneralClass(obj); } - @objid ("75588b40-4c59-4625-bea9-082be4547ab9") + @objid ("7f59e3b1-b1a6-44ac-87d2-d02c0de4706d") @Override - public final Object visitComponent(Component obj) { + public final Object visitAbstractDiagram(AbstractDiagram 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; + default: + break; } - return IDefaultModelVisitor.super.visitComponent(obj); + + return IDefaultInfrastructureVisitor.super.visitAbstractDiagram(obj); } - @objid ("a8809cf1-7d05-4f24-9df7-7ef6a5eba09c") + @objid ("1b07ed47-2784-47ed-92b8-8fd27d7bf67b") @Override - public final Object visitInstance(Instance obj) { + public final Object visitDependency(Dependency 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.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 IDefaultModelVisitor.super.visitInstance(obj); + + return IDefaultInfrastructureVisitor.super.visitDependency(obj); } - @objid ("0154f448-c275-4e39-bff6-4942cf1e73f4") + @objid ("8c54e6ca-51f5-4704-8743-0fe39cf5d32e") @Override - public final Object visitBindableInstance(BindableInstance obj) { + public final Object visitComponent(Component 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.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.visitBindableInstance(obj); + + return IDefaultModelVisitor.super.visitComponent(obj); } - @objid ("9f23e798-2f51-4ec7-8bd5-d711e05ba69a") + @objid ("661423d7-cfd3-4c2f-b57d-ff9388940b5b") @Override - public final Object visitDependency(Dependency obj) { + public final Object visitInstance(Instance 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.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 IDefaultInfrastructureVisitor.super.visitDependency(obj); + + return IDefaultModelVisitor.super.visitInstance(obj); } - @objid ("f539f281-7537-4196-98ae-c31b34ccfa2f") + @objid ("0bcf6dc9-6843-4643-b91b-ab622683e08d") @Override - public final Object visitPort(Port obj) { + public final Object visitBindableInstance(BindableInstance 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.datamodel.standard.bindableinstance.DataInstanceBindableInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.datamodel.standard.bindableinstance.DataInstanceBindableInstance.instantiate(obj); + default: + break; } - return IDefaultModelVisitor.super.visitPort(obj); + + return IDefaultModelVisitor.super.visitBindableInstance(obj); } - @objid ("55f34bfb-256a-4faa-9b68-1b843ddfaa71") + @objid ("3a42e258-864c-4e6a-95d0-ae9948c6bf60") @Override public final Object visitClassifier(Classifier obj) { switch (this.stName) { - default: - break; + default: + break; } + return IDefaultModelVisitor.super.visitClassifier(obj); } - @objid ("58e61b73-5d5b-4551-a837-c9241ccc34ef") + @objid ("bf7ce6e6-cd05-432b-b4bd-87aaabcdc396") @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); } - @objid ("fad0302d-3788-4150-a292-a32ab548da6d") + @objid ("d1695b17-e730-4ae1-b3fb-4be3d31105b8") @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); } - @objid ("cc51cd7d-105d-4e36-ab53-792e604dbf34") + @objid ("7a4e2d91-56e9-496a-adb3-ac7ce28b6161") @Override public final Object visitModelElement(ModelElement obj) { switch (this.stName) { - default: - break; + default: + break; } + return IDefaultInfrastructureVisitor.super.visitModelElement(obj); } - @objid ("04ec1aa5-7cd0-4a5a-9086-0beb148f9915") + @objid ("84960e10-a8e2-44a5-a101-7bea04246353") + @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; + } + + return IDefaultModelVisitor.super.visitArtifact(obj); + } + + @objid ("7c05572a-0537-49b8-acdf-08d25e228f76") @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); } - @objid ("85f588d3-d019-47dc-86b1-800a364965d1") + @objid ("78f8f158-1a08-4a00-89ac-c7427afc512b") @Override - public final Object visitClassDiagram(ClassDiagram obj) { + public final Object visitAttributeLink(AttributeLink 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.metadatamodel.standard.attributelink.MmsPropertyInstance.STEREOTYPE_NAME: return fr.softeam.cameldesigner.api.metadatamodel.standard.attributelink.MmsPropertyInstance.instantiate(obj); + default: + break; } - return IDefaultModelVisitor.super.visitClassDiagram(obj); + + return IDefaultModelVisitor.super.visitAttributeLink(obj); } - @objid ("2efbb470-95c4-47ee-8849-566ef96da1b2") + @objid ("a7c251ba-eb75-494a-b3b5-15bdabfacb47") @Override - public final Object visitArtifact(Artifact obj) { + public final Object visitClassDiagram(ClassDiagram 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.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.visitArtifact(obj); + + return IDefaultModelVisitor.super.visitClassDiagram(obj); } - @objid ("0b82fbc4-5fc2-4765-b81c-a308b689c125") + @objid ("625aca15-3ca2-4395-9b5b-1733c6013538") @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); } - @objid ("cecf94b7-42b4-4bf9-958b-02a0950ea934") + @objid ("eee7e7bb-15e5-4b3c-958e-7d941fc62812") @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); } - @objid ("4b657e31-ce80-4ff2-ba5a-9d1d334a50b4") - @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; - } - return IDefaultModelVisitor.super.visitAttributeLink(obj); - } - - @objid ("1a6ebd8e-aa99-47ad-bb8c-e525f352b4f3") + @objid ("79f5d990-4673-49f6-ad1c-4551aa50e168") @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); } - @objid ("a78ecf74-c62b-4916-a8ed-c63a970a9768") + @objid ("a4774db3-e2db-450d-91b7-8acb175c12ff") @Override - public final Object visitConstraint(Constraint obj) { + public final Object visitPort(Port 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.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.visitConstraint(obj); + + return IDefaultModelVisitor.super.visitPort(obj); } - @objid ("6c6f1aeb-3792-488d-a9c7-8bc87809fd11") + @objid ("8b63b1f1-01f8-4b4e-8e38-905b7c562182") @Override - public final Object visitGeneralClass(GeneralClass obj) { + public final Object visitConstraint(Constraint obj) { switch (this.stName) { - 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.visitGeneralClass(obj); + + return IDefaultModelVisitor.super.visitConstraint(obj); } - @objid ("f3948720-41e5-4503-8d99-d88546e6e94b") + @objid ("9506962a-5bdd-4527-b5ad-0bce7358a40b") @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 ("7cb2adb6-3a4e-4be2-a192-1e694f892b11") + @objid ("45c558cb-7b1b-4b6c-85fb-a05db29170cf") @Override public IInfrastructureVisitor getInfrastructureVisitor() { return this; 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 cc439afd..6d23a0ab 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.camelcore.infrastructure.dependency; @@ -34,7 +34,7 @@ */ @objid ("7031d203-af8d-4031-b372-b418d6e60fbd") public class Annotation extends CamelElement { - @objid ("aff4031f-29a2-406c-b17a-ba4d565b9e39") + @objid ("e22aa682-2067-4f7f-bd0a-d00354b6ba77") public static final String STEREOTYPE_NAME = "Annotation"; /** @@ -45,7 +45,7 @@ public class Annotation extends CamelElement { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("1a00e1d2-23bb-4746-9bfc-8e132d536e22") + @objid ("79940e57-0480-427d-abbf-916bc412504f") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Dependency) && ((Dependency) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, Annotation.STEREOTYPE_NAME)); } @@ -55,7 +55,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link Annotation} proxy on the created {@link Dependency}. */ - @objid ("9cca048c-aa6e-4854-b999-92d005c64931") + @objid ("651f4f79-af24-4d57-b4ad-4184c8dcc021") public static Annotation create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Infrastructure.Dependency"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, Annotation.STEREOTYPE_NAME); @@ -63,36 +63,34 @@ 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. */ - @objid ("750f4ce3-eb41-40ab-94f1-7e124cce0f1f") + @objid ("713a2323-276e-4714-a414-d1a0e0052bd3") public static Annotation instantiate(final Dependency obj) { return Annotation.canInstantiate(obj) ? new Annotation(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("32e79ee2-cce3-4d4f-b30f-d42c23661202") + @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 ("1aa3767a-a8a2-4149-a823-9898898f623e") + @objid ("643eaa87-3286-4140-b323-5d3afa9c3326") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -109,17 +107,16 @@ 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 ("6f269a21-38bb-45d1-981c-69b3f4345401") + @objid ("f1cc67dd-10e7-4f6b-90a3-246d08281d66") @Override public Dependency getElement() { return (Dependency)super.getElement(); } - @objid ("af6c20ea-9c0f-47f7-aa80-d84d812b271d") + @objid ("25ce878c-6638-4b62-a834-795fdfdfae5f") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -132,23 +129,23 @@ public List getChilds() { return result; } - @objid ("fd259dd5-beeb-40d7-a229-ace2e681936c") + @objid ("3acea6f7-7546-4b39-aa7f-29c2350c3dc9") protected Annotation(final Dependency elt) { super(elt); } @objid ("e1806156-f5a9-4d39-9bb7-739c08fa2b43") public static final class MdaTypes { - @objid ("c2f1f664-2731-4877-b85b-aafd506cafca") + @objid ("9dea96e2-cea0-4a40-bf30-ef05b627d0ab") public static Stereotype STEREOTYPE_ELT; - @objid ("fecab6d1-a773-439a-a3aa-31c4723b42f4") + @objid ("8e1d1122-0119-4278-bb51-faaa1600b3da") private static Stereotype MDAASSOCDEP; - @objid ("fc78da72-02b2-44d1-8fa4-92a6a88124e5") + @objid ("4dc15267-8091-4159-a2d8-2aa8353ca4a7") private static TagType MDAASSOCDEP_ROLE; - @objid ("b7986d66-b1fd-495d-b65c-e0ed55961003") + @objid ("30b0ba29-8773-4717-8adf-4a27d17ecc2e") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "6ac7f831-f2b4-447b-ba9e-e58f7834bcf7"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -156,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/camelcore/infrastructure/dependency/PropertyDependency.java b/src/main/java/fr/softeam/cameldesigner/api/camelcore/infrastructure/dependency/PropertyDependency.java index 2761b226..57279418 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.camelcore.infrastructure.dependency; @@ -34,7 +34,7 @@ */ @objid ("66e1dd55-fc1a-4daa-b03e-a10778bf9f73") public class PropertyDependency extends CamelElement { - @objid ("ae9fde68-da7c-4297-adf8-776df1594a62") + @objid ("b4c7b47c-8ce1-4d78-aad1-520fb7d38218") public static final String STEREOTYPE_NAME = "PropertyDependency"; /** @@ -45,7 +45,7 @@ public class PropertyDependency extends CamelElement { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("6691d50a-9c47-45a1-9d3c-c208b4852d94") + @objid ("12ec3ee5-7da7-408d-b6a4-3e39b6fc4d85") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Dependency) && ((Dependency) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, PropertyDependency.STEREOTYPE_NAME)); } @@ -55,7 +55,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link PropertyDependency} proxy on the created {@link Dependency}. */ - @objid ("42c2a61d-5ea5-4963-881e-657c77409b02") + @objid ("4e018fbc-ce30-47a1-8bf5-b1e29e8cc91e") public static PropertyDependency create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Infrastructure.Dependency"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, PropertyDependency.STEREOTYPE_NAME); @@ -63,36 +63,34 @@ 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. */ - @objid ("5440567b-9e10-4fa0-9d25-0fe6feccdfc1") + @objid ("775ee69c-52a2-4daf-9806-fcc7786642cf") public static PropertyDependency instantiate(final Dependency obj) { return PropertyDependency.canInstantiate(obj) ? new PropertyDependency(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("f203c824-44be-4d8e-9317-c859f9ea5182") + @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 ("7db64d9c-7246-4b1c-924d-a034b32b3c35") + @objid ("6461dcd1-ce42-4574-8f35-97590fae78c1") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -109,17 +107,16 @@ 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 ("712eea4b-3756-4fd5-8207-3a6dce5f2b8f") + @objid ("80725605-334f-4011-8ca9-120185e22641") @Override public Dependency getElement() { return (Dependency)super.getElement(); } - @objid ("d0fc82b1-e380-446c-857e-3dc52ba10970") + @objid ("cdab7378-7adb-41fc-b6f0-4b65b2225dfd") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -132,23 +129,23 @@ public List getChilds() { return result; } - @objid ("c4f32271-daee-4263-b05f-5520bedeb240") + @objid ("fa5016b2-2486-4858-9721-ad5351ec9989") protected PropertyDependency(final Dependency elt) { super(elt); } @objid ("ee885f54-f4e7-4fbc-9bb2-acd65bf59695") public static final class MdaTypes { - @objid ("5a4ea156-1cd7-4e54-8ea3-472b184982e5") + @objid ("7354690d-f65a-448e-9aad-e30309a7a9c1") public static Stereotype STEREOTYPE_ELT; - @objid ("506f714c-fcd2-4cf4-aa4b-f7d5578ac81c") + @objid ("ec2f9160-66a5-4dbd-82e1-d10e99e1c76e") private static Stereotype MDAASSOCDEP; - @objid ("62eb7a39-75a5-4360-a59b-3f24ac9cfb2f") + @objid ("a9627e70-ad46-49ca-b173-4607950a9c30") private static TagType MDAASSOCDEP_ROLE; - @objid ("dcc1f67d-6ad5-411a-affe-df2be8fff519") + @objid ("25784a74-98d4-45cc-a3cd-8800650fdd03") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "738c4b6c-0cf3-4276-b6d9-7fe4ec31ff01"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -156,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/camelcore/infrastructure/modelelement/CamelAttribute.java b/src/main/java/fr/softeam/cameldesigner/api/camelcore/infrastructure/modelelement/CamelAttribute.java index 142902ac..e90e6ffa 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement; @@ -36,7 +36,7 @@ */ @objid ("95142f12-2b2c-454b-909a-53110f0aaecc") public abstract class CamelAttribute extends ExpendableElement { - @objid ("84761138-f556-400b-a5b2-903ac7d186ab") + @objid ("cd009895-4036-42b3-93b0-98129dc3b10f") public static final String STEREOTYPE_NAME = "CamelAttribute"; /** @@ -47,7 +47,7 @@ public abstract class CamelAttribute extends ExpendableElement { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("6c3a2782-ed01-4606-a221-199c003b221b") + @objid ("ca15981b-429f-4cf8-b9be-6915e3369b88") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof ModelElement) && ((ModelElement) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, CamelAttribute.STEREOTYPE_NAME)); } @@ -58,7 +58,7 @@ public static CamelAttribute instantiate(final ModelElement obj) { AttributeClass.canInstantiate(obj) ? AttributeClass.instantiate(obj) : null; } - @objid ("5cb25aa1-f7b7-4a27-9ec3-9854248d6d5e") + @objid ("a727cc49-4817-45f5-a76a-1fc62ca63dc9") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -75,17 +75,16 @@ 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 ("31c81e00-c273-4600-9748-496d173c6bbc") + @objid ("0410a071-8416-4516-a0f1-ca603789e35a") @Override public ModelElement getElement() { return (ModelElement)super.getElement(); } - @objid ("2dc886d2-b687-4ff1-b0a6-9751b1dd72ae") + @objid ("30b0bae6-3cdd-4792-aaed-8453c8c4c17a") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -109,23 +108,23 @@ public int hashCode() { @objid ("dfa12e10-a0f9-4768-872b-ef51ea1a5db9") public abstract void setValueType(final ValueType obj); - @objid ("c610541f-3686-4dda-a0ae-72bd3c9302c0") + @objid ("9a84c540-8568-4cf2-8e47-4c443aa54a39") protected CamelAttribute(final ModelElement elt) { super(elt); } @objid ("b2b5f006-86dd-4eba-8d2f-bb3d0fc4f4f7") public static final class MdaTypes { - @objid ("0f716e01-4d7b-4d51-aaad-9fc5823bebdd") + @objid ("a06b842d-6117-4581-9c6b-7525f8a5aac6") public static Stereotype STEREOTYPE_ELT; - @objid ("7557a899-a236-4a7f-aa2d-57e051609c2b") + @objid ("0c546b1b-8192-4533-800b-c1bffa0ce614") private static Stereotype MDAASSOCDEP; - @objid ("d1cbb900-bb96-4db8-ba5f-4304dadd777c") + @objid ("54828a45-81a4-4783-8f86-85e50fef2a7b") private static TagType MDAASSOCDEP_ROLE; - @objid ("cdc87a0f-71ef-42f4-b41d-78ea86a7c703") + @objid ("e2e457f2-1451-4ffe-b871-8df2121c320d") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "342512a5-ad9b-48b8-a454-5fd44237b8f2"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -133,11 +132,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 71ad7e80..07b6ef4b 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement; @@ -35,13 +35,13 @@ */ @objid ("e19016d0-0edb-4a41-bbf9-7506c03fcd5e") public abstract class CamelElement { - @objid ("f2140c4e-8948-4ba9-8ba1-6ab4f695eaee") + @objid ("947ac8c3-e608-4a2f-a1bf-68fa7d1fb2a8") public static final String STEREOTYPE_NAME = "CamelElement"; /** * The underlying {@link ModelElement} represented by this proxy, never null. */ - @objid ("1772827d-101c-4f2b-9759-8f1f0e8994b4") + @objid ("97a8af30-0759-4cad-abdf-d7d2fcd394f4") protected final ModelElement elt; /** @@ -52,7 +52,7 @@ public abstract class CamelElement { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("11ace1da-2a32-4e0a-9920-8ec58f712c29") + @objid ("9aa1b126-a7da-41ef-9b33-366bc28f19cd") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof ModelElement) && ((ModelElement) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, CamelElement.STEREOTYPE_NAME)); } @@ -64,7 +64,7 @@ public static CamelElement instantiate(final ModelElement obj) { Annotation.canInstantiate(obj) ? Annotation.instantiate((Dependency)obj) : null; } - @objid ("a8bc1e44-be0b-4e04-9e8d-8fbc24941621") + @objid ("bfbe1065-409e-4b46-8d14-f978ee347c68") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -81,16 +81,15 @@ 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 ("aac6e2e5-be39-4d72-b161-e7b5a3b13907") + @objid ("bff718df-e64e-4551-bd8b-555e284e9217") public ModelElement getElement() { return this.elt; } - @objid ("9f1946f6-67af-4ec8-9f1e-244d695f0223") + @objid ("6c6d5b52-347a-435f-bc71-13311c487c5f") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -101,23 +100,23 @@ public List getChilds() { return new ArrayList<>(); } - @objid ("2c6c763b-3df1-4fb3-9358-d46554807f82") + @objid ("0320f1c1-5873-4fdf-9c67-009814b6d7ca") protected CamelElement(final ModelElement elt) { this.elt = elt; } @objid ("1755d7a2-ba56-47fd-b0d2-652ed674f106") public static final class MdaTypes { - @objid ("d36c32e6-a112-47a4-a864-fcd00e74c121") + @objid ("115fc52b-20e7-4b1d-9fba-fa902f0d013a") public static Stereotype STEREOTYPE_ELT; - @objid ("7eb83481-a291-4e57-8737-82f817b88913") + @objid ("62a768fb-d641-4957-9de9-7404acd50762") private static Stereotype MDAASSOCDEP; - @objid ("f480b924-9637-47b5-91bb-da96af81fbf8") + @objid ("03b4b3db-f949-4337-a85d-96de8ef56402") private static TagType MDAASSOCDEP_ROLE; - @objid ("9ed1d54b-b670-4017-be84-d6612cd76d2f") + @objid ("11ccc440-a85b-4de9-8089-c02430d926bb") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "9aef4bd8-fa92-4231-9295-3eb5a619ceab"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -125,11 +124,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 6c6a303e..2b8ee359 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement; @@ -38,7 +38,7 @@ */ @objid ("0839abd9-e1c0-4f4c-877c-67000617ef5e") public abstract class ExpendableElement extends NamedElement { - @objid ("9f31e28a-01c6-41da-b564-fbe7d41e68c6") + @objid ("84002464-191a-49c6-acaa-0aebd60cca46") public static final String STEREOTYPE_NAME = "ExpendableElement"; /** @@ -49,7 +49,7 @@ public abstract class ExpendableElement extends NamedElement { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("65a1cda4-7665-4587-8228-59b7331cb63a") + @objid ("c9de39ab-d18f-49f8-8a52-2e9f1c45c119") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof ModelElement) && ((ModelElement) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, ExpendableElement.STEREOTYPE_NAME)); } @@ -58,8 +58,9 @@ public static boolean canInstantiate(final MObject elt) { * Add a value to the 'annotations' role.

* Role description: * null + * */ - @objid ("55b0f039-bb65-4f7d-97bb-d7bb55f42c3d") + @objid ("ebedd58c-4784-451d-ba35-0572d76bf606") public void addAnnotations(final MmsObject obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -69,7 +70,7 @@ public void addAnnotations(final MmsObject obj) { } } - @objid ("3c7c0d56-a27c-4fa1-9d53-ef2b0f613f55") + @objid ("5adb0bb5-26e0-49e3-96d2-c0b6c60eedf2") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -89,8 +90,9 @@ public boolean equals(final Object obj) { * Get the values of the 'annotations' role.

* Role description: * null + * */ - @objid ("789d934f-69da-4ba0-ad64-d986486d00b7") + @objid ("893d38be-6aa1-4cbb-9c25-3ec46ae8a483") public List getAnnotations() { List results = new ArrayList<>(); for (Dependency d : this.elt.getDependsOnDependency()) { @@ -110,17 +112,16 @@ public List getAnnotations() { } /** - * Get the underlying {@link ModelElement}. - * + * Get the underlying {@link ModelElement}. * @return the ModelElement represented by this proxy, never null. */ - @objid ("8bb60eda-e665-4fd9-9df7-dbe371457a3c") + @objid ("fdcc72e5-dc75-427d-a62a-f0600094e153") @Override public ModelElement getElement() { return (ModelElement)super.getElement(); } - @objid ("126be712-68a9-4392-95b4-8e73a02ca970") + @objid ("99a6a664-6a8f-41bd-a952-0b710e8b4fe8") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -130,12 +131,13 @@ public int hashCode() { * Remove a value from the 'annotations' role.

* Role description: * null + * */ - @objid ("5b2f0659-112e-4a15-a056-ed3a475aab72") + @objid ("480711a9-5558-4c25-86b6-bf7f21a948a6") public boolean removeAnnotations(final MmsObject obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getDependsOnDependency())) { - if (d.isStereotyped(ExpendableElement.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(ExpendableElement.MdaTypes.MDAASSOCDEP_ROLE), "")) + if (d.isStereotyped(ExpendableElement.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(ExpendableElement.MdaTypes.MDAASSOCDEP_ROLE), "annotations")) if (Objects.equals(d.getDependsOn(), obj.getElement())) { d.delete(); return true; @@ -145,23 +147,23 @@ public boolean removeAnnotations(final MmsObject obj) { return false; } - @objid ("aaa7fdf6-af0d-4315-b9ae-5f2f3c774567") + @objid ("1f20c2ae-549e-46bc-9480-df351f11fb8a") protected ExpendableElement(final ModelElement elt) { super(elt); } @objid ("cbcfe587-f4d9-4299-85a2-20ec2c0d6d7f") public static final class MdaTypes { - @objid ("7de2d0e5-26d3-4e8e-bb86-52e68e67e901") + @objid ("ac2d515b-174b-40b0-8a93-409d4d889a37") public static Stereotype STEREOTYPE_ELT; - @objid ("4d068b77-1204-4296-9306-47438bcd501a") + @objid ("236de19e-e6b8-4df6-aed2-0cd01d1c1804") private static Stereotype MDAASSOCDEP; - @objid ("b785e6b5-4c45-484e-8a0d-75dda6dc0efa") + @objid ("3ae76754-7d56-408f-a442-1415e3488831") private static TagType MDAASSOCDEP_ROLE; - @objid ("aa8bc77f-fe5c-4fcc-bcbb-6d83bcdc4b21") + @objid ("a2714e2c-b652-407e-9e19-0168b72c23ca") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "f81fdaa1-17e1-49a4-bf1f-60c18563c100"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -169,11 +171,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 b56e6401..16b0b30b 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement; @@ -35,7 +35,7 @@ */ @objid ("a5eb4aa4-b3c3-4bce-b713-24ce0ac2b84e") public abstract class Feature extends ExpendableElement { - @objid ("96d48d0e-0438-4652-b0f1-99a84702ed9a") + @objid ("b60af2f3-4fa9-43f4-a294-85ca184ca0f5") public static final String STEREOTYPE_NAME = "Feature"; /** @@ -46,7 +46,7 @@ public abstract class Feature extends ExpendableElement { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("1b3dfb69-a5e7-400c-bc43-d970ed1a7072") + @objid ("49831bd7-47ad-4d33-9d18-26eff79afc44") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof ModelElement) && ((ModelElement) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, Feature.STEREOTYPE_NAME)); } @@ -91,7 +91,7 @@ public static Feature safeinstantiate(final ModelElement obj) throws IllegalArgu throw new IllegalArgumentException("Feature: Cannot instantiate "+obj+": wrong element type or stereotype"); } - @objid ("e3841225-6ed1-494a-a264-09f4ceaca9b4") + @objid ("38740a41-2351-4324-b804-033519a21894") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -108,39 +108,38 @@ 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 ("21333d22-160a-4b46-a0d8-a1b079ab5024") + @objid ("2e951837-7a0a-48ec-8de6-dd5062c94936") @Override public ModelElement getElement() { return (ModelElement)super.getElement(); } - @objid ("c10bd901-54cb-46f6-9a8a-a2337311bb2c") + @objid ("e135915d-5bc5-48d1-8387-813b26427aeb") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); } - @objid ("3432472e-c6c8-4df2-8193-863732bd6e65") + @objid ("127672c8-31b6-4aeb-ace8-69e3fc9bab32") protected Feature(final ModelElement elt) { super(elt); } @objid ("0cb56ef2-b57c-49c0-afb4-c4b5f234e49b") public static final class MdaTypes { - @objid ("e4f2d3e5-04cc-4a2f-849a-5a43f9e37bca") + @objid ("02a8ff53-289b-49c8-a966-09674f3efc66") public static Stereotype STEREOTYPE_ELT; - @objid ("9a53f925-949c-41c1-b6e1-00077f6f46d4") + @objid ("9c9be014-31a7-4515-8193-2b3bccc806e1") private static Stereotype MDAASSOCDEP; - @objid ("c8f6a8f4-1fca-401d-b0bf-e7e50d8f4665") + @objid ("d0d90fd3-e6b8-430e-9c0d-67ba8e7b9ced") private static TagType MDAASSOCDEP_ROLE; - @objid ("6399cee1-ab15-4cf7-ab32-a1993fb052a2") + @objid ("377846c4-cf45-4e77-a61d-1795a5805575") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "1ff10997-aa56-4f9b-b413-f32fadcc29bb"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -148,11 +147,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 6f11d9ed..65df95f7 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement; @@ -34,7 +34,7 @@ */ @objid ("cdca4c86-c0ef-4910-a37e-df9c087b8f69") public abstract class NamedElement extends CamelElement { - @objid ("7b3cbce7-f6d0-425e-89e6-52fd56f6cf7b") + @objid ("0c18418b-6c65-46ed-8af2-2e7a084ff32a") public static final String STEREOTYPE_NAME = "NamedElement"; /** @@ -45,12 +45,12 @@ public abstract class NamedElement extends CamelElement { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("d9a7e1b5-3335-44f4-8efd-35c06d422b8c") + @objid ("c794d87f-c21c-42e1-8059-2f4555edbe24") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof ModelElement) && ((ModelElement) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, NamedElement.STEREOTYPE_NAME)); } - @objid ("4e0055db-e777-4ec0-9cba-2c574a00b2cf") + @objid ("0e2915f8-03c6-4aea-bcbf-eb42c569170b") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -67,17 +67,16 @@ 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 ("a9bcb5b9-aee5-4345-ace7-9bf404c9dcfc") + @objid ("7451c674-096c-44b5-bcf9-3795aa539eca") @Override public ModelElement getElement() { return (ModelElement)super.getElement(); } - @objid ("eaf5efcc-1e22-41d7-8f8b-b9dd26daa03c") + @objid ("fa1051a6-8944-4522-9dc6-6827bc7c4efb") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -117,23 +116,23 @@ public void setName(String name) { this.elt.setName(name); } - @objid ("772a7a2f-d28a-41ef-9bbc-761377c55608") + @objid ("1b1bb70b-53ed-4854-bfff-4499668a5b95") protected NamedElement(final ModelElement elt) { super(elt); } @objid ("246df9d9-a77b-433f-b4f3-69cc11ca5913") public static final class MdaTypes { - @objid ("e384fd7e-afbc-4310-a35f-e5d4c4536449") + @objid ("b3c4252f-709d-472d-a08e-af5bc769dc52") public static Stereotype STEREOTYPE_ELT; - @objid ("a2fa7801-c06c-463b-9839-e275f76a0008") + @objid ("84b07ba4-faa6-48b8-bbb8-e88bcbc0d06c") private static Stereotype MDAASSOCDEP; - @objid ("ffe87c72-948c-4e5e-9eda-2b9aa05ba0a3") + @objid ("bbe161c1-8e7c-4e8c-a28f-dc73c17ba0f8") private static TagType MDAASSOCDEP_ROLE; - @objid ("902cf251-d27c-418e-a427-8e505e88a44e") + @objid ("97104c3e-a16f-4233-97c9-d246c8c18869") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "0fcc7434-c82f-4c57-a814-8a9233fdc9b0"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -141,11 +140,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 7694c18a..86458263 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.camelcore.standard.artifact; @@ -36,7 +36,7 @@ */ @objid ("c53cf713-fc4f-4cff-9d81-f11d85440927") public class FeatureArtifact extends FeatureClassifier { - @objid ("2c34467b-8912-4e37-b7b0-4640da90adc7") + @objid ("d598139b-f070-4c7b-af77-b7843cc755b1") public static final String STEREOTYPE_NAME = "Feature_Artifact"; /** @@ -47,7 +47,7 @@ public class FeatureArtifact extends FeatureClassifier { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("1399fc56-db8e-421f-8f5e-bd7755070c10") + @objid ("30b635e0-01a8-4016-bcf0-a28ff5fc6753") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Artifact) && ((Artifact) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, FeatureArtifact.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link FeatureArtifact} proxy on the created {@link Artifact}. */ - @objid ("30e6cc83-ce8a-43c0-9eaf-a5c790789b1c") + @objid ("c8001906-0bdf-4dd4-ad47-6f0d508e5480") public static FeatureArtifact create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Artifact"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, FeatureArtifact.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("f97ed5a8-0bf3-45b4-a727-6fa9a90102b8") + @objid ("73635599-c251-47da-a03a-21137bacad32") public static FeatureArtifact instantiate(final Artifact obj) { return FeatureArtifact.canInstantiate(obj) ? new FeatureArtifact(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("d417a6ef-ee27-494b-b0f5-b097eb5d26e5") + @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 ("b3bef60c-278e-4925-8f81-56caf821f557") + @objid ("85d82d92-6858-4263-8374-6358f158561d") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,17 +109,16 @@ 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 ("8d0ba501-da26-42d1-9306-f5f68c009b88") + @objid ("1fbda3ca-9f5c-46e7-9454-3938b400cd2e") @Override public Artifact getElement() { return (Artifact)super.getElement(); } - @objid ("f3b00df5-6653-49bd-adf6-be6e4cdbbd2c") + @objid ("53f66df3-9af8-4cc9-a66e-2cc455b9eddf") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -135,23 +132,23 @@ public List getChilds() { return result; } - @objid ("d626c713-ed0a-4469-802a-2675a1a59b03") + @objid ("f2590de8-5c2c-49de-9b62-4928131cfbb3") protected FeatureArtifact(final Artifact elt) { super(elt); } @objid ("144f7a0e-24b5-41da-9329-9fb3109e4640") public static final class MdaTypes { - @objid ("38f5c56e-71d9-42a9-95f1-d924add018f4") + @objid ("72063e67-13c0-4ff4-9924-571213c4e700") public static Stereotype STEREOTYPE_ELT; - @objid ("3617d80a-318e-4a0f-8344-652ea7530ea7") + @objid ("db027738-e1f8-4b82-bbb3-856949256b0f") private static Stereotype MDAASSOCDEP; - @objid ("bb7ba9b3-a618-42d7-945b-a19cf951c19b") + @objid ("835ba088-ed4e-41bd-a1d3-9fdcffce4562") private static TagType MDAASSOCDEP_ROLE; - @objid ("93e7487e-ebfa-4b23-815d-920e723619b6") + @objid ("4aa80eed-4010-4da5-b771-0bb7b43dbdec") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "4fc85f6a-6ece-4e79-b662-e20cb7f28cea"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -159,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/standard/attribute/AttributeAttribute.java b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/attribute/AttributeAttribute.java index 6eec525a..959758b1 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.camelcore.standard.attribute; @@ -42,7 +42,7 @@ */ @objid ("c17a90da-4027-4328-abbc-1c1e75b596e7") public class AttributeAttribute extends CamelAttribute { - @objid ("a182e253-a991-4ed2-9d90-50234fe49ec3") + @objid ("d92e5c0a-3ed9-4225-8328-ce96209dec7f") public static final String STEREOTYPE_NAME = "Attribute_Attribute"; /** @@ -53,7 +53,7 @@ public class AttributeAttribute extends CamelAttribute { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("85df43bf-2894-461f-bd7a-9167cbd878ce") + @objid ("0cca4cfd-b03f-45c6-833c-7c1aff9ae906") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Attribute) && ((Attribute) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, AttributeAttribute.STEREOTYPE_NAME)); } @@ -63,7 +63,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link AttributeAttribute} proxy on the created {@link Attribute}. */ - @objid ("c24a1493-0ea8-4c0d-b3c6-40e97c2b05c8") + @objid ("6db0f771-9a88-4aa5-94ac-71ff8a39eaeb") public static AttributeAttribute create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Attribute"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, AttributeAttribute.STEREOTYPE_NAME); @@ -71,36 +71,34 @@ 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. */ - @objid ("9a841d0c-69eb-482a-88dd-f22adf640e3a") + @objid ("4e9edab4-1137-4870-aa42-e76ecaab590d") public static AttributeAttribute instantiate(final Attribute obj) { return AttributeAttribute.canInstantiate(obj) ? new AttributeAttribute(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("0fae107c-25d4-4c43-bc87-34e5477e86c9") + @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 ("0e10adf8-2d12-4c88-99bc-f1c3ff7aa038") + @objid ("37495426-2558-4117-af5e-0aa9990c5722") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -117,11 +115,10 @@ 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 ("8e053991-5018-41bd-ad65-c388f52be524") + @objid ("b59f3a2f-9f93-4a08-8ce7-c1af0c430489") @Override public Attribute getElement() { return (Attribute)super.getElement(); @@ -131,8 +128,9 @@ public Attribute getElement() { * Get the value to the 'parent' role.

* Role description: * null + * */ - @objid ("df275493-4d16-4928-adbf-9a815d687b2f") + @objid ("0025f78f-e5cc-476f-a817-cfb9475670cd") public FeatureClassifier getParent() { return (FeatureClassifier)CamelDesignerProxyFactory.instantiate(((Attribute) this.elt).getOwner(), FeatureClassifier.STEREOTYPE_NAME); } @@ -141,8 +139,9 @@ public FeatureClassifier getParent() { * Get the value of the 'unit' role.

* Role description: * null + * */ - @objid ("393ca8bb-404c-4cb3-93bc-8a638ab316d7") + @objid ("706a5d61-cc82-4140-af58-0b5559147cef") public Unit getUnit() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(AttributeAttribute.MdaTypes.MDAASSOCDEP) @@ -162,13 +161,14 @@ public Unit getUnit() { * Get the value to the 'valueType' role.

* Role description: * null + * */ - @objid ("3948a717-7f02-4caf-8162-73b0ff7826a7") + @objid ("07077616-ed50-4935-b509-f5c382abd6e3") public ValueType getValueType() { return (ValueType)CamelDesignerProxyFactory.instantiate(((Attribute) this.elt).getType(), ValueType.STEREOTYPE_NAME); } - @objid ("cdc543e0-6817-42b3-bb95-507784171f78") + @objid ("15953eaa-e624-4f44-8e8e-14363b5407eb") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -178,8 +178,9 @@ public int hashCode() { * Set the value of the 'parent' role.

* Role description: * null + * */ - @objid ("379b575e-f15b-4de2-9fe0-3acaa296df23") + @objid ("6281e48f-4c2a-4bc0-b247-23d123166a3b") public void setParent(final FeatureClassifier obj) { ((Attribute) this.elt).setOwner((obj != null) ? obj.getElement() : null); } @@ -188,8 +189,9 @@ public void setParent(final FeatureClassifier obj) { * Set the value of the 'unit' role.

* Role description: * null + * */ - @objid ("de8be8a2-3109-44a9-b964-39700b7cf4e9") + @objid ("5018a8df-0937-45f9-b656-6b539efd0803") public void setUnit(final Unit obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -213,8 +215,9 @@ public void setUnit(final Unit obj) { * Set the value of the 'valueType' role.

* Role description: * null + * */ - @objid ("970843d7-df17-438f-a94b-4171d6ca9b53") + @objid ("10356fc0-54a0-4c74-9fed-217fc772193f") public void setValueType(final ValueType obj) { ((Attribute) this.elt).setType((obj != null) ? obj.getElement() : null); } @@ -238,23 +241,23 @@ public void setValue(String value) { this.getElement().setValue(value); } - @objid ("5dc8d01b-2572-4711-b8b9-98522ca6bb11") + @objid ("cfd785f9-086f-4b77-8f6b-74b50456756d") protected AttributeAttribute(final Attribute elt) { super(elt); } @objid ("f558a895-629e-4294-9127-c70f14d14fce") public static final class MdaTypes { - @objid ("1e6f86d6-2837-466c-a6f2-863938b8c921") + @objid ("ce21c706-72a0-4322-b41e-3776881c3974") public static Stereotype STEREOTYPE_ELT; - @objid ("88c6e32f-adbb-47bc-8b5a-d6f3e6040424") + @objid ("1a6795ce-a701-47fa-abdf-ca6e9db34e59") private static Stereotype MDAASSOCDEP; - @objid ("8719be51-d827-4a83-aba3-167b7e650cbc") + @objid ("c46c6a32-fd20-450a-baac-651e202168cc") private static TagType MDAASSOCDEP_ROLE; - @objid ("4e5f23b6-0ca3-459c-981a-f0d51afe00c7") + @objid ("7a9e3e29-418d-4848-a3f0-79bca5642802") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "02d333e9-0603-47b3-87bb-b2a311cc65dd"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -262,11 +265,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 01b99a44..f4e87f5f 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.camelcore.standard.attribute; @@ -35,7 +35,7 @@ */ @objid ("64d9c99b-c8af-4882-b63d-a30a40d1dd03") public class MeasurableAttributeAttribute extends QualityAttributeAttribute { - @objid ("d8ae79ab-50b9-49b6-a1c5-3d3829d7604b") + @objid ("55f29323-b054-4306-b3b8-c16e41f18015") public static final String STEREOTYPE_NAME = "MeasurableAttribute_Attribute"; /** @@ -46,7 +46,7 @@ public class MeasurableAttributeAttribute extends QualityAttributeAttribute { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("52bf0acc-61cb-4675-b748-298d33f50c60") + @objid ("62c75039-dc41-4d4c-a52e-1cd9bfa4105e") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Attribute) && ((Attribute) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, MeasurableAttributeAttribute.STEREOTYPE_NAME)); } @@ -56,7 +56,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link MeasurableAttributeAttribute} proxy on the created {@link Attribute}. */ - @objid ("ddd46d68-f35d-46e2-8aac-e606c0f7cb2e") + @objid ("9e5fb06e-9f71-49cd-a3f5-e00bef8a4286") public static MeasurableAttributeAttribute create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Attribute"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, MeasurableAttributeAttribute.STEREOTYPE_NAME); @@ -64,41 +64,40 @@ 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. */ - @objid ("f3944838-0426-4835-acfa-838d882c0e02") + @objid ("4cd282e6-6562-4103-953b-226b1e4ef496") public static MeasurableAttributeAttribute instantiate(final Attribute obj) { return MeasurableAttributeAttribute.canInstantiate(obj) ? new MeasurableAttributeAttribute(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("7dd7beaf-c0cb-452d-b4c0-e95e5db3eaa3") + @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 ("b5c045c5-8c66-498c-82eb-c98d94f00be1") + @objid ("a64e2631-c9a5-40fe-8b43-ad99b802c5f0") public void addSensors(final Sensor obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -108,7 +107,7 @@ public void addSensors(final Sensor obj) { } } - @objid ("54e358c8-fdff-4524-a6c8-0aec1c5a6435") + @objid ("37e01244-141a-4648-a3ae-1e85b1400a8f") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -125,11 +124,10 @@ 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 ("12245111-5c50-4f23-b65b-f40148204e68") + @objid ("312a468a-a1b7-48ac-8a75-6dc1fa0a89a5") @Override public Attribute getElement() { return (Attribute)super.getElement(); @@ -139,8 +137,9 @@ public Attribute getElement() { * Get the values of the 'sensors' role.

* Role description: * null + * */ - @objid ("7f4b0030-1b74-433a-851b-c2741bcf5ad3") + @objid ("5454852d-431a-4601-a431-dcf95e50adf8") public List getSensors() { List results = new ArrayList<>(); for (Dependency d : this.elt.getDependsOnDependency()) { @@ -153,7 +152,7 @@ public List getSensors() { return Collections.unmodifiableList(results); } - @objid ("427c4ad9-e681-4a11-b98e-cda4869dc63d") + @objid ("6d073166-82a1-4f3f-bf70-df0ceb8c65f4") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -163,12 +162,13 @@ public int hashCode() { * Remove a value from the 'sensors' role.

* Role description: * null + * */ - @objid ("6e42f405-4b66-4924-8149-0b4b57adcba8") + @objid ("3f87b7a9-0dbb-44cb-a1a8-adcdee6806dc") public boolean removeSensors(final Sensor obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getDependsOnDependency())) { - if (d.isStereotyped(MeasurableAttributeAttribute.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(MeasurableAttributeAttribute.MdaTypes.MDAASSOCDEP_ROLE), "")) + if (d.isStereotyped(MeasurableAttributeAttribute.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(MeasurableAttributeAttribute.MdaTypes.MDAASSOCDEP_ROLE), "sensors")) if (Objects.equals(d.getDependsOn(), obj.getElement())) { d.delete(); return true; @@ -178,23 +178,23 @@ public boolean removeSensors(final Sensor obj) { return false; } - @objid ("10f14f84-920f-4273-b170-7e0b0c9281c3") + @objid ("c827138f-2c0c-49f8-825e-9a872d0c0a50") protected MeasurableAttributeAttribute(final Attribute elt) { super(elt); } @objid ("dd33b21d-72fe-4210-844d-e9819ab9d4aa") public static final class MdaTypes { - @objid ("679455a8-e01e-4884-a1e3-7fda08aa362d") + @objid ("e8a61d2d-ca0c-40e9-a7df-ba5473eb930e") public static Stereotype STEREOTYPE_ELT; - @objid ("9194b7ba-9b2b-48cb-8947-504661cfc76c") + @objid ("cdf14e19-51a8-45d6-a8e3-d7e2a3d93221") private static Stereotype MDAASSOCDEP; - @objid ("bb15d9cf-b391-4aa1-a8d9-e372d4f38c91") + @objid ("864e7c15-e93c-4e29-9fc8-4bb138b49f20") private static TagType MDAASSOCDEP_ROLE; - @objid ("d9a03aeb-7074-4af7-84c8-6087bde4665a") + @objid ("ce6679fe-2a4c-40db-8e7e-b3d0edbdf7ab") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "0904c020-0de8-4170-8d49-131f2ce38022"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -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 b700a868..93478af2 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.camelcore.standard.attribute; @@ -33,7 +33,7 @@ */ @objid ("9c9b9a9a-5e8a-461c-87f8-f089d0e376e2") public class QualityAttributeAttribute extends AttributeAttribute { - @objid ("9ec2d1c7-781f-4b63-9eab-52c73c9ae08e") + @objid ("c28eac6c-9b43-4858-9ed1-f4ea409dcb19") public static final String STEREOTYPE_NAME = "QualityAttribute_Attribute"; /** @@ -44,7 +44,7 @@ public class QualityAttributeAttribute extends AttributeAttribute { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("a96579fd-ac3e-481f-a28c-35b657d608b5") + @objid ("3b7b0369-b9eb-414b-96dc-a48c351cd872") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Attribute) && ((Attribute) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, QualityAttributeAttribute.STEREOTYPE_NAME)); } @@ -54,7 +54,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link QualityAttributeAttribute} proxy on the created {@link Attribute}. */ - @objid ("7fb9c1d2-41a8-4187-983e-a8b686533729") + @objid ("04f1fb32-ce93-42cc-8d6c-0e0ac2c54803") public static QualityAttributeAttribute create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Attribute"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, QualityAttributeAttribute.STEREOTYPE_NAME); @@ -62,36 +62,34 @@ 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. */ - @objid ("76e8e12b-ea59-4143-b797-35621aac3c0b") + @objid ("748ef9f1-2f21-4188-855a-9ff88594ba5b") public static QualityAttributeAttribute instantiate(final Attribute obj) { return QualityAttributeAttribute.canInstantiate(obj) ? new QualityAttributeAttribute(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("81072360-d911-4734-bd3b-5e9dcb1e45f2") + @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 ("0fe31d12-2d12-40e9-b0c5-e75b52ce0922") + @objid ("f6dcd382-cb14-446a-8a02-629f10f167f1") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -108,39 +106,38 @@ 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 ("7b5cf5bb-17b4-4d7a-a007-ff142121e9d2") + @objid ("f648f9eb-282c-429d-b94f-9aeeaad41416") @Override public Attribute getElement() { return (Attribute)super.getElement(); } - @objid ("f1897861-1af2-4ac9-9dc4-597c5b0e52a4") + @objid ("d15e2415-ee59-4e79-9770-4e64a8b5c155") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); } - @objid ("a0641233-3cd6-4b8a-ae87-292916a343a3") + @objid ("59183964-ef4a-47e6-a240-395e35a5db3d") protected QualityAttributeAttribute(final Attribute elt) { super(elt); } @objid ("d44e9721-1831-4bbf-98a7-0b98a311c1d2") public static final class MdaTypes { - @objid ("7cec0897-b1e0-4469-bb3c-b9c0546ecb1d") + @objid ("14a7bfd8-636d-42ad-a214-118bee55b4f1") public static Stereotype STEREOTYPE_ELT; - @objid ("beecea7e-e072-4716-aed8-ecaa1e29cdde") + @objid ("81889d25-1546-482c-aa67-a1f3691ff2a5") private static Stereotype MDAASSOCDEP; - @objid ("b128ec95-4e23-4fff-bf27-1b84f04d716c") + @objid ("e4bda9b0-5eeb-4e6a-a56d-f726bf78d5c4") private static TagType MDAASSOCDEP_ROLE; - @objid ("b22c4300-d206-4786-91ff-9326880ebd03") + @objid ("d9807527-ae07-48be-ab88-6e3f1e1f839a") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "affcb570-9c14-4702-aacd-86bdbea720ff"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -148,11 +145,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 1715fca8..864c0c66 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.camelcore.standard.class_; @@ -35,10 +35,10 @@ */ @objid ("97e6f375-0f57-43fd-9ece-52aadc88d164") public class Application extends FeatureClass { - @objid ("a1432c65-ae10-47cd-9d84-777274160e13") + @objid ("90009577-5792-4b5d-916a-a8c5c9326ea5") public static final String STEREOTYPE_NAME = "Application"; - @objid ("fa6bbcb8-1838-4a5c-8fe9-5561b05a1571") + @objid ("76481a25-508b-4681-a0f1-f406604bfabc") public static final String VERSION_TAGTYPE = "version"; /** @@ -49,7 +49,7 @@ public class Application extends FeatureClass { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("104405e1-e4aa-4f30-a3ed-9c4e8e2f84d1") + @objid ("598ca355-894a-47b4-971d-905fca6e8e9a") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, Application.STEREOTYPE_NAME)); } @@ -59,7 +59,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link Application} proxy on the created {@link Class}. */ - @objid ("9e22cbbe-addc-4722-950d-03e4cdfe93a3") + @objid ("cfa7cf25-1e3b-421a-9d80-97633e6c196d") public static Application create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, Application.STEREOTYPE_NAME); @@ -67,36 +67,34 @@ 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. */ - @objid ("11e2e3dc-3bad-401c-aed4-6e43acce52ce") + @objid ("678cb84d-70a8-4d43-b025-4cab14e5f591") public static Application instantiate(final Class obj) { return Application.canInstantiate(obj) ? new Application(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("537c761c-19b1-483d-8453-38697848eadd") + @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 ("de019b1d-c005-4216-ab16-a3e7b9f6d3c1") + @objid ("f8f5e3c8-af3e-4025-8cc4-66a280109cae") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -113,11 +111,10 @@ 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 ("42cd1590-a94e-4dc1-8abb-1e0258fcee45") + @objid ("1b6d533f-e663-4bd1-a6b5-ca2260dbcd3a") @Override public Class getElement() { return (Class)super.getElement(); @@ -128,12 +125,12 @@ public Class getElement() { *

Property description: *
null

*/ - @objid ("5095f056-305e-4a2d-b60f-5de1c053937f") + @objid ("2e9a91ac-7119-4275-ad6f-8515bd83d37d") public String getVersion() { return this.elt.getTagValue(Application.MdaTypes.VERSION_TAGTYPE_ELT); } - @objid ("f2b63462-7a78-48de-9563-37b6f5863e7e") + @objid ("365a1f9d-77bf-4d32-9569-a3420c539036") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -144,7 +141,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("15e9da95-ac85-4a10-939b-6bdd26a950c6") + @objid ("01e3e0c0-8f3a-49c3-9071-8efd68624bf2") public void setVersion(final String value) { this.elt.putTagValue(Application.MdaTypes.VERSION_TAGTYPE_ELT, value); } @@ -156,26 +153,26 @@ public List getChilds() { return result; } - @objid ("75263c3e-4877-418a-b104-eb5cce00ebc1") + @objid ("e550a806-78ed-40e4-b00c-e46a156f071a") protected Application(final Class elt) { super(elt); } @objid ("492bb2a5-5506-4a52-bc31-f5fb67155b50") public static final class MdaTypes { - @objid ("9fa46aae-1386-4da8-b85c-a1490a6c7b72") + @objid ("f0317f63-fa48-4a7f-b4f5-d3b04715c7de") public static Stereotype STEREOTYPE_ELT; - @objid ("11be9cfb-6bf6-4a9f-bee7-fa147efa914c") + @objid ("25b64eda-2ef6-4885-bda0-05d75d872858") public static TagType VERSION_TAGTYPE_ELT; - @objid ("cc3c6b70-6fef-4623-82a8-b42172d270af") + @objid ("f67c8e87-0f74-4347-b3e9-bafe05849c93") private static Stereotype MDAASSOCDEP; - @objid ("36b89e06-10f8-46ea-ae67-9929671d97ca") + @objid ("b870a140-b25d-4232-aa9d-95fc970bd0c9") private static TagType MDAASSOCDEP_ROLE; - @objid ("4c1ea63e-2c97-49e3-bf93-92a5dda6111b") + @objid ("8da632d9-e8b3-4a64-9e6e-2c644dab542f") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "46979e9e-2d44-4099-afdf-62d13a0b1d25"); VERSION_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "a33973d1-0249-418d-b3fd-1ccbbe910d72"); @@ -184,11 +181,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 27e6ae33..14a904c5 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.camelcore.standard.class_; @@ -38,6 +38,7 @@ import org.modelio.metamodel.uml.infrastructure.properties.PropertyDefinition; import org.modelio.metamodel.uml.infrastructure.properties.PropertyTableDefinition; import org.modelio.metamodel.uml.statik.Class; +import org.modelio.metamodel.uml.statik.DataType; import org.modelio.vcore.smkernel.mapi.MObject; /** @@ -47,10 +48,10 @@ */ @objid ("6f9ce9fc-dd24-4913-b74c-5e47d6057bf1") public class AttributeClass extends CamelAttribute { - @objid ("8aad3e5a-7898-47ed-bd03-aeff6c446ad2") + @objid ("1a966bb9-d4ad-45bc-95b2-a2594b1a9926") public static final String STEREOTYPE_NAME = "Attribute_Class"; - @objid ("aeb2f75a-105d-4273-aeeb-c964e75e435c") + @objid ("97095fa6-594e-4cbd-a144-388dbfa4fd67") public static final String VALUE_TAGTYPE = "Value"; /** @@ -61,7 +62,7 @@ public class AttributeClass extends CamelAttribute { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("15e398c1-0a11-4f4a-826d-a412b1e34e0c") + @objid ("f910772d-97b8-4f10-9441-0483e91da8ab") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, AttributeClass.STEREOTYPE_NAME)); } @@ -71,7 +72,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link AttributeClass} proxy on the created {@link Class}. */ - @objid ("2aea9885-3572-415e-a217-9a6f4c01bbbb") + @objid ("baf288fb-11c9-4c17-817e-b86694aef118") public static AttributeClass create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, AttributeClass.STEREOTYPE_NAME); @@ -79,36 +80,34 @@ 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. */ - @objid ("32b0cb91-35a2-4cd2-84c1-1c8269dbcd0e") + @objid ("58749f07-3f01-4950-b0c6-e6c2c8b47585") public static AttributeClass instantiate(final Class obj) { return AttributeClass.canInstantiate(obj) ? new AttributeClass(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("b83c135b-a73d-4c2a-ba18-4e52758a4e04") + @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 ("79bb44c1-7407-4de5-a645-182d8a20eeaa") + @objid ("f6f70581-1b88-4392-a70f-f90e3a7eed69") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -125,11 +124,10 @@ 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 ("177c9c86-2208-4bbe-a4ec-6d7cbf192490") + @objid ("9bcef4ab-c7c8-4c39-a12a-9b01be43a4b7") @Override public Class getElement() { return (Class)super.getElement(); @@ -139,8 +137,9 @@ public Class getElement() { * Get the value to the 'parent' role.

* Role description: * null + * */ - @objid ("e868891e-3e4f-4c2a-b97e-f6858c3da331") + @objid ("fcb908ac-e18c-4268-982c-99d54f1d3044") public FeaturePackage getParent() { return (FeaturePackage)CamelDesignerProxyFactory.instantiate(((Class) this.elt).getOwner(), FeaturePackage.STEREOTYPE_NAME); } @@ -149,8 +148,9 @@ public FeaturePackage getParent() { * Get the value of the 'unit' role.

* Role description: * null + * */ - @objid ("9670e388-d8b9-4829-9ebb-fe39c8493920") + @objid ("8e73f9e5-abbd-45b5-8f35-c33203cde311") public Unit getUnit() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(AttributeClass.MdaTypes.MDAASSOCDEP) @@ -171,7 +171,7 @@ public Unit getUnit() { *

Property description: *
null

*/ - @objid ("97a59084-8f2b-413f-95af-d194854786fc") + @objid ("1fd185b5-4dd6-49f2-aab5-9941162e5db3") public String getValue() { return this.elt.getTagValue(AttributeClass.MdaTypes.VALUE_TAGTYPE_ELT); } @@ -180,8 +180,9 @@ public String getValue() { * Get the value of the 'valueType' role.

* Role description: * null + * */ - @objid ("51eb3318-28cf-4fd7-aef0-8b1bea1e8f30") + @objid ("d52aad47-d66b-4af3-9173-e4ab2c907caa") public ValueType getValueType() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(AttributeClass.MdaTypes.MDAASSOCDEP) @@ -201,7 +202,7 @@ public ValueType getValueType() { return null; } - @objid ("eb32084e-422d-462b-b643-a79fb16d7b76") + @objid ("d0377728-8c8a-4042-bd9d-0e09e774d412") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -211,8 +212,9 @@ public int hashCode() { * Set the value of the 'parent' role.

* Role description: * null + * */ - @objid ("4dda09ae-3a92-4d61-a58b-966f9b29b70d") + @objid ("1db10af8-144c-456d-8396-4750913a3251") public void setParent(final FeaturePackage obj) { ((Class) this.elt).setOwner((obj != null) ? obj.getElement() : null); } @@ -221,8 +223,9 @@ public void setParent(final FeaturePackage obj) { * Set the value of the 'unit' role.

* Role description: * null + * */ - @objid ("0139cc55-4b8c-447c-8252-10bb4b9ab2dd") + @objid ("3e4887e5-7cc9-46b5-8093-a0bc8ebe6775") public void setUnit(final Unit obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -247,7 +250,7 @@ public void setUnit(final Unit obj) { *

Property description: *
null

*/ - @objid ("b2abe4f2-46a4-4147-b4e9-c901923a708b") + @objid ("403bd99c-a9fd-4063-92da-811624e1abc2") public void setValue(final String value) { this.elt.putTagValue(AttributeClass.MdaTypes.VALUE_TAGTYPE_ELT, value); } @@ -256,8 +259,9 @@ public void setValue(final String value) { * Set the value of the 'valueType' role.

* Role description: * null + * */ - @objid ("3edb685d-47dc-4e8a-9ff4-dabfa93d7fe7") + @objid ("0e57e240-af8d-4fcd-8562-0946f76ef297") public void setValueType(final ValueType obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -284,26 +288,61 @@ public List getChilds() { return result; } - @objid ("df63ef5f-8e93-40b5-9ce7-7b8ceda3a9ca") + @objid ("7d295d7c-5053-4c4f-ab38-5eb9a2c15440") + public DataType getPrimitiveType() { + for (Dependency d : this.elt.getDependsOnDependency()) { + if (d.isStereotyped(AttributeClass.MdaTypes.MDAASSOCDEP) + && Objects.equals(d.getTagValue(AttributeClass.MdaTypes.MDAASSOCDEP_ROLE), "valueType")){ + ModelElement dependsOn = d.getDependsOn(); + if (dependsOn instanceof DataType) { + return (DataType) dependsOn; + } + } + } + return null; + } + + @objid ("ae1c7809-d89a-4ec3-9025-af9ea03b2d29") + public void setPrimitiveType(final DataType obj) { + Dependency dep = null; + for (Dependency d : this.elt.getDependsOnDependency()) + if (d.isStereotyped(AttributeClass.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(AttributeClass.MdaTypes.MDAASSOCDEP_ROLE), "valueType")) { + dep = d; + break; + } + if (obj == null) { + if(dep != null) dep.delete(); + } else { + if (dep == null) { + IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); + dep = session.getModel().createDependency(this.elt, obj, AttributeClass.MdaTypes.MDAASSOCDEP); + dep.setName("valueType"); + dep.putTagValue(AttributeClass.MdaTypes.MDAASSOCDEP_ROLE, "valueType"); + } + dep.setDependsOn(obj); + } + } + + @objid ("21cb7bde-54c4-45ac-b892-48c4df680dfa") protected AttributeClass(final Class elt) { super(elt); } @objid ("2e6d4ec3-39e4-419d-8e8c-ec5e59d6a3cb") public static final class MdaTypes { - @objid ("95d3da2d-8aa4-47a1-9f47-735359f11242") + @objid ("cd8a24ca-0c27-4051-b656-80121e66d153") public static Stereotype STEREOTYPE_ELT; - @objid ("b0a2ca38-4e67-4bcb-ab23-6308dbe6d9da") + @objid ("460c876f-23ea-4ec9-a5a2-59d07ed18c9a") public static TagType VALUE_TAGTYPE_ELT; - @objid ("88a6272f-a320-41cd-ab1c-3cb54a2aeb60") + @objid ("0958ccd8-59b2-4433-9a35-cf82a4853607") private static Stereotype MDAASSOCDEP; - @objid ("b33f77e9-f575-4073-b538-e83cde62f0ef") + @objid ("b5757919-c180-4841-b5ad-d4c8b34cf489") private static TagType MDAASSOCDEP_ROLE; - @objid ("9100d3ff-7b81-46ae-8108-bf2e687e65bc") + @objid ("0ed7a704-f2f8-4ab5-9b24-cedcaf795671") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "b062f4ef-e492-4b34-9caa-bdd63d717cb9"); VALUE_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "d3cee445-f1e5-4752-ad1b-6ffb45d35a89"); @@ -312,11 +351,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 ee7b8de5..d921f94d 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.camelcore.standard.class_; @@ -36,7 +36,7 @@ */ @objid ("6a4c36bc-3125-4731-8439-e795625943d2") public class FeatureClass extends FeatureClassifier { - @objid ("e4508747-aa8e-4f60-9ee5-fd368ad0b8d3") + @objid ("981f2877-a946-4b0b-a63f-64faacaa4cf1") public static final String STEREOTYPE_NAME = "Feature_Class"; /** @@ -47,7 +47,7 @@ public class FeatureClass extends FeatureClassifier { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("ea7b37a3-0aca-4c40-b880-2a2e795fe6e8") + @objid ("f6279894-e1af-4736-b356-a56fbc289947") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, FeatureClass.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link FeatureClass} proxy on the created {@link Class}. */ - @objid ("87dc807f-44f3-4b10-aa04-9baa004aed22") + @objid ("b37a78b3-a3f4-4b36-903b-209c4a685f34") public static FeatureClass create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, FeatureClass.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("4a460027-023b-4d44-9a9a-b99bb10cfc8c") + @objid ("46afc1bd-9b61-4bbf-8b84-c259b0df69ea") public static FeatureClass instantiate(final Class obj) { return FeatureClass.canInstantiate(obj) ? new FeatureClass(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("036a7e21-9b50-45b1-99c0-79003e2a79ae") + @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 ("28463fa9-e211-487f-a523-74a2763fe714") + @objid ("6bcd4750-4874-470e-8572-406938b76370") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,17 +109,16 @@ 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 ("26920c45-0579-43ad-865f-1f44d6ad6019") + @objid ("5835fa4e-afe1-410a-b5e1-d98e0fe849b5") @Override public Class getElement() { return (Class)super.getElement(); } - @objid ("4c9edde9-9b93-4e90-9ffc-561e94d1fca3") + @objid ("74d7d6da-165e-4700-9f7b-d79b4baf1b45") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -135,23 +132,23 @@ public List getChilds() { return result; } - @objid ("eec720ba-2a97-463d-87d5-41a379b395cf") + @objid ("e0a65b75-f039-4f60-8403-a02c038319c4") protected FeatureClass(final Class elt) { super(elt); } @objid ("266313b7-34b2-4846-a164-b64005a3816f") public static final class MdaTypes { - @objid ("c008bd10-f24f-459b-9606-205e8fcf7a81") + @objid ("08ff0e9b-8560-474b-8f54-836a6e41c4f5") public static Stereotype STEREOTYPE_ELT; - @objid ("169d7031-83ed-4f26-8b27-2db2a1977f3b") + @objid ("0d0dcfce-92d1-4e29-a3d4-756f7650d3db") private static Stereotype MDAASSOCDEP; - @objid ("ff3de6f3-5b37-4a84-9e5d-eb3c415e4beb") + @objid ("ccbaa311-180f-4f81-8f9a-2654fdaff9df") private static TagType MDAASSOCDEP_ROLE; - @objid ("6aad6bdb-66ec-4120-8384-78e6f0eac4a8") + @objid ("3849572b-6ffb-4af5-b16f-91f93201fcfd") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "babf8276-c4d4-4d86-b02b-d20c6636d937"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -159,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/standard/class_/MeasurableAttributeClass.java b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/class_/MeasurableAttributeClass.java index ef98f9ce..e2d5e702 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.camelcore.standard.class_; @@ -35,7 +35,7 @@ */ @objid ("f7605dc5-004d-4e28-b490-e312ea63cee2") public class MeasurableAttributeClass extends QualityAttributeClass { - @objid ("2003bc3c-4388-4e14-ae48-c0ff562e0278") + @objid ("d38e3f1f-c8a3-48c2-9623-0c128469f4d9") public static final String STEREOTYPE_NAME = "MeasurableAttribute_Class"; /** @@ -46,7 +46,7 @@ public class MeasurableAttributeClass extends QualityAttributeClass { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("93a70e07-4f5e-4dcf-926d-47a5829db7d4") + @objid ("d8c9d268-d8a3-45f1-92d7-c3a654bbc581") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, MeasurableAttributeClass.STEREOTYPE_NAME)); } @@ -56,7 +56,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link MeasurableAttributeClass} proxy on the created {@link Class}. */ - @objid ("308e1f94-4199-4a26-97f4-440b3a7c4363") + @objid ("d3c13431-aa37-42c1-8635-90f724f3a073") public static MeasurableAttributeClass create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, MeasurableAttributeClass.STEREOTYPE_NAME); @@ -64,41 +64,40 @@ 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. */ - @objid ("64d1742f-12e4-467c-a634-8b1b2afd9fb4") + @objid ("9123063e-2b6b-42f3-aff8-3da5da8407b2") public static MeasurableAttributeClass instantiate(final Class obj) { return MeasurableAttributeClass.canInstantiate(obj) ? new MeasurableAttributeClass(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("b2ff6195-49e4-45a8-81f7-15ed3ad535c5") + @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 ("f7988873-64b3-4c2d-ab09-cdf1ee6d6bd3") + @objid ("5905fc62-3ce4-48c9-aa05-1921f6fa198f") public void addSensors(final Sensor obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -108,7 +107,7 @@ public void addSensors(final Sensor obj) { } } - @objid ("54b09688-d76a-4a84-8ebb-4f48e05e55ce") + @objid ("7a3c8445-0e96-4a35-b65c-94e50927a35a") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -125,11 +124,10 @@ 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 ("a8038c4d-11ac-4261-9062-28bac4f8e8d7") + @objid ("f6c3f506-4edd-42c6-87ce-f06275b39e86") @Override public Class getElement() { return (Class)super.getElement(); @@ -139,8 +137,9 @@ public Class getElement() { * Get the values of the 'sensors' role.

* Role description: * null + * */ - @objid ("7d9ffe56-e3f5-40c2-9222-df2acef6081d") + @objid ("4d074097-10b6-4e69-a730-3e1e5b565ff5") public List getSensors() { List results = new ArrayList<>(); for (Dependency d : this.elt.getDependsOnDependency()) { @@ -153,7 +152,7 @@ public List getSensors() { return Collections.unmodifiableList(results); } - @objid ("1363bc16-ccd5-48ef-90f2-a171ad50c934") + @objid ("da77be7b-e908-48f3-a128-fc33647260fe") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -163,12 +162,13 @@ public int hashCode() { * Remove a value from the 'sensors' role.

* Role description: * null + * */ - @objid ("79bafe96-298c-47a0-a7d0-e140e5d2d42e") + @objid ("43e760a4-16c8-40ec-a7a2-221adeb0e95d") public boolean removeSensors(final Sensor obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getDependsOnDependency())) { - if (d.isStereotyped(MeasurableAttributeClass.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(MeasurableAttributeClass.MdaTypes.MDAASSOCDEP_ROLE), "")) + if (d.isStereotyped(MeasurableAttributeClass.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(MeasurableAttributeClass.MdaTypes.MDAASSOCDEP_ROLE), "sensors")) if (Objects.equals(d.getDependsOn(), obj.getElement())) { d.delete(); return true; @@ -178,23 +178,23 @@ public boolean removeSensors(final Sensor obj) { return false; } - @objid ("6f234e0f-167c-40dd-9141-fac34eeb0c3d") + @objid ("ebccdf04-3ddb-4eb4-8a44-023e98575a9b") protected MeasurableAttributeClass(final Class elt) { super(elt); } @objid ("f5778737-9189-4851-90e5-4c429752bc4a") public static final class MdaTypes { - @objid ("df55d371-54ae-469e-82de-3f0eca8b2194") + @objid ("38bf6882-9559-43ca-b109-cff80f66dd78") public static Stereotype STEREOTYPE_ELT; - @objid ("969c188a-5266-4577-b304-62e9ce095c72") + @objid ("f835f211-54b5-495e-8798-a40856be387e") private static Stereotype MDAASSOCDEP; - @objid ("1084b0d3-dd39-4f69-856a-030dbdf33b29") + @objid ("ca679b82-8c4f-4a6a-a28c-add49ecea8f2") private static TagType MDAASSOCDEP_ROLE; - @objid ("3221fdc5-6737-42a6-8497-30ac39320c8f") + @objid ("2520e51a-c53d-4cde-9916-9e755b33df32") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "41f442d8-cf5f-4e6c-a842-47675cf36361"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -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 c759165d..0aacc032 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.camelcore.standard.class_; @@ -33,7 +33,7 @@ */ @objid ("00b4d8d6-dff1-41ad-8764-b639c5cef9a2") public class QualityAttributeClass extends AttributeClass { - @objid ("7ec69d18-236a-4d89-8715-6d792a3eb576") + @objid ("33f1ce0a-0bff-4c2f-8c86-283b610222bc") public static final String STEREOTYPE_NAME = "QualityAttribute_Class"; /** @@ -44,7 +44,7 @@ public class QualityAttributeClass extends AttributeClass { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("53f97db8-88b0-43ae-99c0-3aa4e03d5b4b") + @objid ("129700d7-b155-4b70-a545-c3e49d75e3b8") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, QualityAttributeClass.STEREOTYPE_NAME)); } @@ -54,7 +54,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link QualityAttributeClass} proxy on the created {@link Class}. */ - @objid ("b286daa2-0ede-48fc-a4f9-602fd3701498") + @objid ("1aa4823b-0b57-4c5d-a430-78e88c7b5717") public static QualityAttributeClass create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, QualityAttributeClass.STEREOTYPE_NAME); @@ -62,36 +62,34 @@ 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. */ - @objid ("10f99a86-070c-47da-a878-93389a4eefab") + @objid ("d8ad3f78-f042-4f1f-a148-32c98e000a6e") public static QualityAttributeClass instantiate(final Class obj) { return QualityAttributeClass.canInstantiate(obj) ? new QualityAttributeClass(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("58ce570b-9689-4d51-94c8-403299c21f28") + @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 ("91dae874-e985-44b8-a26b-0d6d9c2b9098") + @objid ("bba0f998-7a31-441a-8f25-bba963da5d5d") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -108,39 +106,38 @@ 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 ("e9d522e1-88c9-42d9-ab11-3af9c9092b4c") + @objid ("72e7f24f-e7e0-432d-8b42-8729a5c50116") @Override public Class getElement() { return (Class)super.getElement(); } - @objid ("13f3eb34-6df6-42da-9b90-5438e34a12d7") + @objid ("124df1a3-dab4-4093-9513-9cde6cd47f97") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); } - @objid ("d5d144b7-dd6f-483f-b130-65b2fdffc185") + @objid ("de5508f1-5ad5-4e1a-afd6-e5023ab89fe4") protected QualityAttributeClass(final Class elt) { super(elt); } @objid ("b614d475-a5cc-4fb3-8a5c-4681fb5ee31d") public static final class MdaTypes { - @objid ("e2bc483c-c4e7-43ef-9158-97f797e91a25") + @objid ("2b5d8af8-082e-4d0d-b6a3-1f4eaa2100cd") public static Stereotype STEREOTYPE_ELT; - @objid ("0f860da5-da47-41ce-9c17-7551b3e61f32") + @objid ("dcebb014-2fa8-4797-a4fd-da1dc2071fdc") private static Stereotype MDAASSOCDEP; - @objid ("a6fb2556-268a-40ee-b5ed-45db436bbceb") + @objid ("f51427bd-9879-481c-9c94-0dd6993fc35b") private static TagType MDAASSOCDEP_ROLE; - @objid ("e1bd8fe5-770e-490d-98df-2173b9a8e0fd") + @objid ("a12290aa-aa0b-425f-bda1-11e185189e5b") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "ef0c1237-df8a-4bfc-8f0b-d3ad72e39bf4"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -148,11 +145,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 5874be39..f4ff34a5 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.camelcore.standard.classifier; @@ -127,7 +127,7 @@ */ @objid ("2d7f6e37-5b08-4a69-88e8-d8b0a19ca96a") public abstract class FeatureClassifier extends Feature { - @objid ("35926a0f-2884-479b-bbc6-592453d71fb6") + @objid ("ef3c6fc0-44af-41d8-9959-7309f73a08ef") public static final String STEREOTYPE_NAME = "Feature_Classifier"; /** @@ -138,7 +138,7 @@ public abstract class FeatureClassifier extends Feature { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("c3dbd314-eb65-475f-9bfc-14aaad07ab49") + @objid ("da423b56-d0c6-4299-a0c4-7c34223f4e28") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Classifier) && ((Classifier) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, FeatureClassifier.STEREOTYPE_NAME)); } @@ -147,8 +147,9 @@ public static boolean canInstantiate(final MObject elt) { * Add a value to the 'attributes' role.

* Role description: * null + * */ - @objid ("93ff7e75-99f8-440a-8e2f-36b61a689b13") + @objid ("a31b6058-3ce2-49bf-8e71-f4f3b0750b6d") public void addAttributes(final AttributeAttribute obj) { if (obj!=null) ((Classifier) this.elt).getOwnedAttribute().add(obj.getElement()); @@ -158,14 +159,15 @@ public void addAttributes(final AttributeAttribute obj) { * Add a value to the 'subFeatures' role.

* Role description: * null + * */ - @objid ("89f1ddf0-8d47-44d6-901d-1c18e9650b74") + @objid ("8ed0e17f-e890-481a-a292-db17da038acf") public void addSubFeatures(final FeatureClassifier obj) { if (obj!=null) ((Classifier) this.elt).getOwnedElement().add(obj.getElement()); } - @objid ("f510d58c-9b42-4e92-ad1b-e1f31fcddbbc") + @objid ("6382e35b-12c3-4c52-8461-8f58a9dcf89d") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -185,27 +187,27 @@ public boolean equals(final Object obj) { * Get the values of the 'attributes' role.

* Role description: * null + * */ - @objid ("86f1ee7b-6786-4b83-a905-0a1bbaa24631") + @objid ("7197c7fa-ec9c-4b62-b621-b71fdee1d02f") public List getAttributes() { List results = new ArrayList<>(); for (Attribute mObj : ((Classifier) 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); } /** - * Get the underlying {@link Classifier}. - * + * Get the underlying {@link Classifier}. * @return the Classifier represented by this proxy, never null. */ - @objid ("1e6f95a0-8730-44da-a527-f26611da4451") + @objid ("4f5ef67d-dcb7-44a8-aa15-cbfbb071466b") @Override public Classifier getElement() { return (Classifier)super.getElement(); @@ -215,8 +217,9 @@ public Classifier getElement() { * Get the value to the 'parent' role.

* Role description: * null + * */ - @objid ("bc256007-2cae-453b-b751-9fa74a58cd08") + @objid ("c7d9c595-2d79-4d2a-b185-7e02f2cf78c2") public FeatureClassifier getParent() { return (FeatureClassifier)CamelDesignerProxyFactory.instantiate(((Classifier) this.elt).getOwner(), FeatureClassifier.STEREOTYPE_NAME); } @@ -225,188 +228,189 @@ public FeatureClassifier getParent() { * Get the values of the 'subFeatures' role.

* Role description: * null + * */ - @objid ("29fe786b-0340-42cf-9770-e21045f10804") + @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); } - @objid ("273bb874-8a82-4800-b91f-bfae34d230c9") + @objid ("bff340f8-e408-4756-9e07-7d1bd194ba9d") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -416,8 +420,9 @@ public int hashCode() { * Remove a value from the 'attributes' role.

* Role description: * null + * */ - @objid ("4f3d0359-6fcd-4e04-94c5-fc551c2b9ee3") + @objid ("96f894b6-d9bc-464b-a0da-3a009daee695") public boolean removeAttributes(final AttributeAttribute obj) { return (obj!=null)? ((Classifier) this.elt).getOwnedAttribute().remove(obj.getElement()) : false; } @@ -426,8 +431,9 @@ public boolean removeAttributes(final AttributeAttribute obj) { * Remove a value from the 'subFeatures' role.

* Role description: * null + * */ - @objid ("7a51c9f2-1d48-4b13-a0f1-d0e596bd4f23") + @objid ("0a902189-1932-4827-b0f1-69da308f9b84") public boolean removeSubFeatures(final FeatureClassifier obj) { return (obj!=null)? ((Classifier) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -436,8 +442,9 @@ public boolean removeSubFeatures(final FeatureClassifier obj) { * Set the value of the 'parent' role.

* Role description: * null + * */ - @objid ("6f354da1-cfa8-41a4-8936-71bbb3e5afc1") + @objid ("9c4e7b93-7214-4352-b2ce-856269c41cc9") public void setParent(final FeatureClassifier obj) { ((Classifier) this.elt).setOwner((obj != null) ? obj.getElement() : null); } @@ -452,23 +459,23 @@ public List getChilds() { return result; } - @objid ("baa12588-97a3-4534-b37f-a8c000371158") + @objid ("84d662a9-fd22-4390-b02e-232b3f49ea09") protected FeatureClassifier(final Classifier elt) { super(elt); } @objid ("625f1330-cd2e-4a07-af63-465f510059f1") public static final class MdaTypes { - @objid ("5e98a1ef-def8-4109-bd06-f34d935203c2") + @objid ("1a8b4450-4a58-4599-8128-c698ae5c8899") public static Stereotype STEREOTYPE_ELT; - @objid ("72671328-32e4-473c-8767-9228b65ec7c7") + @objid ("fa5fc02b-0ec1-4e4c-a878-ffe539befc8b") private static Stereotype MDAASSOCDEP; - @objid ("d54acea3-0490-40dc-8dae-18cae1406c80") + @objid ("cc757a2c-3f28-4870-beb2-7815dae41090") private static TagType MDAASSOCDEP_ROLE; - @objid ("67bbabd0-7a0a-4c14-8dfb-816cdd737578") + @objid ("f7121a2e-f636-42c3-b430-9600cf6fdc77") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "7c5a3627-4282-427f-93a3-957cdca1adb7"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -476,11 +483,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 afcd7e4f..68cd4ac9 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.camelcore.standard.connector; @@ -36,7 +36,7 @@ */ @objid ("e8779648-b44d-4776-a06d-d33bf013b2d7") public class FeatureConnector extends Feature { - @objid ("dd4dad71-bc3f-410b-96ea-c0700e74993f") + @objid ("38f77800-1cec-4e62-8c7b-72f5aa82f84c") public static final String STEREOTYPE_NAME = "Feature_Connector"; /** @@ -47,7 +47,7 @@ public class FeatureConnector extends Feature { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("27590b21-f964-44ae-a8a2-4be0601ccd3a") + @objid ("7c2717f3-00a6-4927-b090-37e024bd9f88") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Connector) && ((Connector) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, FeatureConnector.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link FeatureConnector} proxy on the created {@link Connector}. */ - @objid ("fe113482-3af9-4cc0-9f3e-21a599681998") + @objid ("de5f3ccd-aa6b-460d-8358-5f3119d01eb9") public static FeatureConnector create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Connector"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, FeatureConnector.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("ac2a3b06-3f23-405d-a5c4-d51a1758387d") + @objid ("d314e40a-bbae-4dc4-b952-b3049d3dc65b") public static FeatureConnector instantiate(final Connector obj) { return FeatureConnector.canInstantiate(obj) ? new FeatureConnector(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("cdbcde45-1864-441b-99fd-c7cc61a57fb6") + @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 ("28a71681-41d6-4b50-ac04-3a3239cc0b1f") + @objid ("5629473d-2254-4389-bae7-e1de17a1fec6") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,17 +109,16 @@ 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 ("afa0c239-a612-4086-be4e-33de6b80c632") + @objid ("0ffc9279-343b-4a5c-a84d-fe934cf018c7") @Override public Connector getElement() { return (Connector)super.getElement(); } - @objid ("2401090f-e88f-4de1-99c3-924989b2674e") + @objid ("87e6f377-bd28-4b86-95c7-8291f1f11bf1") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -135,23 +132,23 @@ public List getChilds() { return result; } - @objid ("4da02022-6853-47b7-b38a-2668daa84f5f") + @objid ("9a3e93f1-6df0-4339-9018-0bd2c35573f8") protected FeatureConnector(final Connector elt) { super(elt); } @objid ("6b5ec3ef-f04f-448d-b275-ff41664d9e6e") public static final class MdaTypes { - @objid ("b57d1567-e7aa-437f-b082-3fe52798114a") + @objid ("5ed08267-cd71-482c-916f-efd847eb86e9") public static Stereotype STEREOTYPE_ELT; - @objid ("a3b70d3c-1000-4105-8978-9c9014b56507") + @objid ("6d3e508e-a649-4f2d-9dec-17ea8b85b542") private static Stereotype MDAASSOCDEP; - @objid ("a49e92f6-280c-4637-aa76-dccf2597f061") + @objid ("44f762ba-b3c7-49d2-8f1f-060c603b4801") private static TagType MDAASSOCDEP_ROLE; - @objid ("6b16d32a-8785-4dc8-a614-33d58c6f02bd") + @objid ("7e882f9e-34a7-44de-8bd5-a2b14d26225c") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "e94d1d27-429c-47ce-a373-e940bf1bf49b"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -159,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/standard/datatype/FeatureDataType.java b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/datatype/FeatureDataType.java index 5161e7c7..4cf3609b 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.camelcore.standard.datatype; @@ -36,7 +36,7 @@ */ @objid ("fb49805b-f839-4291-96a7-e27350a2a19b") public class FeatureDataType extends FeatureClassifier { - @objid ("270f5b65-1187-49c5-b578-ba261bedccb2") + @objid ("0912ba9e-78c9-4a11-b9f6-0fca82c5b65b") public static final String STEREOTYPE_NAME = "Feature_DataType"; /** @@ -47,7 +47,7 @@ public class FeatureDataType extends FeatureClassifier { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("fdff3918-76d5-4e10-9fe4-96387d531bed") + @objid ("3f04cdc4-1953-433f-8aed-f436cc3e6874") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof DataType) && ((DataType) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, FeatureDataType.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link FeatureDataType} proxy on the created {@link DataType}. */ - @objid ("dfb68c7a-a6f8-43c4-8a57-bb9bc4f4e5bb") + @objid ("80265807-9d4d-4d9b-a40b-6887a8533661") public static FeatureDataType create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.DataType"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, FeatureDataType.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("abb5db46-a41a-455b-b92e-b00e67a24455") + @objid ("9523ec04-2ed2-4739-96e6-946d1906a2bb") public static FeatureDataType instantiate(final DataType obj) { return FeatureDataType.canInstantiate(obj) ? new FeatureDataType(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("a71648de-9f59-42ed-9eba-a997417df13f") + @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 ("e10ac001-f257-4211-97c9-573f5e53f783") + @objid ("1396632a-dfbf-426a-90a9-09182b20c81f") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,17 +109,16 @@ 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 ("3225c755-17e4-477f-839f-962cd957956b") + @objid ("2a9371cf-7c62-413e-97bf-b4fe313f4b60") @Override public DataType getElement() { return (DataType)super.getElement(); } - @objid ("44bd8f75-264c-4403-88ac-74ce9a966549") + @objid ("a0080e59-8450-4d08-ae52-101a17843327") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -135,23 +132,23 @@ public List getChilds() { return result; } - @objid ("29b7c1a4-229c-470d-bcb9-b51542101c87") + @objid ("cd933482-7ac2-4f44-b26f-311559e892a9") protected FeatureDataType(final DataType elt) { super(elt); } @objid ("70c8de77-0287-43e4-850d-c6ebd3c36717") public static final class MdaTypes { - @objid ("e5446cfc-6fba-4c26-8a00-869552fa1620") + @objid ("a2c81a6a-9f72-4c31-932d-26e1a4947971") public static Stereotype STEREOTYPE_ELT; - @objid ("5c0fd7aa-6f4c-449f-a29c-868e206aee0d") + @objid ("8ad07316-4c4b-4aca-ac8d-90f43b573308") private static Stereotype MDAASSOCDEP; - @objid ("c3ab6b9d-412f-47c3-b6ed-307c15d255b1") + @objid ("e21fda48-caa3-49ba-b0a3-60c51969de5a") private static TagType MDAASSOCDEP_ROLE; - @objid ("561ff493-56eb-4537-a092-86babaab8ec0") + @objid ("9352f845-0724-4d83-afb0-625c977e051c") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "eaf56346-fbac-4409-ad4f-4e1a6c4183d1"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -159,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/standard/enumeration/FeatureEnumeration.java b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/enumeration/FeatureEnumeration.java index f5a04220..3b8eb865 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.camelcore.standard.enumeration; @@ -34,7 +34,7 @@ */ @objid ("f9e34d12-f1b6-4c81-9391-96850b3d19c2") public class FeatureEnumeration extends FeatureClassifier { - @objid ("943986ec-cc2a-491a-9136-cbb5a9c59ab2") + @objid ("53eb0126-65a1-4f09-8ec6-75249109eb74") public static final String STEREOTYPE_NAME = "Feature_Enumeration"; /** @@ -45,7 +45,7 @@ public class FeatureEnumeration extends FeatureClassifier { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("9f8b8108-482f-43b8-8db0-17ca5ea6a105") + @objid ("7d7963b9-79ff-40c2-8ebb-b00c38312bf6") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Enumeration) && ((Enumeration) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, FeatureEnumeration.STEREOTYPE_NAME)); } @@ -55,7 +55,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link FeatureEnumeration} proxy on the created {@link Enumeration}. */ - @objid ("25179470-0f2f-41af-9f80-b4171c171589") + @objid ("5d0ef833-3b7d-4e2d-850e-59f3c1797dc7") public static FeatureEnumeration create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Enumeration"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, FeatureEnumeration.STEREOTYPE_NAME); @@ -63,36 +63,34 @@ 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. */ - @objid ("6499e8e2-88f8-423d-a63e-ee7fdcc9b2f4") + @objid ("d4925630-b873-4204-97bb-89d6b1c34c08") public static FeatureEnumeration instantiate(final Enumeration obj) { return FeatureEnumeration.canInstantiate(obj) ? new FeatureEnumeration(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("5989423e-cfab-432d-9b25-0314f59daf21") + @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 ("fbba21b6-f114-4aa9-b00f-da2f66ee20fa") + @objid ("3fd673ba-541f-411e-abef-cd68f1f9d9e7") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -109,39 +107,38 @@ 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 ("0eb4dd05-9f07-498b-b0ca-51619007e078") + @objid ("bb59d25c-4ba1-4023-96fb-9b1e4103f453") @Override public Enumeration getElement() { return (Enumeration)super.getElement(); } - @objid ("d9735f27-da0c-414f-9dcd-3102daf5597f") + @objid ("3bc338d5-bbf2-4f66-9e7f-669edd752086") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); } - @objid ("e8a70c8e-3319-4921-8c82-eca4cf9e3b59") + @objid ("509f1782-b11e-4205-9a47-218d33d591d5") protected FeatureEnumeration(final Enumeration elt) { super(elt); } @objid ("a269a5b3-0221-4ddb-b9f7-b45550b3f049") public static final class MdaTypes { - @objid ("5d635659-839c-4f6a-a924-03799e79c9be") + @objid ("2ef8fdae-4728-4b70-adb3-7e44c2bd7b67") public static Stereotype STEREOTYPE_ELT; - @objid ("0bd3854c-697f-46f9-8b1f-e3c40bdb520f") + @objid ("7bcd19aa-81fc-443a-acff-b2d420f40d82") private static Stereotype MDAASSOCDEP; - @objid ("743ff7bc-8e92-48b7-b878-bc3e234f9a33") + @objid ("cb3bb2c5-cbd7-4687-b37f-fda32dda2f79") private static TagType MDAASSOCDEP_ROLE; - @objid ("7ab21a95-f384-4964-b919-a89f2d5b289e") + @objid ("61e04975-6b26-4890-969f-bb3d75d34748") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "56eb7780-c162-400f-8e4b-0a5178cef153"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -149,11 +146,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 32116231..5fb8423f 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.camelcore.standard.instance; @@ -36,7 +36,7 @@ */ @objid ("026725c7-06a7-48a0-9a82-211b4a69fe6e") public class FeatureInstance extends Feature { - @objid ("b0527527-13cc-4c06-bbcb-ead432831465") + @objid ("e0d656d8-2555-4c17-9d2e-48dcceae21f4") public static final String STEREOTYPE_NAME = "Feature_Instance"; /** @@ -47,7 +47,7 @@ public class FeatureInstance extends Feature { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("c5221794-2704-4491-bdf3-9c9fca8ed4dc") + @objid ("717bbcab-17eb-4776-b684-a5427478741e") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Instance) && ((Instance) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, FeatureInstance.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link FeatureInstance} proxy on the created {@link Instance}. */ - @objid ("972bab42-07df-4a90-b267-061d7cbd490e") + @objid ("74ad4720-f01b-43f2-a0b9-f08b52e668f4") public static FeatureInstance create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Instance"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, FeatureInstance.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("16112938-8bee-404e-9715-9ca746ee5f7d") + @objid ("fdec6d62-b2d2-4fa1-b1ae-58dd91700b20") public static FeatureInstance instantiate(final Instance obj) { return FeatureInstance.canInstantiate(obj) ? new FeatureInstance(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("8899a22d-e276-4f4b-a6d7-276334a53188") + @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 ("6d95bcd9-1604-430e-829c-2768a1e7841d") + @objid ("22ce77d9-1f60-460b-959e-e3e712f5ab4b") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,17 +109,16 @@ 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 ("57bd4f2b-47e0-450e-b121-8264eda5d7c6") + @objid ("191ec980-0577-41ee-9b9f-d55684e68a2d") @Override public Instance getElement() { return (Instance)super.getElement(); } - @objid ("b39b958e-aa5f-4c6a-a456-5c8e01694d06") + @objid ("442482f4-7d10-46f3-9de6-1c077cf94426") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -134,23 +131,23 @@ public List getChilds() { return result; } - @objid ("f9f2643e-2df2-48b6-a958-5096723c546d") + @objid ("87835eb6-72c2-4de0-8427-bb44fbcad06f") protected FeatureInstance(final Instance elt) { super(elt); } @objid ("bf9810f2-5a6a-44a1-8c28-e5122e59ab09") public static final class MdaTypes { - @objid ("be4df520-4dd7-4885-93f1-18c5b3666076") + @objid ("b43df253-5a94-4e6b-99e8-88311137d10e") public static Stereotype STEREOTYPE_ELT; - @objid ("0db23a5e-7d20-4890-b98f-666be546a2e1") + @objid ("81d29d51-819d-496f-9092-e0464d781717") private static Stereotype MDAASSOCDEP; - @objid ("88deef87-241e-4d43-a27e-216e7f512a3b") + @objid ("ace6dbc8-4b01-481a-8374-c89fe4aa37a1") private static TagType MDAASSOCDEP_ROLE; - @objid ("f3d97d16-15c6-42ea-8041-af5fe4431987") + @objid ("dab2f102-c34c-4440-8c58-6a1e74562d3a") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "df209aca-1325-4c99-b383-ca2650224ff6"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -158,11 +155,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 ae40791b..667c9f8c 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.camelcore.standard.namespace; @@ -35,7 +35,7 @@ */ @objid ("061096ce-1ee0-43f7-8df5-38b8fc736e2f") public abstract class Action extends Feature { - @objid ("34f11b87-5971-4837-9c2d-162abdb77f11") + @objid ("6e6051cb-cf57-46a9-a5bd-5bacf43816fe") public static final String STEREOTYPE_NAME = "Action"; /** @@ -46,7 +46,7 @@ public abstract class Action extends Feature { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("19911443-eb07-4e4c-bbd1-7cbc3a7a20e5") + @objid ("6b1aaa63-9159-4aa3-8f07-8289b976ee51") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof NameSpace) && ((NameSpace) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, Action.STEREOTYPE_NAME)); } @@ -59,7 +59,7 @@ public static Action safeInstantiate(NameSpace obj) { throw new IllegalArgumentException("Action: Cannot instantiate "+obj+": wrong element type or stereotype"); } - @objid ("aae34ba2-ef2d-45b2-b627-209fa779433e") + @objid ("5fb99757-5ced-43c3-8544-db50e1d55321") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -76,39 +76,38 @@ 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 ("a7408c82-9095-4a13-a74e-196ee9c434c2") + @objid ("973d6595-d0cb-473a-985c-16084a450aa2") @Override public NameSpace getElement() { return (NameSpace)super.getElement(); } - @objid ("6917dc0e-7c02-4646-97b2-cfed78a3996e") + @objid ("2a5a33fc-3ef2-4a99-8932-1d618ffc6a24") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); } - @objid ("b5d660b4-c580-4a0c-b5f6-ae71c69378ed") + @objid ("0c7c7d3d-566a-40b5-ad8b-fe92e065b5df") protected Action(final NameSpace elt) { super(elt); } @objid ("c5dc4266-14c2-4368-9374-34e0d3602383") public static final class MdaTypes { - @objid ("cbb50109-b92d-4777-b0a1-845092359a1d") + @objid ("b1656d0a-83be-4fd3-b823-7a38f0d7b53b") public static Stereotype STEREOTYPE_ELT; - @objid ("f034ae9f-9d8f-4ae4-b7d6-5e2def767b21") + @objid ("f163009e-715c-43a0-8dfb-75116904d421") private static Stereotype MDAASSOCDEP; - @objid ("377e057d-1d18-402c-b980-89756b8c52b3") + @objid ("3f92ddd5-49b7-4c04-8cbb-03017d46523a") private static TagType MDAASSOCDEP_ROLE; - @objid ("6a05dd79-62a8-40af-8c83-7f1a0bbc2e62") + @objid ("098aaa16-a199-480d-b14d-21ac02846d2d") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "b23cd4a9-cc6d-43b4-b5fc-fbab5abf866b"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -116,11 +115,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 5673f74e..919f7486 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.camelcore.standard.package_; @@ -55,13 +55,13 @@ */ @objid ("67058037-b681-4ff5-91f4-e5aa09469cd2") public class CamelModel extends ExpendableElement { - @objid ("e7f32e69-80fa-4bb1-b2f0-5070ac6a1047") + @objid ("e46ce07f-784c-4aae-a0d6-b92d85609b61") public static final String STEREOTYPE_NAME = "CamelModel"; - @objid ("ba2f1784-c1b3-4eae-87cd-7b3d0f7a8480") + @objid ("ed85b0e8-946d-4373-bc17-ec913e2899fc") public static final String APPLICATIONNAME_TAGTYPE = "applicationName"; - @objid ("b4382caf-ab98-4210-8494-887e911c29cd") + @objid ("7777c081-6933-4ba7-93c1-8f00b357501c") public static final String APPLICATIONVERSION_TAGTYPE = "applicationVersion"; /** @@ -72,7 +72,7 @@ public class CamelModel extends ExpendableElement { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("cedada48-f24e-4ff1-b569-03efa8a2e337") + @objid ("d74dfaa9-7b9d-42bb-afa9-0d772221725a") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Package) && ((Package) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, CamelModel.STEREOTYPE_NAME)); } @@ -82,7 +82,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link CamelModel} proxy on the created {@link Package}. */ - @objid ("f9741b69-60ad-4e2a-b455-79c6a0946248") + @objid ("eb818cdf-a8bd-4e58-bb8a-5c58bd0b57a4") public static CamelModel create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Package"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, CamelModel.STEREOTYPE_NAME); @@ -90,41 +90,40 @@ public static CamelModel create() { } /** - * Tries to instantiate a {@link CamelModel} proxy from a {@link Package} stereotyped << CamelModel >> checking its metaclass and its stereotype. + * 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. */ - @objid ("cce569aa-bc45-4f47-94fb-ba74749bead9") + @objid ("58e60ab4-f34a-4ec4-9c28-072dd1f33fb1") public static CamelModel instantiate(final Package obj) { return CamelModel.canInstantiate(obj) ? new CamelModel(obj) : null; } /** - * Tries to instantiate a {@link CamelModel} proxy from a {@link Package} stereotyped << CamelModel >> checking its metaclass and its stereotype. + * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("e6a53a18-89d8-4922-9870-3fca10bd274f") + @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 ("5c32958d-777e-499e-86ac-d1a898b6bfd2") + @objid ("794f4fd6-a1d5-4c51-a68b-157c1489f8b2") public void addDataModels(final DataModel obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -134,8 +133,9 @@ public void addDataModels(final DataModel obj) { * Add a value to the 'deploymentModels' role.

* Role description: * null + * */ - @objid ("47a3a746-9edd-4d61-b669-8035b5eecadd") + @objid ("46eaf10c-ec91-4a65-8cfb-e3fca6aac0fd") public void addDeploymentModels(final DeploymentModel obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -145,8 +145,9 @@ public void addDeploymentModels(final DeploymentModel obj) { * Add a value to the 'executionModels' role.

* Role description: * null + * */ - @objid ("8e901e54-ee3f-41db-b9f1-f363ca7c6bea") + @objid ("16007382-c157-4719-aa76-6f44ff557841") public void addExecutionModels(final ExecutionModel obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -156,8 +157,9 @@ public void addExecutionModels(final ExecutionModel obj) { * Add a value to the 'locationModels' role.

* Role description: * null + * */ - @objid ("868abbde-75f3-4e5d-b36f-b647f85b09c6") + @objid ("b8c2e985-d952-45ab-bc79-e9a5336b7ac7") public void addLocationModels(final LocationModel obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -167,8 +169,9 @@ public void addLocationModels(final LocationModel obj) { * Add a value to the 'metaDataModels' role.

* Role description: * null + * */ - @objid ("56c38fa7-85ed-440c-9109-0e90cbb0fe4b") + @objid ("c410814f-0edf-4a0b-86ff-db75b4edb70c") public void addMetaDataModels(final MetaDataModel obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -178,8 +181,9 @@ public void addMetaDataModels(final MetaDataModel obj) { * Add a value to the 'metricModels' role.

* Role description: * null + * */ - @objid ("fb508562-8409-41b0-9ad8-e571ae7aee22") + @objid ("56d929ae-170f-4eed-9290-8df38d7c100b") public void addMetricModels(final MetricModel obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -189,8 +193,9 @@ public void addMetricModels(final MetricModel obj) { * Add a value to the 'organisationModels' role.

* Role description: * null + * */ - @objid ("c5523b84-3c2b-4efd-8762-f9f7e1788881") + @objid ("dc9fe35c-9ffb-430d-b161-dc961809bb99") public void addOrganisationModels(final OrganisationModel obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -200,8 +205,9 @@ public void addOrganisationModels(final OrganisationModel obj) { * Add a value to the 'requirementModels' role.

* Role description: * null + * */ - @objid ("fb286dd5-515f-4aca-9291-2706a5c4153c") + @objid ("698fbc58-3d0c-4e32-839a-0bd845a7a5f5") public void addRequirementModels(final RequirementModel obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -211,8 +217,9 @@ public void addRequirementModels(final RequirementModel obj) { * Add a value to the 'scalabilityModels' role.

* Role description: * null + * */ - @objid ("90635690-3448-4424-9e5a-57637e1aff3e") + @objid ("57390f06-1803-4e78-b400-9ff2a79c1d1a") public void addScalabilityModels(final ScalabilityModel obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -222,8 +229,9 @@ public void addScalabilityModels(final ScalabilityModel obj) { * Add a value to the 'securityModels' role.

* Role description: * null + * */ - @objid ("b9cacf3a-0d1e-4336-bc54-769bad7767f4") + @objid ("dddc7450-6a87-4a26-8fb6-9616a2ae9ea2") public void addSecurityModels(final SecurityModel obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -233,8 +241,9 @@ public void addSecurityModels(final SecurityModel obj) { * Add a value to the 'typeModels' role.

* Role description: * null + * */ - @objid ("4b77e942-3f61-465f-b485-88d2dfa4a6e5") + @objid ("330cee9d-a8e5-4259-9c86-895d5402298c") public void addTypeModels(final TypeModel obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -244,14 +253,15 @@ public void addTypeModels(final TypeModel obj) { * Add a value to the 'unitModels' role.

* Role description: * null + * */ - @objid ("0a5e3fe3-648a-41b3-b45a-e63265d61b55") + @objid ("d760a823-30ad-4ef6-8095-95a62a78a3ad") public void addUnitModels(final UnitModel obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); } - @objid ("43226470-8371-4daf-8826-44128e5daa2f") + @objid ("25638c10-3aa6-4e2e-9c2d-01764ed94d42") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -272,7 +282,7 @@ public boolean equals(final Object obj) { *

Property description: *
null

*/ - @objid ("578c7f9f-7d7e-45f2-a9d8-0f55dc81318c") + @objid ("8ae9ee2b-05b2-46e7-ba61-61ee0d3d82cd") public String getApplicationName() { return this.elt.getTagValue(CamelModel.MdaTypes.APPLICATIONNAME_TAGTYPE_ELT); } @@ -282,7 +292,7 @@ public String getApplicationName() { *

Property description: *
null

*/ - @objid ("c635cb7f-92dd-4958-97c9-e0683d1e4af7") + @objid ("48e52bab-d5f5-4019-a9d3-b5c585bc63ef") public String getApplicationVersion() { return this.elt.getTagValue(CamelModel.MdaTypes.APPLICATIONVERSION_TAGTYPE_ELT); } @@ -291,16 +301,17 @@ public String getApplicationVersion() { * Get the values of the 'dataModels' role.

* Role description: * null + * */ - @objid ("ab6eef72-7c75-441a-96d2-e138b7efedd2") + @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); } @@ -308,25 +319,25 @@ public List getDataModels() { * Get the values of the 'deploymentModels' role.

* Role description: * null + * */ - @objid ("019e05d9-1a45-458f-9d9a-65a336d8a21b") + @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}. - * + * Get the underlying {@link Package}. * @return the Package represented by this proxy, never null. */ - @objid ("edc8f8d1-6a7a-4b99-8a4c-8ae606d9a91c") + @objid ("a6603f99-9c6e-4ec7-a4f6-36ec09ba66cd") @Override public Package getElement() { return (Package)super.getElement(); @@ -336,14 +347,15 @@ public Package getElement() { * Get the values of the 'executionModels' role.

* Role description: * null + * */ - @objid ("c72e4e71-5e5f-4788-92a3-a02616bd70df") + @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); } @@ -351,14 +363,15 @@ public List getExecutionModels() { * Get the values of the 'locationModels' role.

* Role description: * null + * */ - @objid ("f2ee4f76-08b6-4dba-86da-62c03234dd6a") + @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); } @@ -366,14 +379,15 @@ public List getLocationModels() { * Get the values of the 'metaDataModels' role.

* Role description: * null + * */ - @objid ("d64b8eeb-29b5-4505-82f6-5487db20cca1") + @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); } @@ -381,16 +395,17 @@ public List getMetaDataModels() { * Get the values of the 'metricModels' role.

* Role description: * null + * */ - @objid ("28086c75-a5c2-440d-b71b-6ee9170ac7f0") + @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); } @@ -398,14 +413,15 @@ public List getMetricModels() { * Get the values of the 'organisationModels' role.

* Role description: * null + * */ - @objid ("042c16d1-0e79-4c1f-a165-35caf8e9bc18") + @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); } @@ -413,14 +429,15 @@ public List getOrganisationModels() { * Get the values of the 'requirementModels' role.

* Role description: * null + * */ - @objid ("823268aa-9d63-44a8-be12-7a735379fdf7") + @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); } @@ -428,14 +445,15 @@ public List getRequirementModels() { * Get the values of the 'scalabilityModels' role.

* Role description: * null + * */ - @objid ("8bea238c-9f13-42c4-a60c-352e8fe2e6f8") + @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); } @@ -443,14 +461,15 @@ public List getScalabilityModels() { * Get the values of the 'securityModels' role.

* Role description: * null + * */ - @objid ("0c1bf383-c4e4-4497-a9cb-a9658d84f980") + @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); } @@ -458,14 +477,15 @@ public List getSecurityModels() { * Get the values of the 'typeModels' role.

* Role description: * null + * */ - @objid ("fd6fb6d4-330f-4355-800f-6c392a8b9cc5") + @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); } @@ -473,18 +493,19 @@ public List getTypeModels() { * Get the values of the 'unitModels' role.

* Role description: * null + * */ - @objid ("8d1b6d6d-b38f-4322-8066-01b963ed3f9d") + @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); } - @objid ("e42cb3ea-b26f-4266-9707-4972f4a7778f") + @objid ("ea00208b-d5c2-4727-b28d-1d1fbbc2295d") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -494,8 +515,9 @@ public int hashCode() { * Remove a value from the 'dataModels' role.

* Role description: * null + * */ - @objid ("2032b026-db48-4e23-814c-ddce253d5a47") + @objid ("4c5d1f3e-2010-4b75-9016-5936e26cadee") public boolean removeDataModels(final DataModel obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -504,8 +526,9 @@ public boolean removeDataModels(final DataModel obj) { * Remove a value from the 'deploymentModels' role.

* Role description: * null + * */ - @objid ("6dad6ffb-4a7a-4842-9ec2-8515523837c4") + @objid ("4c0bce36-8735-49bd-a9d2-f32111376ef8") public boolean removeDeploymentModels(final DeploymentModel obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -514,8 +537,9 @@ public boolean removeDeploymentModels(final DeploymentModel obj) { * Remove a value from the 'executionModels' role.

* Role description: * null + * */ - @objid ("ded9eaf5-292c-4326-b483-e8184222918d") + @objid ("3cdee868-a430-4bfa-ae57-4c1bb2a65550") public boolean removeExecutionModels(final ExecutionModel obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -524,8 +548,9 @@ public boolean removeExecutionModels(final ExecutionModel obj) { * Remove a value from the 'locationModels' role.

* Role description: * null + * */ - @objid ("2faa03d3-1167-4481-84b7-50334c7fafeb") + @objid ("1dd94ef6-da55-4617-8980-90a6e11b737c") public boolean removeLocationModels(final LocationModel obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -534,8 +559,9 @@ public boolean removeLocationModels(final LocationModel obj) { * Remove a value from the 'metaDataModels' role.

* Role description: * null + * */ - @objid ("7104e3f1-2395-4216-bd41-335cb9372f96") + @objid ("a561aed1-5c6e-4ea1-ad5f-10c976bc7725") public boolean removeMetaDataModels(final MetaDataModel obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -544,8 +570,9 @@ public boolean removeMetaDataModels(final MetaDataModel obj) { * Remove a value from the 'metricModels' role.

* Role description: * null + * */ - @objid ("5b803069-1657-4076-afe9-032011f59ac2") + @objid ("fcfeb6dd-9777-4c7a-a17c-83a179f3e645") public boolean removeMetricModels(final MetricModel obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -554,8 +581,9 @@ public boolean removeMetricModels(final MetricModel obj) { * Remove a value from the 'organisationModels' role.

* Role description: * null + * */ - @objid ("49d5f31a-b096-4d48-ad7f-b5942b19a580") + @objid ("10550734-926c-4b2b-ae6f-06655baac95e") public boolean removeOrganisationModels(final OrganisationModel obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -564,8 +592,9 @@ public boolean removeOrganisationModels(final OrganisationModel obj) { * Remove a value from the 'requirementModels' role.

* Role description: * null + * */ - @objid ("8432f39f-b493-410e-a647-dd25ac981bc6") + @objid ("586a708e-e38f-4aa6-876e-1d6d684f3ffe") public boolean removeRequirementModels(final RequirementModel obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -574,8 +603,9 @@ public boolean removeRequirementModels(final RequirementModel obj) { * Remove a value from the 'scalabilityModels' role.

* Role description: * null + * */ - @objid ("0a5fddad-22e1-4a17-ba94-2ea05eee6a88") + @objid ("c6f044c6-3393-4ad1-81f2-e6afc3cdddd8") public boolean removeScalabilityModels(final ScalabilityModel obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -584,8 +614,9 @@ public boolean removeScalabilityModels(final ScalabilityModel obj) { * Remove a value from the 'securityModels' role.

* Role description: * null + * */ - @objid ("6e93c669-fcae-4abf-a847-a180ddfd325c") + @objid ("a43ae54c-34f6-4f80-a42c-9c8a1d6a974c") public boolean removeSecurityModels(final SecurityModel obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -594,8 +625,9 @@ public boolean removeSecurityModels(final SecurityModel obj) { * Remove a value from the 'typeModels' role.

* Role description: * null + * */ - @objid ("a22804b4-65f4-41a6-8732-5f367a93f9de") + @objid ("d8204252-0b78-4550-a857-e2b0fb60ee0d") public boolean removeTypeModels(final TypeModel obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -604,8 +636,9 @@ public boolean removeTypeModels(final TypeModel obj) { * Remove a value from the 'unitModels' role.

* Role description: * null + * */ - @objid ("1f65f4d8-e85b-4b9c-9f7f-db133db72cc3") + @objid ("1854ee33-fc3a-44b8-a8aa-f228383cc9e8") public boolean removeUnitModels(final UnitModel obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -615,7 +648,7 @@ public boolean removeUnitModels(final UnitModel obj) { *

Property description: *
null

*/ - @objid ("763e68c7-d10a-4af3-bccf-3d0523286c52") + @objid ("9af8d169-660c-413e-a002-29925395b522") public void setApplicationName(final String value) { this.elt.putTagValue(CamelModel.MdaTypes.APPLICATIONNAME_TAGTYPE_ELT, value); } @@ -625,7 +658,7 @@ public void setApplicationName(final String value) { *

Property description: *
null

*/ - @objid ("de775256-1f31-463c-9215-3124fae854fe") + @objid ("e48c5ae7-bb0a-4f8c-babb-defd48f1b65d") public void setApplicationVersion(final String value) { this.elt.putTagValue(CamelModel.MdaTypes.APPLICATIONVERSION_TAGTYPE_ELT, value); } @@ -649,29 +682,29 @@ public List getChilds() { return result; } - @objid ("16c6c4f2-12ab-4259-a85b-1ffdb738af41") + @objid ("cb608af7-3867-46d3-b9ff-af7f60abf075") protected CamelModel(final Package elt) { super(elt); } @objid ("18704a21-5db9-4f8d-9058-4c21969dcd9d") public static final class MdaTypes { - @objid ("cb3c647d-f2ed-4682-91a8-5e78a0586e38") + @objid ("4d6e16ef-2eb6-4c67-895a-623ca3c3bc09") public static Stereotype STEREOTYPE_ELT; - @objid ("018b6d23-4ef9-4b72-9e55-f606485b0ed6") + @objid ("21dcdb93-b0cd-4630-8d65-e5bac993bc8a") public static TagType APPLICATIONNAME_TAGTYPE_ELT; - @objid ("6c518aab-16ed-45e3-a8c7-7d2b0fcab435") + @objid ("fd58a6d3-5214-4c4c-be04-a4a6094e90fd") public static TagType APPLICATIONVERSION_TAGTYPE_ELT; - @objid ("27f10910-b99c-4e03-aaa1-d554254f3441") + @objid ("38702fdc-1525-4f15-bb93-984893d6ad5f") private static Stereotype MDAASSOCDEP; - @objid ("dd98f5d6-1afe-4a37-b3ae-207a660ac733") + @objid ("56f6b47a-63ee-4679-8e76-66cd50a8563c") private static TagType MDAASSOCDEP_ROLE; - @objid ("459a42bc-5dbe-47ad-8c27-293b97196685") + @objid ("37b10392-b7bd-4769-aa98-c04088f21ee5") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "e33cb0ef-7003-4579-8739-638c171ab891"); APPLICATIONNAME_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "1e31728e-d8b4-4498-9d67-219b020ee5ff"); @@ -681,11 +714,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 4b7f1d56..b0490d9e 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 @@ -1,24 +1,18 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.camelcore.standard.package_; import java.util.ArrayList; import java.util.Collections; import java.util.List; +import java.util.Objects; 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.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; import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.Feature; import fr.softeam.cameldesigner.api.camelcore.standard.class_.AttributeClass; import fr.softeam.cameldesigner.api.camelcore.standard.class_.MeasurableAttributeClass; @@ -42,6 +36,19 @@ 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.modelio.model.IModelingSession; +import org.modelio.api.modelio.model.PropertyConverter; +import org.modelio.api.module.context.IModuleContext; +import org.modelio.metamodel.mmextensions.infrastructure.ExtensionNotFoundException; +import org.modelio.metamodel.uml.infrastructure.Dependency; +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.infrastructure.properties.PropertyDefinition; +import org.modelio.metamodel.uml.infrastructure.properties.PropertyTableDefinition; +import org.modelio.metamodel.uml.statik.Package; +import org.modelio.vcore.smkernel.mapi.MObject; /** * Proxy class to handle a {@link Package} with << Feature_Package >> stereotype. @@ -50,18 +57,18 @@ */ @objid ("2c4ed9c5-ea74-49d5-9198-5847748ef92e") public abstract class FeaturePackage extends Feature { - @objid ("1e269e99-1153-4790-9cb6-925333d6a149") + @objid ("cf428328-bcdd-41aa-9a8a-d94f86ba2aa9") public static final String STEREOTYPE_NAME = "Feature_Package"; /** * Tells whether a {@link FeaturePackage proxy} can be instantiated from a {@link MObject} checking it is a {@link Package} stereotyped << Feature_Package >>. *

* 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. */ - @objid ("ca63f013-043d-4787-a823-d7e3a18dec94") + @objid ("a639aee1-6cf8-49a0-901d-87407781c8e3") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Package) && ((Package) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, FeaturePackage.STEREOTYPE_NAME)); } @@ -70,8 +77,9 @@ public static boolean canInstantiate(final MObject elt) { * Add a value to the 'attributes' role.

* Role description: * null + * */ - @objid ("9179b585-ece5-448d-b02d-90638eb071ed") + @objid ("1156b729-fe02-4c83-94ee-58215d982775") public void addAttributes(final AttributeClass obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -81,14 +89,15 @@ public void addAttributes(final AttributeClass obj) { * Add a value to the 'subFeatures' role.

* Role description: * null + * */ - @objid ("e494372d-3ea0-46cf-b031-c52864dc1627") + @objid ("de19bfd5-6c4c-420b-9cc6-265d780b7389") public void addSubFeatures(final FeaturePackage obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); } - @objid ("c5a1cc7a-8f85-4a42-bcc3-f9870897922e") + @objid ("64e29e53-493a-4226-8c46-0c3f4e2d91e4") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -108,31 +117,31 @@ public boolean equals(final Object obj) { * Get the values of the 'attributes' role.

* Role description: * null + * */ - @objid ("a26238eb-cda3-42c8-a55e-2da50cb8f62d") + @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 ("7ab59d08-1a68-48d0-9fe1-562cb5f08bbd") + @objid ("0b81f507-37b5-46fa-b2e5-a9d803ce88c5") @Override public Package getElement() { return (Package)super.getElement(); @@ -142,8 +151,9 @@ public Package getElement() { * Get the value to the 'parent' role.

* Role description: * null + * */ - @objid ("0047bc85-676d-458e-9ff6-5563d691d5ec") + @objid ("fe9df3d1-85f1-4bf6-aa1e-6e8f9443db48") public FeaturePackage getParent() { return (FeaturePackage)CamelDesignerProxyFactory.instantiate(((Package) this.elt).getOwner(), FeaturePackage.STEREOTYPE_NAME); } @@ -152,56 +162,49 @@ public FeaturePackage getParent() { * Get the values of the 'subFeatures' role.

* Role description: * null + * */ - @objid ("a9197534-8f0c-47be-b0d8-feac0b135f2b") + @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); } - @Override - public List getChilds() { - List result = new ArrayList<>(); - result.addAll(super.getChilds()); - result.addAll(getAttributes()); - return result; - } - - @objid ("032316ff-60a6-4503-b2db-431f420860ea") + @objid ("0abadedf-c05b-4eb3-9ed6-fd3d29105185") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -211,8 +214,9 @@ public int hashCode() { * Remove a value from the 'attributes' role.

* Role description: * null + * */ - @objid ("854ff6ee-1091-4771-8275-6faf62d02523") + @objid ("e4cac05b-bdc0-4054-918d-6c387e566a47") public boolean removeAttributes(final AttributeClass obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -221,8 +225,9 @@ public boolean removeAttributes(final AttributeClass obj) { * Remove a value from the 'subFeatures' role.

* Role description: * null + * */ - @objid ("ee59f5f8-c615-4b12-b5cb-c7fc81f1d210") + @objid ("d9a3638a-5942-47a7-b8da-aadb41c22b7a") public boolean removeSubFeatures(final FeaturePackage obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -231,29 +236,30 @@ public boolean removeSubFeatures(final FeaturePackage obj) { * Set the value of the 'parent' role.

* Role description: * null + * */ - @objid ("8a8c9649-328a-41d3-a751-e6adf61941a6") + @objid ("9a2be274-afc9-429a-b70c-c5c9e2f7fe3e") public void setParent(final FeaturePackage obj) { ((Package) this.elt).setOwner((obj != null) ? obj.getElement() : null); } - @objid ("f6f9f595-709f-47f7-8775-da8b7ab92912") + @objid ("b1120265-f347-45ec-93cc-b8fcfd1a3fdb") protected FeaturePackage(final Package elt) { super(elt); } @objid ("21c2bdec-ab84-4154-b5ff-90933f016c05") public static final class MdaTypes { - @objid ("be0d5115-bdc2-4a4a-a3b5-21b1012a80a9") + @objid ("07befc9b-4c89-4582-bccd-ddd9aecb05c9") public static Stereotype STEREOTYPE_ELT; - @objid ("95c8b301-50f1-4925-ad34-bbafa0c1372f") + @objid ("0a873c2c-9e83-4c65-b7c4-e884ac28586a") private static Stereotype MDAASSOCDEP; - @objid ("8e7d9b52-005b-4515-9376-9c08b23e83f5") + @objid ("d62f7d5b-8957-4e15-a8ed-1996f7efecb0") private static TagType MDAASSOCDEP_ROLE; - @objid ("f3c5f621-9b0c-4686-9667-254bf942e641") + @objid ("5441794d-36ca-4f84-ae04-ccc258d12fe5") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "9a524454-5126-4778-9cec-5eae95e4f160"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -261,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/camelcore/standard/package_/SubModel.java b/src/main/java/fr/softeam/cameldesigner/api/camelcore/standard/package_/SubModel.java index bde3e743..a1d1a08c 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 @@ -1,21 +1,17 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.camelcore.standard.package_; import java.util.ArrayList; -import java.util.List; +import java.util.Collections; +import java.util.Objects; import com.modeliosoft.modelio.javadesigner.annotations.objid; -import org.modelio.api.module.context.IModuleContext; -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; import fr.softeam.cameldesigner.api.constraintmodel.standard.package_.ConstraintModel; import fr.softeam.cameldesigner.api.datamodel.standard.package_.DataModel; import fr.softeam.cameldesigner.api.deploymentmodel.standard.package_.DeploymentModel; @@ -30,6 +26,18 @@ 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.modelio.model.IModelingSession; +import org.modelio.api.modelio.model.PropertyConverter; +import org.modelio.api.module.context.IModuleContext; +import org.modelio.metamodel.mmextensions.infrastructure.ExtensionNotFoundException; +import org.modelio.metamodel.uml.infrastructure.Dependency; +import org.modelio.metamodel.uml.infrastructure.ModelElement; +import org.modelio.metamodel.uml.infrastructure.Stereotype; +import org.modelio.metamodel.uml.infrastructure.TagType; +import org.modelio.metamodel.uml.infrastructure.properties.PropertyDefinition; +import org.modelio.metamodel.uml.infrastructure.properties.PropertyTableDefinition; +import org.modelio.metamodel.uml.statik.Package; +import org.modelio.vcore.smkernel.mapi.MObject; /** * Proxy class to handle a {@link Package} with << SubModel >> stereotype. @@ -38,18 +46,18 @@ */ @objid ("f07e87ba-586c-403f-a02b-a1871d8d3882") public abstract class SubModel extends FeaturePackage { - @objid ("4aa6217c-3bbc-4f14-80e1-0216e52a885a") + @objid ("ed70d567-b9dc-4ab1-a78a-fd0fcfeed810") public static final String STEREOTYPE_NAME = "SubModel"; /** * Tells whether a {@link SubModel proxy} can be instantiated from a {@link MObject} checking it is a {@link Package} stereotyped << SubModel >>. *

* 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. */ - @objid ("57c9827f-21de-46ec-b2f0-a9e44a6e046b") + @objid ("b2f1dc96-3320-4f63-a6cf-552ee409081b") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Package) && ((Package) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, SubModel.STEREOTYPE_NAME)); } @@ -71,14 +79,7 @@ public static SubModel instantiate(final Package obj) { UnitModel.canInstantiate(obj) ? UnitModel.instantiate(obj) : null; } - @Override - public List getChilds() { - List result = new ArrayList<>(); - result.addAll(super.getChilds()); - return result; - } - - @objid ("308c5d47-d90e-4926-9428-2f3daa76a5f9") + @objid ("4ae57c6b-7ea9-4498-bacf-097d604eb4e5") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -95,39 +96,38 @@ 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 ("223df6df-6562-40e0-b621-b8a5a6057c6f") + @objid ("242cf6b2-23de-449a-9949-54747c35031d") @Override public Package getElement() { return (Package)super.getElement(); } - @objid ("07905999-97a7-4ff9-84c1-37f9541c464a") + @objid ("d4991922-8daf-4844-8221-de24a658e9c8") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); } - @objid ("9c7c4cd5-ba90-4148-a17b-0d18bcf34eed") + @objid ("80b8cb84-c92b-4886-97fa-27ee0e50f35d") protected SubModel(final Package elt) { super(elt); } @objid ("272d938f-b497-426d-a404-96b884126080") public static final class MdaTypes { - @objid ("90d6e6ce-521f-46b4-9399-dced8ca942cc") + @objid ("0ac2ff96-5c87-4398-88e9-c1cbeef0ae44") public static Stereotype STEREOTYPE_ELT; - @objid ("0cd3e6d8-2451-4bb7-b36a-d47b31985685") + @objid ("7a49cc40-9cf2-4601-9732-2dc84fe6cf96") private static Stereotype MDAASSOCDEP; - @objid ("2dac0e1f-28eb-46df-a01d-2d74cb326c18") + @objid ("46a3be47-a167-4bb7-a899-8d2da1aa2bbe") private static TagType MDAASSOCDEP_ROLE; - @objid ("3c5e27db-3b24-4b14-887c-ff0903523e81") + @objid ("46fd0b40-bec6-46c4-81e1-3242d2371583") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "577c153e-42b8-4f36-9686-1a6109ffdc16"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -135,11 +135,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 58f47f65..504eac7c 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.camelcore.standard.port; @@ -34,7 +34,7 @@ */ @objid ("df72df64-fde5-4c17-ad49-37e1bb0285a0") public class FeaturePort extends FeatureInstance { - @objid ("77e5b6c9-3882-40f3-9cc8-becf70fa8079") + @objid ("01034da4-06ce-4d97-b524-9d923d2a81d9") public static final String STEREOTYPE_NAME = "Feature_Port"; /** @@ -45,7 +45,7 @@ public class FeaturePort extends FeatureInstance { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("eb576342-0cab-4243-8ccd-9acfdf5845fc") + @objid ("30a87a14-0e23-484f-a099-563f2f320cc2") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Port) && ((Port) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, FeaturePort.STEREOTYPE_NAME)); } @@ -55,7 +55,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link FeaturePort} proxy on the created {@link Port}. */ - @objid ("b1e3f2ed-c5ea-42dd-9759-13abb301f724") + @objid ("d5a5c6e2-d674-45dd-911e-1a0e69a7eb77") public static FeaturePort create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Port"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, FeaturePort.STEREOTYPE_NAME); @@ -63,36 +63,34 @@ 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. */ - @objid ("c466011c-4f3f-4d56-a7d9-9a0656e7afc8") + @objid ("c1eea209-e1d2-4511-a1af-d84d6aff53de") public static FeaturePort instantiate(final Port obj) { return FeaturePort.canInstantiate(obj) ? new FeaturePort(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("2b324aee-b54b-45c6-9baa-bc6091d0ded6") + @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 ("09c5b3ea-a46b-42ad-a941-fb7cb5dfc649") + @objid ("ecb5d057-aa85-42c2-ae74-0febf65cec18") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -109,39 +107,38 @@ 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 ("f191312b-23a4-4494-ac0e-ac1cc1a8e6ce") + @objid ("7f514945-012e-474b-b2ef-48c6cc4052cb") @Override public Port getElement() { return (Port)super.getElement(); } - @objid ("ba95109b-493a-4f1c-9889-d7c80e92a87a") + @objid ("b706ce36-95ba-42ef-a0e1-30312a29ab35") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); } - @objid ("140cc3c3-0dc0-4285-80c4-e8ad541af5c0") + @objid ("0bba243d-2769-4238-82d1-15b8e94023cf") protected FeaturePort(final Port elt) { super(elt); } @objid ("a8d9e562-ebce-4b04-a8f8-b81512ba3fd4") public static final class MdaTypes { - @objid ("34585ddb-be93-4bbb-a836-f29626171f54") + @objid ("f863a206-4fb1-441d-9627-6adc43411a32") public static Stereotype STEREOTYPE_ELT; - @objid ("055352fc-90df-44aa-9a68-0c5cdf3de368") + @objid ("a1d6682c-6215-4a1c-8020-08ad50a1207e") private static Stereotype MDAASSOCDEP; - @objid ("88d042e4-4c69-4f18-9312-cec508310041") + @objid ("3f00ac46-3297-43ff-b960-7f4a4e2a2361") private static TagType MDAASSOCDEP_ROLE; - @objid ("50c4358b-79c9-468d-a531-7fc4ff74081e") + @objid ("98887fa0-6938-448b-a399-6c327d8861c1") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "18d0504c-73e0-4c7c-8341-53038298af2c"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -149,11 +146,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 0a18d8b9..2a2e7d06 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.cameldiagrams.infrastructure.abstractdiagram; @@ -34,7 +34,7 @@ */ @objid ("6bdaebda-7701-4743-a8e3-51e9d10ac891") public abstract class AbstractCamelDiagram extends ExpendableElement { - @objid ("751764ba-30fc-4573-ac80-0559a08df946") + @objid ("0b0539d3-6de4-44b1-a041-22049d15c5fb") public static final String STEREOTYPE_NAME = "AbstractCamelDiagram"; /** @@ -45,12 +45,12 @@ public abstract class AbstractCamelDiagram extends ExpendableElement { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("9b0c36cd-999a-4935-a460-d332b688c88e") + @objid ("1e44c76a-95a7-4487-a954-4ed77010ed97") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof AbstractDiagram) && ((AbstractDiagram) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, AbstractCamelDiagram.STEREOTYPE_NAME)); } - @objid ("737bc4e1-333b-4d09-87cd-7899726137cf") + @objid ("47ce14f0-8436-44f4-93df-bfe9f1a203b9") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -67,39 +67,38 @@ 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 ("1efaaa42-2aa7-42e5-a16a-b63ab6032294") + @objid ("c7433740-76b7-4e0a-ba9e-22f607f7f025") @Override public AbstractDiagram getElement() { return (AbstractDiagram)super.getElement(); } - @objid ("77307449-5c0a-4f32-a46c-1e50d1652af7") + @objid ("cbe5ff01-daad-40d1-a627-3fdcd00dda1b") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); } - @objid ("81bb3166-10f6-4266-ab1b-a303a90bb571") + @objid ("290227c4-d0e0-4a3d-8a6d-cf79ba7d90b1") protected AbstractCamelDiagram(final AbstractDiagram elt) { super(elt); } @objid ("96cdd4aa-6ccf-4f23-a3d7-5aaaba7243d3") public static final class MdaTypes { - @objid ("506b1261-3ded-4f2c-b3c3-90c69b310fdd") + @objid ("f751fea1-a485-4c6e-a77a-8fb5ca44ae6b") public static Stereotype STEREOTYPE_ELT; - @objid ("d76a68c2-8a8c-4927-a19e-ada93d84aa87") + @objid ("73eee0c7-f66e-44ef-9f50-3b7496a397ed") private static Stereotype MDAASSOCDEP; - @objid ("a698121d-0adc-4109-a2a2-2f45afe7ceda") + @objid ("af4ac895-aa12-40b1-bb99-44f6be65b0a8") private static TagType MDAASSOCDEP_ROLE; - @objid ("7b567359-0e07-4d42-9ca8-9a42c6ecb24e") + @objid ("12bae290-61c2-49ab-ab18-45d6cbc533d2") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "c147d6d3-8bd0-4b94-a9d6-164a947fa0b4"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -107,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/cameldiagrams/standard/classdiagram/CamelModelDiagram.java b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/CamelModelDiagram.java index 3f5bff5b..b2c6c710 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram; @@ -36,7 +36,7 @@ */ @objid ("2c59f838-a1e2-4ac9-bf6c-e229175cc354") public class CamelModelDiagram extends AbstractCamelDiagram { - @objid ("1edbcbc4-b518-4dbe-9007-7e0ed4af9994") + @objid ("1125e817-b6b6-491a-9612-34b287c22299") public static final String STEREOTYPE_NAME = "CamelModelDiagram"; /** @@ -47,7 +47,7 @@ public class CamelModelDiagram extends AbstractCamelDiagram { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("ba054718-6f9e-48f4-a9fa-ae56ec3c890e") + @objid ("9fceb36b-4b74-43d3-ac70-6d7800984ca3") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof ClassDiagram) && ((ClassDiagram) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, CamelModelDiagram.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link CamelModelDiagram} proxy on the created {@link ClassDiagram}. */ - @objid ("bcaff51c-df80-43a5-ab2d-22f9de290396") + @objid ("cf5faf10-db61-401e-8c16-0825c8508ebb") public static CamelModelDiagram create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.ClassDiagram"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, CamelModelDiagram.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("c3358747-683c-42e8-8515-ccc3740f6203") + @objid ("24ce7c8f-7acb-4060-bcd5-8084dc8328c4") public static CamelModelDiagram instantiate(final ClassDiagram obj) { return CamelModelDiagram.canInstantiate(obj) ? new CamelModelDiagram(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("7f03ed57-850a-41d7-8a0a-62671b027c92") + @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 ("0de5bad1-cee4-4a16-b314-e0e69fa19bc2") + @objid ("87cf292c-0463-4853-bb8e-58f413bf176b") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,17 +109,16 @@ 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 ("52d84c27-42a8-4454-9f58-511421509993") + @objid ("ad5f2988-ed9c-49e7-885c-3ce165f9d539") @Override public ClassDiagram getElement() { return (ClassDiagram)super.getElement(); } - @objid ("bb1414c2-04de-4790-84fc-1ea40542e9ea") + @objid ("b3c4a75a-0658-4ba8-949b-6ddd39659119") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -134,23 +131,23 @@ public List getChilds() { return result; } - @objid ("759ba218-6471-4614-9867-5f1cf7c31ebd") + @objid ("bcbab8e5-526e-4646-b29f-5c85d3f76335") protected CamelModelDiagram(final ClassDiagram elt) { super(elt); } @objid ("4c4f1d52-c636-4b3b-a84c-7e0d2ad342f4") public static final class MdaTypes { - @objid ("d0d431f8-5afe-49b1-a84e-4cf9e6c4ad4a") + @objid ("1e1fb655-3f25-417d-922d-cc92624fdf71") public static Stereotype STEREOTYPE_ELT; - @objid ("17cb0a76-5005-4777-b10f-e03c22d6a640") + @objid ("ceacd7a2-458b-4cec-a9f8-10a64b5bd8d0") private static Stereotype MDAASSOCDEP; - @objid ("d6a9e8b6-a4cb-40eb-865a-6b8ec5194f90") + @objid ("1296097e-6b7f-4afa-ace7-045c47725e5b") private static TagType MDAASSOCDEP_ROLE; - @objid ("4ca06c5a-0264-4abe-896c-3426377ed173") + @objid ("1d48f0bc-3163-4ae6-bddf-1838ea275b4d") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "eec7381e-4c61-4f7c-9a1c-210f2fe38377"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -158,11 +155,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 4a238785..a5a2624c 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram; @@ -33,13 +33,13 @@ */ @objid ("a0996f72-f1c0-426f-b6d0-bc09ebb96da4") public class CamelViewPoint { - @objid ("9eb9e3d7-3723-47b6-91bf-74ef45f869d4") + @objid ("5e102373-cfc4-44ba-8197-95caa2ff60b7") public static final String STEREOTYPE_NAME = "CamelViewPoint"; /** * The underlying {@link ClassDiagram} represented by this proxy, never null. */ - @objid ("77e5066d-69a1-4bfc-9938-5d0d3aebc3d9") + @objid ("d0376cf8-a9b3-4e65-9d2b-1540df50bd6f") protected final ClassDiagram elt; /** @@ -50,7 +50,7 @@ public class CamelViewPoint { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("4d0894b0-ab13-4830-a17a-a9a7869f4471") + @objid ("3f7f99ce-034d-40e0-beee-975b5cb2a35f") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof ClassDiagram) && ((ClassDiagram) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, CamelViewPoint.STEREOTYPE_NAME)); } @@ -60,7 +60,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link CamelViewPoint} proxy on the created {@link ClassDiagram}. */ - @objid ("e1bf2121-aec7-47eb-a410-44d026d5b004") + @objid ("c3990da4-32e5-41db-a375-12e3f695d818") public static CamelViewPoint create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.ClassDiagram"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, CamelViewPoint.STEREOTYPE_NAME); @@ -68,36 +68,34 @@ 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. */ - @objid ("dbb5c345-40b0-485f-9cdd-d2f871200f6f") + @objid ("fff4db0c-ec9f-441d-b901-a9f4604b5a88") public static CamelViewPoint instantiate(final ClassDiagram obj) { return CamelViewPoint.canInstantiate(obj) ? new CamelViewPoint(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("e6ec73a0-94ec-4830-823b-0c4575bc42e9") + @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 ("610e7182-5c5d-49fc-8880-8efc7e215625") + @objid ("7f39697e-03f9-4361-9a74-8dafd29119a1") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -114,38 +112,37 @@ 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 ("2b8bb62b-0025-4cb6-a707-8e1736946885") + @objid ("2f0e31b6-ea8e-4d59-99bb-1a182220ba23") public ClassDiagram getElement() { return this.elt; } - @objid ("c770def0-2255-46f5-90f4-e69582b056a2") + @objid ("52105baa-8434-48d5-9645-9539f528eb63") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); } - @objid ("4bdb0854-4b58-4408-b0ad-650aabb95693") + @objid ("d570bb61-dd7a-475e-9052-d47e03fd1b70") protected CamelViewPoint(final ClassDiagram elt) { this.elt = elt; } @objid ("b97bab2c-d812-455d-9d9d-74777baddf53") public static final class MdaTypes { - @objid ("51ee7bda-7ea0-4ff9-bf0d-60a41ceec2f2") + @objid ("0e871006-ceed-4a64-9dea-db1c294f3559") public static Stereotype STEREOTYPE_ELT; - @objid ("9310e9d2-3715-45cf-aedf-f60c24bb8470") + @objid ("d8f997d8-4d29-4474-b33a-dfbde85b5227") private static Stereotype MDAASSOCDEP; - @objid ("941143aa-a42c-445d-a73c-21c11d8019c3") + @objid ("ed291755-1751-44a8-aa84-fe2747440370") private static TagType MDAASSOCDEP_ROLE; - @objid ("928b65a1-4da4-48dc-928b-ecb9518ae768") + @objid ("2adae500-f128-492f-a621-f4c84ccb2872") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "e46b07f3-2bf2-48c1-8218-3a31ce9fa75d"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -153,11 +150,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 aa0025d6..ac7179cb 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram; @@ -36,7 +36,7 @@ */ @objid ("73ef4e61-0be5-40e6-8c65-2c42095a3cd4") public class ConstraintModelDiagram extends AbstractCamelDiagram { - @objid ("b675dd21-78b2-41c3-a884-09ab1659aaab") + @objid ("9ba8b1a3-40d6-444e-843e-d5c446876207") public static final String STEREOTYPE_NAME = "ConstraintModelDiagram"; /** @@ -47,7 +47,7 @@ public class ConstraintModelDiagram extends AbstractCamelDiagram { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("681c220d-a5ec-46b0-9d8d-378bd9ee6577") + @objid ("cff924d8-55cc-408b-9928-de79c424be54") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof ClassDiagram) && ((ClassDiagram) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, ConstraintModelDiagram.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link ConstraintModelDiagram} proxy on the created {@link ClassDiagram}. */ - @objid ("64154d9c-0e76-43f7-9d3d-0edc4c060e8c") + @objid ("a898fdec-07a6-4329-88e3-2b945ea9fbc4") public static ConstraintModelDiagram create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.ClassDiagram"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, ConstraintModelDiagram.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("606a6c6b-7804-4c13-988a-25c64fcb6ba5") + @objid ("8a2c61a2-bb8f-424e-8fec-2dfb3d32640e") public static ConstraintModelDiagram instantiate(final ClassDiagram obj) { return ConstraintModelDiagram.canInstantiate(obj) ? new ConstraintModelDiagram(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("8dd2e269-8151-44d8-a0bc-544490ece589") + @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 ("99826dff-a639-402d-b2e1-12e1c5bd40a6") + @objid ("9b55bd55-4e35-48d7-9bbe-b8406c4c9ee7") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,17 +109,16 @@ 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 ("b633a224-2fb9-4956-865a-11f84d19136e") + @objid ("addb9757-f31d-460e-bbef-9c4c1e346810") @Override public ClassDiagram getElement() { return (ClassDiagram)super.getElement(); } - @objid ("4831ae2d-72fc-474d-8101-18e3b4fd4b28") + @objid ("5f9fbc12-0fef-48e7-b73e-bcf7aee931b7") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -134,23 +131,23 @@ public List getChilds() { return result; } - @objid ("201fde6f-93c1-43a8-9fb0-3558b4479ca9") + @objid ("63dc7038-a345-40ee-8223-e8ed4175982d") protected ConstraintModelDiagram(final ClassDiagram elt) { super(elt); } @objid ("f2dc5f5a-e2e0-4d73-94bc-bce60436b972") public static final class MdaTypes { - @objid ("bead487d-738a-4e00-a1a2-9e44f51117ca") + @objid ("3a352c02-fc6d-4074-8f7e-38918f7aff33") public static Stereotype STEREOTYPE_ELT; - @objid ("92ee7f1e-a345-4e6f-a5bf-92439b9902c5") + @objid ("620ca853-4baa-4710-9978-b0f0f9104763") private static Stereotype MDAASSOCDEP; - @objid ("78f863b1-4027-44f3-b5b5-416909d2c67f") + @objid ("ea359a25-bfa9-4ca2-a0e7-b32dd28fc6f2") private static TagType MDAASSOCDEP_ROLE; - @objid ("7380feb8-5849-4da2-a89b-1bb1fe89308b") + @objid ("4a277aae-b7db-44ee-a41f-2e428494d584") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "62499a4d-4037-4aef-bb40-8b5495465a22"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -158,11 +155,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 dbc36272..5962592c 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram; @@ -34,7 +34,7 @@ */ @objid ("906f0452-ad9b-42bb-a248-2b290f3a2571") public class DataInstanceModelDiagram extends AbstractCamelDiagram { - @objid ("02eeb4cd-32b4-4687-933b-6fb4ba018d51") + @objid ("e1132c47-387b-42cb-a0d3-3e59d84f5166") public static final String STEREOTYPE_NAME = "DataInstanceModelDiagram"; /** @@ -45,7 +45,7 @@ public class DataInstanceModelDiagram extends AbstractCamelDiagram { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("ea0126b1-a843-42e6-975f-9485fa9a8c42") + @objid ("05d15526-6586-41b8-9100-f5eb5ec9d1bd") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof ClassDiagram) && ((ClassDiagram) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, DataInstanceModelDiagram.STEREOTYPE_NAME)); } @@ -55,7 +55,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link DataInstanceModelDiagram} proxy on the created {@link ClassDiagram}. */ - @objid ("bc974118-834a-4db8-8593-c7f3dbb6dad1") + @objid ("0b04ebcf-7b6b-4e96-bfa4-0f3b4324782b") public static DataInstanceModelDiagram create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.ClassDiagram"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, DataInstanceModelDiagram.STEREOTYPE_NAME); @@ -63,36 +63,34 @@ 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. */ - @objid ("7dae4c8a-89aa-470c-a5fc-afab7dfec3e7") + @objid ("db4a71b1-b094-4975-afbb-286a1e3795b7") public static DataInstanceModelDiagram instantiate(final ClassDiagram obj) { return DataInstanceModelDiagram.canInstantiate(obj) ? new DataInstanceModelDiagram(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("2406eb17-f0a8-4d3f-b43f-105254e66934") + @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 ("280bfb9d-7b74-43d7-985c-7213d7267cc5") + @objid ("ff819468-aab5-434f-bbe0-4ece82233673") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -109,39 +107,38 @@ 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 ("f0e9c372-95bf-4e8c-b403-a52f47a409d2") + @objid ("5d65cdb3-846f-49ea-a8f8-7ce3ef3d42c1") @Override public ClassDiagram getElement() { return (ClassDiagram)super.getElement(); } - @objid ("ba095bb3-5589-48f8-adea-dd712beaefc6") + @objid ("9c457e27-2e96-4fa5-9c58-3cabc5b03d02") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); } - @objid ("9078be55-5d9b-4f46-9445-131e715018a3") + @objid ("bc4daff0-cec8-4018-afef-16a9b9c928b1") protected DataInstanceModelDiagram(final ClassDiagram elt) { super(elt); } @objid ("fe41e622-b57a-48fd-aa9b-ded14e5c5266") public static final class MdaTypes { - @objid ("43c360fa-b43d-40e7-8141-3da8dbe7eb06") + @objid ("cb206d45-9ba6-4eec-921a-53cd00120bca") public static Stereotype STEREOTYPE_ELT; - @objid ("10b4e9eb-b352-42fb-bc74-9c073f32fced") + @objid ("2d976204-8124-4e73-acd3-cf48892c4c26") private static Stereotype MDAASSOCDEP; - @objid ("36cb2942-1f54-48f5-9ce6-e31697e32e26") + @objid ("a794f88a-f3fc-4f76-a089-113f8e94f59a") private static TagType MDAASSOCDEP_ROLE; - @objid ("80493176-e907-4d0a-af02-9cb853018f68") + @objid ("36845495-cd32-43ad-b0d4-4ccaaa2003a2") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "8ab145ba-4bc6-410d-be7a-b17e36147115"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -149,11 +146,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 fc21c385..3d16c2f6 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram; @@ -36,7 +36,7 @@ */ @objid ("05f54bfd-dbfd-4864-835a-f9d72e6569b8") public class DataTypeModelDiagram extends AbstractCamelDiagram { - @objid ("2d824038-036a-415c-a210-442714872ba8") + @objid ("bd6c154a-df9d-4c6e-b543-ee045618b8f3") public static final String STEREOTYPE_NAME = "DataTypeModelDiagram"; /** @@ -47,7 +47,7 @@ public class DataTypeModelDiagram extends AbstractCamelDiagram { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("8d107d9f-22b6-4883-9c96-f6ae1bb096dc") + @objid ("6bb67f79-c719-45a6-a58a-c81fe34cd9a5") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof ClassDiagram) && ((ClassDiagram) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, DataTypeModelDiagram.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link DataTypeModelDiagram} proxy on the created {@link ClassDiagram}. */ - @objid ("5ad92ad6-fa8a-4d25-a75c-41dd06d3630b") + @objid ("75bb2c36-f22f-4197-9b4f-68fbe8710e28") public static DataTypeModelDiagram create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.ClassDiagram"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, DataTypeModelDiagram.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("107202cb-0b40-4be4-bfe5-c25a0e5e8f42") + @objid ("065d4dae-867b-46b2-93ef-eabc46fe492b") public static DataTypeModelDiagram instantiate(final ClassDiagram obj) { return DataTypeModelDiagram.canInstantiate(obj) ? new DataTypeModelDiagram(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("9514f182-1ec3-49a4-b3e6-cfb7943703bc") + @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 ("0c271205-617c-4538-9f32-d4a731c36cd0") + @objid ("1561faea-6a93-4dcc-a85d-ce1799fc42ce") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,17 +109,16 @@ 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 ("31394ce2-e39f-4d96-afc5-e710cecdf257") + @objid ("ddcfdefc-f9a0-4619-9387-b40643ada889") @Override public ClassDiagram getElement() { return (ClassDiagram)super.getElement(); } - @objid ("def64e2b-70cc-4b84-9838-3e31f459b5a9") + @objid ("79364f64-77b9-4b10-a341-65ebf37a613a") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -134,23 +131,23 @@ public List getChilds() { return result; } - @objid ("f8ef02b8-c949-4191-b5f4-9cd36fa11fca") + @objid ("5dd88b0d-6c1e-481a-a5d3-39852e4511d9") protected DataTypeModelDiagram(final ClassDiagram elt) { super(elt); } @objid ("2da9cb4c-8a06-4c65-8a65-2240141641c4") public static final class MdaTypes { - @objid ("9bf1177c-d0ee-4747-8e89-805d77623352") + @objid ("c55cacf3-9c7f-48c7-ba97-b1cdb1c1dfab") public static Stereotype STEREOTYPE_ELT; - @objid ("a278d24c-40a9-4574-ae7c-d76641dce427") + @objid ("113a33bc-4fe8-4879-8069-1870e2ebaae6") private static Stereotype MDAASSOCDEP; - @objid ("b117ecc3-0bc2-4a25-9dbb-ba938fa033bb") + @objid ("7523ed35-6ba0-4d56-ba8e-d9a1ad7ca440") private static TagType MDAASSOCDEP_ROLE; - @objid ("1cce3350-bce0-4c28-b176-b34ff2ac6620") + @objid ("f7b4da01-5ac8-4876-9fa0-a22a3d5ae8b2") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "fc779080-0243-43b7-a1e1-9ddf71de93d7"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -158,11 +155,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 1a8dacf5..751e7237 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram; @@ -34,7 +34,7 @@ */ @objid ("f39da6fd-91a2-4ed4-b469-cf9c80c56e9c") public class DeploymentInstanceModelDiagram extends AbstractCamelDiagram { - @objid ("0431deea-e3ad-4913-9783-44e7e154fee7") + @objid ("54db8bb3-7b5e-4e13-b950-2b22a19c7b45") public static final String STEREOTYPE_NAME = "DeploymentInstanceModelDiagram"; /** @@ -45,7 +45,7 @@ public class DeploymentInstanceModelDiagram extends AbstractCamelDiagram { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("05402543-5f9a-4615-bbe7-0ecf84dab58d") + @objid ("c4ee270f-a874-4b40-9fe3-30035ad3d880") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof ClassDiagram) && ((ClassDiagram) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, DeploymentInstanceModelDiagram.STEREOTYPE_NAME)); } @@ -55,7 +55,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link DeploymentInstanceModelDiagram} proxy on the created {@link ClassDiagram}. */ - @objid ("eb86d77e-f009-4cac-a3ab-fe4b2b6abaa5") + @objid ("f01eddef-4a47-489c-a52f-d6dad2b5b88b") public static DeploymentInstanceModelDiagram create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.ClassDiagram"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, DeploymentInstanceModelDiagram.STEREOTYPE_NAME); @@ -63,36 +63,34 @@ 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. */ - @objid ("65612f03-5666-4041-bedd-e016da2c8d1e") + @objid ("2bfb4c55-e5b9-4b78-baf0-dfc6c58aff79") public static DeploymentInstanceModelDiagram instantiate(final ClassDiagram obj) { return DeploymentInstanceModelDiagram.canInstantiate(obj) ? new DeploymentInstanceModelDiagram(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("abb8eb01-e292-4b70-b947-6c691bde3ecb") + @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 ("6b698152-3dc3-4553-beb2-fc1909e4f39e") + @objid ("8ee303ed-9374-4735-b251-2a840dec6cf7") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -109,39 +107,38 @@ 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 ("69f4ac27-21c6-457c-ad38-78c7bb31097f") + @objid ("c700735e-ea2e-4ceb-8928-bfc1bee7cbd8") @Override public ClassDiagram getElement() { return (ClassDiagram)super.getElement(); } - @objid ("98ea5240-5d4a-4256-b6c2-922d6d1fbdd9") + @objid ("89e8aa8c-ed5c-44ff-90ea-cc23c99102b6") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); } - @objid ("c2d2178d-608e-4f6d-bd80-81d8d0460b69") + @objid ("14b8eacd-7daf-41b6-9508-06859068e779") protected DeploymentInstanceModelDiagram(final ClassDiagram elt) { super(elt); } @objid ("72b3d4f2-38d1-4f0c-84c4-d4774033c64c") public static final class MdaTypes { - @objid ("01787945-2c00-4e14-bb6e-0dab69a1322d") + @objid ("b2935cd2-f8de-4b94-8d2e-0b1766fa07fb") public static Stereotype STEREOTYPE_ELT; - @objid ("26cdf2ba-16f0-455c-a6d4-d95543cd4a98") + @objid ("ddb7f0a4-a8b2-42bf-b035-da6e34aeec90") private static Stereotype MDAASSOCDEP; - @objid ("7d158242-741c-407b-a395-2eb5f0cfea83") + @objid ("97e50d83-23c8-46a4-aab0-200b18933f8d") private static TagType MDAASSOCDEP_ROLE; - @objid ("be43766e-cb21-4841-8f7f-7ac9f47d11b2") + @objid ("8cedc31c-5f13-4882-8f45-52e95b165767") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "b5ff2f96-fb60-424e-ae18-02b24209d1af"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -149,11 +146,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 70a75cfe..1d028669 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram; @@ -36,7 +36,7 @@ */ @objid ("85540842-c7cb-455a-a265-21e99c9177ad") public class DeploymentTypeModelDiagram extends AbstractCamelDiagram { - @objid ("6f2b33ba-2ef2-488d-a284-8a416af2ce9b") + @objid ("922e9b58-6aaf-43d6-86f1-e92df177c0f1") public static final String STEREOTYPE_NAME = "DeploymentTypeModelDiagram"; /** @@ -47,7 +47,7 @@ public class DeploymentTypeModelDiagram extends AbstractCamelDiagram { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("9d164003-32b9-47cf-991e-37a38dcc8098") + @objid ("44ac8226-f271-46b4-91e2-a9fdecf4e6d3") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof ClassDiagram) && ((ClassDiagram) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, DeploymentTypeModelDiagram.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link DeploymentTypeModelDiagram} proxy on the created {@link ClassDiagram}. */ - @objid ("ec8152ed-6add-4133-9c66-62c081f97ce7") + @objid ("a164c4d9-b8a9-469d-83a2-235bb38e9248") public static DeploymentTypeModelDiagram create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.ClassDiagram"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, DeploymentTypeModelDiagram.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("f2e5cd71-1003-4dc1-af61-85f77ca46b95") + @objid ("aeafa9cb-371e-44a4-a425-b555b9ba1ce7") public static DeploymentTypeModelDiagram instantiate(final ClassDiagram obj) { return DeploymentTypeModelDiagram.canInstantiate(obj) ? new DeploymentTypeModelDiagram(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("3566385e-5bc1-4c9f-be79-8a36a24dfc7e") + @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 ("399675fa-6e20-41e0-9b32-ecb0f7234ec4") + @objid ("832d9d00-d458-4d1f-b7e2-752f5dc9bfbf") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,17 +109,16 @@ 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 ("2f55f1ab-a41c-464c-84b3-eba3dd3794a7") + @objid ("6998cf93-6e97-47d2-adc4-f4e28adf1900") @Override public ClassDiagram getElement() { return (ClassDiagram)super.getElement(); } - @objid ("dd2f4eec-cafb-402b-9f13-1cd92c053bc3") + @objid ("26b68e6a-4350-4202-8e98-3fae86b6ee46") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -135,23 +132,23 @@ public List getChilds() { return result; } - @objid ("a1f4b16c-dc24-4d68-9417-2dc051160531") + @objid ("91951e0e-2b83-4025-baed-7e9751554cdf") protected DeploymentTypeModelDiagram(final ClassDiagram elt) { super(elt); } @objid ("e60b30af-a064-499b-bd68-785456b8cd45") public static final class MdaTypes { - @objid ("87ebba65-599e-4249-84dc-67217fd8e714") + @objid ("d1ad803b-116d-46da-b2eb-d74de35a6115") public static Stereotype STEREOTYPE_ELT; - @objid ("db57ba90-d688-4a0f-8cdc-af33b91da3b2") + @objid ("b6bc89a8-40db-4456-bf76-9193973a62ab") private static Stereotype MDAASSOCDEP; - @objid ("ec9189b1-15c0-4a3a-b921-53952ae39716") + @objid ("ab89fc51-b47b-4bab-a310-48e156aa510c") private static TagType MDAASSOCDEP_ROLE; - @objid ("90346a3a-8bf7-403a-a15e-28564dfdf721") + @objid ("9a81c9fe-325e-49a5-9421-1d1ecf80e0c9") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "b78ff0fe-e31c-4034-ba6a-7a3d0626819e"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -159,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/cameldiagrams/standard/classdiagram/ExecutionModelDiagram.java b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/ExecutionModelDiagram.java index 46cf29fd..1375281f 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram; @@ -37,7 +37,7 @@ */ @objid ("81054f40-4a19-4bee-8959-d5f552c3e112") public class ExecutionModelDiagram extends AbstractCamelDiagram { - @objid ("34ea4b42-0c30-483c-a575-a2482b152b65") + @objid ("a63e5a4f-474f-41bb-9892-3a3007d20ad1") public static final String STEREOTYPE_NAME = "ExecutionModelDiagram"; /** @@ -48,7 +48,7 @@ public class ExecutionModelDiagram extends AbstractCamelDiagram { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("14abb5fe-0281-4500-a130-73cf7052c53c") + @objid ("069847d4-6e04-4f23-9883-f8cdf61ce11e") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof ClassDiagram) && ((ClassDiagram) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, ExecutionModelDiagram.STEREOTYPE_NAME)); } @@ -58,7 +58,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link ExecutionModelDiagram} proxy on the created {@link ClassDiagram}. */ - @objid ("89e4c754-855e-4e76-bb9e-291c4609ff51") + @objid ("e90555bd-a076-47cc-ace9-66055691fcad") public static ExecutionModelDiagram create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.ClassDiagram"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, ExecutionModelDiagram.STEREOTYPE_NAME); @@ -66,36 +66,34 @@ 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. */ - @objid ("e005b786-c450-4bd6-b9a6-66452ee2f62a") + @objid ("8319f71b-7667-480a-b450-3478351b45de") public static ExecutionModelDiagram instantiate(final ClassDiagram obj) { return ExecutionModelDiagram.canInstantiate(obj) ? new ExecutionModelDiagram(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("f27564b4-0e51-4098-bcf5-d5ef385ece36") + @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 ("6367c9f8-1574-46e1-bb7d-af99007b7a98") + @objid ("8ee75272-8b1d-4fff-9679-78a02ad2142a") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -112,11 +110,10 @@ 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 ("25cbabab-5a27-41b9-b3f6-6a4b31efbc6d") + @objid ("8979a025-5a4d-4da9-9204-bfbe050bbaeb") @Override public ClassDiagram getElement() { return (ClassDiagram)super.getElement(); @@ -126,13 +123,14 @@ public ClassDiagram getElement() { * Get the value to the 'Origin' role.

* Role description: * null + * */ - @objid ("b98eaceb-43d9-42da-94d1-7372dbbcdf4a") + @objid ("b311784e-7fc0-41b0-8404-f19dcc86b50b") public ExecutionModel getOrigin() { return (ExecutionModel)CamelDesignerProxyFactory.instantiate(((ClassDiagram) this.elt).getOrigin(), ExecutionModel.STEREOTYPE_NAME); } - @objid ("9b955000-c26c-4e5f-8674-936e14511229") + @objid ("5b7b16cf-7ab6-4e31-9e66-de275f145ec7") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -142,8 +140,9 @@ public int hashCode() { * Set the value of the 'Origin' role.

* Role description: * null + * */ - @objid ("06dc6ebf-b20b-46dc-81ac-04699cddd520") + @objid ("1c740b3f-3c54-4cfd-a58b-ff6fd16c9f7d") public void setOrigin(final ExecutionModel obj) { ((ClassDiagram) this.elt).setOrigin((obj != null) ? obj.getElement() : null); } @@ -155,23 +154,23 @@ public List getChilds() { return result; } - @objid ("848429a1-6e31-4a1b-8a34-3b8d61203f46") + @objid ("292a6e6f-5513-41e7-88ae-37493136f7ca") protected ExecutionModelDiagram(final ClassDiagram elt) { super(elt); } @objid ("ab4c82f7-565e-4087-a077-3c41552a0525") public static final class MdaTypes { - @objid ("84776ab5-30cf-47ea-98f0-5f026687acd4") + @objid ("ddd6de9d-2de7-4dac-af25-5bcbbd6cc24e") public static Stereotype STEREOTYPE_ELT; - @objid ("e7663f32-2956-4156-9145-cc4f08acb89c") + @objid ("810c095a-eb0f-4e86-8097-a1e6807299d3") private static Stereotype MDAASSOCDEP; - @objid ("9e3322d2-2884-4923-a024-3da2874d347a") + @objid ("2d1e2238-ac9c-4e49-8cd8-289a71a5c827") private static TagType MDAASSOCDEP_ROLE; - @objid ("a08acfbc-81e5-4588-af18-44b4461b7a18") + @objid ("a61e65cd-eec4-481c-9317-f324733bd672") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "40a6ab6a-6df9-40b0-a877-d1de85918a7d"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -179,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/cameldiagrams/standard/classdiagram/LocationModelDiagram.java b/src/main/java/fr/softeam/cameldesigner/api/cameldiagrams/standard/classdiagram/LocationModelDiagram.java index e30a3f9e..f0a09155 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram; @@ -36,7 +36,7 @@ */ @objid ("3bde63ac-785b-4593-8950-0fc92c6f6722") public class LocationModelDiagram extends AbstractCamelDiagram { - @objid ("e860b786-14ff-4fd2-a953-44d60ea81623") + @objid ("98614117-e907-4671-a29e-d0bdbf3856c0") public static final String STEREOTYPE_NAME = "LocationModelDiagram"; /** @@ -47,7 +47,7 @@ public class LocationModelDiagram extends AbstractCamelDiagram { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("470c1b1d-7748-4f9a-b6c5-6601a4609405") + @objid ("d5aeddfe-6368-4e8c-a3cb-b9b1c11ce645") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof ClassDiagram) && ((ClassDiagram) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, LocationModelDiagram.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link LocationModelDiagram} proxy on the created {@link ClassDiagram}. */ - @objid ("03d1bd91-6f5f-4931-a046-6bd8c8b345cf") + @objid ("23349a77-9afb-4ab8-ba6c-9f1b24f092c5") public static LocationModelDiagram create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.ClassDiagram"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, LocationModelDiagram.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("d7037782-591b-4329-a83d-c2a35eeb8308") + @objid ("9431d08c-cd98-4557-bbd0-84574af70276") public static LocationModelDiagram instantiate(final ClassDiagram obj) { return LocationModelDiagram.canInstantiate(obj) ? new LocationModelDiagram(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("637f17f1-b85b-4018-91d2-0052de7f4fe0") + @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 ("5adee3e3-e09b-4dfd-b5a9-a37e11c65c1e") + @objid ("d0284bd8-b2a5-4782-8040-33ce2575945a") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,17 +109,16 @@ 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 ("e319e24d-fa06-4386-9437-6a4c09598ea8") + @objid ("e597712a-9268-4856-b0c6-4af9ac377a48") @Override public ClassDiagram getElement() { return (ClassDiagram)super.getElement(); } - @objid ("2ea51940-df2d-429d-b51b-1d4c85369340") + @objid ("67c59076-09a3-40e9-a794-d6e3c932afef") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -134,23 +131,23 @@ public List getChilds() { return result; } - @objid ("dd251713-c097-4f65-bd0d-14ccd5dad758") + @objid ("8f3cd7b4-bc29-4319-a3e0-adb7b6810391") protected LocationModelDiagram(final ClassDiagram elt) { super(elt); } @objid ("d138d97f-c7b6-4d2d-8920-f01b2cc9522e") public static final class MdaTypes { - @objid ("afdca893-57db-45c2-b8a1-27b346773c90") + @objid ("9ac8d7e6-a471-45f5-b137-348009c16569") public static Stereotype STEREOTYPE_ELT; - @objid ("bb58a7b8-89a0-4289-b681-ca6d893f0b07") + @objid ("0107aab3-3dc5-40df-83ea-f2240f13d91f") private static Stereotype MDAASSOCDEP; - @objid ("b79fb94b-b531-498f-83ef-01555ca920a4") + @objid ("78c8839e-5d40-4348-ad7c-9e18fe3c0afb") private static TagType MDAASSOCDEP_ROLE; - @objid ("24004e0a-31bd-4075-839b-bc630a4072b9") + @objid ("71947c28-bf08-45ef-b295-7a1335de2b9e") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "8417972e-6235-45f0-b45e-8f6202da12d9"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -158,11 +155,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 0eae2a28..b6018e5d 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram; @@ -36,7 +36,7 @@ */ @objid ("9d27b61c-9964-415b-8763-d664a1036a71") public class MetadataModelDiagram extends AbstractCamelDiagram { - @objid ("90d9ce27-f44b-4620-b840-6c0c8becd961") + @objid ("f0c0e72b-b394-4606-bc21-65937dcaf9f8") public static final String STEREOTYPE_NAME = "MetadataModelDiagram"; /** @@ -47,7 +47,7 @@ public class MetadataModelDiagram extends AbstractCamelDiagram { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("8a42dd15-4535-4d17-93a6-81fbb7d13ddc") + @objid ("0e4118ab-cfd5-4893-9416-7a8b281a5b8d") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof ClassDiagram) && ((ClassDiagram) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, MetadataModelDiagram.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link MetadataModelDiagram} proxy on the created {@link ClassDiagram}. */ - @objid ("15c7d54b-0d2c-4721-aeb9-4cd6816bb31c") + @objid ("770dac17-57e5-4552-97c5-fc55bc59d250") public static MetadataModelDiagram create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.ClassDiagram"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, MetadataModelDiagram.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("d319d9a0-3840-4be3-8952-280ac38dff61") + @objid ("f4380122-fd6e-417c-82bd-1d057f9d4a8a") public static MetadataModelDiagram instantiate(final ClassDiagram obj) { return MetadataModelDiagram.canInstantiate(obj) ? new MetadataModelDiagram(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("fa8a2952-0148-46af-a3f0-7f96ed843186") + @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 ("e169a1c8-5481-489f-8fa8-6f836239ddb7") + @objid ("4164f84a-3221-41af-8b46-d6262e6d25a4") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,17 +109,16 @@ 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 ("f18467f1-6b18-46a0-b47e-94f3fa0966fe") + @objid ("b0cfd043-6f2a-49d3-afe0-63fd730f0dbd") @Override public ClassDiagram getElement() { return (ClassDiagram)super.getElement(); } - @objid ("3419bdbc-60d6-4602-bbd5-4fb47bb6b38f") + @objid ("13e7e97b-6241-41ec-9347-b0974a98eb90") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -134,23 +131,23 @@ public List getChilds() { return result; } - @objid ("e2504b10-f2eb-4d8d-acd4-f6aa3f0f7cf4") + @objid ("0e978639-b402-49ec-b377-9700416a7113") protected MetadataModelDiagram(final ClassDiagram elt) { super(elt); } @objid ("a698b7a7-3944-403a-99f0-89515053e6c9") public static final class MdaTypes { - @objid ("123b78d6-f042-4307-a329-e8ab0ee77d3c") + @objid ("ef6e3b8a-3537-44c1-910d-73742803094c") public static Stereotype STEREOTYPE_ELT; - @objid ("00ff26c9-0ad0-44b0-b520-a36cfb7fa028") + @objid ("407d70ff-eee8-4bb3-8c94-0598186834be") private static Stereotype MDAASSOCDEP; - @objid ("fd268b5d-ca4a-4a5b-91e3-e6e8c87033fd") + @objid ("be3d124b-2eb5-46d4-ba5d-5a570087a4b3") private static TagType MDAASSOCDEP_ROLE; - @objid ("d7327fec-f6af-49e1-881b-f7eed444aba4") + @objid ("7a2b9457-8ddf-4e16-a111-01053efad451") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "409ebd0d-ecd3-4a8a-95f0-0080c7137e1c"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -158,11 +155,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 c22e74e5..bc63cce3 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram; @@ -36,7 +36,7 @@ */ @objid ("9ab01658-74ff-4529-a699-43a56ff85f89") public class MetricInstanceModelDiagram extends AbstractCamelDiagram { - @objid ("39321c5e-00e0-486d-a2a1-b4652d1fc381") + @objid ("3c96a914-8d72-4848-9f42-ec0b9718c2ea") public static final String STEREOTYPE_NAME = "MetricInstanceModelDiagram"; /** @@ -47,7 +47,7 @@ public class MetricInstanceModelDiagram extends AbstractCamelDiagram { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("ca55a76d-7f14-4d37-98b9-a74264704688") + @objid ("694ca9d8-4a4e-446d-9e0c-906d7c0c956d") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof ClassDiagram) && ((ClassDiagram) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, MetricInstanceModelDiagram.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link MetricInstanceModelDiagram} proxy on the created {@link ClassDiagram}. */ - @objid ("1d2f6f88-b735-47f7-8e5c-13c4edc56621") + @objid ("425b52e7-4851-4f5e-9ba7-c00db6815fef") public static MetricInstanceModelDiagram create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.ClassDiagram"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, MetricInstanceModelDiagram.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("6b6df22d-6e3b-4a70-9985-af35a8bfcefe") + @objid ("dbedd8a4-17b8-4e86-ba37-b70ba44f56cd") public static MetricInstanceModelDiagram instantiate(final ClassDiagram obj) { return MetricInstanceModelDiagram.canInstantiate(obj) ? new MetricInstanceModelDiagram(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("fb9fd691-9737-4e8c-aa5c-e0de9465a2f5") + @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 ("a2743b10-35a1-465e-a0dd-952a1ef9001d") + @objid ("a9950576-5590-4066-a005-37bc2d28cd0b") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,17 +109,16 @@ 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 ("252db4a7-df92-453d-8254-29d187d78db0") + @objid ("2b998220-c501-45e0-93bd-4845dd0d1b5b") @Override public ClassDiagram getElement() { return (ClassDiagram)super.getElement(); } - @objid ("d0f0ea6a-8e9a-43f5-bbdb-40ddf706eb21") + @objid ("13f079b0-7838-4ff9-9f27-f7183e89b815") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -134,23 +131,23 @@ public List getChilds() { return result; } - @objid ("e95bb109-a295-4b38-9f00-c7337774bfb2") + @objid ("f6412128-f673-413f-b037-ca0e76d89b1a") protected MetricInstanceModelDiagram(final ClassDiagram elt) { super(elt); } @objid ("fc2c7267-7f74-46f7-b3bd-834db7b8d63d") public static final class MdaTypes { - @objid ("4316353b-1e6c-4157-9087-6e13958f81ef") + @objid ("28104b64-1c82-4f27-af83-295616db0a3f") public static Stereotype STEREOTYPE_ELT; - @objid ("8770c2cc-d6a6-4cd8-a330-914e6b99a435") + @objid ("b313e4a8-cabc-415f-9f23-7c49bbda8f19") private static Stereotype MDAASSOCDEP; - @objid ("29ef95a7-b655-41cf-92ca-84ebbd3bc865") + @objid ("6a37dcc9-201c-4f6d-9380-19c750650faf") private static TagType MDAASSOCDEP_ROLE; - @objid ("4869b414-52bc-4ef4-83e5-b1ec6d92ea29") + @objid ("ce3ee17b-a649-4194-a977-3cf47bfc67f6") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "9acac5e4-9e57-4c77-9274-f1d0aa426dad"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -158,11 +155,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 de5a91b4..5386a49e 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram; @@ -36,7 +36,7 @@ */ @objid ("81ac3cd7-8152-40ff-a197-efdeebea3e78") public class MetricTypeModelDiagram extends AbstractCamelDiagram { - @objid ("ef632859-8697-488c-82c8-a4356907f12a") + @objid ("1677220b-c26f-4590-930b-f43de4c862c4") public static final String STEREOTYPE_NAME = "MetricTypeModelDiagram"; /** @@ -47,7 +47,7 @@ public class MetricTypeModelDiagram extends AbstractCamelDiagram { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("b1cbf4aa-dbe5-4bf2-9827-b2c3fd659fc0") + @objid ("0f4c3a09-a662-4126-ac5f-97b1f5dcf9a9") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof ClassDiagram) && ((ClassDiagram) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, MetricTypeModelDiagram.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link MetricTypeModelDiagram} proxy on the created {@link ClassDiagram}. */ - @objid ("98a3ce53-6f7d-4e93-aeb6-bdfcec5b0642") + @objid ("22136a21-2c1d-4d75-b208-25e38a8daf0d") public static MetricTypeModelDiagram create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.ClassDiagram"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, MetricTypeModelDiagram.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("ffffd945-eda4-4a88-971c-6e4a38203820") + @objid ("9429f775-d5a1-4d69-ae72-e01427416f53") public static MetricTypeModelDiagram instantiate(final ClassDiagram obj) { return MetricTypeModelDiagram.canInstantiate(obj) ? new MetricTypeModelDiagram(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("46fb0af0-c5d3-4337-9e3a-45c5e65c0183") + @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 ("366a62d0-2438-4c89-a3ed-627fa5163dd6") + @objid ("e7dcf399-e8ae-4cc2-a49a-4c744b2d72de") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,17 +109,16 @@ 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 ("15f92b6c-df43-4ab5-bb89-1fb4e57e45d5") + @objid ("80188149-d60f-434a-9317-369deb29ea6d") @Override public ClassDiagram getElement() { return (ClassDiagram)super.getElement(); } - @objid ("0a34116a-589a-4d93-a494-99cae6eb3de4") + @objid ("1b95b96f-ef49-4ef4-a0f1-de2d87eb44d9") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -134,23 +131,23 @@ public List getChilds() { return result; } - @objid ("8aadeb8d-e75a-4d6e-b0c9-6100e02ce431") + @objid ("170c8aa1-094c-4c84-acbf-6dd3c3f4f485") protected MetricTypeModelDiagram(final ClassDiagram elt) { super(elt); } @objid ("6ae7d73a-b368-4659-bddf-37a608de833c") public static final class MdaTypes { - @objid ("1fdfef87-0d3d-49f6-a1c1-6f03c15f41b8") + @objid ("a8275bbf-d4a5-43f4-a0ae-fc575ba2df80") public static Stereotype STEREOTYPE_ELT; - @objid ("a83cfab6-1431-4382-90c8-4dafc3028940") + @objid ("8eb92ae1-d171-4b33-8d68-f060319ff762") private static Stereotype MDAASSOCDEP; - @objid ("7db98bff-9820-4cde-b9d8-0e8d4bca68e6") + @objid ("67003aa3-0d04-4b7b-9812-5182bf841e08") private static TagType MDAASSOCDEP_ROLE; - @objid ("71496401-f1d9-43a2-b03d-df13425433e6") + @objid ("d4475950-e0f6-482d-b1a2-160a0d3d3d61") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "41062298-9e86-4073-b4a8-713719cfcf90"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -158,11 +155,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 7776a6a2..aee5ceab 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram; @@ -36,7 +36,7 @@ */ @objid ("8d78609e-ed7f-45f1-93ed-a1fab4832f6e") public class OrganisationModelDiagram extends AbstractCamelDiagram { - @objid ("835a2870-40b5-4b32-a176-32b795805b70") + @objid ("82588c2b-c3d1-47a6-a2d6-95dc8fe20f57") public static final String STEREOTYPE_NAME = "OrganisationModelDiagram"; /** @@ -47,7 +47,7 @@ public class OrganisationModelDiagram extends AbstractCamelDiagram { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("7aaf4540-347f-4512-a372-62af3fd962f2") + @objid ("0e879723-6d36-4004-9ad3-d50708ca94d2") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof ClassDiagram) && ((ClassDiagram) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, OrganisationModelDiagram.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link OrganisationModelDiagram} proxy on the created {@link ClassDiagram}. */ - @objid ("9c5e05f6-b3b2-4f9c-a1c2-66d46d1a51c2") + @objid ("d73c65d2-c4d5-4cf0-af01-fdf704be2515") public static OrganisationModelDiagram create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.ClassDiagram"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, OrganisationModelDiagram.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("9a4123d8-559c-4d9d-b10c-4c14bc058bad") + @objid ("6b2e7f2c-0674-4d0d-ac49-20a00e6ef936") public static OrganisationModelDiagram instantiate(final ClassDiagram obj) { return OrganisationModelDiagram.canInstantiate(obj) ? new OrganisationModelDiagram(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("2d4e4c1b-5b96-4b3d-a18e-468d948972ca") + @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 ("016fd826-c658-4e60-b1b7-6c9e8cf4d888") + @objid ("4f57d44c-2a8b-4af2-ab72-20f373878bef") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,17 +109,16 @@ 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 ("288df705-d1bd-49a1-93d3-70be9d210506") + @objid ("bcf68fa9-d3db-4efa-affa-c52a13507f4e") @Override public ClassDiagram getElement() { return (ClassDiagram)super.getElement(); } - @objid ("9d66c943-71d0-4fff-88f9-c5e517eb40d6") + @objid ("bd9b5f19-6906-440d-b56f-60617e70869d") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -134,23 +131,23 @@ public List getChilds() { return result; } - @objid ("b65cea9d-dee8-45e2-9703-f5b09bfe2ec4") + @objid ("9925b275-6e2c-4c48-b545-c5cce790307c") protected OrganisationModelDiagram(final ClassDiagram elt) { super(elt); } @objid ("194a89db-0a89-413a-af39-44bf5446c768") public static final class MdaTypes { - @objid ("1e79767e-5783-4a63-b066-61979338f3d5") + @objid ("f87f891d-2c59-4963-afde-0343ef1d7672") public static Stereotype STEREOTYPE_ELT; - @objid ("bf288dc2-5627-4b33-8576-464afcd3ab48") + @objid ("61d2e042-96c1-4a76-9dda-02ed58cbe26d") private static Stereotype MDAASSOCDEP; - @objid ("d0644ed7-a974-49bd-ba7e-0e1df34784fa") + @objid ("6c0864fe-7f3a-42ba-998e-61e33adabaf2") private static TagType MDAASSOCDEP_ROLE; - @objid ("3695f285-d515-46ab-9781-b32a38d455b2") + @objid ("bd55bf39-24bf-48c2-af25-5e136e7c5cd8") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "866330db-6440-4bbe-bd93-4bb567e8f1e7"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -158,11 +155,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 46101584..e020fee5 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram; @@ -36,7 +36,7 @@ */ @objid ("c0f09b77-0e4b-430d-a7da-01382979d1a3") public class RequirementModelDiagram extends AbstractCamelDiagram { - @objid ("b168e954-c638-4279-accd-090d98705b4c") + @objid ("474486bc-957d-48a8-9f59-1ae3ec9f6a5a") public static final String STEREOTYPE_NAME = "RequirementModelDiagram"; /** @@ -47,7 +47,7 @@ public class RequirementModelDiagram extends AbstractCamelDiagram { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("9d1454c7-3e58-4469-a62b-901624dc9bf1") + @objid ("22eab346-4db4-4549-ab5d-6ee144a31f83") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof ClassDiagram) && ((ClassDiagram) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, RequirementModelDiagram.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link RequirementModelDiagram} proxy on the created {@link ClassDiagram}. */ - @objid ("db704b1a-efe2-4cda-b292-cd00b45025d2") + @objid ("4d94ae11-6edc-402b-8cdb-87510b283933") public static RequirementModelDiagram create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.ClassDiagram"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, RequirementModelDiagram.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("2a8cdf37-fd33-4bbf-8e52-7119f2b07dcf") + @objid ("4bfc9cb4-9865-4e34-958c-368900a5c4ad") public static RequirementModelDiagram instantiate(final ClassDiagram obj) { return RequirementModelDiagram.canInstantiate(obj) ? new RequirementModelDiagram(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("a76eb04a-6af1-445c-b457-63304bd81789") + @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 ("1e170e77-f789-4655-82dc-46b730b9dc1a") + @objid ("015f2498-539a-437d-b43d-a46f38bdb769") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,17 +109,16 @@ 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 ("ed066e34-faa9-46a3-80c8-74b630779963") + @objid ("e14b8396-ee2e-4879-b7e6-94219757a748") @Override public ClassDiagram getElement() { return (ClassDiagram)super.getElement(); } - @objid ("9f572daf-dfec-4e77-8306-a08e31a7125e") + @objid ("4943581d-543d-4d06-8d1a-7dec4d0a6912") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -134,23 +131,23 @@ public List getChilds() { return result; } - @objid ("80c75ef1-edcd-4731-af8b-b8ea044d91ff") + @objid ("eb7c7359-1d48-485d-9564-5d30d3b51d88") protected RequirementModelDiagram(final ClassDiagram elt) { super(elt); } @objid ("b49732d9-0960-4c1f-a15a-9b345f5f99f2") public static final class MdaTypes { - @objid ("b73f6e17-81b7-4f91-a3b9-6abd7718ddcc") + @objid ("18f592d0-b5dd-45cf-82e4-3c2445e82cb4") public static Stereotype STEREOTYPE_ELT; - @objid ("93e0855d-f72a-4a42-b687-18d7fb04d3ed") + @objid ("8c446805-0f28-4641-82e5-c73391a5b191") private static Stereotype MDAASSOCDEP; - @objid ("90df7038-761a-4d46-9aea-8a241650d8f7") + @objid ("6e926490-7fab-454e-a13c-2b746a1f04cf") private static TagType MDAASSOCDEP_ROLE; - @objid ("62d4fe21-8c08-476f-8088-d7756835a27a") + @objid ("50fc19d6-cafc-497d-8454-02b75262e646") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "f8879e00-7139-4923-a7ff-67ebdb678e5b"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -158,11 +155,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 25b3b1a4..871f5b2a 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram; @@ -36,7 +36,7 @@ */ @objid ("1aefa3bd-afe8-4cd0-8d7f-d240cb6f7cff") public class ScalabilityModelDiagram extends AbstractCamelDiagram { - @objid ("10049093-5669-4b3a-a673-0f87a1af47b1") + @objid ("7b5f9ea0-999c-4cf2-b16b-51736037c042") public static final String STEREOTYPE_NAME = "ScalabilityModelDiagram"; /** @@ -47,7 +47,7 @@ public class ScalabilityModelDiagram extends AbstractCamelDiagram { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("b06b596a-7515-4484-91e7-71288f23c04c") + @objid ("62d92954-e9fb-46cc-9006-99c2571999c1") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof ClassDiagram) && ((ClassDiagram) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, ScalabilityModelDiagram.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link ScalabilityModelDiagram} proxy on the created {@link ClassDiagram}. */ - @objid ("d1d44315-11d1-4828-9d6b-c70778ad9b36") + @objid ("1a0a8356-6b9d-48b4-9159-7685a6e4d820") public static ScalabilityModelDiagram create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.ClassDiagram"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, ScalabilityModelDiagram.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("8476aa88-3a9f-484a-8544-45653ccd7ca2") + @objid ("197dc64e-7f32-46be-a043-3ff947ffce14") public static ScalabilityModelDiagram instantiate(final ClassDiagram obj) { return ScalabilityModelDiagram.canInstantiate(obj) ? new ScalabilityModelDiagram(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("30f80f11-b011-4d6f-951a-19959e5381c5") + @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 ("2473257f-e2c5-4893-aa9f-6bf1ba03bad5") + @objid ("e6d27f41-24ef-4a8d-8155-41ac56f0b3e2") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,17 +109,16 @@ 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 ("a65ecdb0-93c7-4944-82a1-02dca8129c2d") + @objid ("47cba9b1-8ba3-41a7-954a-8001930de0cd") @Override public ClassDiagram getElement() { return (ClassDiagram)super.getElement(); } - @objid ("bffdf909-c35b-4d1d-a15f-77299fd1a829") + @objid ("64df7718-3a69-4ed3-ac6b-80015e7507cb") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -134,23 +131,23 @@ public List getChilds() { return result; } - @objid ("fa5abc16-4315-432c-852f-f69705d9c637") + @objid ("8624ee43-34d7-49e3-914e-95631788100b") protected ScalabilityModelDiagram(final ClassDiagram elt) { super(elt); } @objid ("60219e4b-13d2-4abf-8e42-424d1c32a3ca") public static final class MdaTypes { - @objid ("7ee3ef73-6304-4057-a954-43f85f5d3729") + @objid ("f069b6ca-7ba2-4a17-b13d-10e698ecab39") public static Stereotype STEREOTYPE_ELT; - @objid ("67ea35c8-11cd-4076-bad4-53573a3c60c4") + @objid ("60c3a763-cb7f-4af3-a82f-cef55982a0e1") private static Stereotype MDAASSOCDEP; - @objid ("36d30fed-2385-4366-85fb-be29240e676f") + @objid ("4d7d975d-051e-4492-898f-51d396874e6f") private static TagType MDAASSOCDEP_ROLE; - @objid ("dec441d7-4c96-414f-892d-5488d4ac1f4d") + @objid ("2371b709-361f-4df2-9d94-7d503e1cbf62") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "7f111587-b577-4533-9e55-41832442bd71"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -158,11 +155,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 806fc905..1f17ef25 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram; @@ -36,7 +36,7 @@ */ @objid ("4718a895-acb3-4999-91d8-cabfc0237ba5") public class SecurityModelDiagram extends AbstractCamelDiagram { - @objid ("c3cd1640-04a9-4699-a6ac-bc5c79fe9b3a") + @objid ("aea047ce-4e22-4c03-acce-be504586364e") public static final String STEREOTYPE_NAME = "SecurityModelDiagram"; /** @@ -47,7 +47,7 @@ public class SecurityModelDiagram extends AbstractCamelDiagram { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("c1f4c9cf-ecfe-4d78-a27b-3191af01f1a8") + @objid ("0d1d8d64-3217-4a8c-94fa-2d8cae0781b6") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof ClassDiagram) && ((ClassDiagram) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, SecurityModelDiagram.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link SecurityModelDiagram} proxy on the created {@link ClassDiagram}. */ - @objid ("5ea699a8-b627-4b0c-af03-f2424a381ff4") + @objid ("5c0d14d4-df66-4326-9107-105a95428aba") public static SecurityModelDiagram create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.ClassDiagram"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, SecurityModelDiagram.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("fbe37983-8aea-4d47-978a-cbf5acb69c33") + @objid ("9c1de38e-17fe-461f-bb21-e72ea6a37ce0") public static SecurityModelDiagram instantiate(final ClassDiagram obj) { return SecurityModelDiagram.canInstantiate(obj) ? new SecurityModelDiagram(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("23ba837b-7af0-4b96-a3e6-4db52841a700") + @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 ("b51c806e-b507-440f-b78b-e92ba0cb51a1") + @objid ("3926f54d-9625-461b-815b-60c1a7d72eb2") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,17 +109,16 @@ 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 ("c3a6bbca-aa3e-4221-9d75-85321c1135ea") + @objid ("cdfe5970-efc5-4975-8dcd-9c49bbfb2a39") @Override public ClassDiagram getElement() { return (ClassDiagram)super.getElement(); } - @objid ("0308abe2-f0bf-46d2-9f3c-0fd157633aac") + @objid ("98224d4f-efa6-4363-af2a-7f224a2f601b") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -134,23 +131,23 @@ public List getChilds() { return result; } - @objid ("c3053ec9-97da-499f-816a-979026c389a3") + @objid ("cb18a7ab-6173-486f-901e-39e87040c1ae") protected SecurityModelDiagram(final ClassDiagram elt) { super(elt); } @objid ("868740be-41f1-4107-b65a-5c1c718c6bd6") public static final class MdaTypes { - @objid ("3b47f981-7c67-4d48-b4bf-d3a9fb1fdc0e") + @objid ("32a962ba-f5e5-47a2-a65e-362068c5a733") public static Stereotype STEREOTYPE_ELT; - @objid ("cf9dc3cd-dfeb-4dbb-85df-49402f82e6ec") + @objid ("5a2aa304-6b74-4fe0-9ed3-e42f009a02a6") private static Stereotype MDAASSOCDEP; - @objid ("39eb7a62-95bb-495a-9e7f-db3de6353773") + @objid ("d3c75fb7-e38e-42e5-a19b-4caacece0666") private static TagType MDAASSOCDEP_ROLE; - @objid ("e792d262-c6a3-4e00-9f2f-4d8d89145f75") + @objid ("fb295176-958a-47f6-8143-f9e671d86e7c") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "f7228862-f56b-49a6-a404-f06dcb6a08fa"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -158,11 +155,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 b3e99708..32bdc2c9 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram; @@ -36,7 +36,7 @@ */ @objid ("1573d2fb-b10e-4c0a-bdc5-26ed12c40524") public class TypeModelDiagram extends AbstractCamelDiagram { - @objid ("e91d03b4-ac0d-4573-b2b6-4359618b7094") + @objid ("638b10b2-66ac-4a11-a7a0-71e99c663cde") public static final String STEREOTYPE_NAME = "TypeModelDiagram"; /** @@ -47,7 +47,7 @@ public class TypeModelDiagram extends AbstractCamelDiagram { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("479bd85c-3f2f-4ced-9efb-15f2b841152c") + @objid ("476fa9cf-c6d6-4849-902d-3ed8c781456a") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof ClassDiagram) && ((ClassDiagram) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, TypeModelDiagram.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link TypeModelDiagram} proxy on the created {@link ClassDiagram}. */ - @objid ("ff65ea5c-6305-433b-8e23-5fd56b0fc777") + @objid ("e3feb93d-311d-45b0-9699-8685387b8a28") public static TypeModelDiagram create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.ClassDiagram"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, TypeModelDiagram.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("1d29d17f-1e3d-4811-97ce-43c8b97a4117") + @objid ("1613a4d3-411f-4e41-87a8-0d8707fc3128") public static TypeModelDiagram instantiate(final ClassDiagram obj) { return TypeModelDiagram.canInstantiate(obj) ? new TypeModelDiagram(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("cf667a87-fb18-4e44-a539-8d42d7df78b0") + @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 ("c3295c11-98ce-43d2-86f1-44d3e21a6dae") + @objid ("eddbae5b-c3ca-4ced-b952-1418944036f7") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,17 +109,16 @@ 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 ("6fbe334c-72be-4c1f-b5c7-a610321aef4a") + @objid ("57cafd81-e4ff-4674-9a92-fd25f2335828") @Override public ClassDiagram getElement() { return (ClassDiagram)super.getElement(); } - @objid ("80c20f7a-0ec4-4aea-b6c8-06a6cb0ca1de") + @objid ("690f6cf7-a261-46ea-bba4-5766e05de799") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -134,23 +131,23 @@ public List getChilds() { return result; } - @objid ("556ca59d-cbb4-4ee6-a65d-2561ffcd81ab") + @objid ("a122cc24-ebc6-4cb5-a855-5d036e9d48a2") protected TypeModelDiagram(final ClassDiagram elt) { super(elt); } @objid ("be25d91d-24c1-40f8-ab27-4d81ae2fa976") public static final class MdaTypes { - @objid ("d706e11f-8cdb-479b-be72-28e1496f6a0e") + @objid ("7aabe98e-1182-4f72-ba75-256ada41a372") public static Stereotype STEREOTYPE_ELT; - @objid ("68018cd3-83ea-4ee0-b66d-80de6317ce52") + @objid ("7471ecf4-a073-40e4-9475-538aebbb3789") private static Stereotype MDAASSOCDEP; - @objid ("f50e666d-e287-4611-96b7-7ea400aa8e03") + @objid ("3aa4d86f-2c8d-4a0f-aed6-fece05a641bc") private static TagType MDAASSOCDEP_ROLE; - @objid ("0122adfc-5591-44d2-b225-d10951321734") + @objid ("ac68cd13-3647-49b1-8e5c-fb9d3d5738c1") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "e909af8e-708a-490e-886c-55037a9674e1"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -158,11 +155,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 732ec25c..09a9cde8 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.cameldiagrams.standard.classdiagram; @@ -36,7 +36,7 @@ */ @objid ("6d478936-9de1-4f27-959c-107efa6f197b") public class UnitModelDiagram extends AbstractCamelDiagram { - @objid ("83c1cc23-8117-4976-a422-83d4405409a9") + @objid ("2bb7344a-a344-4960-ac91-fa637f9f1dc7") public static final String STEREOTYPE_NAME = "UnitModelDiagram"; /** @@ -47,7 +47,7 @@ public class UnitModelDiagram extends AbstractCamelDiagram { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("d50c163b-e8a8-4fc6-adae-998da224276d") + @objid ("c0b85ccf-fd2a-43d3-96d9-9571b292d607") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof ClassDiagram) && ((ClassDiagram) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, UnitModelDiagram.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link UnitModelDiagram} proxy on the created {@link ClassDiagram}. */ - @objid ("444c9b9e-d5c3-43f1-a542-5d1b01b67699") + @objid ("8a21a747-a239-4d3b-80e1-f04f48ec0209") public static UnitModelDiagram create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.ClassDiagram"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, UnitModelDiagram.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("d830f42b-ff42-46ec-9ff2-0af53e88c0c8") + @objid ("4bab1e72-8c4c-47aa-aa57-6c8e131e4d08") public static UnitModelDiagram instantiate(final ClassDiagram obj) { return UnitModelDiagram.canInstantiate(obj) ? new UnitModelDiagram(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("c9de9a86-33d2-4821-ae5f-c375bf190bcd") + @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 ("8a2892e9-6818-48c2-84fa-4134c06d9497") + @objid ("e02b2bff-bd93-4407-9b06-d6f88897c4db") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,17 +109,16 @@ 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 ("29c021b5-4651-450f-865b-2c130caef80b") + @objid ("cba87d76-0a91-4bbd-9375-c19866797b9c") @Override public ClassDiagram getElement() { return (ClassDiagram)super.getElement(); } - @objid ("7db2e28a-08ea-4df7-9574-1149f892e671") + @objid ("08202f67-82d3-40fe-b27c-a1dfa5ebc1b9") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -134,23 +131,23 @@ public List getChilds() { return result; } - @objid ("984f256f-55ca-4a22-a50e-0d8cf23e474c") + @objid ("78843cc0-1674-4217-80cf-13305bf4e76e") protected UnitModelDiagram(final ClassDiagram elt) { super(elt); } @objid ("25ea4c22-2cce-4ce3-a7ad-b7eef6e812e6") public static final class MdaTypes { - @objid ("4bcc707f-850c-402d-8246-ffec4be4f838") + @objid ("42b29470-9d54-447e-9758-672a4e91937b") public static Stereotype STEREOTYPE_ELT; - @objid ("d9626aff-001b-489f-abeb-559408db8363") + @objid ("ac609c94-6e97-4d6a-b96e-c419033c3708") private static Stereotype MDAASSOCDEP; - @objid ("811efcb8-d0be-4083-80f2-33218e6d49c6") + @objid ("b6c5fa65-b164-4b78-84a1-40261cd22a10") private static TagType MDAASSOCDEP_ROLE; - @objid ("a249cc46-aa54-46ce-ba67-88d1ad00378f") + @objid ("a623058f-0e9d-41e5-acae-824179b79095") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "447f259a-1b5e-46e1-8721-8c09653baaff"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -158,11 +155,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 4bfc1268..7d0fb63d 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.constraintmodel.standard.constraint; @@ -37,7 +37,7 @@ */ @objid ("ad18d989-4bc1-47c9-9b74-61ab5b5e050f") public class AttributeConstraint extends UnaryConstraint { - @objid ("e55eee24-f46e-4a89-861b-d22284998773") + @objid ("351392ac-2425-4143-b652-059c84eaf68b") public static final String STEREOTYPE_NAME = "AttributeConstraint"; /** @@ -48,7 +48,7 @@ public class AttributeConstraint extends UnaryConstraint { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("6c10288b-195a-4c27-99c6-4aaf4ed78733") + @objid ("989bdbd4-a868-46cc-9ca7-53867d295d68") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Constraint) && ((Constraint) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, AttributeConstraint.STEREOTYPE_NAME)); } @@ -58,7 +58,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link AttributeConstraint} proxy on the created {@link Constraint}. */ - @objid ("30076312-c72c-4035-a24f-96277b299e4e") + @objid ("6cd2ddcd-75f3-4c8d-88ed-f13986ae2923") public static AttributeConstraint create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Constraint"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, AttributeConstraint.STEREOTYPE_NAME); @@ -66,36 +66,34 @@ 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. */ - @objid ("f8c675ec-7f8d-4990-a5c7-bc52ad9b0b34") + @objid ("aec14f98-99c5-4263-9159-8e29c1dd3ec8") public static AttributeConstraint instantiate(final Constraint obj) { return AttributeConstraint.canInstantiate(obj) ? new AttributeConstraint(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("4b7725a7-fd07-4249-9ea4-ac7310442599") + @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 ("93c9ba9e-9aa5-40f7-9fa6-9f22f9be4440") + @objid ("a075a0f2-637d-4cb1-b8f7-3cde103fa61c") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -115,28 +113,28 @@ public boolean equals(final Object obj) { * Get the value to the 'attributeContext' role.

* Role description: * null + * */ - @objid ("cb7edb08-0c0c-488c-a8ae-a3c8c5a48344") + @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 ("54ad1096-abf0-4a69-8af2-094d6adc3785") + @objid ("08a72d99-8601-445f-ab50-68fbfe7fa466") @Override public Constraint getElement() { return (Constraint)super.getElement(); } - @objid ("daf1dced-77fc-4b96-9738-9383a749de72") + @objid ("0ea9ca2c-b89d-4ded-90b2-196f739da353") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -146,8 +144,9 @@ public int hashCode() { * Set the value of the 'attributeContext' role.

* Role description: * null + * */ - @objid ("56604416-76d5-4b82-9c32-d2e6837c4e7a") + @objid ("74ec3d89-608a-489b-9f28-8710b0ddd02c") public void setAttributeContext(final AttributeContext obj) { // Remove existing AttributeContexts for (Class e : ((Constraint) this.elt).getConstrainedElement(Class.class)) { @@ -168,23 +167,23 @@ public List getChilds() { return result; } - @objid ("12d0a25c-72b0-4347-91f0-397d8e9d6b3a") + @objid ("c093b8df-2cc3-4865-8418-b5c6fa865457") protected AttributeConstraint(final Constraint elt) { super(elt); } @objid ("d22fc638-bd9d-4514-a93a-6f08c279f3bd") public static final class MdaTypes { - @objid ("56f77d89-bb17-4dd5-9384-ddba4c4005e3") + @objid ("80dfd374-6b18-4dba-ade5-54458b31025d") public static Stereotype STEREOTYPE_ELT; - @objid ("4a9a6f5c-2331-46ca-b510-fe9ab3dac9bf") + @objid ("8293ef1d-6f4b-46fb-82dc-092e6d5443a8") private static Stereotype MDAASSOCDEP; - @objid ("25a0331c-676c-4bdb-b037-0cd8b09f6f38") + @objid ("51183560-f10b-4c10-8feb-597b44c33278") private static TagType MDAASSOCDEP_ROLE; - @objid ("1791a26b-c406-42b8-880f-7f4e57a29b6c") + @objid ("ee6e5265-42fb-48ec-a176-f6f60260e803") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "310d656e-d693-4ec1-b186-66894464b4b3"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -192,11 +191,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 c91024df..773c80a9 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.constraintmodel.standard.constraint; @@ -34,7 +34,7 @@ */ @objid ("fee51019-906e-4485-9a50-f01a00d74979") public abstract class CamelConstraint extends ExpendableElement { - @objid ("d41d9fc4-41c0-40f5-b713-1a557c31e7af") + @objid ("d351b0fc-6319-4353-ac91-5b3a6db32961") public static final String STEREOTYPE_NAME = "CamelConstraint"; /** @@ -45,7 +45,7 @@ public abstract class CamelConstraint extends ExpendableElement { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("31662112-0d93-40a6-9ced-d0add73798dc") + @objid ("d397d38d-c6eb-4bc8-8411-3b829b27484f") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Constraint) && ((Constraint) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, CamelConstraint.STEREOTYPE_NAME)); } @@ -56,7 +56,7 @@ public static CamelConstraint instantiate(final Constraint obj) { CompositeConstraint.canInstantiate(obj) ? CompositeConstraint.instantiate(obj) : null; } - @objid ("8a55306a-0551-4a96-b2c5-3b9da2d7e199") + @objid ("17640e7a-2777-472b-bfb8-e27fb973ee27") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -73,39 +73,38 @@ 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 ("3b736d00-593a-4e95-8efc-ad7e61e13048") + @objid ("e66b6efc-0470-4060-859c-8c2541cf8ee1") @Override public Constraint getElement() { return (Constraint)super.getElement(); } - @objid ("ad5f90f3-9ce4-4314-a4a9-568820ec9b0c") + @objid ("f43992f7-3806-4006-b476-1034d46627b7") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); } - @objid ("a05e637a-9421-4250-8365-bb8ca0a9f8bb") + @objid ("0705f820-be86-4fd1-8a00-b6dc491fd966") protected CamelConstraint(final Constraint elt) { super(elt); } @objid ("c2b5b585-3d59-484d-8c6a-ed96326a9e5e") public static final class MdaTypes { - @objid ("335eb350-8bb2-46c6-ab84-0a7722270d1d") + @objid ("2cf37b78-64b0-4d70-b783-2cacfb4e1b96") public static Stereotype STEREOTYPE_ELT; - @objid ("f53b2734-1cb5-473a-920d-220be3019f0b") + @objid ("71f4fabc-fd27-44a7-9270-a27c2aa1fad6") private static Stereotype MDAASSOCDEP; - @objid ("3ba711f3-7f5b-493c-bc62-9391b80d84bc") + @objid ("94253259-c1b2-40e7-aba4-e10d99695bc5") private static TagType MDAASSOCDEP_ROLE; - @objid ("30d578c1-a039-4c11-8041-3db141314753") + @objid ("a15028cd-e030-4aad-bb9a-e8d2c77c8cef") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "4afa0df7-c748-4db8-b9a7-a082a8419c00"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -113,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/CompositeConstraint.java b/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/constraint/CompositeConstraint.java index dfdc3a29..4b2f2d3e 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.constraintmodel.standard.constraint; @@ -33,7 +33,7 @@ */ @objid ("bf982af0-30cc-42f7-934c-17e02bb00b58") public abstract class CompositeConstraint extends CamelConstraint { - @objid ("365624ea-ec4b-424e-a0dd-90049a1d8efe") + @objid ("3161cff9-8392-45b9-b7f8-05a12c1e69be") public static final String STEREOTYPE_NAME = "CompositeConstraint"; /** @@ -44,7 +44,7 @@ public abstract class CompositeConstraint extends CamelConstraint { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("85ef9b9c-83c9-4c4a-8035-c71f261f43ba") + @objid ("5326a7b0-8033-4634-a823-bf8389cc3af9") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Constraint) && ((Constraint) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, CompositeConstraint.STEREOTYPE_NAME)); } @@ -55,7 +55,7 @@ public static CompositeConstraint instantiate(final Constraint obj) { LogicalConstraint.canInstantiate(obj) ? LogicalConstraint.instantiate(obj) : null; } - @objid ("fa2929db-0715-4c45-bb36-512a6b834e42") + @objid ("eac9ebe9-d0cc-4fdb-8d26-1448d7fb0ffd") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -72,39 +72,38 @@ 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 ("173fa96a-c01d-4649-bbf1-970e5c575059") + @objid ("57091e35-208a-43ee-918a-e9217b2621b6") @Override public Constraint getElement() { return (Constraint)super.getElement(); } - @objid ("fbb26498-aa81-404d-a58c-3f040c2fcba5") + @objid ("7bfdd894-daaa-4990-ad04-3150ca56a5f7") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); } - @objid ("7f84f53f-4b99-45f9-890f-afd229f0d2ff") + @objid ("c8596ef3-cbb0-4580-82bd-e8c8ae7c1682") protected CompositeConstraint(final Constraint elt) { super(elt); } @objid ("16d6b202-8190-4fdc-ad51-7afb89d0af01") public static final class MdaTypes { - @objid ("6a2b432d-b097-4d2b-9c18-ac8b375d468f") + @objid ("a8cb7afe-3cac-47c3-952e-8b3eccf6aa13") public static Stereotype STEREOTYPE_ELT; - @objid ("06323a25-fb46-470d-9df9-af7e2818477b") + @objid ("e2c8822d-5803-45c2-9e7c-95e653df1873") private static Stereotype MDAASSOCDEP; - @objid ("b4086af8-efda-4d53-9a78-44db622d14f8") + @objid ("e9307bd0-093b-4d69-adf4-171eaa337add") private static TagType MDAASSOCDEP_ROLE; - @objid ("ba0c0e6c-e430-48d7-8fc6-afabd5e61b38") + @objid ("e076e0fb-c243-4c07-97ea-a15f6dd5cbd0") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "95f69da8-e7d7-494b-90a7-db1618fa56fc"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -112,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/constraintmodel/standard/constraint/IfThenConstraint.java b/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/constraint/IfThenConstraint.java index 7c2fb505..e39b03b9 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.constraintmodel.standard.constraint; @@ -15,6 +15,7 @@ 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; @@ -39,7 +40,7 @@ */ @objid ("66fa54e1-453d-44ab-9ee6-b00c38c52da5") public class IfThenConstraint extends CompositeConstraint { - @objid ("c18db761-2416-4ab5-a5e6-7c13f2ccc95a") + @objid ("42059827-075f-40f9-a7c3-812ee424d6a1") public static final String STEREOTYPE_NAME = "IfThenConstraint"; /** @@ -50,7 +51,7 @@ public class IfThenConstraint extends CompositeConstraint { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("c75f846d-5ea8-4ec7-81b4-3c03b34e3eb0") + @objid ("5140abbc-83f8-4fad-82f9-0caaa3f86bf8") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Constraint) && ((Constraint) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, IfThenConstraint.STEREOTYPE_NAME)); } @@ -60,7 +61,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link IfThenConstraint} proxy on the created {@link Constraint}. */ - @objid ("7de40597-2305-4e61-9aba-723d4118111f") + @objid ("82518016-f698-42ee-bab7-e4dd83f64d7b") public static IfThenConstraint create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Constraint"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, IfThenConstraint.STEREOTYPE_NAME); @@ -68,36 +69,34 @@ 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. */ - @objid ("cabb7c3b-c142-4381-a6a8-c7195879fab1") + @objid ("91e31029-a05c-4daf-b777-1e0d6833e214") public static IfThenConstraint instantiate(final Constraint obj) { return IfThenConstraint.canInstantiate(obj) ? new IfThenConstraint(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("9616e3d4-4014-49a5-b717-0d7a859b2b6d") + @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 ("db37e6fe-6e8a-4774-886c-b7b2adf0d2e2") + @objid ("1ba87389-463f-46af-9463-9211b8bf51e3") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -114,11 +113,10 @@ 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 ("e4272839-2b32-44b3-8bca-54b1341f9eb8") + @objid ("b70f94b3-c26f-43fe-baec-e64f901247bc") @Override public Constraint getElement() { return (Constraint)super.getElement(); @@ -128,8 +126,9 @@ public Constraint getElement() { * Get the value of the 'else' role.

* Role description: * null + * */ - @objid ("a95a6987-65af-457b-addc-25ed4cb741dd") + @objid ("7c946a27-4bd0-4bc4-a322-f9fdf35332eb") public CamelConstraint getElse() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(IfThenConstraint.MdaTypes.MDAASSOCDEP) @@ -153,8 +152,9 @@ public CamelConstraint getElse() { * Get the value of the 'if' role.

* Role description: * null + * */ - @objid ("c9a98956-53c6-4d14-a655-489bd50c8bbd") + @objid ("58b67890-1aa8-4211-832f-a9f6054febee") public CamelConstraint getIf() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(IfThenConstraint.MdaTypes.MDAASSOCDEP) @@ -178,8 +178,9 @@ public CamelConstraint getIf() { * Get the value of the 'then' role.

* Role description: * null + * */ - @objid ("08a6550d-6ac3-4e42-bc29-06d7eded972a") + @objid ("010945e9-0340-4d56-bc18-25aa8a4881c2") public CamelConstraint getThen() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(IfThenConstraint.MdaTypes.MDAASSOCDEP) @@ -199,7 +200,7 @@ public CamelConstraint getThen() { return null; } - @objid ("eb7660da-f2f7-4f0c-a2df-b5b65d29f703") + @objid ("cdf5e81d-bd18-4580-a88e-a143289439e8") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -209,8 +210,9 @@ public int hashCode() { * Set the value of the 'else' role.

* Role description: * null + * */ - @objid ("033135cb-4343-4ccb-aeff-8d1ba321c99e") + @objid ("09626bbb-f085-476f-847a-1bf623923188") public void setElse(final CamelConstraint obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -234,8 +236,9 @@ public void setElse(final CamelConstraint obj) { * Set the value of the 'if' role.

* Role description: * null + * */ - @objid ("f35afbb3-d816-47b1-b782-e307eb1760a0") + @objid ("e64027c0-daec-4d26-a896-cba4b301d804") public void setIf(final CamelConstraint obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -259,8 +262,9 @@ public void setIf(final CamelConstraint obj) { * Set the value of the 'then' role.

* Role description: * null + * */ - @objid ("620c90c5-44d4-4dda-8b58-22a36c13c679") + @objid ("0ba3dcc6-8f4f-49b2-a0d5-7cd4a242e658") public void setThen(final CamelConstraint obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -287,23 +291,23 @@ public List getChilds() { return result; } - @objid ("8f723e19-b6b3-48f4-be9d-9ff61fcfed05") + @objid ("c9f46c7b-b2d5-4e3a-b902-6752a9cdcd12") protected IfThenConstraint(final Constraint elt) { super(elt); } @objid ("dbfb4897-53bf-4e5b-8030-02583cd948cf") public static final class MdaTypes { - @objid ("4f80e5fd-7e2a-4a7f-963a-0c112b138833") + @objid ("c7ae58da-4acc-47e2-9333-a19778d34c87") public static Stereotype STEREOTYPE_ELT; - @objid ("b75d499f-eda5-4349-ba9f-3dde0f8e9b10") + @objid ("7758aae9-7420-4049-a579-d92e1771e771") private static Stereotype MDAASSOCDEP; - @objid ("c106858f-035b-49e6-b8c5-670b92bf9251") + @objid ("f376fa11-5293-4246-9fb1-580cfb224f10") private static TagType MDAASSOCDEP_ROLE; - @objid ("bcc8cd6a-52e6-4044-8c80-aed50ce769a1") + @objid ("4135f3b3-8ecf-463b-9d00-12408ff3ff58") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "da516708-1c56-443a-addc-f474b2e61c28"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -311,11 +315,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 4835e902..ce3c2cd4 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.constraintmodel.standard.constraint; @@ -15,6 +15,7 @@ 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; @@ -39,10 +40,10 @@ */ @objid ("53b9a5c1-0a76-403f-aa18-f79a25ba62a5") public class LogicalConstraint extends CompositeConstraint { - @objid ("133d64f1-2f8d-40d8-9436-a983298a383d") + @objid ("c6c851c3-4916-4908-8233-c013a0fcc056") public static final String STEREOTYPE_NAME = "LogicalConstraint"; - @objid ("f5500baa-bfda-455b-b59d-8462c6a05a09") + @objid ("d9928a15-acaf-4694-a69f-65656ac22112") public static final String LOGICALOPERATOR_TAGTYPE = "logicalOperator"; /** @@ -53,7 +54,7 @@ public class LogicalConstraint extends CompositeConstraint { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("5ac7fad4-9681-43cc-a330-97b95001d38f") + @objid ("699172cd-9a44-49a0-aaa7-aed2315c6bf4") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Constraint) && ((Constraint) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, LogicalConstraint.STEREOTYPE_NAME)); } @@ -63,7 +64,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link LogicalConstraint} proxy on the created {@link Constraint}. */ - @objid ("bb7b8b9f-8a77-45a9-9bbd-90013193a609") + @objid ("a688d9ff-1874-485b-b936-293b41fcb287") public static LogicalConstraint create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Constraint"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, LogicalConstraint.STEREOTYPE_NAME); @@ -71,41 +72,40 @@ 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. */ - @objid ("00138b88-d5b7-4f59-a0bb-66372f464188") + @objid ("2d25bc71-3ca9-4a80-ba35-5e60178b9307") public static LogicalConstraint instantiate(final Constraint obj) { return LogicalConstraint.canInstantiate(obj) ? new LogicalConstraint(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("93abf6e6-cfc2-4ad0-ad27-aa6a614e0160") + @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 ("53c2f525-ff3f-4b4c-aae8-e8aa6a711c8b") + @objid ("f8ada423-546f-4caa-9336-c464a659baa7") public void addConstraints(final CamelConstraint obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -115,7 +115,7 @@ public void addConstraints(final CamelConstraint obj) { } } - @objid ("2d619d4f-6f84-482e-872f-9fc9f6b66a22") + @objid ("9f22b16a-2199-42d1-b4ce-401adea884c7") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -135,8 +135,9 @@ public boolean equals(final Object obj) { * Get the values of the 'constraints' role.

* Role description: * null + * */ - @objid ("90384fce-afa0-40e9-b2ba-1747c04153c0") + @objid ("7ebdb135-4f71-43b3-86ab-a5280e07f02a") public List getConstraints() { List results = new ArrayList<>(); for (Dependency d : this.elt.getDependsOnDependency()) { @@ -158,11 +159,10 @@ public List getConstraints() { } /** - * Get the underlying {@link Constraint}. - * + * Get the underlying {@link Constraint}. * @return the Constraint represented by this proxy, never null. */ - @objid ("263279fe-9a9f-416c-bbe1-93c5593f9f4b") + @objid ("ad69157e-c72b-4bce-b70c-96466ffb0a2e") @Override public Constraint getElement() { return (Constraint)super.getElement(); @@ -173,12 +173,12 @@ public Constraint getElement() { *

Property description: *
null

*/ - @objid ("575b0453-fe2b-486b-98c5-9a44360bca7e") + @objid ("60c41215-f9f0-49e0-be2f-44cf4d3d6789") public String getLogicalOperator() { return this.elt.getTagValue(LogicalConstraint.MdaTypes.LOGICALOPERATOR_TAGTYPE_ELT); } - @objid ("dbf8391a-91ce-4a6b-baa5-1dd4e8aba816") + @objid ("6692cc01-d45b-4d7e-b100-b0ba2ba21483") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -188,12 +188,13 @@ public int hashCode() { * Remove a value from the 'constraints' role.

* Role description: * null + * */ - @objid ("b5cc5220-1354-464b-aa8f-110db18e8bdb") + @objid ("2e4cc435-9241-48f9-9e4e-8cdbdb68a7c2") public boolean removeConstraints(final CamelConstraint obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getDependsOnDependency())) { - if (d.isStereotyped(LogicalConstraint.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(LogicalConstraint.MdaTypes.MDAASSOCDEP_ROLE), "")) + if (d.isStereotyped(LogicalConstraint.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(LogicalConstraint.MdaTypes.MDAASSOCDEP_ROLE), "constraints")) if (Objects.equals(d.getDependsOn(), obj.getElement())) { d.delete(); return true; @@ -208,7 +209,7 @@ public boolean removeConstraints(final CamelConstraint obj) { *

Property description: *
null

*/ - @objid ("49496164-bd9e-43f1-ae91-f3b66dfbb18c") + @objid ("6607111c-f218-46b2-983e-29e7478ba409") public void setLogicalOperator(final String value) { this.elt.putTagValue(LogicalConstraint.MdaTypes.LOGICALOPERATOR_TAGTYPE_ELT, value); } @@ -220,26 +221,26 @@ public List getChilds() { return result; } - @objid ("cc0dc189-34ae-4dd2-bb13-6bc8aa469e6b") + @objid ("e14b6d0d-01fe-4845-aaa4-662ca6f36dd3") protected LogicalConstraint(final Constraint elt) { super(elt); } @objid ("f5630e18-22a2-424e-9cbf-865d8acd7362") public static final class MdaTypes { - @objid ("a626bf8d-52d2-4071-86a9-f9cbb4a1a16b") + @objid ("ba4a7cd2-9708-40ed-bfda-3614d7f11849") public static Stereotype STEREOTYPE_ELT; - @objid ("6c77d0b9-3dcf-4466-a3d2-78833172f054") + @objid ("ca64a6f1-961a-4243-b73c-704eb470f6e0") public static TagType LOGICALOPERATOR_TAGTYPE_ELT; - @objid ("f02e624e-8fa6-4941-8196-ef70f5acf88b") + @objid ("8fe4be1c-afea-4739-9555-69e58120ecc2") private static Stereotype MDAASSOCDEP; - @objid ("c2b09898-8799-4a1e-9070-e1c17912e96d") + @objid ("7f14b03a-2684-4e21-8e05-0946804266ea") private static TagType MDAASSOCDEP_ROLE; - @objid ("83849608-9658-4cb5-b613-60f03cf88f61") + @objid ("d56f5ae1-08aa-4582-93f7-e0fd8b31f612") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "a266bdba-acc2-4ce2-81a0-4b2f404f7db7"); LOGICALOPERATOR_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "eb2e6178-406b-46d5-80d2-5453be9fce45"); @@ -248,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/constraintmodel/standard/constraint/MetricConstraint.java b/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/constraint/MetricConstraint.java index 4743095f..44c6f22b 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.constraintmodel.standard.constraint; @@ -37,7 +37,7 @@ */ @objid ("39dc4a56-9d42-4441-8973-22fc28c57bb9") public class MetricConstraint extends UnaryConstraint { - @objid ("8c53ea1d-9f58-4b91-9e8e-39b1bcfbf0e9") + @objid ("f973c71d-3812-49e0-98c1-6b7134cee8ff") public static final String STEREOTYPE_NAME = "MetricConstraint"; /** @@ -48,7 +48,7 @@ public class MetricConstraint extends UnaryConstraint { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("5fa2ec19-cd18-4464-b879-defd52be9294") + @objid ("c7e5f396-0e5d-4b1a-8f18-c19aaaf88a91") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Constraint) && ((Constraint) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, MetricConstraint.STEREOTYPE_NAME)); } @@ -58,7 +58,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link MetricConstraint} proxy on the created {@link Constraint}. */ - @objid ("f56b84f3-9dc7-4afa-a5a1-d511ad8e12a7") + @objid ("8c03eb0e-adee-4e36-b302-c5d8bcdbc2e5") public static MetricConstraint create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Constraint"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, MetricConstraint.STEREOTYPE_NAME); @@ -66,36 +66,34 @@ 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. */ - @objid ("1e629909-b975-4021-b093-4335b3470a79") + @objid ("a8c9a606-16d9-479f-a2a0-31b578daba7d") public static MetricConstraint instantiate(final Constraint obj) { return MetricConstraint.canInstantiate(obj) ? new MetricConstraint(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("eb8f32e4-154e-4aa5-aaa3-b463cd64e036") + @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 ("d4aee747-da43-45ba-b850-92f7e8f58c8a") + @objid ("34768f3d-0ed1-4f66-b071-3321ddb9ab16") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -112,11 +110,10 @@ 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 ("c9bc9c18-444f-4ece-a0de-816d0c8c6030") + @objid ("1768d4a0-312a-4235-b7b2-bb8c6c01c400") @Override public Constraint getElement() { return (Constraint)super.getElement(); @@ -126,17 +123,18 @@ public Constraint getElement() { * Get the value to the 'metricContext' role.

* Role description: * null + * */ - @objid ("c9afa20b-9ad7-4747-8980-52ab66d49d3c") + @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 ("0fabd1f4-078a-443d-a330-bc8569d4ae29") + @objid ("b48a7db1-860f-4d78-b358-a5cc36241248") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -146,8 +144,9 @@ public int hashCode() { * Set the value of the 'metricContext' role.

* Role description: * null + * */ - @objid ("2eb9100b-5af6-4d92-9bcc-0de885f5372b") + @objid ("023eb697-7bee-453f-9040-7a526914b656") public void setMetricContext(final MetricContext obj) { // Remove existing MetricContexts for (Class e : ((Constraint) this.elt).getConstrainedElement(Class.class)) { @@ -168,23 +167,23 @@ public List getChilds() { return result; } - @objid ("72837e16-1f2b-4c76-8b15-db99ac9f30e3") + @objid ("793e198e-3813-466d-bebe-51e511ffd017") protected MetricConstraint(final Constraint elt) { super(elt); } @objid ("e24cb852-9e38-49f6-aca0-f44360d81f1b") public static final class MdaTypes { - @objid ("9db7b13b-ec3f-4f39-88c1-d1cecd1c42a9") + @objid ("c690c7ed-59e0-495a-bf97-49e18d6a1271") public static Stereotype STEREOTYPE_ELT; - @objid ("aa1aacd9-0ae3-44af-ba08-10df259e854e") + @objid ("8d52f2f7-f145-4ea0-97b4-78b75ea6fa3d") private static Stereotype MDAASSOCDEP; - @objid ("5dc7568b-fac6-4213-b761-199983473b25") + @objid ("976ecbab-e978-4dcf-be68-4daa74512c78") private static TagType MDAASSOCDEP_ROLE; - @objid ("f2dfc305-ea84-4e6e-a836-4e99d888e5eb") + @objid ("9c4b4589-e932-4c31-be2b-db4898a5a342") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "713a32d2-c7ee-4caa-9f5d-94fcb7820b94"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -192,11 +191,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 2d71213d..e65b7d2b 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.constraintmodel.standard.constraint; @@ -37,7 +37,7 @@ */ @objid ("41d4f52d-cd09-4afb-ac80-64b41afa7a0c") public class MetricVariableConstraint extends UnaryConstraint { - @objid ("4e0621e8-21c0-4b40-9552-1e332f8cef33") + @objid ("cb8ae001-0e90-4ef3-99e1-caede96e9630") public static final String STEREOTYPE_NAME = "MetricVariableConstraint"; /** @@ -48,7 +48,7 @@ public class MetricVariableConstraint extends UnaryConstraint { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("5ca80266-a8ce-4a44-a97f-4f839d7a37f9") + @objid ("e44aee59-de76-4b2e-a3ef-c1a7e288d06c") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Constraint) && ((Constraint) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, MetricVariableConstraint.STEREOTYPE_NAME)); } @@ -58,7 +58,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link MetricVariableConstraint} proxy on the created {@link Constraint}. */ - @objid ("2a2175d2-e438-4d82-a2f8-d9030cc13bcb") + @objid ("5b4e0800-863f-4e27-85c6-6bdc243ac2bb") public static MetricVariableConstraint create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Constraint"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, MetricVariableConstraint.STEREOTYPE_NAME); @@ -66,36 +66,34 @@ 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. */ - @objid ("2ce46125-5be2-4f33-b035-6d5aecfa7f9d") + @objid ("c19467f7-105a-483a-87b8-f5adb23243a6") public static MetricVariableConstraint instantiate(final Constraint obj) { return MetricVariableConstraint.canInstantiate(obj) ? new MetricVariableConstraint(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("e2cf379c-a1b4-4ef5-a525-608fb8722fbb") + @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 ("02ee24ff-41e2-415a-b4ed-48104071a5d5") + @objid ("fbac8a90-46c6-4044-b236-7ac1aa205633") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -112,11 +110,10 @@ 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 ("74dbbb0d-e7eb-4111-b05d-19e6e50834da") + @objid ("a0ea2f82-a22c-4a54-849e-ed380b051b9d") @Override public Constraint getElement() { return (Constraint)super.getElement(); @@ -126,17 +123,18 @@ public Constraint getElement() { * Get the value to the 'metricVariable' role.

* Role description: * null + * */ - @objid ("7a3e9d36-04c9-4248-95b9-47ec7ecc2016") + @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 ("d39a38e0-ae4d-430d-b31c-e93a78e44848") + @objid ("ee71c2e4-2d65-4401-b626-a4f8d85be802") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -146,8 +144,9 @@ public int hashCode() { * Set the value of the 'metricVariable' role.

* Role description: * null + * */ - @objid ("7b877ddb-d116-4713-8a84-3dd08383a85a") + @objid ("7e55bbbb-9954-4088-8517-58435d4b69b9") public void setMetricVariable(final MetricVariable obj) { // Remove existing MetricVariables for (Class e : ((Constraint) this.elt).getConstrainedElement(Class.class)) { @@ -168,23 +167,23 @@ public List getChilds() { return result; } - @objid ("099750f7-06d8-49c2-b2e7-9ee33192852a") + @objid ("87e7cb50-29a7-4016-a8db-14ea8564c092") protected MetricVariableConstraint(final Constraint elt) { super(elt); } @objid ("8e6247ec-54b4-4782-a3c3-abf501857d20") public static final class MdaTypes { - @objid ("b1edb85d-9e35-4328-9a4c-6ef9755c401e") + @objid ("25bc6c08-58de-464e-a283-7a1c52ebb5f2") public static Stereotype STEREOTYPE_ELT; - @objid ("5be387ac-6a4b-4a39-bdfc-3ac3757efce0") + @objid ("9c4333e9-a2c5-4318-8e4d-3e536ac77169") private static Stereotype MDAASSOCDEP; - @objid ("01fa8f71-4d14-4ae1-bf50-0c4b6b7d9fc8") + @objid ("0a4f7aeb-3c14-454d-baf8-9098f6b3ab16") private static TagType MDAASSOCDEP_ROLE; - @objid ("52473939-1426-4b30-a291-89dcaca12c4c") + @objid ("5e5e3411-96b3-4724-881e-ff1f069e40a1") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "80ac8ced-a3d3-4519-b015-f0726e46e256"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -192,11 +191,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 d5fbd7b9..784597f2 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.constraintmodel.standard.constraint; @@ -33,16 +33,16 @@ */ @objid ("3892b894-18cc-4724-ac74-318af5127843") public abstract class UnaryConstraint extends CamelConstraint { - @objid ("ff009e9f-68dc-4285-b8fb-0210a12f5cae") + @objid ("3e5178b5-0cca-429e-b269-ce69b00e79ec") public static final String STEREOTYPE_NAME = "UnaryConstraint"; - @objid ("3ffd8e7f-d92f-4bd6-bb33-56709585f435") + @objid ("3ccedc3d-91ab-4884-a37a-12382dc0d5e1") public static final String COMPARISONOPERATOR_TAGTYPE = "comparisonOperator"; - @objid ("15fa60d9-b071-4df9-a85d-4d40342afa4f") + @objid ("b7af67b2-597e-43dd-896d-29d5f19adbfc") public static final String THRESHOLD_TAGTYPE = "threshold"; - @objid ("3c9df881-040e-42d6-8e23-d495570b025a") + @objid ("7a4eecae-ff45-45ba-aac9-56612c9a65ce") public static final String VALIDITY_TAGTYPE = "validity"; /** @@ -53,12 +53,12 @@ public abstract class UnaryConstraint extends CamelConstraint { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("8c8172f9-cb46-4d9d-9e50-d39550e062aa") + @objid ("8b992e49-f743-43fa-a031-5b42dba80bf2") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Constraint) && ((Constraint) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, UnaryConstraint.STEREOTYPE_NAME)); } - @objid ("ee1215d9-dc31-4b0e-8209-01d90ef023ed") + @objid ("1aa6b906-e004-4a71-824d-6a6460289470") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -79,17 +79,16 @@ public boolean equals(final Object obj) { *

Property description: *
null

*/ - @objid ("d94f1c34-7b48-4a47-8b47-e7a39f088144") + @objid ("5c3e80f0-6b17-4894-b1b8-a9b24c43032f") public String getComparisonOperator() { return this.elt.getTagValue(UnaryConstraint.MdaTypes.COMPARISONOPERATOR_TAGTYPE_ELT); } /** - * Get the underlying {@link Constraint}. - * + * Get the underlying {@link Constraint}. * @return the Constraint represented by this proxy, never null. */ - @objid ("a39b34d7-63eb-4292-87e8-b7006e5b79c3") + @objid ("84ac7480-59e7-49df-8490-6c286dbaca6a") @Override public Constraint getElement() { return (Constraint)super.getElement(); @@ -100,7 +99,7 @@ public Constraint getElement() { *

Property description: *
null

*/ - @objid ("7b0d6921-73aa-4887-a690-b01b00afa67b") + @objid ("7e15acba-9bb4-4ab3-a90a-42fabfec588f") public String getThreshold() { return this.elt.getTagValue(UnaryConstraint.MdaTypes.THRESHOLD_TAGTYPE_ELT); } @@ -110,12 +109,12 @@ public String getThreshold() { *

Property description: *
null

*/ - @objid ("6a61b1cd-c460-4b76-9188-0e5328463d28") + @objid ("f107e871-a3c6-4a1c-a8c9-e77effd40210") public String getValidity() { return this.elt.getTagValue(UnaryConstraint.MdaTypes.VALIDITY_TAGTYPE_ELT); } - @objid ("f99eac87-3391-4c60-bfc2-0d0e5a1f9c4b") + @objid ("37f4646a-2ecb-4879-b9ec-a04003b85087") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -126,7 +125,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("43004d97-53ca-4be9-878e-b8bb432b2c1a") + @objid ("69917c01-6597-44e5-8a26-5ffbc07a2c06") public void setComparisonOperator(final String value) { this.elt.putTagValue(UnaryConstraint.MdaTypes.COMPARISONOPERATOR_TAGTYPE_ELT, value); } @@ -136,7 +135,7 @@ public void setComparisonOperator(final String value) { *

Property description: *
null

*/ - @objid ("221cfbb2-7d5a-40a1-b208-b17f0f0b5c11") + @objid ("892f3073-8840-4d96-9f06-882a44b39d41") public void setThreshold(final String value) { this.elt.putTagValue(UnaryConstraint.MdaTypes.THRESHOLD_TAGTYPE_ELT, value); } @@ -146,37 +145,37 @@ public void setThreshold(final String value) { *

Property description: *
null

*/ - @objid ("d9e6098b-4f38-4ecd-a474-7084f7b0bbc8") + @objid ("48671cae-826d-431a-8588-a1e685c8684c") public void setValidity(final String value) { this.elt.putTagValue(UnaryConstraint.MdaTypes.VALIDITY_TAGTYPE_ELT, value); } - @objid ("e983c05e-2fd0-4eb4-84a8-06a5706473f5") + @objid ("cbe32a26-0bb7-4fb5-a9f6-02069e83b98e") protected UnaryConstraint(final Constraint elt) { super(elt); } @objid ("2712bfc7-aedc-48b5-9543-3300cf21a241") public static final class MdaTypes { - @objid ("92e811ed-63ed-4707-8403-6237b29b61e5") + @objid ("2b6a9f87-8a65-4794-aebd-d1c62845eded") public static Stereotype STEREOTYPE_ELT; - @objid ("ea42c391-288e-4e23-b766-56f1b1363bac") + @objid ("1d561b16-5ec8-410a-bea3-a105fbdb1cf7") public static TagType VALIDITY_TAGTYPE_ELT; - @objid ("eb8335ce-5c98-4a57-8428-5481da864b50") + @objid ("2a37af42-3b60-49e4-abac-724031cda28e") public static TagType COMPARISONOPERATOR_TAGTYPE_ELT; - @objid ("4d402f41-eccd-4041-b6cf-4354186458c5") + @objid ("3fc04925-0827-43ef-aa69-efe77dda88c2") public static TagType THRESHOLD_TAGTYPE_ELT; - @objid ("d6f31a9a-62dd-4c66-bffe-0278e4cd39fb") + @objid ("2eaab089-1f3a-4520-ad6c-75984d287fb8") private static Stereotype MDAASSOCDEP; - @objid ("a4fe3a58-c132-4ef3-8120-127de57eeb1a") + @objid ("165163ad-3b80-48ac-92c9-e0343ee09e44") private static TagType MDAASSOCDEP_ROLE; - @objid ("49b214dc-b4fb-46b1-b816-58a24fa23d11") + @objid ("9f6ca79d-8fff-48a3-b27f-567dc187ada7") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "e8928d56-f64c-4a1f-90b0-929dc78cd231"); VALIDITY_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "ce4ae655-ac63-4f75-acac-fc8ab479de0f"); @@ -187,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/constraintmodel/standard/package_/ConstraintModel.java b/src/main/java/fr/softeam/cameldesigner/api/constraintmodel/standard/package_/ConstraintModel.java index 0ca4c046..e90ebce8 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.constraintmodel.standard.package_; @@ -36,7 +36,7 @@ */ @objid ("86cc342f-3138-45c5-9f57-831a1ef207ca") public class ConstraintModel extends SubModel { - @objid ("4a368322-2a08-4218-9131-24cca1083021") + @objid ("1ef92b92-0b43-4d8f-93fa-ac98b0fa547b") public static final String STEREOTYPE_NAME = "ConstraintModel"; /** @@ -47,7 +47,7 @@ public class ConstraintModel extends SubModel { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("e09d1ba8-70b3-4c80-84d1-9539c2b01b3a") + @objid ("fb1e499e-2e4d-454f-8179-4c9eee2acd49") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Package) && ((Package) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, ConstraintModel.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link ConstraintModel} proxy on the created {@link Package}. */ - @objid ("9ce93021-7cb4-4dc2-9c83-e25ab2a75c75") + @objid ("fb578f85-01cd-45dd-8a31-7614fd3ee191") public static ConstraintModel create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Package"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, ConstraintModel.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("6d8c52ed-ce43-422f-99ef-056f1562f3bb") + @objid ("076a8d57-5423-479e-af97-9f22d9181dbe") public static ConstraintModel instantiate(final Package obj) { return ConstraintModel.canInstantiate(obj) ? new ConstraintModel(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("c6994188-62b7-47eb-aa38-901edbe4f80f") + @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 ("ca77ed77-89d8-4dbf-aa81-6730d9e79896") + @objid ("b1fd0d57-d55e-4d0d-a9bb-2c2d318b6e02") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,17 +109,16 @@ 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 ("67b0923d-aa8c-400b-8b0a-2ff51679faed") + @objid ("7ad26398-11a6-42e4-ad8a-350b1a9bba02") @Override public Package getElement() { return (Package)super.getElement(); } - @objid ("806f68aa-e818-4035-b0ec-f4c3bd96483f") + @objid ("6fc75e22-4ee4-4f94-b635-f00c9a528214") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -134,23 +131,23 @@ public List getChilds() { return result; } - @objid ("387cd6a6-70a6-480b-b9e3-8d24ce201449") + @objid ("f2fa0855-a249-40c7-8886-bf73b6320190") protected ConstraintModel(final Package elt) { super(elt); } @objid ("ebe267b3-9ebc-4287-8f57-7be02738f119") public static final class MdaTypes { - @objid ("12b05195-07dc-44d3-952d-3c35b8345366") + @objid ("4e291b98-a2c8-4744-ad89-fcf8c214c6e4") public static Stereotype STEREOTYPE_ELT; - @objid ("82d98719-c98e-4dc0-91f0-57422d8e957d") + @objid ("334becfa-dec2-4e8b-b36a-10c9cd845917") private static Stereotype MDAASSOCDEP; - @objid ("6dd0af2e-5e27-41cc-8305-040ae446e891") + @objid ("9e7e889a-4dba-4b47-b85e-a439ba376ef9") private static TagType MDAASSOCDEP_ROLE; - @objid ("226ab22d-5de1-482c-98bd-903f247765d3") + @objid ("6c3f1306-a514-403c-b4d0-c2310f4bb009") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "0a13db20-02d0-45a2-954a-db10f14d206b"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -158,11 +155,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 12f059b0..9fd60d9c 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.datamodel.standard.bindableinstance; @@ -36,7 +36,7 @@ */ @objid ("f23e6d20-b54c-47fc-848b-1b0ab1c02666") public class DataInstanceBindableInstance extends DataInstance { - @objid ("ef9b0114-7c53-42f5-9b30-d9498120ebf8") + @objid ("26ac12a8-e522-452c-9475-4c09422f3730") public static final String STEREOTYPE_NAME = "DataInstance_BindableInstance"; /** @@ -47,7 +47,7 @@ public class DataInstanceBindableInstance extends DataInstance { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("b2b3f4ad-20c2-4ae2-8c88-1edf279374d4") + @objid ("85a2d0ed-4c3a-4bb8-b1c6-0eeac05c6458") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof BindableInstance) && ((BindableInstance) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, DataInstanceBindableInstance.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link DataInstanceBindableInstance} proxy on the created {@link BindableInstance}. */ - @objid ("32c72f49-3667-40d2-9ad6-6d3ff2513096") + @objid ("dd64af2b-8a78-477b-857f-09dac62ae248") public static DataInstanceBindableInstance create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.BindableInstance"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, DataInstanceBindableInstance.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("7019cbd3-a61a-48eb-af0c-7e4e41e3983e") + @objid ("69ec89e9-c83b-4e38-b187-c3dcea61ff87") public static DataInstanceBindableInstance instantiate(final BindableInstance obj) { return DataInstanceBindableInstance.canInstantiate(obj) ? new DataInstanceBindableInstance(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("1f3f582a-84ba-4f7a-9ec1-94014a8dc7ef") + @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 ("a605e939-128f-413a-8fcd-0080cf064dc2") + @objid ("160b27d3-74e3-43d4-a62a-6c0c30377e55") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,11 +109,10 @@ 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 ("e46a9d2c-cc49-4f67-aa5d-f8f6755b1c41") + @objid ("65bcc76d-5f52-4675-8a4b-f0aed646798c") @Override public BindableInstance getElement() { return (BindableInstance)super.getElement(); @@ -125,13 +122,14 @@ public BindableInstance getElement() { * Get the value to the 'owner' role.

* Role description: * null + * */ - @objid ("a04bd5d2-14ac-4e11-b89b-52a558667b49") + @objid ("cff6d387-28e1-4302-a538-349f86caa729") public DataInstance getOwner() { return (DataInstance)CamelDesignerProxyFactory.instantiate(((BindableInstance) this.elt).getCluster(), DataInstance.STEREOTYPE_NAME); } - @objid ("4d2a6fee-80c5-4f3b-bd97-fa76587d0dca") + @objid ("deb23ecb-8f2e-4c03-b912-ee2c49e3ca48") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -141,8 +139,9 @@ public int hashCode() { * Set the value of the 'owner' role.

* Role description: * null + * */ - @objid ("010af0bc-2a72-427e-a0ba-285f59f9ddba") + @objid ("e135029a-1b38-437e-b1f2-94000612358e") public void setOwner(final DataInstance obj) { ((BindableInstance) this.elt).setCluster((obj != null) ? obj.getElement() : null); } @@ -155,23 +154,23 @@ public List getChilds() { return result; } - @objid ("36144a9e-4a16-4d12-84f5-f0580d88409a") + @objid ("90a25d35-f746-415b-b24b-657d65c95b1e") protected DataInstanceBindableInstance(final BindableInstance elt) { super(elt); } @objid ("a85bfe4a-348a-47dc-afe9-847afd7550b8") public static final class MdaTypes { - @objid ("7410a2e5-0441-406a-83b5-6638000e0e2f") + @objid ("71b2cbbe-e1f0-494f-9b57-d8c380d5c797") public static Stereotype STEREOTYPE_ELT; - @objid ("fa8981c6-ea96-40b4-b34b-555c8b7077e0") + @objid ("97eb9c5c-097d-4fd3-87b1-22f23d05cceb") private static Stereotype MDAASSOCDEP; - @objid ("c91d0f00-8320-442b-b257-d8f00c81c517") + @objid ("bd726d3a-46ef-483c-b4d0-d432b3b1e821") private static TagType MDAASSOCDEP_ROLE; - @objid ("0d2fcf59-6fcb-4d88-b10a-5fa9ef0606a9") + @objid ("27927f43-e292-4272-9c5e-45c4c0757a1b") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "ca031a70-7376-4397-ae2a-7ff762e285e1"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -179,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/datamodel/standard/class_/Data.java b/src/main/java/fr/softeam/cameldesigner/api/datamodel/standard/class_/Data.java index 8540a7fb..ebabc01e 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.datamodel.standard.class_; @@ -15,6 +15,7 @@ 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; @@ -37,7 +38,7 @@ */ @objid ("d6e20c69-fb86-4fa7-8543-54421e74bd48") public class Data extends FeatureClass { - @objid ("3e4a5716-1b9a-4b7e-b903-96be2a887c35") + @objid ("fd0026a2-8e81-41cc-b104-820ac4635db0") public static final String STEREOTYPE_NAME = "Data"; /** @@ -48,7 +49,7 @@ public class Data extends FeatureClass { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("604cc89d-2813-47df-b283-5a5e3e9a8af0") + @objid ("9816e940-6a92-4907-957f-97d3acf02c50") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, Data.STEREOTYPE_NAME)); } @@ -58,7 +59,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link Data} proxy on the created {@link Class}. */ - @objid ("ad00c5c1-3a94-4aff-94f3-9e22220f7008") + @objid ("545b2a07-5caf-44f4-a45a-d247970c3118") public static Data create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, Data.STEREOTYPE_NAME); @@ -66,47 +67,46 @@ 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. */ - @objid ("ffa2ff96-325a-47e3-a22c-4e6349acadb3") + @objid ("618750e3-cbbf-4970-92ae-aeded5774244") public static Data instantiate(final Class obj) { return Data.canInstantiate(obj) ? new Data(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("b8f43cd1-2bfd-4078-8e52-4628f186b9b9") + @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 ("7ef31b54-4222-4860-a9b4-007de0d13139") + @objid ("86704b10-6d28-4072-8b4c-4da15d7fe4d1") public void addIncludesData(final Data obj) { if (obj!=null) ((Class) this.elt).getOwnedElement().add(obj.getElement()); } - @objid ("3adaafdf-5d39-4e1b-8385-e9415072ffe7") + @objid ("a2953f6b-d88a-4ade-a4a5-0168fe1d4ee9") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -126,8 +126,9 @@ public boolean equals(final Object obj) { * Get the value of the 'dataSource' role.

* Role description: * null + * */ - @objid ("b6334a47-a157-4abd-9e34-59c64c00e7f5") + @objid ("6ac5d879-cbc3-4421-8608-cc7f6539243e") public DataSource getDataSource() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(Data.MdaTypes.MDAASSOCDEP) @@ -140,11 +141,10 @@ public DataSource getDataSource() { } /** - * Get the underlying {@link Class}. - * + * Get the underlying {@link Class}. * @return the Class represented by this proxy, never null. */ - @objid ("88a26e30-8a3b-408b-b496-e48acb1d61a7") + @objid ("75a970aa-79a0-4e3f-a08b-eba2e616e726") @Override public Class getElement() { return (Class)super.getElement(); @@ -154,14 +154,15 @@ public Class getElement() { * Get the values of the 'includesData' role.

* Role description: * null + * */ - @objid ("0ad8b237-5a8d-447d-9fb8-b6df4d11bd79") + @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); } @@ -169,13 +170,14 @@ public List getIncludesData() { * Get the value to the 'parent' role.

* Role description: * null + * */ - @objid ("dcea6bbf-b786-4a85-9be9-a7d43534c9a1") + @objid ("49b8e507-ab50-4095-bad7-707eff7af0a7") public Data getParent() { return (Data)CamelDesignerProxyFactory.instantiate(((Class) this.elt).getOwner(), Data.STEREOTYPE_NAME); } - @objid ("2f628d97-86e2-49c7-a6ce-275bcdc5c791") + @objid ("8d5fe1fb-9eb5-493d-8153-769e4baa9a1c") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -185,8 +187,9 @@ public int hashCode() { * Remove a value from the 'includesData' role.

* Role description: * null + * */ - @objid ("a0dddb74-ab69-4220-99e6-366d7239432d") + @objid ("ad3612a0-135d-4358-b2bf-cb23e435d873") public boolean removeIncludesData(final Data obj) { return (obj!=null)? ((Class) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -195,8 +198,9 @@ public boolean removeIncludesData(final Data obj) { * Set the value of the 'dataSource' role.

* Role description: * null + * */ - @objid ("f240d661-3d81-48da-9391-73b335536715") + @objid ("a60e3938-e9a9-405b-9bea-1554ee25108c") public void setDataSource(final DataSource obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -220,8 +224,9 @@ public void setDataSource(final DataSource obj) { * Set the value of the 'parent' role.

* Role description: * null + * */ - @objid ("31763f77-d121-405a-8616-9b70dbf1a91a") + @objid ("3d08ce8b-2f94-40bb-8565-6d4fde4da9de") public void setParent(final Data obj) { ((Class) this.elt).setOwner((obj != null) ? obj.getElement() : null); } @@ -234,23 +239,23 @@ public List getChilds() { return result; } - @objid ("c4f70c87-d084-43f6-b7d1-07f4aacc122f") + @objid ("feb06cfe-f9ad-4260-8c45-8248a82a7c9a") protected Data(final Class elt) { super(elt); } @objid ("feaa10e5-fc37-4158-ac9e-1c714c329e25") public static final class MdaTypes { - @objid ("62aaab51-1991-431d-bb38-9d97ce79aca9") + @objid ("6904354b-dff4-45c2-a37c-26ac5bf0f9b6") public static Stereotype STEREOTYPE_ELT; - @objid ("a23e16a3-d934-433a-8623-580c7fda4f75") + @objid ("b6400103-2ad9-4ab5-85f0-84fb39db2e91") private static Stereotype MDAASSOCDEP; - @objid ("fbcded38-de31-40ce-9e73-a2ab4e610aa9") + @objid ("378ef34f-0b4e-4d74-a78d-9b010e98a3dc") private static TagType MDAASSOCDEP_ROLE; - @objid ("972b59b3-580b-4d3b-8d7c-4185d918e774") + @objid ("43a37fe0-3f33-496b-acda-89440c9bd93a") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "fe12d8bd-3047-4893-8e67-549a85ecb744"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -258,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/datamodel/standard/class_/DataSource.java b/src/main/java/fr/softeam/cameldesigner/api/datamodel/standard/class_/DataSource.java index 3ec1b372..cc5b6dba 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.datamodel.standard.class_; @@ -38,10 +38,10 @@ */ @objid ("1f333d16-724c-4e8d-a1b3-e82caab2b1f4") public class DataSource extends FeatureClass { - @objid ("fd379411-7bc7-4f75-b8a9-2fe0b6d7534f") + @objid ("a7e0d38c-b7dc-47f0-90f7-05ad3a6ffdfb") public static final String STEREOTYPE_NAME = "DataSource"; - @objid ("2cc1e559-8b12-4148-95ca-e8fa1d9ff25a") + @objid ("65136f7b-7de8-4e29-a18f-5d3459475b27") public static final String EXTERNAL_TAGTYPE = "external"; /** @@ -52,7 +52,7 @@ public class DataSource extends FeatureClass { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("67a0ce3f-f7c9-4242-9a16-13aa4d1cf2b8") + @objid ("312072be-31c9-4c18-ae9b-367853331365") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, DataSource.STEREOTYPE_NAME)); } @@ -62,7 +62,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link DataSource} proxy on the created {@link Class}. */ - @objid ("4b01ea20-4a93-4560-9a43-a69adf56a617") + @objid ("108f3331-779a-4363-ae5b-a60abd4c8571") public static DataSource create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, DataSource.STEREOTYPE_NAME); @@ -70,36 +70,34 @@ 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. */ - @objid ("dd7c5e4e-adaa-449e-af15-ddd857d9b4a7") + @objid ("7a7f1751-4113-4971-bf69-abfb6ed27b8d") public static DataSource instantiate(final Class obj) { return DataSource.canInstantiate(obj) ? new DataSource(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("2e12b260-9fff-4c04-b242-a6c1f96c5fed") + @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 ("ea6cf78c-36a9-4dfe-b883-f4a6c31e70e4") + @objid ("83aa7646-434e-49c4-ab37-53442a21e59c") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -116,11 +114,10 @@ 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 ("76596b2d-9afd-47c4-b5b0-db8c3fe8057c") + @objid ("382672af-272d-418c-b9e1-293ed30cd099") @Override public Class getElement() { return (Class)super.getElement(); @@ -130,8 +127,9 @@ public Class getElement() { * Get the value of the 'SoftwareComponent' role.

* Role description: * null + * */ - @objid ("674ba211-3ab5-4482-9125-2729eb6f1fa1") + @objid ("edef4e2c-c5f0-435f-bbfd-932dca75f579") public SoftwareComponent getSoftwareComponent() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(DataSource.MdaTypes.MDAASSOCDEP) @@ -145,7 +143,7 @@ public SoftwareComponent getSoftwareComponent() { return null; } - @objid ("d5598e97-dc11-43e4-89f5-d61fac62eb95") + @objid ("064e699e-2968-4ca5-b43d-fa642c73530a") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -156,7 +154,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("b9fafb73-eb4f-4a03-be29-c55432951c9e") + @objid ("2ee208cd-ede3-41a2-bf7e-8a9bb84f4650") public boolean isExternal() { return this.elt.isTagged(DataSource.MdaTypes.EXTERNAL_TAGTYPE_ELT); } @@ -166,7 +164,7 @@ public boolean isExternal() { *

Property description: *
null

*/ - @objid ("2a95f363-898a-485a-895e-f0b91bf1eefe") + @objid ("1b847fb8-c50a-4876-ba58-be40bc5f7eec") public void setExternal(final boolean value) { if (value) CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createTaggedValue(DataSource.MdaTypes.EXTERNAL_TAGTYPE_ELT, this.elt); @@ -178,8 +176,9 @@ public void setExternal(final boolean value) { * Set the value of the 'SoftwareComponent' role.

* Role description: * null + * */ - @objid ("880b55a6-e843-440e-bc5c-d533838e2d26") + @objid ("fc58c45d-e88d-421d-81e1-17f8ef58a523") public void setSoftwareComponent(final SoftwareComponent obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -207,26 +206,26 @@ public List getChilds() { return result; } - @objid ("0428293c-6a3c-4289-9f81-2a3b86f4df77") + @objid ("ad83a6e7-c6bc-44a5-9d1b-601dbbe7f0b2") protected DataSource(final Class elt) { super(elt); } @objid ("a70d5efb-a707-47d2-9505-b57f05717b88") public static final class MdaTypes { - @objid ("f201f244-fb9a-4845-8918-4796b4a4c177") + @objid ("1ad61543-bfc2-471c-b230-f1fa6bd6f0aa") public static Stereotype STEREOTYPE_ELT; - @objid ("97368757-2fe4-4782-a12d-749669232bd0") + @objid ("21b0cf41-c74c-4ade-81f6-b14f4df5a3c9") public static TagType EXTERNAL_TAGTYPE_ELT; - @objid ("990e6e50-afed-43ef-8995-11ec334c4f26") + @objid ("31900af0-b45b-4681-bb79-643185094d0c") private static Stereotype MDAASSOCDEP; - @objid ("2bd5a824-817f-4e1c-b3fb-447eab41e576") + @objid ("c6c9560f-f3a2-4716-9c0b-a40e1fd7bcf1") private static TagType MDAASSOCDEP_ROLE; - @objid ("022adb9e-b1b4-40b2-96b4-b3dc8410722f") + @objid ("dfa19578-cf3a-434b-b887-7d0498613aba") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "074f2086-e176-45fc-80c7-81fd2336ac7f"); EXTERNAL_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "05736a3c-caa6-4f52-b966-63ac2100cca2"); @@ -235,11 +234,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 ed6eaad8..0ad34b26 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.datamodel.standard.instance; @@ -17,6 +17,7 @@ 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; @@ -40,7 +41,7 @@ */ @objid ("649011e7-76d7-432b-9ea5-833d04d8e471") public class DataInstance extends FeatureInstance { - @objid ("578deb60-87ea-47f7-9be8-ac914c96da6b") + @objid ("8b6bb0e5-6711-40a3-8599-fb7c13bcca8d") public static final String STEREOTYPE_NAME = "DataInstance"; /** @@ -51,7 +52,7 @@ public class DataInstance extends FeatureInstance { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("7edb2ae7-92ce-4622-aa31-2ab18946b619") + @objid ("eae37133-b299-4891-94e7-a9cb84c7e314") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Instance) && ((Instance) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, DataInstance.STEREOTYPE_NAME)); } @@ -61,7 +62,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link DataInstance} proxy on the created {@link Instance}. */ - @objid ("37bcc216-1024-4412-a8de-54b47de56568") + @objid ("76901391-d235-40f0-81b0-722e78770e7b") public static DataInstance create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Instance"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, DataInstance.STEREOTYPE_NAME); @@ -69,47 +70,46 @@ 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. */ - @objid ("a6cbf429-7542-458d-ba76-bef0c0fe9e19") + @objid ("d26a3dfe-afb4-4583-a63b-3cf1a0443fd7") public static DataInstance instantiate(final Instance obj) { return DataInstance.canInstantiate(obj) ? new DataInstance(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("55afcce1-9ad0-45ea-b230-5c1b46689fab") + @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 ("bcb2f12f-0271-45e6-b92d-7efd773a52c9") + @objid ("11c67f05-038d-4a34-9c7f-ecf3eb69ce50") public void addIncludesDataInstance(final DataInstanceBindableInstance obj) { if (obj!=null) ((Instance) this.elt).getPart().add(obj.getElement()); } - @objid ("d7cceed4-2f69-4104-8c20-605ebeb26322") + @objid ("bbaa666a-ae3f-4899-866a-6028c84a91dd") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -129,8 +129,9 @@ public boolean equals(final Object obj) { * Get the value of the 'dataSourceInstance' role.

* Role description: * null + * */ - @objid ("402ff6d7-661e-4de7-bd42-dcf6132e2277") + @objid ("9ce8d8d7-751b-4d44-9ef6-64ce58519cf3") public DataSourceInstance getDataSourceInstance() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(DataInstance.MdaTypes.MDAASSOCDEP) @@ -143,11 +144,10 @@ public DataSourceInstance getDataSourceInstance() { } /** - * Get the underlying {@link Instance}. - * + * Get the underlying {@link Instance}. * @return the Instance represented by this proxy, never null. */ - @objid ("ea76f3a2-3bdf-4196-a557-9ae49c8f0f6d") + @objid ("2d9a8283-c9fc-40c3-95bd-f63ca27b2262") @Override public Instance getElement() { return (Instance)super.getElement(); @@ -157,14 +157,15 @@ public Instance getElement() { * Get the values of the 'includesDataInstance' role.

* Role description: * null + * */ - @objid ("1624a0d6-8321-41af-85a4-a23f92bce852") + @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); } @@ -172,8 +173,9 @@ public List getIncludesDataInstance() { * Get the value to the 'parent' role.

* Role description: * null + * */ - @objid ("9208d9cd-30cc-440b-980c-75213d7b8baf") + @objid ("8713ec89-3dce-4fd9-a224-c713437f96a4") public DataInstanceModel getParent() { return (DataInstanceModel)CamelDesignerProxyFactory.instantiate(((Instance) this.elt).getOwner(), DataInstanceModel.STEREOTYPE_NAME); } @@ -182,13 +184,14 @@ public DataInstanceModel getParent() { * Get the value to the 'type' role.

* Role description: * null + * */ - @objid ("ffe5ee41-8d83-4c95-8b7f-3eaa6a348c79") + @objid ("71ef2ab7-5ac7-4e1b-84fc-081fc637ae05") public Data getType() { return (Data)CamelDesignerProxyFactory.instantiate(((Instance) this.elt).getBase(), Data.STEREOTYPE_NAME); } - @objid ("aac34b22-69ef-45f9-88c3-145dfd62cbd1") + @objid ("bd67f1ea-0951-4b39-a810-89c71583e1ad") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -198,8 +201,9 @@ public int hashCode() { * Remove a value from the 'includesDataInstance' role.

* Role description: * null + * */ - @objid ("a4e01114-e997-474d-919c-a26a8459f9f3") + @objid ("386576a7-b9bb-4b5f-aead-799221c4f87c") public boolean removeIncludesDataInstance(final DataInstanceBindableInstance obj) { return (obj!=null)? ((Instance) this.elt).getPart().remove(obj.getElement()) : false; } @@ -208,8 +212,9 @@ public boolean removeIncludesDataInstance(final DataInstanceBindableInstance obj * Set the value of the 'dataSourceInstance' role.

* Role description: * null + * */ - @objid ("be8556f0-86bc-4adc-839a-e32d1bd83702") + @objid ("b884d028-00ba-4245-bb9a-150d53a275dc") public void setDataSourceInstance(final DataSourceInstance obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -233,8 +238,9 @@ public void setDataSourceInstance(final DataSourceInstance obj) { * Set the value of the 'parent' role.

* Role description: * null + * */ - @objid ("a5f1a42b-cad0-4f58-8873-ff8630bc2a63") + @objid ("84f6ccad-9c15-4405-a59f-d8fb22bf3189") public void setParent(final DataInstanceModel obj) { ((Instance) this.elt).setOwner((obj != null) ? obj.getElement() : null); } @@ -243,8 +249,9 @@ public void setParent(final DataInstanceModel obj) { * Set the value of the 'type' role.

* Role description: * null + * */ - @objid ("3fa8a32b-4089-444c-9cc7-40ce3a2ddfa8") + @objid ("7613ea2e-9238-4841-8843-9945fe417941") public void setType(final Data obj) { ((Instance) this.elt).setBase((obj != null) ? obj.getElement() : null); } @@ -257,23 +264,23 @@ public List getChilds() { return result; } - @objid ("9a0c0f3f-455f-405d-aa93-66754c97fce4") + @objid ("aa099c0b-320e-4de8-a0f2-eb92fcd31825") protected DataInstance(final Instance elt) { super(elt); } @objid ("db37a04c-5717-4bc1-9bb0-fe56f193bb91") public static final class MdaTypes { - @objid ("845c41f9-9222-48cb-b585-87c33f26b48f") + @objid ("70735320-3f21-411b-b9d3-98606bb3ab12") public static Stereotype STEREOTYPE_ELT; - @objid ("f5a2eb3c-49e7-4fc9-9ecd-e45469afca56") + @objid ("a022f47b-8636-4368-bdc5-e3bc69c3025e") private static Stereotype MDAASSOCDEP; - @objid ("c23b4c54-2675-471b-9c94-835f3c574bb5") + @objid ("d53d9fe9-3bc6-4c20-bfe8-98f98488038c") private static TagType MDAASSOCDEP_ROLE; - @objid ("354c4d47-16db-4664-963b-90260bfaa022") + @objid ("6c263b3d-ceab-40dd-b0c6-46f429ad0fc9") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "fd50c81e-cd4d-4ae8-8e12-a2818c71f1de"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -281,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/datamodel/standard/instance/DataSourceInstance.java b/src/main/java/fr/softeam/cameldesigner/api/datamodel/standard/instance/DataSourceInstance.java index a3240910..f8b4cfda 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.datamodel.standard.instance; @@ -39,7 +39,7 @@ */ @objid ("7596aa7f-0bb2-4518-8c82-6822a15475d0") public class DataSourceInstance extends FeatureInstance { - @objid ("4e5892a6-457e-41e8-a717-ea40f1791a8e") + @objid ("9e5484cb-0623-4f5d-81bc-3d8be41c2a76") public static final String STEREOTYPE_NAME = "DataSourceInstance"; /** @@ -50,7 +50,7 @@ public class DataSourceInstance extends FeatureInstance { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("70c72f4c-4fb6-4c79-bb0b-219afb6f40b6") + @objid ("d8be2349-3063-45de-9b18-fb68140b905e") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Instance) && ((Instance) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, DataSourceInstance.STEREOTYPE_NAME)); } @@ -60,7 +60,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link DataSourceInstance} proxy on the created {@link Instance}. */ - @objid ("3a24c68b-92bd-441e-b95d-b7e91b516c20") + @objid ("aa18a50e-d195-4008-9d81-8afe49e70054") public static DataSourceInstance create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Instance"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, DataSourceInstance.STEREOTYPE_NAME); @@ -68,36 +68,34 @@ 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. */ - @objid ("2ed1105f-79d8-40e5-92d4-cce2e35cfc38") + @objid ("ea16c76f-df28-4f90-9ce2-681940867dff") public static DataSourceInstance instantiate(final Instance obj) { return DataSourceInstance.canInstantiate(obj) ? new DataSourceInstance(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("30eab7d8-099f-46f8-8ce4-b2dc31a47a1b") + @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 ("dbee91f7-4502-4e5a-b5de-fcd2ca463338") + @objid ("ad78d1eb-4187-4004-813a-3d44e120dd6a") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -114,11 +112,10 @@ 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 ("f306de12-5711-41de-bcc0-3885c9746b14") + @objid ("d327933a-3609-42d1-8ba3-0a5467cc3519") @Override public Instance getElement() { return (Instance)super.getElement(); @@ -128,8 +125,9 @@ public Instance getElement() { * Get the value to the 'parent' role.

* Role description: * null + * */ - @objid ("15d53f7b-5c80-451e-be99-7f1a0bdd250a") + @objid ("4c206c26-e43a-4b6d-af91-7ae939349d30") public DataInstanceModel getParent() { return (DataInstanceModel)CamelDesignerProxyFactory.instantiate(((Instance) this.elt).getOwner(), DataInstanceModel.STEREOTYPE_NAME); } @@ -138,8 +136,9 @@ public DataInstanceModel getParent() { * Get the value of the 'softwareComponentInstance' role.

* Role description: * null + * */ - @objid ("751f5fe7-d362-40e7-b409-ff7070b60712") + @objid ("63c030c8-4451-4754-a1bd-77abd47dd90a") public SoftwareComponentInstance getSoftwareComponentInstance() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(DataSourceInstance.MdaTypes.MDAASSOCDEP) @@ -155,13 +154,14 @@ public SoftwareComponentInstance getSoftwareComponentInstance() { * Get the value to the 'type' role.

* Role description: * null + * */ - @objid ("501d8184-3f23-4a56-9d89-580d831d2d29") + @objid ("63a9bda8-8af0-4be3-805a-29850dcfb63c") public DataSource getType() { return (DataSource)CamelDesignerProxyFactory.instantiate(((Instance) this.elt).getBase(), DataSource.STEREOTYPE_NAME); } - @objid ("ac9acd2f-91db-49ec-b04d-f0c8845b9eb6") + @objid ("abcca6b8-810e-45e2-a4bd-a9389556a22d") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -171,8 +171,9 @@ public int hashCode() { * Set the value of the 'parent' role.

* Role description: * null + * */ - @objid ("91b7b8b9-2fca-489b-abc6-c55edf59ef66") + @objid ("ee295620-f97c-4d64-abce-50912c384153") public void setParent(final DataInstanceModel obj) { ((Instance) this.elt).setOwner((obj != null) ? obj.getElement() : null); } @@ -181,8 +182,9 @@ public void setParent(final DataInstanceModel obj) { * Set the value of the 'softwareComponentInstance' role.

* Role description: * null + * */ - @objid ("e650096a-84ba-440a-adc6-520ff12e9742") + @objid ("a8281977-b2f7-42ef-8817-a963a0cb1118") public void setSoftwareComponentInstance(final SoftwareComponentInstance obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -206,8 +208,9 @@ public void setSoftwareComponentInstance(final SoftwareComponentInstance obj) { * Set the value of the 'type' role.

* Role description: * null + * */ - @objid ("858e9ef3-bea1-45e7-b0aa-655acd423e38") + @objid ("dc105a8e-aab5-41b6-8117-db4d0237ad63") public void setType(final DataSource obj) { ((Instance) this.elt).setBase((obj != null) ? obj.getElement() : null); } @@ -220,23 +223,23 @@ public List getChilds() { return result; } - @objid ("eda3f6ae-cb2c-4412-bfcc-42b5d5c70aec") + @objid ("6f581270-3781-4119-b0f9-423fe358fb0f") protected DataSourceInstance(final Instance elt) { super(elt); } @objid ("f274074b-7683-49b4-b45f-098faac6eaa7") public static final class MdaTypes { - @objid ("2dbe0e72-3a47-4469-88ce-5bfa4bbae54f") + @objid ("0de7e134-7488-4339-83be-c54107b16f71") public static Stereotype STEREOTYPE_ELT; - @objid ("c7273217-9f53-453f-b4eb-be8598b084b0") + @objid ("de510bbe-01c9-40fe-8693-66e99bfe0c68") private static Stereotype MDAASSOCDEP; - @objid ("e9b7a970-9abc-48a2-8132-5d8950177e9e") + @objid ("23f5a8d7-de08-4331-8925-9d60d20b9edb") private static TagType MDAASSOCDEP_ROLE; - @objid ("97a09df0-704b-4114-b29c-d0d4b9a6cf78") + @objid ("bb827b5d-cd32-4670-b611-450434efa56c") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "b72705cc-1db6-46cb-8f6e-de0c711a1997"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -244,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/datamodel/standard/package_/DataInstanceModel.java b/src/main/java/fr/softeam/cameldesigner/api/datamodel/standard/package_/DataInstanceModel.java index 37147cdb..80db9398 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.datamodel.standard.package_; @@ -17,13 +17,18 @@ 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; import org.modelio.api.module.context.IModuleContext; +import org.modelio.metamodel.mmextensions.infrastructure.ExtensionNotFoundException; import org.modelio.metamodel.uml.infrastructure.Dependency; import org.modelio.metamodel.uml.infrastructure.ModelElement; import org.modelio.metamodel.uml.infrastructure.Stereotype; import org.modelio.metamodel.uml.infrastructure.TagType; +import org.modelio.metamodel.uml.infrastructure.properties.PropertyDefinition; +import org.modelio.metamodel.uml.infrastructure.properties.PropertyTableDefinition; import org.modelio.metamodel.uml.statik.Instance; import org.modelio.metamodel.uml.statik.Package; import org.modelio.vcore.smkernel.mapi.MObject; @@ -35,7 +40,7 @@ */ @objid ("2bb251af-61c2-4baa-b91a-9e56692a7104") public class DataInstanceModel extends DataModel { - @objid ("b030effb-fa7a-41ed-b5f6-8898830d8dd9") + @objid ("6c7b3021-f982-4b4e-878b-db867adb7e40") public static final String STEREOTYPE_NAME = "DataInstanceModel"; /** @@ -46,7 +51,7 @@ public class DataInstanceModel extends DataModel { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("639269bf-05d3-4ac2-a33e-cff253e2cf9c") + @objid ("683c8dfb-e8d8-427b-9110-6f023d420841") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Package) && ((Package) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, DataInstanceModel.STEREOTYPE_NAME)); } @@ -56,7 +61,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link DataInstanceModel} proxy on the created {@link Package}. */ - @objid ("c853dcc8-cdfd-4ab7-b6d6-136e9332fa6f") + @objid ("a9b45336-3d87-4c79-a40e-9d3f382b0262") public static DataInstanceModel create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Package"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, DataInstanceModel.STEREOTYPE_NAME); @@ -64,41 +69,40 @@ 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. */ - @objid ("481203a3-8818-4b32-932d-06583c251c3e") + @objid ("eadc2fe9-176e-4dab-9fa9-1377fc133faf") public static DataInstanceModel instantiate(final Package obj) { return DataInstanceModel.canInstantiate(obj) ? new DataInstanceModel(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("6a61c0c6-4921-461e-a635-a5c8a8e44efb") + @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 ("3b13b9fa-4cee-4928-8a96-f8ff5ba1d46e") + @objid ("05d5415d-5e2c-46d1-9b8b-06b9a2d7a625") public void addDataInstances(final DataInstance obj) { if (obj!=null) ((Package) this.elt).getDeclared().add(obj.getElement()); @@ -108,14 +112,15 @@ public void addDataInstances(final DataInstance obj) { * Add a value to the 'dataSourcesInstances' role.

* Role description: * null + * */ - @objid ("e7efb017-d136-434d-b319-0c421c77443e") + @objid ("aa863002-b18f-43c4-a53b-673fe7d7c604") public void addDataSourcesInstances(final DataSourceInstance obj) { if (obj!=null) ((Package) this.elt).getDeclared().add(obj.getElement()); } - @objid ("4ab449a3-c501-4701-8ff0-ac3cc56d3a16") + @objid ("d75e2704-a4ce-4529-b255-81a1998020a3") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -135,16 +140,17 @@ public boolean equals(final Object obj) { * Get the values of the 'dataInstances' role.

* Role description: * null + * */ - @objid ("74116897-5a27-4788-9b03-0ab2a974d706") + @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); } @@ -152,23 +158,23 @@ public List getDataInstances() { * Get the values of the 'dataSourcesInstances' role.

* Role description: * null + * */ - @objid ("22e5c785-e684-41cb-8a09-5b68c04bd6ff") + @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 ("e6c62a40-f84d-4ea8-b7b4-7b51b8d330ee") + @objid ("0c57e6b1-7914-4d28-8721-a1d05161168b") @Override public Package getElement() { return (Package)super.getElement(); @@ -178,8 +184,9 @@ public Package getElement() { * Get the value of the 'type' role.

* Role description: * null + * */ - @objid ("6aaf68cd-68e4-4b04-8b8a-e0f34498cb73") + @objid ("9ebe908f-a902-45df-9282-ae7de713a4ed") public DataTypeModel getType() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(DataInstanceModel.MdaTypes.MDAASSOCDEP) @@ -191,7 +198,7 @@ public DataTypeModel getType() { return null; } - @objid ("599c837f-0db2-40bc-afdf-973324c41c07") + @objid ("c488bbde-051e-4c81-aa75-6edf7eb90efd") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -201,8 +208,9 @@ public int hashCode() { * Remove a value from the 'dataInstances' role.

* Role description: * null + * */ - @objid ("034f6059-a56b-4818-9326-c623bb7e1cfd") + @objid ("f804f601-3e2a-4625-9957-2bce960e2d60") public boolean removeDataInstances(final DataInstance obj) { return (obj!=null)? ((Package) this.elt).getDeclared().remove(obj.getElement()) : false; } @@ -211,8 +219,9 @@ public boolean removeDataInstances(final DataInstance obj) { * Remove a value from the 'dataSourcesInstances' role.

* Role description: * null + * */ - @objid ("c684a8aa-2561-4a07-8c8d-51c7dba92f31") + @objid ("af515593-dd5e-4ab4-96ea-85da7cdbd432") public boolean removeDataSourcesInstances(final DataSourceInstance obj) { return (obj!=null)? ((Package) this.elt).getDeclared().remove(obj.getElement()) : false; } @@ -221,8 +230,9 @@ public boolean removeDataSourcesInstances(final DataSourceInstance obj) { * Set the value of the 'type' role.

* Role description: * null + * */ - @objid ("247a3789-6e87-46a1-bd02-b56f67936218") + @objid ("292dc699-a3e2-48f7-bc93-602bb59b34cf") public void setType(final DataTypeModel obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -252,23 +262,23 @@ public List getChilds() { return result; } - @objid ("1a022ec9-b27e-4705-87c1-25ff819f17dc") + @objid ("5e22cf83-3be4-44e1-ae8a-0c03de055f76") protected DataInstanceModel(final Package elt) { super(elt); } @objid ("1b14823c-7143-4254-9af2-2c028081c38f") public static final class MdaTypes { - @objid ("fb49f795-cbec-4d59-afaf-eae7e20d0e7b") + @objid ("3611bebd-66cd-45c1-ae3d-c0e15486c3ce") public static Stereotype STEREOTYPE_ELT; - @objid ("64224073-8fb4-4d8f-83d7-6450162000b5") + @objid ("fcfd0330-3089-4728-ae95-c9473b8a85e1") private static Stereotype MDAASSOCDEP; - @objid ("af21caee-587a-4b9e-ac6d-da036763d4da") + @objid ("b821d95d-ae59-481f-9ced-791b3b4bb21e") private static TagType MDAASSOCDEP_ROLE; - @objid ("29d4c069-4a17-4b8d-81fc-a04f8c6607af") + @objid ("28014dfe-07ce-4808-91a7-fbc9018a10ff") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "5f0d05aa-3af3-4ce2-b44f-e7f797acc992"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -276,11 +286,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 d4663d0a..ae91b36a 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.datamodel.standard.package_; @@ -36,7 +36,7 @@ */ @objid ("de455c3b-3874-4127-a7ee-cf93060c1056") public abstract class DataModel extends SubModel { - @objid ("3d097cac-1b98-4d25-9ded-1dfaef4bb8dd") + @objid ("47156581-130f-420f-b25a-1edf65d0ee83") public static final String STEREOTYPE_NAME = "DataModel"; /** @@ -47,12 +47,12 @@ public abstract class DataModel extends SubModel { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("9fa14381-c69b-4065-a90f-1ae732dd1cc5") + @objid ("81ad405c-9d68-4358-82b1-5a3070d73adc") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Package) && ((Package) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, DataModel.STEREOTYPE_NAME)); } - @objid ("615b6699-acb1-4458-b3bf-e6d0fe39891d") + @objid ("d2fb89fe-058e-4a72-9369-8044b35f1cf2") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -69,17 +69,16 @@ 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 ("aa4115db-55e7-4d18-b7bb-35495e9abfeb") + @objid ("0123bb6a-8fd7-4b03-81a2-f8f2ba66a5db") @Override public Package getElement() { return (Package)super.getElement(); } - @objid ("aba51480-b8e8-4f95-b0f2-651bfbb078d8") + @objid ("e10419fc-780d-4a74-b7a0-815b5ae014d3") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -93,23 +92,23 @@ public List getChilds() { return result; } - @objid ("eb312ae3-55bf-4976-8bd5-6d665dbde98a") + @objid ("d83359d7-81f4-4d9c-873a-5b15a0cdd2f2") protected DataModel(final Package elt) { super(elt); } @objid ("be9685ad-a9b6-4bba-8516-6e7e03cecdde") public static final class MdaTypes { - @objid ("524617d7-3f64-42b8-a09e-3f56b7a2ca70") + @objid ("9ee21de5-97dc-4976-a598-664b1de77663") public static Stereotype STEREOTYPE_ELT; - @objid ("5cfa5a7c-448c-4622-b187-5aefb48a7a8c") + @objid ("f41d2e8a-0b00-409d-93f8-8b4a62c15fd0") private static Stereotype MDAASSOCDEP; - @objid ("5c90abc1-e16f-450b-9a56-3210af122283") + @objid ("ad4de966-401e-4781-a01c-b039005de33a") private static TagType MDAASSOCDEP_ROLE; - @objid ("4b96dfb7-0e55-4ad7-b7f7-2100ab7ad0fc") + @objid ("6ee7661b-e8f8-41d3-88d4-d1819b43c356") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "69b59850-29a3-4354-afc2-617679c2ef73"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -117,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/datamodel/standard/package_/DataTypeModel.java b/src/main/java/fr/softeam/cameldesigner/api/datamodel/standard/package_/DataTypeModel.java index 66462b77..b2b0182b 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 @@ -1,14 +1,15 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.datamodel.standard.package_; import java.util.ArrayList; import java.util.Collections; import java.util.List; +import java.util.Objects; import com.modeliosoft.modelio.javadesigner.annotations.objid; import fr.softeam.cameldesigner.api.CamelDesignerProxyFactory; import fr.softeam.cameldesigner.api.ICamelDesignerPeerModule; @@ -16,11 +17,17 @@ import fr.softeam.cameldesigner.api.datamodel.standard.class_.Data; 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; import org.modelio.api.module.context.IModuleContext; +import org.modelio.metamodel.mmextensions.infrastructure.ExtensionNotFoundException; +import org.modelio.metamodel.uml.infrastructure.Dependency; 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.infrastructure.properties.PropertyDefinition; +import org.modelio.metamodel.uml.infrastructure.properties.PropertyTableDefinition; import org.modelio.metamodel.uml.statik.Package; import org.modelio.vcore.smkernel.mapi.MObject; @@ -31,7 +38,7 @@ */ @objid ("7c502d97-b3d6-4b26-a717-f2c9c65a164e") public class DataTypeModel extends DataModel { - @objid ("bb8dcfe3-0400-4654-8698-f0c858acb999") + @objid ("26f0dfe0-90a1-41f2-809c-86a3c946a6ca") public static final String STEREOTYPE_NAME = "DataTypeModel"; /** @@ -42,7 +49,7 @@ public class DataTypeModel extends DataModel { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("63ac9277-a646-4ddf-94e9-0fa17eb9570c") + @objid ("1ea9b890-6f51-4dd5-aa97-0563bb7d9233") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Package) && ((Package) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, DataTypeModel.STEREOTYPE_NAME)); } @@ -52,7 +59,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link DataTypeModel} proxy on the created {@link Package}. */ - @objid ("76e9c9e8-9ba9-48b9-bf67-cd690560b999") + @objid ("89d92ed7-4f40-4575-93e9-39928cd68d14") public static DataTypeModel create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Package"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, DataTypeModel.STEREOTYPE_NAME); @@ -60,41 +67,40 @@ 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. */ - @objid ("7417be26-2a96-4a0b-9625-0d68f4f6c056") + @objid ("c270b5cd-bccd-4a82-a670-7763b7b04788") public static DataTypeModel instantiate(final Package obj) { return DataTypeModel.canInstantiate(obj) ? new DataTypeModel(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("481c755d-9d2e-402b-bc44-6ba11e7908e2") + @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 ("fd14fbde-5a93-414a-8704-56c4b9631f88") + @objid ("8467e567-6cbd-4ffc-9f3e-9239e7f71618") public void addData(final Data obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -104,14 +110,15 @@ public void addData(final Data obj) { * Add a value to the 'dataSources' role.

* Role description: * null + * */ - @objid ("6485200c-6702-4d7a-87a9-d00240f3891d") + @objid ("592a2df7-61d7-4dbd-8788-dcacb55303c8") public void addDataSources(final DataSource obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); } - @objid ("783d53bd-7949-487a-8bfb-6cacbefda165") + @objid ("e9a62fdd-f065-4437-b815-5e18a06e468f") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -131,14 +138,15 @@ public boolean equals(final Object obj) { * Get the values of the 'data' role.

* Role description: * null + * */ - @objid ("23e03420-7ccd-442f-838a-9934d9e3477a") + @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); } @@ -146,29 +154,29 @@ public List getData() { * Get the values of the 'dataSources' role.

* Role description: * null + * */ - @objid ("53888e62-90be-4c9f-82de-19ca8cf0f3d4") + @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 ("10b18f9d-3850-47ca-b703-3e7c9ea39c57") + @objid ("20ec7f3f-c2f0-4cfa-aecd-11304ce7bf45") @Override public Package getElement() { return (Package)super.getElement(); } - @objid ("af9e94a1-450b-4507-8939-fe1a68215b8f") + @objid ("514e1c9c-949c-4805-a2d7-6185883e6839") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -178,8 +186,9 @@ public int hashCode() { * Remove a value from the 'data' role.

* Role description: * null + * */ - @objid ("404a837f-f0a9-4b73-b6c8-2d3306aa7eb0") + @objid ("bb1e456e-e4ca-4a8a-acd4-f858221e2f8d") public boolean removeData(final Data obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -188,8 +197,9 @@ public boolean removeData(final Data obj) { * Remove a value from the 'dataSources' role.

* Role description: * null + * */ - @objid ("cd9c64cd-51a6-4d69-a507-9f5f89255b42") + @objid ("060fabbd-9bd2-4c6b-9420-54c6001d6ab5") public boolean removeDataSources(final DataSource obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -204,23 +214,23 @@ public List getChilds() { return result; } - @objid ("40d18768-b548-4592-8df8-4f9cd1db387b") + @objid ("5f5f0b86-46ed-4cd3-bbcf-8b3816927368") protected DataTypeModel(final Package elt) { super(elt); } @objid ("6b710ff0-3d2f-4e7f-9f5d-4066b77ae3ba") public static final class MdaTypes { - @objid ("a33e0420-9f05-4b35-aef2-0a1fe2d5b42c") + @objid ("2868d7b4-f6cb-4b8b-b3a3-0300c2ce1e34") public static Stereotype STEREOTYPE_ELT; - @objid ("753eac0e-0cdc-4c63-a0a9-c2b9bc896684") + @objid ("dbb5af62-9897-4ca8-bcea-fbf59014f343") private static Stereotype MDAASSOCDEP; - @objid ("65c49d61-8987-4c9b-8185-186f76e87fb2") + @objid ("81d0845c-8b46-4d79-b298-9c151a4312ab") private static TagType MDAASSOCDEP_ROLE; - @objid ("575847cd-cf1f-4577-9657-c0174a7e5885") + @objid ("4a7c47e4-4297-4535-8a31-6a9986719450") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "0014ffb4-9b70-4831-bf43-352df23bedfa"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -228,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/deploymentinstancemodel/standard/connector/CommunicationInstance.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/connector/CommunicationInstance.java index 8d46f7be..6b40b308 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.connector; @@ -37,7 +37,7 @@ */ @objid ("355d42b2-d4dd-49ae-bfd1-58fbf281ecd1") public class CommunicationInstance extends ComponentRelationInstance { - @objid ("3301834d-0a11-4e25-9dd6-36f1d8d1c285") + @objid ("e0c44473-e750-4ca2-a9f1-bd42a6561b94") public static final String STEREOTYPE_NAME = "CommunicationInstance"; /** @@ -48,7 +48,7 @@ public class CommunicationInstance extends ComponentRelationInstance { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("ee09c644-e298-4dac-8831-41d6cb6d1d1c") + @objid ("74b1c645-aded-4838-ac89-30b236ecc97a") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Connector) && ((Connector) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, CommunicationInstance.STEREOTYPE_NAME)); } @@ -58,7 +58,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link CommunicationInstance} proxy on the created {@link Connector}. */ - @objid ("91538529-ae8f-46ea-9866-8fdabdb2bab9") + @objid ("d30b6dca-0aae-4cdb-ac61-bc222e404e10") public static CommunicationInstance create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Connector"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, CommunicationInstance.STEREOTYPE_NAME); @@ -66,36 +66,34 @@ 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. */ - @objid ("ff39519c-c57f-4710-af3f-0e9bdb6bbfbe") + @objid ("06822dc7-4966-4065-810c-fbd75a84f81d") public static CommunicationInstance instantiate(final Connector obj) { return CommunicationInstance.canInstantiate(obj) ? new CommunicationInstance(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("6a14a774-8914-49b5-859a-51984ecfd7f4") + @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 ("52a8fa62-275d-4dd2-b731-82f5523fe093") + @objid ("3424a97d-246c-403e-9a18-e1fbd0167f34") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -112,11 +110,10 @@ 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 ("e5c29f93-ea06-4147-8cc5-1057c7120955") + @objid ("74d3c1c4-3571-4b04-85ff-f7afe123857e") @Override public Connector getElement() { return (Connector)super.getElement(); @@ -126,8 +123,9 @@ public Connector getElement() { * Get the value of the 'parent' role.

* Role description: * null + * */ - @objid ("c3a91b10-45b7-438c-99e1-4bd1da47df58") + @objid ("cf487452-ae04-4f95-9aeb-c56a66be56c7") public DeploymentInstanceModel getParent() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(CommunicationInstance.MdaTypes.MDAASSOCDEP) @@ -143,8 +141,9 @@ public DeploymentInstanceModel getParent() { * Get the value of the 'type' role.

* Role description: * null + * */ - @objid ("146caa53-6aae-497f-b27b-08d3e985fd52") + @objid ("aaeeecb9-d204-4028-a1be-d5bb76ba5feb") public Communication getType() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(CommunicationInstance.MdaTypes.MDAASSOCDEP) @@ -156,7 +155,7 @@ public Communication getType() { return null; } - @objid ("8080b5d1-f2fb-4178-976c-19c18c4febb9") + @objid ("4d0b5345-79b5-4db8-be84-fb348fb15fcf") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -166,8 +165,9 @@ public int hashCode() { * Set the value of the 'parent' role.

* Role description: * null + * */ - @objid ("39c4c559-f600-435c-b7f5-5a35fa8f8415") + @objid ("08e04a5f-fae1-4d3a-a5bb-f1dd65607d81") public void setParent(final DeploymentInstanceModel obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -191,8 +191,9 @@ public void setParent(final DeploymentInstanceModel obj) { * Set the value of the 'type' role.

* Role description: * null + * */ - @objid ("261297b4-2d08-4623-97f0-204e92b94922") + @objid ("85aa02e7-d71c-424b-942f-477b971674d0") public void setType(final Communication obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -220,23 +221,23 @@ public List getChilds() { return result; } - @objid ("9cd7d51e-4c41-4c8d-8a11-395a2a529801") + @objid ("a8bd66f1-9200-43e7-8f57-5afef03987d6") protected CommunicationInstance(final Connector elt) { super(elt); } @objid ("cf21fdd9-ead8-4cfe-914e-4a923f9c983f") public static final class MdaTypes { - @objid ("0848f5f8-5ba6-4bf8-b65c-fa52c060fc41") + @objid ("0d721d77-ca44-4754-bc00-e97e76bc6419") public static Stereotype STEREOTYPE_ELT; - @objid ("d7d1376d-e78e-4f84-8533-1ab9d317f1b5") + @objid ("a859ce6d-0474-492f-8c0f-82d5d68b2d37") private static Stereotype MDAASSOCDEP; - @objid ("0feca7d0-e098-4717-840c-632b540e1216") + @objid ("b8dfa863-0d5c-4935-b842-c43533fa28b2") private static TagType MDAASSOCDEP_ROLE; - @objid ("753f4287-0503-4d9d-a70e-f919e48faa54") + @objid ("d4d2a19e-b143-4eb9-a698-93b199829906") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "479fff80-8075-4f90-b7f8-e148699ee433"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -244,11 +245,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 bb60580b..bb4cf56b 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.connector; @@ -36,7 +36,7 @@ */ @objid ("fe63e6e1-a973-4acb-910b-2f0927d76eb1") public abstract class ComponentRelationInstance extends FeatureConnector { - @objid ("df830b5b-e94d-4437-ad05-a1b7eb5b953a") + @objid ("50959090-c6a8-4fb4-bf2a-53ec4cf35687") public static final String STEREOTYPE_NAME = "ComponentRelationInstance"; /** @@ -47,12 +47,12 @@ public abstract class ComponentRelationInstance extends FeatureConnector { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("12f5bf59-a20a-43c9-96a4-e2f871ab6b27") + @objid ("81db1796-64bc-463e-9250-433d61e6c2f2") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Connector) && ((Connector) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, ComponentRelationInstance.STEREOTYPE_NAME)); } - @objid ("f82b964b-411e-493d-bdde-a21d91cab038") + @objid ("fdbddf27-b8d5-488f-bd5a-1f0b409037a8") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -69,17 +69,16 @@ 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 ("3ec0c475-ccc1-40e0-b8aa-d2be9cb1eb51") + @objid ("0b9d429f-3f2c-45e1-a2a8-aa0851e725e1") @Override public Connector getElement() { return (Connector)super.getElement(); } - @objid ("98f7c186-35d3-463b-82df-8c6a6737c7c6") + @objid ("d0397465-53cc-4510-a8b0-302bbcb9e9cd") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -93,23 +92,23 @@ public List getChilds() { return result; } - @objid ("19cc2604-9254-46bc-b079-a49b9a18e1f4") + @objid ("fd88588f-b6f2-4c70-9c6a-d189f232a117") protected ComponentRelationInstance(final Connector elt) { super(elt); } @objid ("d927b287-6b8d-4d81-8f18-9bc21a636dd4") public static final class MdaTypes { - @objid ("9afe8c49-d81a-437f-90aa-b013ab322e8b") + @objid ("62bd420b-bee3-44a8-876c-b369aca35664") public static Stereotype STEREOTYPE_ELT; - @objid ("979c71d5-9688-4fc2-a7bb-5f622150b27d") + @objid ("2012afab-53a4-4c48-8074-633178bf90ad") private static Stereotype MDAASSOCDEP; - @objid ("07027222-9e94-443c-926e-f4e9a7d21e4c") + @objid ("5df00d01-7e55-4ab9-8e98-e3dca30b6b44") private static TagType MDAASSOCDEP_ROLE; - @objid ("54fe5fd6-2c9c-49a7-8545-b670c60b6f22") + @objid ("ad9687f1-0352-40b4-a3b3-3b2003615d18") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "b055b982-4854-4f90-adad-1833553f489e"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -117,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/deploymentinstancemodel/standard/connector/HostingInstance.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/connector/HostingInstance.java index f2aeb54d..7b6924f7 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.connector; @@ -36,7 +36,7 @@ */ @objid ("f2d290ed-f247-45bf-9ad2-1b3defc04755") public class HostingInstance extends ComponentRelationInstance { - @objid ("ed2b832f-379c-409b-a500-8fb956a14727") + @objid ("c7d8118c-b4ab-4ebc-b764-3778676ee738") public static final String STEREOTYPE_NAME = "HostingInstance"; /** @@ -47,7 +47,7 @@ public class HostingInstance extends ComponentRelationInstance { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("422ffb3b-3643-4588-a747-10a0b1c88753") + @objid ("d1e096d8-e3ce-40f4-9950-77d4cf049177") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Connector) && ((Connector) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, HostingInstance.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link HostingInstance} proxy on the created {@link Connector}. */ - @objid ("29361250-6800-4fca-900d-acd8a3387dd8") + @objid ("df1276f1-87dc-4c0b-b235-8d101530e507") public static HostingInstance create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Connector"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, HostingInstance.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("89e8b199-3270-410a-9751-632af637fd42") + @objid ("ec82df5c-1163-4d03-b1a5-80b86df82629") public static HostingInstance instantiate(final Connector obj) { return HostingInstance.canInstantiate(obj) ? new HostingInstance(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("76de75bb-1c5f-4ea6-8130-5817ed8399f2") + @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 ("9c0951b7-475d-4b9f-9530-46cc20e5b251") + @objid ("bc2d6cd5-a2e9-4098-83b3-ea5a11a14096") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,11 +109,10 @@ 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 ("dc9223aa-f686-46ac-ab1c-f1bb5d6ff668") + @objid ("0463058a-b123-4c9c-a32a-0fc44c1e462f") @Override public Connector getElement() { return (Connector)super.getElement(); @@ -125,8 +122,9 @@ public Connector getElement() { * Get the value of the 'type' role.

* Role description: * null + * */ - @objid ("49749ede-3d12-4174-b787-093a3a45b1eb") + @objid ("078bdca0-a591-402e-876a-4e3fe7c1215d") public Hosting getType() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(HostingInstance.MdaTypes.MDAASSOCDEP) @@ -138,7 +136,7 @@ public Hosting getType() { return null; } - @objid ("98c21b03-6dff-4eff-92c4-2194123cc78c") + @objid ("fe105191-4d17-4c06-bbfa-5fd71cda93da") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -148,8 +146,9 @@ public int hashCode() { * Set the value of the 'type' role.

* Role description: * null + * */ - @objid ("3e7bc79f-9cb9-4741-9c38-516de0c2a666") + @objid ("61284b1c-1559-40e8-ae27-92d1a8e7e621") public void setType(final Hosting obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -177,23 +176,23 @@ public List getChilds() { return result; } - @objid ("777fe05e-e1e3-4d84-9807-2b9915923784") + @objid ("18e27772-565e-44bf-b402-609ddd1c65a1") protected HostingInstance(final Connector elt) { super(elt); } @objid ("0a6f0d2c-ffcc-47ac-a073-417c46822aff") public static final class MdaTypes { - @objid ("d89335f8-9b60-4770-a4a1-54b523984388") + @objid ("4df3e6e6-ecf1-472e-bda9-b91c5723a6b6") public static Stereotype STEREOTYPE_ELT; - @objid ("51d09832-d75d-47e3-ad0e-1e11fe504c5d") + @objid ("f911a0b1-ca87-47e6-a893-0d59c0593a0f") private static Stereotype MDAASSOCDEP; - @objid ("52feadcb-2cf0-4608-8710-1b3bdbf314cf") + @objid ("03c699d3-915c-435a-95dc-96a59b6ff16e") private static TagType MDAASSOCDEP_ROLE; - @objid ("b7509fb9-104c-4c35-8fea-4d6f47f513f6") + @objid ("ffdbc4e3-e385-4dfc-998d-0e6446f1e610") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "db62c499-d8f1-45e2-a427-4649858fbf35"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -201,11 +200,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 8fbb8dbe..162b834f 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.instance; @@ -40,13 +40,13 @@ */ @objid ("5558f77d-42a8-4e10-8393-56d67ba21511") public abstract class ComponentInstance extends FeatureInstance { - @objid ("5f5d3fb3-74c6-47db-abc0-49391ba519d1") + @objid ("a6d02ecb-55c0-40b9-aaa7-029f6b69c297") public static final String STEREOTYPE_NAME = "ComponentInstance"; - @objid ("c5205277-3bfe-45cf-a689-99576ba7c349") + @objid ("ec5d0dd3-89b6-4d76-95f8-8d6873304793") public static final String DESTROYEDON_TAGTYPE = "destroyedOn"; - @objid ("ef3f692a-da95-4871-bbf9-b1f3358824a4") + @objid ("8678bd35-7eb0-409f-8156-4fadcbd62644") public static final String INSTANTIATEDON_TAGTYPE = "instantiatedOn"; /** @@ -57,7 +57,7 @@ public abstract class ComponentInstance extends FeatureInstance { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("279fc1a9-9810-4b58-9275-d41e9b9cae8b") + @objid ("7104f6a6-12b9-41e6-9f9a-577a49c66171") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Instance) && ((Instance) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, ComponentInstance.STEREOTYPE_NAME)); } @@ -66,8 +66,9 @@ public static boolean canInstantiate(final MObject elt) { * Add a value to the 'providedCommunicationInstances' role.

* Role description: * null + * */ - @objid ("41e42fb7-3127-47d9-8b5f-6e40ec5cc34a") + @objid ("98e3353e-f4aa-4726-944b-d61974f0b2d7") public void addProvidedCommunicationInstances(final CommunicationPort obj) { if (obj!=null) ((Instance) this.elt).getPart().add(obj.getElement()); @@ -77,14 +78,15 @@ public void addProvidedCommunicationInstances(final CommunicationPort obj) { * Add a value to the 'providedHostInstances' role.

* Role description: * null + * */ - @objid ("849b46ca-de27-49c4-a9cd-6db3bd50ac64") + @objid ("e4a18be6-3cfa-40ec-89d3-2334ab7d125b") public void addProvidedHostInstances(final HostingPort obj) { if (obj!=null) ((Instance) this.elt).getPart().add(obj.getElement()); } - @objid ("5d2aca28-e584-4986-80be-f54ebe1c0589") + @objid ("9c804733-7ede-46f0-be2a-7e3c42f8395a") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -105,17 +107,16 @@ public boolean equals(final Object obj) { *

Property description: *
null

*/ - @objid ("7baba955-4af7-4468-a8e5-900412bd8b1d") + @objid ("8519247e-a13c-423d-b5ee-6ba15c60d54a") public String getDestroyedOn() { return this.elt.getTagValue(ComponentInstance.MdaTypes.DESTROYEDON_TAGTYPE_ELT); } /** - * Get the underlying {@link Instance}. - * + * Get the underlying {@link Instance}. * @return the Instance represented by this proxy, never null. */ - @objid ("74bc656a-d409-4c2f-b3ff-6cf861b67f6f") + @objid ("2fff8db2-e887-4d39-8cae-7626b200b883") @Override public Instance getElement() { return (Instance)super.getElement(); @@ -126,7 +127,7 @@ public Instance getElement() { *

Property description: *
null

*/ - @objid ("62ea297a-29be-434b-9d03-d273829dd292") + @objid ("f432c744-539c-414a-9ded-68604e334f2a") public String getInstantiatedOn() { return this.elt.getTagValue(ComponentInstance.MdaTypes.INSTANTIATEDON_TAGTYPE_ELT); } @@ -135,14 +136,15 @@ public String getInstantiatedOn() { * Get the values of the 'providedCommunicationInstances' role.

* Role description: * null + * */ - @objid ("c412a478-ad6a-4f74-ab79-c11ab6183296") + @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); } @@ -150,14 +152,15 @@ public List getProvidedCommunicationInstances() { * Get the values of the 'providedHostInstances' role.

* Role description: * null + * */ - @objid ("c309bc60-354b-4445-b998-3bfd5fcf8fc0") + @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); } @@ -165,13 +168,14 @@ public List getProvidedHostInstances() { * Get the value to the 'type' role.

* Role description: * null + * */ - @objid ("85d32f37-aede-40e1-b24a-6a13e4704ebc") + @objid ("9f93d086-13b0-48e2-9eb9-f17f1b9f697b") public CamelComponent getType() { return (CamelComponent)CamelDesignerProxyFactory.instantiate(((Instance) this.elt).getBase(), CamelComponent.STEREOTYPE_NAME); } - @objid ("460c4c05-f615-4115-b0e1-5b1e36851285") + @objid ("3f6ad13f-6873-4a16-a769-e42a42368838") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -181,8 +185,9 @@ public int hashCode() { * Remove a value from the 'providedCommunicationInstances' role.

* Role description: * null + * */ - @objid ("7768799e-8c85-4710-9c1b-eeacbfa018a0") + @objid ("b9c20464-fe5e-4599-914e-ed3534e40a60") public boolean removeProvidedCommunicationInstances(final CommunicationPort obj) { return (obj!=null)? ((Instance) this.elt).getPart().remove(obj.getElement()) : false; } @@ -191,8 +196,9 @@ public boolean removeProvidedCommunicationInstances(final CommunicationPort obj) * Remove a value from the 'providedHostInstances' role.

* Role description: * null + * */ - @objid ("cdf27348-be67-4594-9927-d028e6aed7e1") + @objid ("6cbd22b1-227f-4fc5-9692-f15305e163eb") public boolean removeProvidedHostInstances(final HostingPort obj) { return (obj!=null)? ((Instance) this.elt).getPart().remove(obj.getElement()) : false; } @@ -202,7 +208,7 @@ public boolean removeProvidedHostInstances(final HostingPort obj) { *

Property description: *
null

*/ - @objid ("d4496e57-74fd-487d-a311-4e0813df24fd") + @objid ("2c130298-6706-4f29-b9a8-9ee291de445c") public void setDestroyedOn(final String value) { this.elt.putTagValue(ComponentInstance.MdaTypes.DESTROYEDON_TAGTYPE_ELT, value); } @@ -212,7 +218,7 @@ public void setDestroyedOn(final String value) { *

Property description: *
null

*/ - @objid ("421434a4-f8d3-4f34-b3c8-1a5fb749fe3f") + @objid ("ccd627d3-69f4-40ae-a5c9-395c605e849d") public void setInstantiatedOn(final String value) { this.elt.putTagValue(ComponentInstance.MdaTypes.INSTANTIATEDON_TAGTYPE_ELT, value); } @@ -221,8 +227,9 @@ public void setInstantiatedOn(final String value) { * Set the value of the 'type' role.

* Role description: * null + * */ - @objid ("a9ca578a-268e-4562-aafc-dea6ef1513b2") + @objid ("8fb789c5-e701-4773-a8b1-2634316569d4") public void setType(final CamelComponent obj) { ((Instance) this.elt).setBase((obj != null) ? obj.getElement() : null); } @@ -235,29 +242,29 @@ public List getChilds() { return result; } - @objid ("f378b470-b5c6-414a-9449-3a9fe577ef53") + @objid ("b5fb8399-36aa-47c6-bc95-dfc54e97b063") protected ComponentInstance(final Instance elt) { super(elt); } @objid ("410e6123-df3d-46bd-81d2-a929ad0d6a01") public static final class MdaTypes { - @objid ("300b898c-290b-4143-b4d6-2871c59b3ea6") + @objid ("d81c2d31-dfd9-4d57-9080-6cc9e4ed103f") public static Stereotype STEREOTYPE_ELT; - @objid ("121ac879-9808-45b6-b516-67812ca2e70e") + @objid ("4d712975-7700-40a4-bce9-d58dcfd0d893") public static TagType INSTANTIATEDON_TAGTYPE_ELT; - @objid ("5f3197a4-1ee0-4dfe-871a-b4a7b42ecced") + @objid ("289336db-c3e5-4447-a333-2907dd4067dd") public static TagType DESTROYEDON_TAGTYPE_ELT; - @objid ("d07be0bb-58af-4f38-834c-fda2f13a0210") + @objid ("208e4ee5-5d4d-4ff5-a4e8-b71963d96113") private static Stereotype MDAASSOCDEP; - @objid ("775344d9-7daf-4484-8ba5-9046a40dd20b") + @objid ("d942810b-5f86-48ee-bdcd-5ae3fbbe791e") private static TagType MDAASSOCDEP_ROLE; - @objid ("10cd94b3-a87d-4bc5-bb2e-affb20a8a687") + @objid ("4f385f80-2669-441d-a0a5-179f8723bc72") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "aba476b3-2629-42d6-9138-1bf866332333"); INSTANTIATEDON_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "e6ac56dd-6986-41e3-944d-c5fad2bd2b84"); @@ -267,11 +274,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 a63b81b0..0430c2ae 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.instance; @@ -40,7 +40,7 @@ */ @objid ("71cdb732-b116-447d-abd2-a9db81cf0f17") public class ContainerInstance extends ComponentInstance { - @objid ("758781cb-7d38-4f55-898b-bb34e4a88b56") + @objid ("c95cd917-10c4-47d3-80d5-2fa422356d5c") public static final String STEREOTYPE_NAME = "ContainerInstance"; /** @@ -51,7 +51,7 @@ public class ContainerInstance extends ComponentInstance { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("a7cc486a-e65b-4629-a1cb-55ac62c4eeac") + @objid ("2fe3c842-41e3-4354-af84-5baa599fa765") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Instance) && ((Instance) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, ContainerInstance.STEREOTYPE_NAME)); } @@ -61,7 +61,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link ContainerInstance} proxy on the created {@link Instance}. */ - @objid ("a99352c8-5e11-4e91-9b6b-01732bccd39f") + @objid ("5575a5fe-5bad-47dd-b2b7-ded9ca6bf180") public static ContainerInstance create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Instance"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, ContainerInstance.STEREOTYPE_NAME); @@ -69,47 +69,46 @@ 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. */ - @objid ("50a89532-cc51-400c-ab16-4fc32cadae4e") + @objid ("da984eb5-d823-4109-bc33-8c6a1e1eb211") public static ContainerInstance instantiate(final Instance obj) { return ContainerInstance.canInstantiate(obj) ? new ContainerInstance(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("39703242-e94c-43e8-97ff-3596f09b0399") + @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 ("c4826308-e92d-4947-b8f2-e88708d97a28") + @objid ("8f5c0ddb-b909-418f-8908-716f1fc935b3") public void addRequiredCommunicationInstances(final CommunicationPort obj) { if (obj!=null) ((Instance) this.elt).getPart().add(obj.getElement()); } - @objid ("0be25de2-e687-472a-bfb6-6860ee2b9a6b") + @objid ("f4e11747-2bce-471f-b387-3c10033898ec") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -126,11 +125,10 @@ 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 ("67cb29f6-faf4-434c-b2dc-f0c53cbef67b") + @objid ("e12545c1-e43c-47de-b8a0-9db07a6b504c") @Override public Instance getElement() { return (Instance)super.getElement(); @@ -140,8 +138,9 @@ public Instance getElement() { * Get the value to the 'parent' role.

* Role description: * null + * */ - @objid ("5b44766d-9cd2-48f8-91b6-4b5c854d916e") + @objid ("db3ff8c7-17f8-40bf-80e5-6177a06e9d4d") public DeploymentInstanceModel getParent() { return (DeploymentInstanceModel)CamelDesignerProxyFactory.instantiate(((Instance) this.elt).getOwner(), DeploymentInstanceModel.STEREOTYPE_NAME); } @@ -150,14 +149,15 @@ public DeploymentInstanceModel getParent() { * Get the values of the 'requiredCommunicationInstances' role.

* Role description: * null + * */ - @objid ("283bbcb3-ffb9-4fd8-b263-af8cca5acfd8") + @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,17 +165,18 @@ public List getRequiredCommunicationInstances() { * Get the value to the 'requiredHostInstance' role.

* Role description: * null + * */ - @objid ("23bcf2b4-4a5c-489e-be32-463084f5730a") + @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 ("9faa97e6-171a-42f1-8a60-dce71f4a967c") + @objid ("1d2e89e1-7ef5-4a88-9000-0b30ad7af20e") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -185,8 +186,9 @@ public int hashCode() { * Remove a value from the 'requiredCommunicationInstances' role.

* Role description: * null + * */ - @objid ("61dc8d63-d0c9-46ee-bdcd-c67234e46636") + @objid ("d0478e51-e936-4f0a-984b-a8d20590dafb") public boolean removeRequiredCommunicationInstances(final CommunicationPort obj) { return (obj!=null)? ((Instance) this.elt).getPart().remove(obj.getElement()) : false; } @@ -195,8 +197,9 @@ public boolean removeRequiredCommunicationInstances(final CommunicationPort obj) * Set the value of the 'parent' role.

* Role description: * null + * */ - @objid ("8f92b9a6-7a55-407e-8e51-e0f1e8ec388b") + @objid ("1bbbdfac-5611-4dca-ad96-aed1cc8d8049") public void setParent(final DeploymentInstanceModel obj) { ((Instance) this.elt).setOwner((obj != null) ? obj.getElement() : null); } @@ -205,8 +208,9 @@ public void setParent(final DeploymentInstanceModel obj) { * Set the value of the 'requiredHostInstance' role.

* Role description: * null + * */ - @objid ("dc2bbee8-4b58-4f96-a69e-94de43e29088") + @objid ("92caf694-98bf-4b7f-919f-92ed507ed46f") public void setRequiredHostInstance(final HostingPort obj) { // Remove existing HostingPorts for (Port e : ((Instance) this.elt).getPart(Port.class)) { @@ -228,23 +232,23 @@ public List getChilds() { return result; } - @objid ("4ddf5b92-eaf2-4d40-830a-1a8935d274ff") + @objid ("7f15f7a8-3f71-46c8-8e31-eafd808bf0e2") protected ContainerInstance(final Instance elt) { super(elt); } @objid ("1af32021-9f2d-4f19-946c-1fd148e9a0bc") public static final class MdaTypes { - @objid ("a4014409-d490-479d-a4e9-d9b3db444d70") + @objid ("1e4c1fef-a97b-4290-b161-77f45cda5ef8") public static Stereotype STEREOTYPE_ELT; - @objid ("28a1841f-0629-4213-8009-908a464ffd14") + @objid ("f62b1efe-f4fe-4caf-bd90-94ac74b6f391") private static Stereotype MDAASSOCDEP; - @objid ("d7412083-eac0-458a-b559-978d3ed7aca3") + @objid ("450702ee-122a-4d2c-809b-f8f2c69093a2") private static TagType MDAASSOCDEP_ROLE; - @objid ("de2c5d55-bdba-4ffa-92e1-822b974cee0a") + @objid ("b1537475-0699-4d18-80fc-a4501ca03020") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "13481bb8-bdfe-4a15-8050-482bd996ac9e"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -252,11 +256,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 c6e6c6ec..8316d284 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.instance; @@ -36,7 +36,7 @@ */ @objid ("dddfb99b-2d25-4bf8-a552-181e1549079a") public class PaaSInstance extends ComponentInstance { - @objid ("5d612def-86be-40c8-a9df-1a9d7baf004f") + @objid ("376f2a22-dbc2-4b75-ac88-41b0e8d7470b") public static final String STEREOTYPE_NAME = "PaaSInstance"; /** @@ -47,7 +47,7 @@ public class PaaSInstance extends ComponentInstance { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("c37c1a62-6c15-4a3e-8675-9fd8c797695c") + @objid ("2bd5d859-31ca-4ea2-b3ad-4db085c5a163") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Instance) && ((Instance) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, PaaSInstance.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link PaaSInstance} proxy on the created {@link Instance}. */ - @objid ("8294e393-688b-41b4-801e-075151cb8d7f") + @objid ("23ff7df2-c147-461d-972d-7769ea66d519") public static PaaSInstance create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Instance"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, PaaSInstance.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("a1ec778a-4ff5-4ab7-bac2-a455cfe0f0a1") + @objid ("ed96814b-6ea0-4c90-ba3c-23c29003a131") public static PaaSInstance instantiate(final Instance obj) { return PaaSInstance.canInstantiate(obj) ? new PaaSInstance(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("a14d8b62-bc36-4d7b-8cad-7146b5219f18") + @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 ("67d2821a-e5e5-47cf-ac4e-f4e781bee670") + @objid ("1bc2f4c2-1545-4ec1-ac6b-a22c7bd88805") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,11 +109,10 @@ 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 ("0bb2d99d-66d7-46aa-a53e-a245dd34dfd5") + @objid ("04edf125-a7f8-46ee-8b3e-fb4508976dd3") @Override public Instance getElement() { return (Instance)super.getElement(); @@ -125,13 +122,14 @@ public Instance getElement() { * Get the value to the 'parent' role.

* Role description: * null + * */ - @objid ("a3efcb74-7d9d-4c6d-b278-3e8bddf93a15") + @objid ("4069f03d-7724-4130-8011-b238133e3764") public DeploymentInstanceModel getParent() { return (DeploymentInstanceModel)CamelDesignerProxyFactory.instantiate(((Instance) this.elt).getOwner(), DeploymentInstanceModel.STEREOTYPE_NAME); } - @objid ("e84ea1d1-64fa-4601-a664-f8b2655618a8") + @objid ("f143d82a-90d1-47c4-bdce-2c6b61efe36c") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -141,8 +139,9 @@ public int hashCode() { * Set the value of the 'parent' role.

* Role description: * null + * */ - @objid ("6c3a0a29-191c-438a-b081-f802d484488b") + @objid ("34a14910-b362-4cea-a7bc-661fa2f67f7d") public void setParent(final DeploymentInstanceModel obj) { ((Instance) this.elt).setOwner((obj != null) ? obj.getElement() : null); } @@ -155,23 +154,23 @@ public List getChilds() { return result; } - @objid ("e9fd65d7-cb2c-4579-97db-89284aefee52") + @objid ("355ca1b7-cc2b-49fa-a9ad-ce941d63e66a") protected PaaSInstance(final Instance elt) { super(elt); } @objid ("387fa399-3754-4069-9e53-4383d23163dc") public static final class MdaTypes { - @objid ("154dc6d4-d26e-4960-b0ef-f1247aea7bf7") + @objid ("4b03b690-8edc-4f40-b220-5f34a2b62993") public static Stereotype STEREOTYPE_ELT; - @objid ("e02399c6-e368-4e7d-9fd8-e8fe79e50c48") + @objid ("fc676654-363d-4390-8088-ca5fb29bbb48") private static Stereotype MDAASSOCDEP; - @objid ("6b1a5a3d-d112-4409-8147-de125277029c") + @objid ("db20ff78-0a35-4dda-a3ae-253e11b1249e") private static TagType MDAASSOCDEP_ROLE; - @objid ("667df2df-0b25-4869-9348-db09061b3aa4") + @objid ("35c7996b-9dff-49b3-a657-fdcdec12bd77") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "8d6e2b24-ed30-4aad-9c44-39b18b4c76d8"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -179,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/deploymentinstancemodel/standard/instance/SoftwareComponentInstance.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/instance/SoftwareComponentInstance.java index e12ba8d9..92dd6305 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.instance; @@ -43,7 +43,7 @@ */ @objid ("a0c4baed-2aff-4ee2-a7f5-c01274a910db") public class SoftwareComponentInstance extends ComponentInstance { - @objid ("337c5604-032f-46c8-becd-0cc5d77ff221") + @objid ("2147b646-ff15-43f9-810d-92a38bb422aa") public static final String STEREOTYPE_NAME = "SoftwareComponentInstance"; /** @@ -54,7 +54,7 @@ public class SoftwareComponentInstance extends ComponentInstance { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("25dedb87-6ff7-49bc-af80-7509ae2b369a") + @objid ("428c4d27-8b0b-4375-b742-3694756acfb1") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Instance) && ((Instance) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, SoftwareComponentInstance.STEREOTYPE_NAME)); } @@ -64,7 +64,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link SoftwareComponentInstance} proxy on the created {@link Instance}. */ - @objid ("8f46725a-ae61-4687-bf98-11986814f8fd") + @objid ("c4c8458a-228e-45b2-bd4e-22cc48b6bd62") public static SoftwareComponentInstance create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Instance"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, SoftwareComponentInstance.STEREOTYPE_NAME); @@ -72,41 +72,40 @@ 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. */ - @objid ("6bda9e90-bfe2-4d9f-b8fd-aeee9face54e") + @objid ("52607fbd-7326-4203-bc78-dfae081a4b8e") public static SoftwareComponentInstance instantiate(final Instance obj) { return SoftwareComponentInstance.canInstantiate(obj) ? new SoftwareComponentInstance(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("b91615ff-ca3a-4ef4-98cf-89158dc32ca1") + @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 ("8172d3cc-fd4e-4727-8248-8d899f80b330") + @objid ("305c22b4-c292-4cbf-adbd-06f55e452062") public void addConsumesDataInstances(final DataInstance obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -120,8 +119,9 @@ public void addConsumesDataInstances(final DataInstance obj) { * Add a value to the 'generatesDataInstance' role.

* Role description: * null + * */ - @objid ("5e9f02d8-30e4-463e-a49d-f6092440bb64") + @objid ("daec0cd8-da46-421a-95f6-1a564a0abf24") public void addGeneratesDataInstance(final DataInstance obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -135,8 +135,9 @@ public void addGeneratesDataInstance(final DataInstance obj) { * Add a value to the 'managesDataSourceInstance' role.

* Role description: * null + * */ - @objid ("7f15df24-13bf-4733-aeb1-a3cd0d394faa") + @objid ("aa4f64fb-5634-42af-a02e-e3b740582f8a") public void addManagesDataSourceInstance(final DataSourceInstance obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -150,14 +151,15 @@ public void addManagesDataSourceInstance(final DataSourceInstance obj) { * Add a value to the 'requiredCommunicationsInstances' role.

* Role description: * null + * */ - @objid ("942c2301-0481-47b8-a2dd-148346c2e98a") + @objid ("c3afd3a1-3bdc-48d2-a2b9-72ef6876a32c") public void addRequiredCommunicationsInstances(final CommunicationPort obj) { if (obj!=null) ((Instance) this.elt).getPart().add(obj.getElement()); } - @objid ("75cb2767-c745-4341-85c4-3d02c81a1cbb") + @objid ("c982e4f0-7a05-4913-890e-8287e4a8c9b1") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -177,8 +179,9 @@ public boolean equals(final Object obj) { * Get the values of the 'consumesDataInstances' role.

* Role description: * null + * */ - @objid ("ec319915-b3d6-4ae7-8658-044f6f1fccd6") + @objid ("6727a486-7acf-48d8-9cf4-69599e87dcbd") public List getConsumesDataInstances() { List results = new ArrayList<>(); for (Dependency d : this.elt.getDependsOnDependency()) { @@ -194,11 +197,10 @@ public List getConsumesDataInstances() { } /** - * Get the underlying {@link Instance}. - * + * Get the underlying {@link Instance}. * @return the Instance represented by this proxy, never null. */ - @objid ("9f5e47c4-97dd-4634-a1f4-8b927c82ee05") + @objid ("dbe2ba3b-e4f5-4451-8dca-8e5f6c41e9b8") @Override public Instance getElement() { return (Instance)super.getElement(); @@ -208,8 +210,9 @@ public Instance getElement() { * Get the values of the 'generatesDataInstance' role.

* Role description: * null + * */ - @objid ("09dd695b-2b96-4256-88c8-4df4ca28b802") + @objid ("3864caec-2c5c-4910-b0eb-ef79c763eb6e") public List getGeneratesDataInstance() { List results = new ArrayList<>(); for (Dependency d : this.elt.getDependsOnDependency()) { @@ -228,8 +231,9 @@ public List getGeneratesDataInstance() { * Get the values of the 'managesDataSourceInstance' role.

* Role description: * null + * */ - @objid ("78e17e18-c260-4a04-8986-39f82043e2ce") + @objid ("cd6973d5-abf5-4216-b12b-c65ac534e5fc") public List getManagesDataSourceInstance() { List results = new ArrayList<>(); for (Dependency d : this.elt.getDependsOnDependency()) { @@ -246,8 +250,9 @@ public List getManagesDataSourceInstance() { * Get the value to the 'parent' role.

* Role description: * null + * */ - @objid ("801bf798-d971-47f7-a5da-ebf17a47b47a") + @objid ("f0750b32-04c9-4279-b89c-f0d3c0392f70") public DeploymentInstanceModel getParent() { return (DeploymentInstanceModel)CamelDesignerProxyFactory.instantiate(((Instance) this.elt).getOwner(), DeploymentInstanceModel.STEREOTYPE_NAME); } @@ -256,14 +261,15 @@ public DeploymentInstanceModel getParent() { * Get the values of the 'requiredCommunicationsInstances' role.

* Role description: * null + * */ - @objid ("5c51646f-664f-4fb7-a0c7-52be55916156") + @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); } @@ -271,17 +277,18 @@ public List getRequiredCommunicationsInstances() { * Get the value to the 'requiredHostInstance' role.

* Role description: * null + * */ - @objid ("b29fb2ec-713c-44d2-a0d5-e42b826caad4") + @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 ("cbf47ea4-f6a9-4123-909a-73e044be9975") + @objid ("d4c46b59-700c-4b9a-bddf-95d7ae174d6f") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -291,12 +298,13 @@ public int hashCode() { * Remove a value from the 'consumesDataInstances' role.

* Role description: * null + * */ - @objid ("aa8d3361-e9f7-4ac5-8f9d-fd10bd7764a8") + @objid ("c1e1ee3c-f83e-450e-81c9-f21107883069") public boolean removeConsumesDataInstances(final DataInstance obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getDependsOnDependency())) { - if (d.isStereotyped(SoftwareComponentInstance.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(SoftwareComponentInstance.MdaTypes.MDAASSOCDEP_ROLE), "")) + if (d.isStereotyped(SoftwareComponentInstance.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(SoftwareComponentInstance.MdaTypes.MDAASSOCDEP_ROLE), "consumesDataInstances")) if (Objects.equals(d.getDependsOn(), obj.getElement())) { d.delete(); return true; @@ -310,12 +318,13 @@ public boolean removeConsumesDataInstances(final DataInstance obj) { * Remove a value from the 'generatesDataInstance' role.

* Role description: * null + * */ - @objid ("4ba75e52-5895-4ffc-86e7-cc76e0e419ff") + @objid ("be0ad156-1128-4dda-a3c9-9171bbe176f2") public boolean removeGeneratesDataInstance(final DataInstance obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getDependsOnDependency())) { - if (d.isStereotyped(SoftwareComponentInstance.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(SoftwareComponentInstance.MdaTypes.MDAASSOCDEP_ROLE), "")) + if (d.isStereotyped(SoftwareComponentInstance.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(SoftwareComponentInstance.MdaTypes.MDAASSOCDEP_ROLE), "generatesDataInstance")) if (Objects.equals(d.getDependsOn(), obj.getElement())) { d.delete(); return true; @@ -329,12 +338,13 @@ public boolean removeGeneratesDataInstance(final DataInstance obj) { * Remove a value from the 'managesDataSourceInstance' role.

* Role description: * null + * */ - @objid ("7369d747-b86e-46d6-8377-d76a4c5f049c") + @objid ("1b4f188c-bf4f-4805-bb65-f70c3b96beba") public boolean removeManagesDataSourceInstance(final DataSourceInstance obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getDependsOnDependency())) { - if (d.isStereotyped(SoftwareComponentInstance.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(SoftwareComponentInstance.MdaTypes.MDAASSOCDEP_ROLE), "")) + if (d.isStereotyped(SoftwareComponentInstance.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(SoftwareComponentInstance.MdaTypes.MDAASSOCDEP_ROLE), "managesDataSourceInstance")) if (Objects.equals(d.getDependsOn(), obj.getElement())) { d.delete(); return true; @@ -348,8 +358,9 @@ public boolean removeManagesDataSourceInstance(final DataSourceInstance obj) { * Remove a value from the 'requiredCommunicationsInstances' role.

* Role description: * null + * */ - @objid ("f2d1de23-8651-497a-a942-8efd683b438b") + @objid ("defb94a9-27e3-440d-95d8-3dbf4766b950") public boolean removeRequiredCommunicationsInstances(final CommunicationPort obj) { return (obj!=null)? ((Instance) this.elt).getPart().remove(obj.getElement()) : false; } @@ -358,8 +369,9 @@ public boolean removeRequiredCommunicationsInstances(final CommunicationPort obj * Set the value of the 'parent' role.

* Role description: * null + * */ - @objid ("91ae6bba-6053-465f-b004-4fe0279b9863") + @objid ("a54c18fd-1bd3-419e-8c27-8caad916fcf7") public void setParent(final DeploymentInstanceModel obj) { ((Instance) this.elt).setOwner((obj != null) ? obj.getElement() : null); } @@ -368,8 +380,9 @@ public void setParent(final DeploymentInstanceModel obj) { * Set the value of the 'requiredHostInstance' role.

* Role description: * null + * */ - @objid ("2ccc8d9d-4df8-4260-8623-1673afb03b7d") + @objid ("02ef62e5-a04b-49cb-9800-5919b2aefaa1") public void setRequiredHostInstance(final HostingPort obj) { // Remove existing HostingPorts for (Port e : ((Instance) this.elt).getPart(Port.class)) { @@ -391,23 +404,23 @@ public List getChilds() { return result; } - @objid ("6b130668-c66d-4783-aefb-75801be08d76") + @objid ("7c086fd4-bb2c-4fe8-934c-b5ba8729dfcb") protected SoftwareComponentInstance(final Instance elt) { super(elt); } @objid ("eb836565-9ba9-424d-96b5-05bec355c93e") public static final class MdaTypes { - @objid ("2328d8a3-5f2a-4325-9ee2-479254510dd8") + @objid ("8f3db6cc-90d0-454b-be58-36d05ea36dbe") public static Stereotype STEREOTYPE_ELT; - @objid ("b23df360-a161-406d-82ab-0639445cfcdb") + @objid ("1b93db0a-43eb-479e-881d-1eeb5755379a") private static Stereotype MDAASSOCDEP; - @objid ("e99eee8c-4d1e-4073-9577-6357e0e53bbc") + @objid ("088dac18-a95f-4897-8424-fad03804724b") private static TagType MDAASSOCDEP_ROLE; - @objid ("e04165a1-c266-4726-9596-98d5a09ac836") + @objid ("0516dcb6-2a90-42c5-8dff-5254e4677633") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "dfb1cf41-de3c-4af9-a3ff-66986b4f35fb"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -415,11 +428,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 d6bdc65e..f179a2c3 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.instance; @@ -48,7 +48,7 @@ */ @objid ("8d75b5a3-1b22-4793-a4d1-8b8d4ec31008") public class VMInstance extends ComponentInstance { - @objid ("73dfac64-d675-4187-935b-4ff5cae4207f") + @objid ("4a04d159-f49e-45b8-b836-730e4eee9298") public static final String STEREOTYPE_NAME = "VMInstance"; /** @@ -59,7 +59,7 @@ public class VMInstance extends ComponentInstance { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("2ef667be-b929-4de1-9ca2-779c28d8df04") + @objid ("92265ec7-d5e9-444b-b6ab-98742b62018a") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Instance) && ((Instance) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, VMInstance.STEREOTYPE_NAME)); } @@ -69,7 +69,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link VMInstance} proxy on the created {@link Instance}. */ - @objid ("be70d13a-3981-4753-b240-87a9f91d9e92") + @objid ("cd99e48d-bc1f-4145-b0d0-6a3807da35a8") public static VMInstance create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Instance"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, VMInstance.STEREOTYPE_NAME); @@ -77,36 +77,34 @@ 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. */ - @objid ("f23e6b1e-02cf-4351-b8dd-4e6f7e912565") + @objid ("ea15131b-01d8-4c08-959c-02e5b586eb54") public static VMInstance instantiate(final Instance obj) { return VMInstance.canInstantiate(obj) ? new VMInstance(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("4c832063-cd32-4a18-8b56-89a4ca387f30") + @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 ("e86afb7d-68f0-4018-a91f-da9af5cb1868") + @objid ("7bf26dac-d08d-40ea-8cfc-3f25e4afa88f") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -123,11 +121,10 @@ 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 ("d924f29f-2aa0-4c89-8934-4576d57056d5") + @objid ("e95a1486-1384-4cd2-9b12-e2e7ae3e0733") @Override public Instance getElement() { return (Instance)super.getElement(); @@ -137,8 +134,9 @@ public Instance getElement() { * Get the value of the 'location' role.

* Role description: * null + * */ - @objid ("ac06ac4a-6827-4740-9205-bce81fc1a089") + @objid ("55e53fd9-b42a-4b39-862f-dba5bd244d3f") public Location getLocation() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(VMInstance.MdaTypes.MDAASSOCDEP) @@ -156,8 +154,9 @@ public Location getLocation() { * Get the value of the 'os' role.

* Role description: * null + * */ - @objid ("8138d1c4-8dd3-456b-96f6-237b9d228288") + @objid ("98c95723-c6f3-40ad-b3f5-f20ebd2583e4") public CamelAttribute getOs() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(VMInstance.MdaTypes.MDAASSOCDEP) @@ -187,13 +186,14 @@ public CamelAttribute getOs() { * Get the value to the 'parent' role.

* Role description: * null + * */ - @objid ("3cbcaa0d-e0e2-47c4-a057-0a8c8a38d636") + @objid ("79491a3c-9040-42d6-ba74-7e36ffaf4dca") public DeploymentInstanceModel getParent() { return (DeploymentInstanceModel)CamelDesignerProxyFactory.instantiate(((Instance) this.elt).getOwner(), DeploymentInstanceModel.STEREOTYPE_NAME); } - @objid ("d0f0939a-0785-40b1-8b23-bf888ac9001b") + @objid ("7c8e2c79-5f17-420e-ade7-92edd7912705") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -203,8 +203,9 @@ public int hashCode() { * Set the value of the 'location' role.

* Role description: * null + * */ - @objid ("d4b33e29-dbfb-48e2-bc3f-c47146bfac34") + @objid ("f46224a3-2409-40b9-b856-5ca07503895f") public void setLocation(final Location obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -228,8 +229,9 @@ public void setLocation(final Location obj) { * Set the value of the 'os' role.

* Role description: * null + * */ - @objid ("b0f97e8b-2a5b-4d2b-b18d-f607e1d128c1") + @objid ("dd353f16-4735-42d8-b65f-a4c832276d2b") public void setOs(final CamelAttribute obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -253,8 +255,9 @@ public void setOs(final CamelAttribute obj) { * Set the value of the 'parent' role.

* Role description: * null + * */ - @objid ("cd3b0bb1-0a89-41eb-b34d-1b77049a87aa") + @objid ("425399d1-5d05-4773-87ec-038e4ba21c21") public void setParent(final DeploymentInstanceModel obj) { ((Instance) this.elt).setOwner((obj != null) ? obj.getElement() : null); } @@ -267,23 +270,23 @@ public List getChilds() { return result; } - @objid ("77fc294c-996e-4e31-bfb9-c5d8a310facd") + @objid ("cf1da880-aac3-4924-a2df-4a6a9293c9fc") protected VMInstance(final Instance elt) { super(elt); } @objid ("fe234d2a-6b82-4461-8b1d-47db446666cf") public static final class MdaTypes { - @objid ("0e0dc26d-33f8-4ae1-91a1-c3e3f83d8e47") + @objid ("e2ab9fc6-e3ac-4f56-97f5-2aa6aa4d61b6") public static Stereotype STEREOTYPE_ELT; - @objid ("90331b1c-4f18-4bb4-8f22-c8a1467cdf39") + @objid ("8220c112-96f1-413d-8a7c-e809a41efe92") private static Stereotype MDAASSOCDEP; - @objid ("bb24b56a-7a5d-4155-a433-3e719943a723") + @objid ("db6f50c8-7fb5-41d8-b51a-64148785f808") private static TagType MDAASSOCDEP_ROLE; - @objid ("97b48abf-ae9d-48a8-bedb-592a032097cd") + @objid ("7281f424-11d3-4f27-ba97-060f5908e359") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "a9a4550c-517a-4781-a3c9-5eb56d430f48"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -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/deploymentinstancemodel/standard/package_/DeploymentInstanceModel.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/package_/DeploymentInstanceModel.java index 57b79b7a..046f17cf 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.package_; @@ -43,7 +43,7 @@ */ @objid ("32850d2a-548f-4680-aa57-5290cf509da5") public class DeploymentInstanceModel extends DeploymentModel { - @objid ("08008d17-f6f3-4eed-8cc3-f3b8c475e2be") + @objid ("faec273f-8825-4c4d-8651-c877f9df2dff") public static final String STEREOTYPE_NAME = "DeploymentInstanceModel"; /** @@ -54,7 +54,7 @@ public class DeploymentInstanceModel extends DeploymentModel { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("73768c98-0b2c-4e98-bbb0-85997f04ddee") + @objid ("71c66aa9-8b79-44f9-8647-8c03bdfc4623") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Package) && ((Package) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, DeploymentInstanceModel.STEREOTYPE_NAME)); } @@ -64,7 +64,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link DeploymentInstanceModel} proxy on the created {@link Package}. */ - @objid ("3cea515b-841f-472f-aa96-d7053473fcd1") + @objid ("efe94d62-0942-4e14-a5bf-a38081912a28") public static DeploymentInstanceModel create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Package"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, DeploymentInstanceModel.STEREOTYPE_NAME); @@ -72,41 +72,40 @@ 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. */ - @objid ("b4d0fc8c-184c-48fb-b6cb-8ab9a5626517") + @objid ("abddd2c0-ab94-4c1b-81ca-c8514948d6f5") public static DeploymentInstanceModel instantiate(final Package obj) { return DeploymentInstanceModel.canInstantiate(obj) ? new DeploymentInstanceModel(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("92ec0511-073a-45ab-b22b-e75ff130d7bf") + @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 ("077811ca-3f89-46a6-97c1-daa0ba11cc39") + @objid ("73498214-409c-4340-93cf-0c38798972c6") public void addCommunicationInstances(final CommunicationInstance obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -120,8 +119,9 @@ public void addCommunicationInstances(final CommunicationInstance obj) { * Add a value to the 'containerInstances' role.

* Role description: * null + * */ - @objid ("3d540112-b1dd-4752-87ac-1eed0c8b481a") + @objid ("efba17af-489b-4fa1-95e9-0d714d810faa") public void addContainerInstances(final ContainerInstance obj) { if (obj!=null) ((Package) this.elt).getDeclared().add(obj.getElement()); @@ -131,8 +131,9 @@ public void addContainerInstances(final ContainerInstance obj) { * Add a value to the 'paasInstances' role.

* Role description: * null + * */ - @objid ("fb162ef6-6ac6-4a37-9655-197cd0186cba") + @objid ("b2d8cb39-fca2-4c81-b7d0-38029aecd428") public void addPaasInstances(final PaaSInstance obj) { if (obj!=null) ((Package) this.elt).getDeclared().add(obj.getElement()); @@ -142,8 +143,9 @@ public void addPaasInstances(final PaaSInstance obj) { * Add a value to the 'softwareComponentInstances' role.

* Role description: * null + * */ - @objid ("13812a8b-17a5-47cf-8ab9-2493286c53a8") + @objid ("e60fa5ce-d4f9-4e65-bb2a-55daeec080e8") public void addSoftwareComponentInstances(final SoftwareComponentInstance obj) { if (obj!=null) ((Package) this.elt).getDeclared().add(obj.getElement()); @@ -153,14 +155,15 @@ public void addSoftwareComponentInstances(final SoftwareComponentInstance obj) { * Add a value to the 'vmInstances' role.

* Role description: * null + * */ - @objid ("4f2495d8-ed61-4918-a774-81ed29b71bc4") + @objid ("c8a8361c-0362-4eb3-be35-0a9410a39787") public void addVmInstances(final VMInstance obj) { if (obj!=null) ((Package) this.elt).getDeclared().add(obj.getElement()); } - @objid ("07f8ef2a-d0da-4438-a556-ae3b645f7d27") + @objid ("795cd6cb-a2da-423b-9af5-9c72bc0619f3") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -180,8 +183,9 @@ public boolean equals(final Object obj) { * Get the values of the 'communicationInstances' role.

* Role description: * null + * */ - @objid ("3c758235-28a2-4204-ab47-f3d02a9a5d44") + @objid ("7daf7ac9-0929-468c-a725-dfdf5f5e4b60") public List getCommunicationInstances() { List results = new ArrayList<>(); for (Dependency d : this.elt.getImpactedDependency()) { @@ -198,23 +202,23 @@ public List getCommunicationInstances() { * Get the values of the 'containerInstances' role.

* Role description: * null + * */ - @objid ("36218586-5a40-419c-ae36-58f77e426941") + @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 ("12f0a1ea-0025-4f51-950d-c5614020e7d9") + @objid ("d3e4f47d-f025-4069-a355-a85c9b96953c") @Override public Package getElement() { return (Package)super.getElement(); @@ -224,14 +228,15 @@ public Package getElement() { * Get the values of the 'paasInstances' role.

* Role description: * null + * */ - @objid ("0c6d1254-4af0-4f8e-b5ce-98fa64140e5c") + @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); } @@ -239,14 +244,15 @@ public List getPaasInstances() { * Get the values of the 'softwareComponentInstances' role.

* Role description: * null + * */ - @objid ("90268109-17b7-4fd5-9a5c-59e6c5afac76") + @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); } @@ -254,8 +260,9 @@ public List getSoftwareComponentInstances() { * Get the value of the 'type' role.

* Role description: * null + * */ - @objid ("79063a6c-825a-4840-b3cb-87132f3f09c5") + @objid ("9560a4d8-0d28-4857-bd16-5890fccf5f11") public DeploymentTypeModel getType() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(DeploymentInstanceModel.MdaTypes.MDAASSOCDEP) @@ -271,18 +278,19 @@ public DeploymentTypeModel getType() { * Get the values of the 'vmInstances' role.

* Role description: * null + * */ - @objid ("cd3efb88-d29c-4d44-b68e-7f29ceb9bb5a") + @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); } - @objid ("fe6d58bd-a5f4-44dd-91d4-4e2e30e569c9") + @objid ("2059aff4-6ba0-4659-a83e-d56b4caba461") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -292,8 +300,9 @@ public int hashCode() { * Remove a value from 'communicationInstances' role.

* Role description: * null + * */ - @objid ("01c588b7-75e9-4272-b284-d36b4f4f6f1e") + @objid ("be4be6b6-83d0-4e80-b7fa-3219ac6067ae") public boolean removeCommunicationInstances(final CommunicationInstance obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getImpactedDependency())) { @@ -311,8 +320,9 @@ public boolean removeCommunicationInstances(final CommunicationInstance obj) { * Remove a value from the 'containerInstances' role.

* Role description: * null + * */ - @objid ("f6764696-3349-47cd-b6b0-fd4fe2de7a38") + @objid ("c67b937a-e27e-441a-8ba9-5a28c5aff8ca") public boolean removeContainerInstances(final ContainerInstance obj) { return (obj!=null)? ((Package) this.elt).getDeclared().remove(obj.getElement()) : false; } @@ -321,8 +331,9 @@ public boolean removeContainerInstances(final ContainerInstance obj) { * Remove a value from the 'paasInstances' role.

* Role description: * null + * */ - @objid ("d194450f-2b52-4e6b-9f28-ee5ad472f03d") + @objid ("799e5880-870d-47be-bf17-2e57235fd9c0") public boolean removePaasInstances(final PaaSInstance obj) { return (obj!=null)? ((Package) this.elt).getDeclared().remove(obj.getElement()) : false; } @@ -331,8 +342,9 @@ public boolean removePaasInstances(final PaaSInstance obj) { * Remove a value from the 'softwareComponentInstances' role.

* Role description: * null + * */ - @objid ("1bb051d4-1f1c-4bf4-b5a1-36cfedd62bae") + @objid ("d884aa17-42f4-4e3b-9bdd-9a5c3b400d42") public boolean removeSoftwareComponentInstances(final SoftwareComponentInstance obj) { return (obj!=null)? ((Package) this.elt).getDeclared().remove(obj.getElement()) : false; } @@ -341,8 +353,9 @@ public boolean removeSoftwareComponentInstances(final SoftwareComponentInstance * Remove a value from the 'vmInstances' role.

* Role description: * null + * */ - @objid ("48afe2ba-ee5a-4a42-925b-d9efeffb83f9") + @objid ("179ecc1e-3424-43dc-b5ee-263ff7cff2e4") public boolean removeVmInstances(final VMInstance obj) { return (obj!=null)? ((Package) this.elt).getDeclared().remove(obj.getElement()) : false; } @@ -351,8 +364,9 @@ public boolean removeVmInstances(final VMInstance obj) { * Set the value of the 'type' role.

* Role description: * null + * */ - @objid ("60778243-5220-4b73-9f72-da49d773227e") + @objid ("41e8e8a8-3dbb-4d86-8d50-51ace3aa04aa") public void setType(final DeploymentTypeModel obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -380,23 +394,23 @@ public List getChilds() { return result; } - @objid ("772c4faa-9654-4e59-b3e4-844280254881") + @objid ("7ef464ea-afa4-46dd-a9c8-7a6ce779943e") protected DeploymentInstanceModel(final Package elt) { super(elt); } @objid ("3bc27954-cfa5-4cd5-95f8-63b26f92d695") public static final class MdaTypes { - @objid ("c72a832f-b1f8-43ac-a382-c8ab6320b813") + @objid ("c496d5f1-17ba-475c-bab7-7f5d6a58aeeb") public static Stereotype STEREOTYPE_ELT; - @objid ("8ce63099-2898-48ca-a83a-f0e58443e681") + @objid ("96c10be5-aa02-438a-ae22-554655aed6c9") private static Stereotype MDAASSOCDEP; - @objid ("37c132ea-f6d8-4beb-9f1e-4d5ebee5bd8b") + @objid ("a8f3b3c2-6285-4453-943a-a3fca0785824") private static TagType MDAASSOCDEP_ROLE; - @objid ("d85aca9b-55d4-40cd-8786-c3c8bfe71442") + @objid ("b9091e94-1126-45bc-a377-6d3fc2f5c8c3") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "b43cbec3-a3d4-4d2b-90c9-eb4a56ed3ca9"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -404,11 +418,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 d2e0a3a7..5c463a6a 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.port; @@ -37,7 +37,7 @@ */ @objid ("69c260bf-5f8b-43c5-99e2-3e3608ba3eb2") public class CommunicationPortInstance extends FeaturePort { - @objid ("fa2b4a65-f58d-4658-b1b1-cdfcecb53ede") + @objid ("5026f8d2-36ee-49b7-aa6e-5972e65eeac6") public static final String STEREOTYPE_NAME = "CommunicationPortInstance"; /** @@ -48,7 +48,7 @@ public class CommunicationPortInstance extends FeaturePort { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("7f9aac91-fb3d-4e3a-b80a-be762c54acf0") + @objid ("e11a6cf5-df23-418b-9dbe-c4db1c1be666") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Port) && ((Port) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, CommunicationPortInstance.STEREOTYPE_NAME)); } @@ -58,7 +58,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link CommunicationPortInstance} proxy on the created {@link Port}. */ - @objid ("43896bce-65b2-4cbb-afb5-079074d73e3a") + @objid ("0f1629a8-ba43-4578-87b8-921a31f559c3") public static CommunicationPortInstance create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Port"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, CommunicationPortInstance.STEREOTYPE_NAME); @@ -66,36 +66,34 @@ 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. */ - @objid ("f2a6d42c-204f-426f-8398-3e31c293aa1a") + @objid ("85f3d704-9dbf-4ed6-a5fa-4dde7959a27b") public static CommunicationPortInstance instantiate(final Port obj) { return CommunicationPortInstance.canInstantiate(obj) ? new CommunicationPortInstance(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("eb19307b-8d1d-46aa-b187-253e19410606") + @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 ("6052b57d-b99a-4132-9ede-ce4874a08403") + @objid ("b26a5508-573a-4361-9704-3172898b49e2") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -112,11 +110,10 @@ 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 ("cf9141cd-6170-4a22-86d9-912d4bb2e1cd") + @objid ("5ef45f79-598e-4e8a-b3e8-4b68446983bd") @Override public Port getElement() { return (Port)super.getElement(); @@ -126,13 +123,14 @@ public Port getElement() { * Get the value to the 'type' role.

* Role description: * null + * */ - @objid ("729984fd-7477-4dc2-85bf-8a15e433b004") + @objid ("36e1f25b-b9c7-485a-bc9a-9291121af363") public CommunicationPort getType() { return (CommunicationPort)CamelDesignerProxyFactory.instantiate(((Port) this.elt).getRepresentedFeature(), CommunicationPort.STEREOTYPE_NAME); } - @objid ("0747822e-c02c-469b-b43b-688935279c02") + @objid ("444a00a8-7f48-479b-bcd6-456d4378a9ac") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -142,8 +140,9 @@ public int hashCode() { * Set the value of the 'type' role.

* Role description: * null + * */ - @objid ("71680710-0f14-48b2-9ef4-9dbbd143867d") + @objid ("86eac4ac-2120-4f1d-961b-6c564c32e2fa") public void setType(final CommunicationPort obj) { ((Port) this.elt).setRepresentedFeature((obj != null) ? obj.getElement() : null); } @@ -156,23 +155,23 @@ public List getChilds() { return result; } - @objid ("3e594765-283d-48bd-8908-811488506b34") + @objid ("4f48828e-e879-4aa7-ac08-46189abf8c48") protected CommunicationPortInstance(final Port elt) { super(elt); } @objid ("504cf2f2-0359-4c14-b98c-237508d0590f") public static final class MdaTypes { - @objid ("488405eb-af56-497a-b233-57be0f781293") + @objid ("3bc532a6-c12c-4db0-aa35-c9c8a9a7361d") public static Stereotype STEREOTYPE_ELT; - @objid ("10a48ff7-36da-4a91-964e-6c02a4f2130a") + @objid ("55fd6615-d04b-4e00-8ccc-7e59af0a7f72") private static Stereotype MDAASSOCDEP; - @objid ("8fb1a38a-78b6-4996-bdf1-ce910d2ce0f4") + @objid ("59a1840e-1502-4d7c-9508-b9c1585f77ee") private static TagType MDAASSOCDEP_ROLE; - @objid ("6057b7ab-a60f-4e99-9792-e59bdb1f4d66") + @objid ("b4f87945-e99a-41e4-9a27-1cca45195c35") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "42bf761a-193d-48f8-b686-2c4b96a56384"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -180,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/port/HostingPortInstance.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentinstancemodel/standard/port/HostingPortInstance.java index d01950bb..45cafc13 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.port; @@ -37,7 +37,7 @@ */ @objid ("c7cd871c-65fe-47ef-94b0-65618ab304b4") public class HostingPortInstance extends FeaturePort { - @objid ("7bc806d0-b2c3-42c6-a00e-914ebe01bbe1") + @objid ("38299bdd-f116-4900-b018-c80128898afd") public static final String STEREOTYPE_NAME = "HostingPortInstance"; /** @@ -48,7 +48,7 @@ public class HostingPortInstance extends FeaturePort { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("46d751a3-3fa3-4bc5-a033-eb407ebfe712") + @objid ("11074065-bb44-4a79-ae60-ad7651ec42f7") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Port) && ((Port) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, HostingPortInstance.STEREOTYPE_NAME)); } @@ -58,7 +58,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link HostingPortInstance} proxy on the created {@link Port}. */ - @objid ("94465d0e-8d4c-4784-8a34-a89df176edb5") + @objid ("e53333bf-99df-4dc0-989e-b4989c9a7d6c") public static HostingPortInstance create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Port"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, HostingPortInstance.STEREOTYPE_NAME); @@ -66,36 +66,34 @@ 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. */ - @objid ("487c8b66-71a8-4276-b016-0c56e7a4edcc") + @objid ("74b6d69a-30b3-421d-b9d1-bf839ac1899a") public static HostingPortInstance instantiate(final Port obj) { return HostingPortInstance.canInstantiate(obj) ? new HostingPortInstance(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("0c7902bd-ab3e-4770-8893-d6c52cef28d9") + @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 ("dd799d41-51bf-42c2-aa97-517013c44c93") + @objid ("35e0e719-a4ce-4f79-9c2d-452d873ef7a6") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -112,11 +110,10 @@ 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 ("65ec9f68-95f1-4536-9f37-c5c091ccb849") + @objid ("b3245721-14fa-488a-8de9-2b48225d5746") @Override public Port getElement() { return (Port)super.getElement(); @@ -126,13 +123,14 @@ public Port getElement() { * Get the value to the 'type' role.

* Role description: * null + * */ - @objid ("3abbb43f-3237-4691-ba2b-62886649855f") + @objid ("02860c7c-9a4c-4a9d-81f5-89903e2a4865") public HostingPort getType() { return (HostingPort)CamelDesignerProxyFactory.instantiate(((Port) this.elt).getRepresentedFeature(), HostingPort.STEREOTYPE_NAME); } - @objid ("f8991e7d-be65-4239-9f7a-ce563577a884") + @objid ("7ef69d27-bdcd-4a94-8f46-47b58866018a") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -142,8 +140,9 @@ public int hashCode() { * Set the value of the 'type' role.

* Role description: * null + * */ - @objid ("1643d6cc-9079-48d4-abf6-7901c19083e1") + @objid ("a6bd454c-84cb-4d3f-9862-18c0759c5d1a") public void setType(final HostingPort obj) { ((Port) this.elt).setRepresentedFeature((obj != null) ? obj.getElement() : null); } @@ -156,23 +155,23 @@ public List getChilds() { return result; } - @objid ("dd097ccc-9963-4c62-ace6-07f7f24383af") + @objid ("924b087c-90e0-4af5-8baa-4b709fe56b1d") protected HostingPortInstance(final Port elt) { super(elt); } @objid ("ed3d08ae-14c6-4868-b319-18cc92db0872") public static final class MdaTypes { - @objid ("fda42671-a34a-4252-ad9a-7621b00ce5b1") + @objid ("03c28ad9-93d7-4bfd-8027-7e1007eff4fd") public static Stereotype STEREOTYPE_ELT; - @objid ("33c2d0a6-97b9-4fbc-9e78-e3a53d1fd322") + @objid ("7caba4d7-072a-4971-a6ff-536f06db86e5") private static Stereotype MDAASSOCDEP; - @objid ("67cc7b79-440c-4d24-b477-5867d3ba061a") + @objid ("70410c52-a376-47d5-bd48-bc5eef866276") private static TagType MDAASSOCDEP_ROLE; - @objid ("3e74ce71-d225-4c23-9cad-f269e296af52") + @objid ("57ce389b-6b30-48e7-a1e4-18ae6e4fbd32") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "b2bcf5bc-48d4-42cc-bc87-0ca2f2ca2812"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -180,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/deploymentmodel/standard/artifact/BuildConfiguration.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/artifact/BuildConfiguration.java index 07213453..c95e618e 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact; @@ -36,22 +36,22 @@ */ @objid ("31fa8681-d65e-4083-b411-1e6026f8e582") public class BuildConfiguration extends FeatureArtifact { - @objid ("8853268f-c5da-4324-bf41-e0cf5bcec083") + @objid ("cce821ae-a9d6-4df9-a2ed-9e1ae1781fef") public static final String STEREOTYPE_NAME = "BuildConfiguration"; - @objid ("d838142a-b507-4d41-ac39-567053b70681") + @objid ("eec8e331-18b7-44d8-bf34-b73e8ea58454") public static final String ARTIFACTID_TAGTYPE = "artifactId"; - @objid ("32796d0c-19a2-4042-b744-2f7743cd5b73") + @objid ("8a716aba-f08f-4861-aa7f-9086bd852c2f") public static final String BUILDFRAMEWORK_TAGTYPE = "buildFramework"; - @objid ("9f8ece7c-0cea-4ee3-bfc4-588619200339") + @objid ("cbcf3bc7-4a2d-423f-9c4a-92cc96b28a03") public static final String EXCLUDE_TAGTYPE = "exclude"; - @objid ("3327248f-e674-41b9-affc-cfd224764de1") + @objid ("5838cdd5-dc02-4d80-9539-b0137f0bbbd1") public static final String INCLUDE_TAGTYPE = "include"; - @objid ("6fd9a40a-b0e2-4b00-8806-0c0b133e6f66") + @objid ("d1eb7560-5549-4111-a8c3-d794cbe3b6b3") public static final String SOURCECODEURL_TAGTYPE = "sourceCodeURL"; /** @@ -62,7 +62,7 @@ public class BuildConfiguration extends FeatureArtifact { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("9eff085e-cca3-4e9a-85f8-921e5942d5af") + @objid ("f1c98990-4ab8-4536-9831-dd50e1509384") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Artifact) && ((Artifact) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, BuildConfiguration.STEREOTYPE_NAME)); } @@ -72,7 +72,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link BuildConfiguration} proxy on the created {@link Artifact}. */ - @objid ("ad477513-b35a-4dce-a0b2-38a296a948d0") + @objid ("f9764d26-31bc-47b0-992e-07dd419158bb") public static BuildConfiguration create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Artifact"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, BuildConfiguration.STEREOTYPE_NAME); @@ -80,36 +80,34 @@ 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. */ - @objid ("8f536794-0a94-4f26-ba0a-d0580cc3696a") + @objid ("ef2bb6c5-496a-4708-9405-ab842e7468dd") public static BuildConfiguration instantiate(final Artifact obj) { return BuildConfiguration.canInstantiate(obj) ? new BuildConfiguration(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("06f97304-98db-45ca-b613-92aea4d931cf") + @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 ("39e37666-5f55-4571-b801-8fd5ba586c11") + @objid ("d6287b6f-d1a9-4df2-8975-6c4646eb662a") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -130,7 +128,7 @@ public boolean equals(final Object obj) { *

Property description: *
null

*/ - @objid ("990f2009-7572-4685-8a28-e110e619a02e") + @objid ("2d0997fe-997e-4e10-aebe-7e01c9b01ea0") public String getArtifactId() { return this.elt.getTagValue(BuildConfiguration.MdaTypes.ARTIFACTID_TAGTYPE_ELT); } @@ -140,17 +138,16 @@ public String getArtifactId() { *

Property description: *
null

*/ - @objid ("f6134d3a-8e1d-4d66-8186-b29bb3c871d2") + @objid ("a4ac1dce-6c0d-4f10-88d4-8c3018d64e68") public String getBuildFramework() { return this.elt.getTagValue(BuildConfiguration.MdaTypes.BUILDFRAMEWORK_TAGTYPE_ELT); } /** - * Get the underlying {@link Artifact}. - * + * Get the underlying {@link Artifact}. * @return the Artifact represented by this proxy, never null. */ - @objid ("9b50e909-f1a8-44fd-89c1-ffe294b5b0ad") + @objid ("f3cf6948-3ed7-4e5b-84a5-1c79d9a84812") @Override public Artifact getElement() { return (Artifact)super.getElement(); @@ -161,7 +158,7 @@ public Artifact getElement() { *

Property description: *
null

*/ - @objid ("a728401d-ba0b-4d72-bde5-e7708bcaf4b9") + @objid ("93dd7bdc-7479-4f88-a6b7-d9b948af0aa3") public String getExclude() { return this.elt.getTagValue(BuildConfiguration.MdaTypes.EXCLUDE_TAGTYPE_ELT); } @@ -171,7 +168,7 @@ public String getExclude() { *

Property description: *
null

*/ - @objid ("30d3cbb7-a70d-4857-bf3b-388284fecd2d") + @objid ("5feeec53-95b3-425f-95a8-af22e19ff872") public String getInclude() { return this.elt.getTagValue(BuildConfiguration.MdaTypes.INCLUDE_TAGTYPE_ELT); } @@ -181,12 +178,12 @@ public String getInclude() { *

Property description: *
null

*/ - @objid ("1bd59fa1-5ecd-45c7-a2c3-45f20a77d9fb") + @objid ("4537c7ab-eee4-41b8-b8f2-fc97742e160d") public String getSourceCodeURL() { return this.elt.getTagValue(BuildConfiguration.MdaTypes.SOURCECODEURL_TAGTYPE_ELT); } - @objid ("3ca162f8-1e1a-47d3-8193-2ee6b0d72eed") + @objid ("68b116cf-c33f-4c89-b944-c64d6d4328db") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -197,7 +194,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("cfaf018f-867e-4a99-86c4-abe4b9b9c9fe") + @objid ("7d00ff55-cd1d-4439-9fe0-2a8c3f541870") public void setArtifactId(final String value) { this.elt.putTagValue(BuildConfiguration.MdaTypes.ARTIFACTID_TAGTYPE_ELT, value); } @@ -207,7 +204,7 @@ public void setArtifactId(final String value) { *

Property description: *
null

*/ - @objid ("815dac89-a3fc-4d38-865c-6428820200af") + @objid ("0bea7d02-85bc-4354-a463-781e8bcb305e") public void setBuildFramework(final String value) { this.elt.putTagValue(BuildConfiguration.MdaTypes.BUILDFRAMEWORK_TAGTYPE_ELT, value); } @@ -217,7 +214,7 @@ public void setBuildFramework(final String value) { *

Property description: *
null

*/ - @objid ("895f3c47-b5b3-42ee-b3ca-4a21fbdf3532") + @objid ("57af9f0c-1b70-4fc2-94f7-ff037e79adb2") public void setExclude(final String value) { this.elt.putTagValue(BuildConfiguration.MdaTypes.EXCLUDE_TAGTYPE_ELT, value); } @@ -227,7 +224,7 @@ public void setExclude(final String value) { *

Property description: *
null

*/ - @objid ("bb3131a7-6f67-48c0-acde-086d837f36a4") + @objid ("3e5a0c3a-d0fe-49a4-bbd6-cbfd7d665272") public void setInclude(final String value) { this.elt.putTagValue(BuildConfiguration.MdaTypes.INCLUDE_TAGTYPE_ELT, value); } @@ -237,7 +234,7 @@ public void setInclude(final String value) { *

Property description: *
null

*/ - @objid ("348173cd-e33f-4251-b1e0-370d9e602402") + @objid ("3d7069cf-4267-4be2-afc6-d4f1a9721806") public void setSourceCodeURL(final String value) { this.elt.putTagValue(BuildConfiguration.MdaTypes.SOURCECODEURL_TAGTYPE_ELT, value); } @@ -250,38 +247,38 @@ public List getChilds() { return result; } - @objid ("f1ea4deb-b215-4975-994b-72be846c2bd8") + @objid ("6aa55067-887b-4f1d-a053-c4e050ca82d8") protected BuildConfiguration(final Artifact elt) { super(elt); } @objid ("5c80b392-068d-47de-a15f-f92421a05377") public static final class MdaTypes { - @objid ("1f1132e8-d362-4bba-a334-0b35caaeea17") + @objid ("1840be94-81eb-489e-b2ab-d6726bb08178") public static Stereotype STEREOTYPE_ELT; - @objid ("5848ad24-f4a7-4dc2-9779-85bd983b88f9") + @objid ("97417f9d-f224-4361-b4d6-d3bb1f394443") public static TagType ARTIFACTID_TAGTYPE_ELT; - @objid ("1050fc77-d4d1-4135-aa3c-f611da76b8d4") + @objid ("4a55fd43-e2e6-4f65-bf9d-d340d92d7e91") public static TagType BUILDFRAMEWORK_TAGTYPE_ELT; - @objid ("2f12cba4-1adf-4cc3-b9d1-8c3f611266ce") + @objid ("c4f3777b-5636-481d-acba-d0ab39a6b610") public static TagType SOURCECODEURL_TAGTYPE_ELT; - @objid ("f38ee408-fad7-4dd8-9c7e-1ae48fc36910") + @objid ("fb7008f2-72c2-462e-9d0b-76e0d3e1968d") public static TagType INCLUDE_TAGTYPE_ELT; - @objid ("708f7876-2253-41d5-b166-bb35d20ad01f") + @objid ("f6423603-80ca-4715-b24e-78ba942f3c31") public static TagType EXCLUDE_TAGTYPE_ELT; - @objid ("af4a8866-ec4a-4add-8f96-59e7abf4323a") + @objid ("5306d06c-89f3-4d77-a856-aeecde333be2") private static Stereotype MDAASSOCDEP; - @objid ("b7127fcf-fd6b-40a8-9cfc-8c0beb9f08eb") + @objid ("deaf83c0-87b2-4221-baff-77b8ae2d90eb") private static TagType MDAASSOCDEP_ROLE; - @objid ("b2a34081-c15d-41c9-8ae7-e9889f0fdd08") + @objid ("7c01dd56-270b-4c38-a4fc-ce52b357a03c") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "72bbf7a5-04d3-40d1-8b20-3489ec93b45a"); ARTIFACTID_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "95dcdeef-f3a8-4b72-8658-7469cc386bd1"); @@ -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/deploymentmodel/standard/artifact/ClusterConfiguration.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/artifact/ClusterConfiguration.java index c41862aa..3f907e0b 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact; @@ -39,10 +39,10 @@ */ @objid ("63aa1a3f-c5f3-4c42-becc-dcda24f024a0") public class ClusterConfiguration extends Configuration { - @objid ("7d731c17-1c0f-4a92-a570-dfe6692a1b8a") + @objid ("1f11e6b5-b246-4cb7-9ca3-6aa001ac8649") public static final String STEREOTYPE_NAME = "ClusterConfiguration"; - @objid ("380e08d9-1717-4e67-b72e-cceb560c5192") + @objid ("18d608c8-90f8-41ab-ba63-10df23ef012d") public static final String DOWNLOADURL_TAGTYPE = "downloadURL"; /** @@ -53,7 +53,7 @@ public class ClusterConfiguration extends Configuration { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("00ea0fbc-2c45-47f7-9c55-cc60e451d7ce") + @objid ("d0dcbe17-6060-4f3f-91ea-32fcc4f30839") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Artifact) && ((Artifact) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, ClusterConfiguration.STEREOTYPE_NAME)); } @@ -63,7 +63,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link ClusterConfiguration} proxy on the created {@link Artifact}. */ - @objid ("c64f4ddd-b06f-451b-a8e1-5f6ad875b577") + @objid ("fbbaa189-1207-4c8d-848e-fce7ff434332") public static ClusterConfiguration create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Artifact"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, ClusterConfiguration.STEREOTYPE_NAME); @@ -71,47 +71,46 @@ 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. */ - @objid ("2cbb83b6-38cf-45fc-a53e-0ce51fc07ec3") + @objid ("fe7a7704-71fa-4c0a-87e5-a2f1efb0eaa1") public static ClusterConfiguration instantiate(final Artifact obj) { return ClusterConfiguration.canInstantiate(obj) ? new ClusterConfiguration(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("6a104122-5e2e-48bd-b408-a274e39f57bf") + @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 ("7abf11fa-9ffc-4d5e-a22e-5c8607ccb558") + @objid ("6c06e609-4e07-4f7c-a856-4b521a41ad75") public void addConfigParameters(final AttributeAttribute obj) { if (obj!=null) ((Artifact) this.elt).getOwnedAttribute().add(obj.getElement()); } - @objid ("5ffe0050-9836-4abb-8b96-e844bb576196") + @objid ("300cf190-685d-4f2d-8fbf-66f8d04575b7") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -131,18 +130,19 @@ public boolean equals(final Object obj) { * Get the values of the 'configParameters' role.

* Role description: * null + * */ - @objid ("342a26d2-d346-4155-8e1f-7936feedb24e") + @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); } @@ -151,23 +151,22 @@ public List getConfigParameters() { *

Property description: *
null

*/ - @objid ("6fa16939-62f3-42f9-9b07-7fa4b1f484bd") + @objid ("c00be1a0-ed13-4c62-90c7-fee4a67f0ee5") public String getDownloadURL() { return this.elt.getTagValue(ClusterConfiguration.MdaTypes.DOWNLOADURL_TAGTYPE_ELT); } /** - * Get the underlying {@link Artifact}. - * + * Get the underlying {@link Artifact}. * @return the Artifact represented by this proxy, never null. */ - @objid ("20142b34-b29f-49b1-8732-c9a5db1af2da") + @objid ("d2bf7e69-aa74-451b-8990-4d3502b3b5ca") @Override public Artifact getElement() { return (Artifact)super.getElement(); } - @objid ("5bc90678-1ba8-4af1-b17f-841f5b22bb17") + @objid ("bac09a9a-125b-4b09-a63d-b40c5572df3a") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -177,8 +176,9 @@ public int hashCode() { * Remove a value from the 'configParameters' role.

* Role description: * null + * */ - @objid ("e8fc8337-dc5e-42cb-8b6b-ca0a044b875b") + @objid ("bc5d0a67-7b21-4d11-ba5f-cfca07a80a23") public boolean removeConfigParameters(final AttributeAttribute obj) { return (obj!=null)? ((Artifact) this.elt).getOwnedAttribute().remove(obj.getElement()) : false; } @@ -188,7 +188,7 @@ public boolean removeConfigParameters(final AttributeAttribute obj) { *

Property description: *
null

*/ - @objid ("08b1da20-650c-40db-ae0b-847e2966c30d") + @objid ("81130f4b-5e45-491e-8948-435d329e7c2c") public void setDownloadURL(final String value) { this.elt.putTagValue(ClusterConfiguration.MdaTypes.DOWNLOADURL_TAGTYPE_ELT, value); } @@ -201,26 +201,26 @@ public List getChilds() { return result; } - @objid ("9a93bf91-38dd-49c7-a6d1-2c98f1bce855") + @objid ("29c26b4f-fa47-4a39-833c-15c8a5b6d6e1") protected ClusterConfiguration(final Artifact elt) { super(elt); } @objid ("6a9ae6c0-8629-45e2-ab3b-cb4a2ca54edb") public static final class MdaTypes { - @objid ("5c876428-207f-45a0-ba36-41d222815843") + @objid ("ca3c453c-7dac-48a1-ac98-a0bfb8ea8b90") public static Stereotype STEREOTYPE_ELT; - @objid ("46b08dfa-d29b-4a72-88b3-a5ae99b1dead") + @objid ("3acaa6c7-2408-44b5-9bea-ed4691e4bea3") public static TagType DOWNLOADURL_TAGTYPE_ELT; - @objid ("750f5996-7dd1-43c3-9115-2b32885a75c0") + @objid ("68d0929c-84a4-49d0-b52d-3df8cad8eab1") private static Stereotype MDAASSOCDEP; - @objid ("02c3bb69-c0b3-49be-9945-9d2420ec3380") + @objid ("7e2c7de7-833f-4bbe-a227-61704b659add") private static TagType MDAASSOCDEP_ROLE; - @objid ("e1ca7949-4ada-4009-8428-05e12229a4ae") + @objid ("d156fa02-4ae8-4dec-898f-08d5644f6126") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "b8d5ac50-75fd-4e01-9d50-04e6139e072c"); DOWNLOADURL_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "33966f3f-93c8-4e48-88fc-3e4ca226da16"); @@ -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 9c08a540..e028af79 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact; @@ -36,7 +36,7 @@ */ @objid ("ff4bc201-76db-4377-a971-521d2953d0c0") public abstract class Configuration extends FeatureArtifact { - @objid ("a0d1d918-0828-4e20-ba80-726e7053d6b7") + @objid ("ec06cc32-69ca-428d-8652-ce3bb61b2a00") public static final String STEREOTYPE_NAME = "Configuration"; /** @@ -47,12 +47,12 @@ public abstract class Configuration extends FeatureArtifact { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("5f8977c7-591f-4863-ad59-0a17f6a2750e") + @objid ("4f13c22d-b3c3-42bd-9883-5a6f06a9632b") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Artifact) && ((Artifact) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, Configuration.STEREOTYPE_NAME)); } - @objid ("14af6b7e-1882-4e93-89e5-b17e9045cf45") + @objid ("90a1af6a-707b-44b0-918a-bfc142b1e836") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -69,17 +69,16 @@ 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 ("72392efa-83eb-4009-9902-378e634894ec") + @objid ("ef737445-f764-4f1d-8bb7-548a553a27b9") @Override public Artifact getElement() { return (Artifact)super.getElement(); } - @objid ("9f0d216d-5102-4544-8695-b24225a12fa5") + @objid ("9e292bb2-2fc0-416a-9ed2-ef4f153118b5") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -93,23 +92,23 @@ public List getChilds() { return result; } - @objid ("927cfae3-d343-4f19-99c2-5789dc86587c") + @objid ("adf52d36-8e2b-415c-b729-8e39259fde85") protected Configuration(final Artifact elt) { super(elt); } @objid ("58dae9c3-74db-4b4e-9dad-cd23280e68db") public static final class MdaTypes { - @objid ("025acd8b-8e5a-4c4c-9729-4583965d9872") + @objid ("e569e276-435b-42af-8d6a-77ef6808f32c") public static Stereotype STEREOTYPE_ELT; - @objid ("4065b4ba-99ec-4c9a-a371-25d4f6c1f7cd") + @objid ("3f38f964-0612-4a4a-85c0-7ead032176cd") private static Stereotype MDAASSOCDEP; - @objid ("d8aa5f5f-1e1f-4b44-9855-53d1eae06af2") + @objid ("37b806d6-59f2-462c-915e-c047bfe3ca18") private static TagType MDAASSOCDEP_ROLE; - @objid ("a16bbe60-74a9-4935-aa0b-a13e6eff7974") + @objid ("618e819f-4e6c-476d-84d6-c319890ca2cb") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "24d6edfb-e2bf-4e67-8c56-b051b479f16d"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -117,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/deploymentmodel/standard/artifact/EventConfiguration.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/artifact/EventConfiguration.java index 3155fe73..ff79a674 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact; @@ -38,13 +38,13 @@ */ @objid ("f7162d5d-ed91-4ada-8780-ceae18efea97") public class EventConfiguration extends FeatureArtifact { - @objid ("d35f53e8-49f5-4a94-9c0c-a9c2fe671bd2") + @objid ("1b5020d6-3b7a-4143-b401-dee73aedf8fd") public static final String STEREOTYPE_NAME = "EventConfiguration"; - @objid ("539b292c-8e80-4fcf-9451-da337fa001ef") + @objid ("2549763b-a995-45a0-a4c4-50ec6d406538") public static final String HTTPMETHODNAME_TAGTYPE = "httpMethodName"; - @objid ("803603b5-f08e-44f2-8465-0d1781c3e762") + @objid ("04caab7b-0c1c-4fe1-92dd-504bb56b4cbb") public static final String HTTPMETHODTYPE_TAGTYPE = "httpMethodType"; /** @@ -55,7 +55,7 @@ public class EventConfiguration extends FeatureArtifact { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("5adba868-e336-4218-a049-0e9af4bd4fe5") + @objid ("85f73611-babb-4234-9c60-2af26c0e3295") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Artifact) && ((Artifact) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, EventConfiguration.STEREOTYPE_NAME)); } @@ -65,7 +65,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link EventConfiguration} proxy on the created {@link Artifact}. */ - @objid ("784aaecc-ab41-4d47-ac11-c5bc277d7b73") + @objid ("d7dbfa4c-1681-4961-8b5f-9ab4f6b7bc01") public static EventConfiguration create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Artifact"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, EventConfiguration.STEREOTYPE_NAME); @@ -73,36 +73,34 @@ 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. */ - @objid ("92157169-d455-4222-b2d2-4443f2b80eb5") + @objid ("9aeaa7bd-8fa9-4ca0-8ae4-d640708c9621") public static EventConfiguration instantiate(final Artifact obj) { return EventConfiguration.canInstantiate(obj) ? new EventConfiguration(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("e38091ca-fa83-45d6-bc0e-0cbb10327341") + @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 ("775fef59-102e-47fd-8e14-45966f01b8a0") + @objid ("71f01cbe-1b04-425d-9e5c-cd53e1cf2e58") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -119,11 +117,10 @@ 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 ("c07a2493-3d32-45c8-bd38-f43dc008e00e") + @objid ("b7ce3ab2-c3de-4e1e-89ef-633ee3dc9928") @Override public Artifact getElement() { return (Artifact)super.getElement(); @@ -133,8 +130,9 @@ public Artifact getElement() { * Get the value of the 'executionSchedule' role.

* Role description: * null + * */ - @objid ("be67e7a5-8b0b-460d-a713-ebf4f2432d5a") + @objid ("f95e50db-cc29-4e37-b340-cdd2d4c461e7") public Schedule getExecutionSchedule() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(EventConfiguration.MdaTypes.MDAASSOCDEP) @@ -151,7 +149,7 @@ public Schedule getExecutionSchedule() { *

Property description: *
null

*/ - @objid ("aabe8035-7da5-4f2e-9bfa-2530294c91c2") + @objid ("686bf908-88e9-463e-ab28-bb0ffcba5fc5") public String getHttpMethodName() { return this.elt.getTagValue(EventConfiguration.MdaTypes.HTTPMETHODNAME_TAGTYPE_ELT); } @@ -161,7 +159,7 @@ public String getHttpMethodName() { *

Property description: *
null

*/ - @objid ("9d52db47-bd35-486c-ad93-b49f8bfc99f3") + @objid ("691d7f60-925a-433c-83b0-36e3c7f1a5a3") public String getHttpMethodType() { return this.elt.getTagValue(EventConfiguration.MdaTypes.HTTPMETHODTYPE_TAGTYPE_ELT); } @@ -170,13 +168,14 @@ public String getHttpMethodType() { * Get the value to the 'scheduledExecutionConfig' role.

* Role description: * null + * */ - @objid ("157dd000-ed8e-44f2-952a-0ea1a3d8b766") + @objid ("67da4052-000b-4aee-8bc9-c2fb89e37fd1") public FeatureClass getScheduledExecutionConfig() { return (FeatureClass)CamelDesignerProxyFactory.instantiate(((Artifact) this.elt).getOwner(), FeatureClass.STEREOTYPE_NAME); } - @objid ("265cf5fe-4013-4f04-8587-9b6fceb94cf1") + @objid ("e7e3b261-7ac2-47d9-bf88-4f9bacc35ccc") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -186,8 +185,9 @@ public int hashCode() { * Set the value of the 'executionSchedule' role.

* Role description: * null + * */ - @objid ("2f78c1ca-0bb5-4d52-84fc-955fa22c04b4") + @objid ("06475154-dce1-4161-9177-f867631e9ddf") public void setExecutionSchedule(final Schedule obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -212,7 +212,7 @@ public void setExecutionSchedule(final Schedule obj) { *

Property description: *
null

*/ - @objid ("dc98534a-c846-490d-a54f-aecdb80f7100") + @objid ("91be5db9-5cca-4c2a-8a11-caf96e9ca3ce") public void setHttpMethodName(final String value) { this.elt.putTagValue(EventConfiguration.MdaTypes.HTTPMETHODNAME_TAGTYPE_ELT, value); } @@ -222,7 +222,7 @@ public void setHttpMethodName(final String value) { *

Property description: *
null

*/ - @objid ("adff1938-726a-4177-976a-0221bbc3c9bc") + @objid ("d94b04a9-b6f7-43bb-a2c2-120d8fbbcafa") public void setHttpMethodType(final String value) { this.elt.putTagValue(EventConfiguration.MdaTypes.HTTPMETHODTYPE_TAGTYPE_ELT, value); } @@ -231,8 +231,9 @@ public void setHttpMethodType(final String value) { * Set the value of the 'scheduledExecutionConfig' role.

* Role description: * null + * */ - @objid ("46958d0e-6bf2-456c-a870-46c77db05f38") + @objid ("2bf84c5e-54d7-49f7-aecf-0d0a95731fc8") public void setScheduledExecutionConfig(final FeatureClass obj) { ((Artifact) this.elt).setOwner((obj != null) ? obj.getElement() : null); } @@ -245,29 +246,29 @@ public List getChilds() { return result; } - @objid ("776aa212-8670-47fb-9cd9-9aefc242bc03") + @objid ("8a9321d1-e0d4-4b96-99d9-22fc4e565de9") protected EventConfiguration(final Artifact elt) { super(elt); } @objid ("daa7f0bf-b9d3-467f-a096-f7cf1f5b5ad2") public static final class MdaTypes { - @objid ("d29bd3f4-c2ca-4fd3-b875-9af0db049292") + @objid ("04c28b47-6e41-4bdd-aaf6-f644f61590c5") public static Stereotype STEREOTYPE_ELT; - @objid ("9bb35672-add4-4766-bb89-a5a6f1111c9d") + @objid ("84d25e59-cc74-465f-aeea-4137cbca288e") public static TagType HTTPMETHODNAME_TAGTYPE_ELT; - @objid ("6fc15763-eb8d-4779-9b38-f727dc9d2d3b") + @objid ("63bb5c4f-f8b2-4b49-82a9-a2eb92f7f488") public static TagType HTTPMETHODTYPE_TAGTYPE_ELT; - @objid ("13e66453-f01e-48e5-bcf8-9087f4780fc4") + @objid ("5f71a6cd-d982-43a2-b98f-6b3f91f8dede") private static Stereotype MDAASSOCDEP; - @objid ("241a78e4-6be6-4666-a668-05d55d88ee4f") + @objid ("28839a5a-be6a-4d44-87b4-40f6ba7d70f1") private static TagType MDAASSOCDEP_ROLE; - @objid ("25a3d2e2-ce62-49cc-809b-e76633b365e9") + @objid ("69ef5f12-c714-40c2-a9ee-404b0f623b85") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "5138fe5c-0bae-4c49-9442-c6ac48dd09d8"); HTTPMETHODNAME_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "06feb07e-1378-4f53-8ae2-7ba21ca97283"); @@ -277,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/deploymentmodel/standard/artifact/PaaSConfiguration.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/artifact/PaaSConfiguration.java index 78bae9bd..3ec60c5f 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact; @@ -35,19 +35,19 @@ */ @objid ("ce90fefb-5b15-4e21-9681-cb6da152b51c") public class PaaSConfiguration extends Configuration { - @objid ("ebce401f-058e-4bd4-b0c6-00ad86374e27") + @objid ("97904975-1aab-494e-b164-b23edd820eaa") public static final String STEREOTYPE_NAME = "PaaSConfiguration"; - @objid ("2b44c4ec-5180-4cdf-81b7-2ebc504f2431") + @objid ("c2ca69d9-d155-444d-ad82-0c14cad23526") public static final String API_TAGTYPE = "api"; - @objid ("0fe8e42d-2aeb-4594-b417-bab1497047c3") + @objid ("7324ac30-1c2f-4ff6-97ea-b0e1c9470030") public static final String DOWNLOADURL_TAGTYPE = "downloadURL"; - @objid ("03f23f23-bd88-47a3-8567-4caab36afc70") + @objid ("f36afd06-4b51-476f-953c-d5977696dccf") public static final String ENDPOINT_TAGTYPE = "endpoint"; - @objid ("48c9f701-7330-41b1-a1dd-884a206f13a4") + @objid ("333a922e-ce21-4474-bab8-eccf651e19dc") public static final String VERSION_TAGTYPE = "version"; /** @@ -58,7 +58,7 @@ public class PaaSConfiguration extends Configuration { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("37ae524e-cba2-43ff-9802-8725fb026f71") + @objid ("500e9651-6724-47ae-91dc-60ed8ea61820") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Artifact) && ((Artifact) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, PaaSConfiguration.STEREOTYPE_NAME)); } @@ -68,7 +68,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link PaaSConfiguration} proxy on the created {@link Artifact}. */ - @objid ("034f9675-23a8-4a52-bc40-33fb5ad9e55d") + @objid ("47a9a9d7-94b4-453b-b3d8-df2d6e677d2a") public static PaaSConfiguration create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Artifact"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, PaaSConfiguration.STEREOTYPE_NAME); @@ -76,36 +76,34 @@ 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. */ - @objid ("5b3491ac-aaa3-496e-adcb-caa25d152d62") + @objid ("e470b6bb-1608-474d-b536-c45d4944ee43") public static PaaSConfiguration instantiate(final Artifact obj) { return PaaSConfiguration.canInstantiate(obj) ? new PaaSConfiguration(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("328ea626-9713-46b6-a16d-9c99e2ccc662") + @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 ("bb805e87-6c95-4327-89a8-c070e2a523e2") + @objid ("b2bf66f9-d3b4-4996-a478-6d0ebcab9fb5") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -126,7 +124,7 @@ public boolean equals(final Object obj) { *

Property description: *
null

*/ - @objid ("1e7a345b-8730-4afc-86dd-58cc09737aa0") + @objid ("e1a14905-2c19-4b03-89db-0eae245a850e") public String getApi() { return this.elt.getTagValue(PaaSConfiguration.MdaTypes.API_TAGTYPE_ELT); } @@ -136,17 +134,16 @@ public String getApi() { *

Property description: *
null

*/ - @objid ("e70ac31f-6c10-427a-a024-25ce1747541e") + @objid ("5693255f-9bb1-45af-aac9-675cd4bcd919") public String getDownloadURL() { return this.elt.getTagValue(PaaSConfiguration.MdaTypes.DOWNLOADURL_TAGTYPE_ELT); } /** - * Get the underlying {@link Artifact}. - * + * Get the underlying {@link Artifact}. * @return the Artifact represented by this proxy, never null. */ - @objid ("a364f6ae-e50e-47a0-bb2c-d8f5027c5e29") + @objid ("4ba34097-30d1-4332-bba7-90fb91a81adb") @Override public Artifact getElement() { return (Artifact)super.getElement(); @@ -157,7 +154,7 @@ public Artifact getElement() { *

Property description: *
null

*/ - @objid ("a96f5e31-33a1-414a-b896-d86d9339ef70") + @objid ("2795f706-20f5-4893-aebe-88133d372722") public String getEndpoint() { return this.elt.getTagValue(PaaSConfiguration.MdaTypes.ENDPOINT_TAGTYPE_ELT); } @@ -167,12 +164,12 @@ public String getEndpoint() { *

Property description: *
null

*/ - @objid ("16c9c8fe-6ad3-4747-a8a2-f1d64fe0d787") + @objid ("c0265cdb-ef69-4f16-b11c-d2025991e3f3") public String getVersion() { return this.elt.getTagValue(PaaSConfiguration.MdaTypes.VERSION_TAGTYPE_ELT); } - @objid ("ec8bafda-d7dc-4a4c-b4d4-64f426d24926") + @objid ("1cad0616-7ca9-432d-8841-79cb26a57c6d") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -183,7 +180,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("cf72bd7c-a85a-41ab-88b8-0f76e5e65119") + @objid ("cb716167-fc53-4bef-b613-f3ef1f6f5d31") public void setApi(final String value) { this.elt.putTagValue(PaaSConfiguration.MdaTypes.API_TAGTYPE_ELT, value); } @@ -193,7 +190,7 @@ public void setApi(final String value) { *

Property description: *
null

*/ - @objid ("57c225d3-8dfc-45ad-95c6-14e94d1e702e") + @objid ("7b23cf4b-cf93-4ce0-9339-c5a78a1381db") public void setDownloadURL(final String value) { this.elt.putTagValue(PaaSConfiguration.MdaTypes.DOWNLOADURL_TAGTYPE_ELT, value); } @@ -203,7 +200,7 @@ public void setDownloadURL(final String value) { *

Property description: *
null

*/ - @objid ("a0e5cda9-ca40-449e-93e2-0659f3b121d2") + @objid ("f0f36e0a-3795-4069-853b-7219ba80f7d2") public void setEndpoint(final String value) { this.elt.putTagValue(PaaSConfiguration.MdaTypes.ENDPOINT_TAGTYPE_ELT, value); } @@ -213,7 +210,7 @@ public void setEndpoint(final String value) { *

Property description: *
null

*/ - @objid ("94bb95f4-4c42-4e94-b04f-217da997e94c") + @objid ("a77431cb-12b9-47e2-b5e4-22945fe1838d") public void setVersion(final String value) { this.elt.putTagValue(PaaSConfiguration.MdaTypes.VERSION_TAGTYPE_ELT, value); } @@ -226,35 +223,35 @@ public List getChilds() { return result; } - @objid ("83ea1eeb-ce62-41f8-a944-783e19576837") + @objid ("602ec4be-9d7f-415d-84a8-08b37a2815fa") protected PaaSConfiguration(final Artifact elt) { super(elt); } @objid ("7782d259-fea0-4b7d-98db-5a791c033e34") public static final class MdaTypes { - @objid ("6ba24ffd-1a5a-49f1-b647-45504a9fce5d") + @objid ("473adf77-b95a-4fde-82f2-3e1ca8ed81e5") public static Stereotype STEREOTYPE_ELT; - @objid ("a88209b2-3d31-4322-9696-326988133922") + @objid ("5ab5dd46-a687-4993-90c3-e0a3ca6d0f91") public static TagType API_TAGTYPE_ELT; - @objid ("2c83c2db-cbe4-4dee-a60b-da444b0f0f0b") + @objid ("b2924008-b808-4afc-8a61-b8d3b14f7ae0") public static TagType VERSION_TAGTYPE_ELT; - @objid ("f8a03fe1-46a2-4a09-b373-4878d32ad8be") + @objid ("31f0f2ed-ea35-436d-b5e2-f2825c977225") public static TagType ENDPOINT_TAGTYPE_ELT; - @objid ("40a16dbb-768a-4f81-b7aa-5f240ad37448") + @objid ("bca34708-e7bf-4fa1-84a3-96b10908adb0") public static TagType DOWNLOADURL_TAGTYPE_ELT; - @objid ("4f7bbe43-3b93-429c-b5d8-81a7fd866a12") + @objid ("237404d2-7d19-46e3-9e9f-391313e1a96c") private static Stereotype MDAASSOCDEP; - @objid ("c2e2cc44-e61c-4201-8116-62483ca3b300") + @objid ("e7d854ed-68f4-414d-bb61-713abad8f9c1") private static TagType MDAASSOCDEP_ROLE; - @objid ("19ae8ad0-8f5a-4ad2-b5fa-c79d04bc0b41") + @objid ("1b07e95d-063f-4bdf-b67a-e4b6ec83a047") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "708a5ac1-972a-428b-8eb9-2caa4bc35dbd"); API_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "f030f8ad-63ae-42c6-8eaf-af3bd34ffc29"); @@ -266,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/deploymentmodel/standard/artifact/ScriptConfiguration.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/artifact/ScriptConfiguration.java index e452e0af..96e1ada5 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact; @@ -36,37 +36,37 @@ */ @objid ("e807108a-a1a4-47d3-95f5-bf80391e7656") public class ScriptConfiguration extends Configuration { - @objid ("4a500d26-dd6e-40e2-9002-432cb8a4cef1") + @objid ("0301be91-c9ac-46e5-a2d9-2ea37e6fcd84") public static final String STEREOTYPE_NAME = "ScriptConfiguration"; - @objid ("f1ca8d71-b115-4a67-b839-8a3572876321") + @objid ("f98542a8-2fc8-48ad-84a0-a77f8fd6d61a") public static final String DEVOPSTOOL_TAGTYPE = "devopsTool"; - @objid ("94bc00e6-e90d-46e3-8808-d05c82804c26") + @objid ("6b573dfb-170f-4bf9-bf40-0cf9dccaf85e") public static final String IMAGEID_TAGTYPE = "imageId"; - @objid ("a40e130e-af11-4a5b-98f8-0fa3c2f7d058") + @objid ("3b581fe4-0326-41a8-bac5-3ae7add44746") public static final String OS_TAGTYPE = "os"; - @objid ("581dbfd4-a63e-4096-87cc-084b2bc7b4e2") + @objid ("8bd62684-4253-45db-bd2d-e0086f642994") public static final String CONFIGURECOMMAND_NOTETYPE = "configureCommand"; - @objid ("f96a6bc2-8bcb-4fdc-a3c0-bd21527e76c0") + @objid ("ebb47ed2-d707-4663-a095-3fd0a8e42ff9") public static final String DOWNLOADCOMMAND_NOTETYPE = "downloadCommand"; - @objid ("c1b72825-fde1-4180-b82e-35e3ee8d337c") + @objid ("ab3951ee-0635-46c7-be0d-a46ca729f4ba") public static final String INSTALLCOMMAND_NOTETYPE = "installCommand"; - @objid ("a018fa2c-e61d-4f02-9094-6355de6b5ad1") + @objid ("f84f3a1a-9bf4-4b40-b199-ba4acf553dc9") public static final String STARTCOMMAND_NOTETYPE = "startCommand"; - @objid ("71c3427e-f9f4-49f2-bdf4-af2977fb2a87") + @objid ("75298809-d333-4b4a-8606-85473ebb3291") public static final String STOPCOMMAND_NOTETYPE = "stopCommand"; - @objid ("46ffd223-cfe1-490a-a290-77505c47cb18") + @objid ("483110d0-fe23-4a36-b65c-896919ea6847") public static final String UPDATECOMMAND_NOTETYPE = "updateCommand"; - @objid ("39819409-870d-43ea-adec-eaef33ec6a16") + @objid ("d5dfe11d-c401-4caf-837f-f03a0d9861b0") public static final String UPLOADCOMMAND_NOTETYPE = "uploadCommand"; /** @@ -77,7 +77,7 @@ public class ScriptConfiguration extends Configuration { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("e93b10ec-67d0-45f2-851a-f5a0ce14852e") + @objid ("817682be-c2df-4ce6-8e01-c4cadc115c0f") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Artifact) && ((Artifact) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, ScriptConfiguration.STEREOTYPE_NAME)); } @@ -87,7 +87,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link ScriptConfiguration} proxy on the created {@link Artifact}. */ - @objid ("19dc2204-501a-45b2-a878-102f59e5d78d") + @objid ("49fc4924-c9c4-4369-8f79-fdce3bfee06d") public static ScriptConfiguration create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Artifact"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, ScriptConfiguration.STEREOTYPE_NAME); @@ -95,36 +95,34 @@ 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. */ - @objid ("7d97033b-6108-407b-a503-2cad9b10cb83") + @objid ("574542f7-45ee-4914-96cb-904c9f45858d") public static ScriptConfiguration instantiate(final Artifact obj) { return ScriptConfiguration.canInstantiate(obj) ? new ScriptConfiguration(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("14d3c8b7-bcaa-4cbb-b0ca-61428b4db6e3") + @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 ("5cda5c95-836e-4323-b768-7270126417ea") + @objid ("c94f0d99-917d-4020-92cf-16b37337a3ff") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -145,7 +143,7 @@ public boolean equals(final Object obj) { *

Note description: *
null

*/ - @objid ("31084ef8-2ef1-4274-96ca-ff1467ab6cac") + @objid ("c422f06b-44e6-4d0c-9afe-cc18bce8b1e4") public String getConfigureCommandNote() { return this.elt.getNoteContent(ScriptConfiguration.MdaTypes.CONFIGURECOMMAND_NOTETYPE_ELT); } @@ -155,7 +153,7 @@ public String getConfigureCommandNote() { *

Property description: *
null

*/ - @objid ("07f72a03-f325-4f0a-8204-642c8622133d") + @objid ("6ac120a0-6deb-41b6-a689-22c8a92e7388") public String getDevopsTool() { return this.elt.getTagValue(ScriptConfiguration.MdaTypes.DEVOPSTOOL_TAGTYPE_ELT); } @@ -165,17 +163,16 @@ public String getDevopsTool() { *

Note description: *
null

*/ - @objid ("ba11856a-be27-4151-bdfe-1ebdf67e4447") + @objid ("e262f92c-e267-46d6-9643-1139ff934b85") public String getDownloadCommandNote() { return this.elt.getNoteContent(ScriptConfiguration.MdaTypes.DOWNLOADCOMMAND_NOTETYPE_ELT); } /** - * Get the underlying {@link Artifact}. - * + * Get the underlying {@link Artifact}. * @return the Artifact represented by this proxy, never null. */ - @objid ("c1c423bf-3faa-42a8-b606-6da25ec55be5") + @objid ("c0ebf5ea-227d-4e2a-b054-58f597a5b769") @Override public Artifact getElement() { return (Artifact)super.getElement(); @@ -186,7 +183,7 @@ public Artifact getElement() { *

Property description: *
null

*/ - @objid ("64015ca4-9bf2-45dd-8beb-4594eb84bc0f") + @objid ("48643842-0b0c-42c2-84ed-7f7ed9be6be0") public String getImageId() { return this.elt.getTagValue(ScriptConfiguration.MdaTypes.IMAGEID_TAGTYPE_ELT); } @@ -196,7 +193,7 @@ public String getImageId() { *

Note description: *
null

*/ - @objid ("d51b2fd8-0ff4-4c6e-9a02-348b0fd4196d") + @objid ("cc33866f-cf5a-4145-b580-3beec25bc00c") public String getInstallCommandNote() { return this.elt.getNoteContent(ScriptConfiguration.MdaTypes.INSTALLCOMMAND_NOTETYPE_ELT); } @@ -206,7 +203,7 @@ public String getInstallCommandNote() { *

Property description: *
null

*/ - @objid ("fc5245ef-0dbd-48f5-8b8c-e54706b1737c") + @objid ("2d44dd13-c00f-4ec6-901f-b0df02cef15e") public String getOs() { return this.elt.getTagValue(ScriptConfiguration.MdaTypes.OS_TAGTYPE_ELT); } @@ -216,7 +213,7 @@ public String getOs() { *

Note description: *
null

*/ - @objid ("ad34e467-71c0-40e0-9fb8-f327ebefd42a") + @objid ("5c5e5744-dced-48fe-a327-8c295cfbae43") public String getStartCommandNote() { return this.elt.getNoteContent(ScriptConfiguration.MdaTypes.STARTCOMMAND_NOTETYPE_ELT); } @@ -226,7 +223,7 @@ public String getStartCommandNote() { *

Note description: *
null

*/ - @objid ("1f782908-a0eb-4bbe-a923-c533858052dd") + @objid ("52f4df9e-a5d7-44d5-a56c-aa003e816a0a") public String getStopCommandNote() { return this.elt.getNoteContent(ScriptConfiguration.MdaTypes.STOPCOMMAND_NOTETYPE_ELT); } @@ -236,7 +233,7 @@ public String getStopCommandNote() { *

Note description: *
null

*/ - @objid ("78ccf92c-36bd-40b1-90f6-8495dc016640") + @objid ("ee5259e0-7708-452f-9c07-33a29cf420e0") public String getUpdateCommandNote() { return this.elt.getNoteContent(ScriptConfiguration.MdaTypes.UPDATECOMMAND_NOTETYPE_ELT); } @@ -246,12 +243,12 @@ public String getUpdateCommandNote() { *

Note description: *
null

*/ - @objid ("2bbe662e-233b-4b3b-90c4-0eb06a94195c") + @objid ("22863988-bbd1-4bb2-b0f0-4ad096742713") public String getUploadCommandNote() { return this.elt.getNoteContent(ScriptConfiguration.MdaTypes.UPLOADCOMMAND_NOTETYPE_ELT); } - @objid ("eb57da54-2564-43f8-910a-53279ef8d423") + @objid ("a149e878-430e-4c5b-b735-07c73b0a03d7") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -262,7 +259,7 @@ public int hashCode() { *

Note description: *
null

*/ - @objid ("ce5b1474-13e4-4521-a711-260c23e0c54f") + @objid ("40917c0b-9feb-4279-b6c6-6d616a4789b2") public void setConfigureCommandNote(final String value) { this.elt.putNoteContent(ScriptConfiguration.MdaTypes.CONFIGURECOMMAND_NOTETYPE_ELT, value); } @@ -272,7 +269,7 @@ public void setConfigureCommandNote(final String value) { *

Property description: *
null

*/ - @objid ("bd046675-6b0a-41a7-9ad2-0f87d8564c20") + @objid ("00ec512f-f682-4fc8-b802-15e70ec1e0c0") public void setDevopsTool(final String value) { this.elt.putTagValue(ScriptConfiguration.MdaTypes.DEVOPSTOOL_TAGTYPE_ELT, value); } @@ -282,7 +279,7 @@ public void setDevopsTool(final String value) { *

Note description: *
null

*/ - @objid ("96ed4838-b899-40a2-9aa8-820bd74f34da") + @objid ("515c4bf8-d27c-4891-a423-5de941583c2b") public void setDownloadCommandNote(final String value) { this.elt.putNoteContent(ScriptConfiguration.MdaTypes.DOWNLOADCOMMAND_NOTETYPE_ELT, value); } @@ -292,7 +289,7 @@ public void setDownloadCommandNote(final String value) { *

Property description: *
null

*/ - @objid ("a06441d3-4500-479a-8b5e-868fb5e04160") + @objid ("5b0e182f-2243-4c16-be0c-8542c002362d") public void setImageId(final String value) { this.elt.putTagValue(ScriptConfiguration.MdaTypes.IMAGEID_TAGTYPE_ELT, value); } @@ -302,7 +299,7 @@ public void setImageId(final String value) { *

Note description: *
null

*/ - @objid ("e6819dd6-85f2-4717-9713-501668273ed9") + @objid ("57284eff-5940-4121-87f2-04bdd5f65213") public void setInstallCommandNote(final String value) { this.elt.putNoteContent(ScriptConfiguration.MdaTypes.INSTALLCOMMAND_NOTETYPE_ELT, value); } @@ -312,7 +309,7 @@ public void setInstallCommandNote(final String value) { *

Property description: *
null

*/ - @objid ("ea9be075-da1b-4e9f-bba2-d5c1ba9b65ea") + @objid ("af6ee3f6-8d6a-49de-ad97-d790f56ecc7d") public void setOs(final String value) { this.elt.putTagValue(ScriptConfiguration.MdaTypes.OS_TAGTYPE_ELT, value); } @@ -322,7 +319,7 @@ public void setOs(final String value) { *

Note description: *
null

*/ - @objid ("7b6697e3-fb73-444e-bff7-24692112fa4b") + @objid ("b32dc39a-2c2a-4b92-a16e-632234ad4c51") public void setStartCommandNote(final String value) { this.elt.putNoteContent(ScriptConfiguration.MdaTypes.STARTCOMMAND_NOTETYPE_ELT, value); } @@ -332,7 +329,7 @@ public void setStartCommandNote(final String value) { *

Note description: *
null

*/ - @objid ("c7b444ec-a136-49b9-9d10-56fd704229f8") + @objid ("3a7caf85-1aaa-4160-896f-eca5eaea03ec") public void setStopCommandNote(final String value) { this.elt.putNoteContent(ScriptConfiguration.MdaTypes.STOPCOMMAND_NOTETYPE_ELT, value); } @@ -342,7 +339,7 @@ public void setStopCommandNote(final String value) { *

Note description: *
null

*/ - @objid ("fb61fc4e-2564-48ec-900e-1bbe51776107") + @objid ("a91d0ba9-8534-4e09-8e58-93d3a56b5e0c") public void setUpdateCommandNote(final String value) { this.elt.putNoteContent(ScriptConfiguration.MdaTypes.UPDATECOMMAND_NOTETYPE_ELT, value); } @@ -352,7 +349,7 @@ public void setUpdateCommandNote(final String value) { *

Note description: *
null

*/ - @objid ("5505e8a5-e031-451a-9748-9e981ef2753b") + @objid ("8daf863f-f5f3-464c-b2cb-2a5939b76f72") public void setUploadCommandNote(final String value) { this.elt.putNoteContent(ScriptConfiguration.MdaTypes.UPLOADCOMMAND_NOTETYPE_ELT, value); } @@ -365,53 +362,53 @@ public List getChilds() { return result; } - @objid ("622daa71-d503-4a39-b56d-42b8d030a4a4") + @objid ("9a74ec86-2beb-4a90-ab93-8931b6086e5d") protected ScriptConfiguration(final Artifact elt) { super(elt); } @objid ("00dd1668-d91f-4281-aae3-7ec4cef1c015") public static final class MdaTypes { - @objid ("f0ae1ede-df67-469c-93a8-73dc309758d8") + @objid ("0e0adaa5-262f-4553-8ab2-3a992e3a0121") public static Stereotype STEREOTYPE_ELT; - @objid ("92cd0376-366a-4645-b91e-6b4d91f35707") + @objid ("2bc3bac1-921a-4d3b-8338-f4c17b55371c") public static TagType DEVOPSTOOL_TAGTYPE_ELT; - @objid ("9c4ca673-03c8-495f-a27c-f5df61d88f0a") + @objid ("3af0a6e1-dc3e-4965-bac6-6cce6dacce35") public static TagType OS_TAGTYPE_ELT; - @objid ("69d84af5-d53d-459c-a4c6-8d09855874ea") + @objid ("184721ca-95c6-45b2-a920-f20d958bdd45") public static TagType IMAGEID_TAGTYPE_ELT; - @objid ("64eac23f-07a3-4793-9ecb-4fbb3f8b393d") + @objid ("02b421d4-a7d0-4413-ba7d-93669fba6202") public static NoteType UPLOADCOMMAND_NOTETYPE_ELT; - @objid ("4adb5e49-755c-47c9-b8d1-0621e124e8ec") + @objid ("898ef401-8209-47fa-a5e5-b5fbaf5dd9d7") public static NoteType INSTALLCOMMAND_NOTETYPE_ELT; - @objid ("8194436f-6abd-48af-a1ec-0b548b1a7bce") + @objid ("edfa868c-8387-4c23-8073-789a042ddcca") public static NoteType STARTCOMMAND_NOTETYPE_ELT; - @objid ("6bd7f1f9-33c1-4111-b3c9-ede6d1266e01") + @objid ("569b9167-52c8-4e05-abc6-49c3d5646843") public static NoteType STOPCOMMAND_NOTETYPE_ELT; - @objid ("263b4e0d-f1fe-4cc2-8e99-3326b3ebbb12") + @objid ("7f17f6c4-f184-438f-a16c-4527baae8101") public static NoteType DOWNLOADCOMMAND_NOTETYPE_ELT; - @objid ("40a5a04e-b715-48e2-8220-59a8b45baf22") + @objid ("32e18cfe-81dc-444a-abc8-6c8430a3aaa9") public static NoteType CONFIGURECOMMAND_NOTETYPE_ELT; - @objid ("af15939a-ac29-4bb1-bc17-ba437e0594fe") + @objid ("8f4d104b-d604-489f-b7bd-f64d18ba3648") public static NoteType UPDATECOMMAND_NOTETYPE_ELT; - @objid ("0309c795-564c-4ddd-ba53-cc0b0639d423") + @objid ("41671b8b-4d78-46bb-aa2d-7e2d01e8df06") private static Stereotype MDAASSOCDEP; - @objid ("9e9c4779-e5aa-4d74-a9c6-8dd5163ce65b") + @objid ("ebfdb240-43d7-47a2-a638-71545dd82ff1") private static TagType MDAASSOCDEP_ROLE; - @objid ("ef7f69de-38dd-42f0-9225-9139d1d77f5e") + @objid ("884d7d69-1eb6-4192-87be-2b63b12d0127") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "451f4ee3-f056-4311-b405-23e7eae6d020"); DEVOPSTOOL_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "a60944a6-52f0-4a9f-9a40-7d31930f312b"); @@ -429,11 +426,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 c38825a6..be994ad3 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact; @@ -17,6 +17,8 @@ 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; @@ -39,13 +41,13 @@ */ @objid ("db495a2b-edb1-4bc6-b8dc-73585d54cb3e") public class ServerlessConfiguration extends Configuration { - @objid ("47455acb-c2cc-48b9-ad2f-5b5ca9848c37") + @objid ("fff97730-586f-4548-b260-66136ba4c617") public static final String STEREOTYPE_NAME = "ServerlessConfiguration"; - @objid ("e3f6f640-22d8-4b46-9101-da78bc23b7e7") + @objid ("99aa8d37-e09f-4219-8204-3802716df264") public static final String BINARYCODEURL_TAGTYPE = "binaryCodeURL"; - @objid ("f8f54ff6-a017-46d7-953a-75cefa1851d3") + @objid ("b37c8c79-c8b2-4746-b431-5a06d015b86d") public static final String CONTINUOUSDEPLOYMENT_TAGTYPE = "continuousDeployment"; /** @@ -56,7 +58,7 @@ public class ServerlessConfiguration extends Configuration { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("aded42ba-36aa-4476-b9a9-111399eb3374") + @objid ("8b46c97c-96bd-47ab-9d9a-173203df081b") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Artifact) && ((Artifact) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, ServerlessConfiguration.STEREOTYPE_NAME)); } @@ -66,7 +68,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link ServerlessConfiguration} proxy on the created {@link Artifact}. */ - @objid ("5984be25-b00e-40f7-b2bd-c44c115dc7f6") + @objid ("ca0cc31d-58cc-45f6-b77a-b7ad2748917a") public static ServerlessConfiguration create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Artifact"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, ServerlessConfiguration.STEREOTYPE_NAME); @@ -74,47 +76,46 @@ 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. */ - @objid ("0eb4cd34-6eec-49ef-b1b6-121d97d7f8e6") + @objid ("1363f701-8e97-417a-a97a-5f1b6e016660") public static ServerlessConfiguration instantiate(final Artifact obj) { return ServerlessConfiguration.canInstantiate(obj) ? new ServerlessConfiguration(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("8d4a26e6-5292-412f-9f47-0c7425ed0804") + @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 ("9895aca8-67a4-4c39-b87b-90cae2c34d32") + @objid ("224950c3-655c-4653-9885-66a4438811a1") public void addEnvironmentConfigParams(final AttributeAttribute obj) { if (obj!=null) ((Artifact) this.elt).getOwnedAttribute().add(obj.getElement()); } - @objid ("bc58cf56-7702-4574-be1c-60f48e975f03") + @objid ("ebcde960-083a-4d58-a652-170ecfe74be4") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -135,7 +136,7 @@ public boolean equals(final Object obj) { *

Property description: *
null

*/ - @objid ("24cd373a-3873-4907-b68f-e651203e359d") + @objid ("657b0cd9-0f6a-4fb9-bedf-4da7d9d73cc7") public String getBinaryCodeURL() { return this.elt.getTagValue(ServerlessConfiguration.MdaTypes.BINARYCODEURL_TAGTYPE_ELT); } @@ -144,22 +145,22 @@ public String getBinaryCodeURL() { * Get the value to the 'buildConfiguration' role.

* Role description: * null + * */ - @objid ("553547e8-4313-4af2-a2bd-1f2c1075103a") + @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 ("65a7f350-a96a-48c8-8206-0fab15dbe032") + @objid ("bf720c40-700a-461c-bcb3-c496afbc5cdf") @Override public Artifact getElement() { return (Artifact)super.getElement(); @@ -169,18 +170,19 @@ public Artifact getElement() { * Get the values of the 'environmentConfigParams' role.

* Role description: * null + * */ - @objid ("13785b2b-d84c-4af7-92f9-6f304874d096") + @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); } @@ -188,17 +190,18 @@ public List getEnvironmentConfigParams() { * Get the value to the 'eventConfiguration' role.

* Role description: * null + * */ - @objid ("54f9a30f-2c65-48b0-8627-f72ef1bc96ff") + @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 ("41decfe9-46c2-4b1a-9a3a-d648557179d6") + @objid ("b69b33b0-b62a-4241-b3e0-a0b9410d70b2") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -209,7 +212,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("36f0d3b9-3554-419e-943b-550c2a34d4c2") + @objid ("0a351585-48ab-4602-8e36-e0d1ec19fbf6") public boolean isContinuousDeployment() { return this.elt.isTagged(ServerlessConfiguration.MdaTypes.CONTINUOUSDEPLOYMENT_TAGTYPE_ELT); } @@ -218,8 +221,9 @@ public boolean isContinuousDeployment() { * Remove a value from the 'environmentConfigParams' role.

* Role description: * null + * */ - @objid ("1183da09-dead-4463-beb9-b9b7f9134fb9") + @objid ("6b3c53c5-d4c7-49c6-afbe-b9a852ad5925") public boolean removeEnvironmentConfigParams(final AttributeAttribute obj) { return (obj!=null)? ((Artifact) this.elt).getOwnedAttribute().remove(obj.getElement()) : false; } @@ -229,7 +233,7 @@ public boolean removeEnvironmentConfigParams(final AttributeAttribute obj) { *

Property description: *
null

*/ - @objid ("e7b03f63-cd70-4097-abf5-2d82c1bc4813") + @objid ("37e4eb79-cf36-4af2-9da9-6846c84551ff") public void setBinaryCodeURL(final String value) { this.elt.putTagValue(ServerlessConfiguration.MdaTypes.BINARYCODEURL_TAGTYPE_ELT, value); } @@ -238,8 +242,9 @@ public void setBinaryCodeURL(final String value) { * Set the value of the 'buildConfiguration' role.

* Role description: * null + * */ - @objid ("54f4a85e-f4fd-4c70-a019-6d64b417ec92") + @objid ("98c83871-49f8-437f-a7e2-816795618565") public void setBuildConfiguration(final BuildConfiguration obj) { // Remove existing BuildConfigurations for (Artifact e : ((Artifact) this.elt).getOwnedElement(Artifact.class)) { @@ -258,7 +263,7 @@ public void setBuildConfiguration(final BuildConfiguration obj) { *

Property description: *
null

*/ - @objid ("1eef6ce0-ca0c-4988-836e-df36587be982") + @objid ("c3f82738-7d0e-400f-beee-af820f83e7ef") public void setContinuousDeployment(final boolean value) { if (value) CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createTaggedValue(ServerlessConfiguration.MdaTypes.CONTINUOUSDEPLOYMENT_TAGTYPE_ELT, this.elt); @@ -270,8 +275,9 @@ public void setContinuousDeployment(final boolean value) { * Set the value of the 'eventConfiguration' role.

* Role description: * null + * */ - @objid ("e72149dc-b6c3-4471-ace5-224f31c3cd39") + @objid ("fc82bf4e-0626-4374-b596-7e0bcbd70d52") public void setEventConfiguration(final EventConfiguration obj) { // Remove existing EventConfigurations for (Artifact e : ((Artifact) this.elt).getOwnedElement(Artifact.class)) { @@ -293,29 +299,29 @@ public List getChilds() { return result; } - @objid ("7e6a4739-027b-4aec-bb37-1296124d7745") + @objid ("e72d7353-bfc2-4af6-a815-7f6e1a7612c5") protected ServerlessConfiguration(final Artifact elt) { super(elt); } @objid ("96beea79-8c81-4296-8902-a428d2abe0d8") public static final class MdaTypes { - @objid ("67ef8b61-1258-49a3-a2b2-3e6aa875d69b") + @objid ("de2d9922-47c2-4be4-afa9-f0a57e698620") public static Stereotype STEREOTYPE_ELT; - @objid ("57861758-97d7-4fe8-bb04-ff426022c825") + @objid ("d556945f-9bdd-4953-b932-cfd30ebb7138") public static TagType BINARYCODEURL_TAGTYPE_ELT; - @objid ("2bf33ed1-412a-4abb-b992-7ee6d4fd6048") + @objid ("5eedb254-4eef-4747-8d21-086bc948f777") public static TagType CONTINUOUSDEPLOYMENT_TAGTYPE_ELT; - @objid ("f39ae6a2-9543-44a3-a550-7ad2bc2aa7f3") + @objid ("fab7b73c-3753-431f-a1b3-10d1fb117d56") private static Stereotype MDAASSOCDEP; - @objid ("1ba8f86b-fdb8-405a-b1b2-7ed5fbe7dbd5") + @objid ("9e9b8345-a595-4747-aa2b-20bc34986b6f") private static TagType MDAASSOCDEP_ROLE; - @objid ("116ba4c4-d0c4-43e8-b228-fe3b91e9bcba") + @objid ("a9992914-84ab-4757-b1cc-49960c424878") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "9f4ca31f-e397-4c28-b2d2-031f838cfe99"); BINARYCODEURL_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "a9a8e449-cba1-4eb1-86c5-d6776d809a5f"); @@ -325,11 +331,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 b7bd4aa3..28e5fb48 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.deploymentmodel.standard.class_; @@ -45,7 +45,7 @@ */ @objid ("e40108e4-3b57-462c-a46e-00c47710d45a") public class RequirementSet extends FeatureClass { - @objid ("e28dbbf1-d638-4c6e-9356-e794078056ee") + @objid ("31e15449-d773-421b-a4a8-855ffe842eb9") public static final String STEREOTYPE_NAME = "RequirementSet"; /** @@ -56,7 +56,7 @@ public class RequirementSet extends FeatureClass { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("b5f21583-298a-490e-a03f-2e65da362d35") + @objid ("0754e167-c994-448e-b416-a1e9fb6b362f") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, RequirementSet.STEREOTYPE_NAME)); } @@ -66,7 +66,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link RequirementSet} proxy on the created {@link Class}. */ - @objid ("3e883a25-f63f-4b93-864b-ee3645d8cddd") + @objid ("28839321-43b0-4153-beb1-1789f5da49e2") public static RequirementSet create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, RequirementSet.STEREOTYPE_NAME); @@ -74,36 +74,34 @@ 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. */ - @objid ("9a9f7d31-8705-4bbe-b7d2-e3796a929bc2") + @objid ("7c252015-60a7-4220-912e-8cdcca00c1d7") public static RequirementSet instantiate(final Class obj) { return RequirementSet.canInstantiate(obj) ? new RequirementSet(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("5387e77f-d831-44bb-b1d0-b757a696b3f8") + @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 ("d57c110e-bc15-475b-bf9c-937fe393994a") + @objid ("2d720d69-19f0-44c3-80c3-358ba10b4558") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -120,11 +118,10 @@ 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 ("b243e0cc-76b0-4121-b999-33208339e18f") + @objid ("9ac8bd96-0841-4947-9d11-4493e76a0287") @Override public Class getElement() { return (Class)super.getElement(); @@ -134,8 +131,9 @@ public Class getElement() { * Get the value of the 'horizontalScaleRequirement' role.

* Role description: * null + * */ - @objid ("422ff1ab-10d8-4d5a-b684-3e56997f0a48") + @objid ("47328c53-0a62-4a31-a058-7cd9be486393") public HorizontalScaleRequirement getHorizontalScaleRequirement() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(RequirementSet.MdaTypes.MDAASSOCDEP) @@ -151,8 +149,9 @@ public HorizontalScaleRequirement getHorizontalScaleRequirement() { * Get the value of the 'imageRequirement' role.

* Role description: * null + * */ - @objid ("54047708-d64d-4c93-927b-f64d20b1b52a") + @objid ("65ceb2cd-0504-4f6a-b769-12b95d557d94") public ImageRequirement getImageRequirement() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(RequirementSet.MdaTypes.MDAASSOCDEP) @@ -168,8 +167,9 @@ public ImageRequirement getImageRequirement() { * Get the value of the 'locationRequirement' role.

* Role description: * null + * */ - @objid ("5dc4f973-39f7-4406-b10c-0685c97aeac6") + @objid ("d7e1a073-386d-4920-bdba-633e314089c4") public LocationRequirement getLocationRequirement() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(RequirementSet.MdaTypes.MDAASSOCDEP) @@ -185,8 +185,9 @@ public LocationRequirement getLocationRequirement() { * Get the value of the 'osRequirement' role.

* Role description: * null + * */ - @objid ("760fd977-960c-4bda-afa4-c66e85727229") + @objid ("6c87a157-2b14-46e0-a7f9-e56a19aef5e1") public OSRequirement getOsRequirement() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(RequirementSet.MdaTypes.MDAASSOCDEP) @@ -202,8 +203,9 @@ public OSRequirement getOsRequirement() { * Get the value of the 'paasRequirement' role.

* Role description: * null + * */ - @objid ("432604f6-8ab9-4a10-b6c3-68f5c20b9088") + @objid ("7e27ff7b-40c5-407a-9b22-d53ea73544b1") public PaaSRequirement getPaasRequirement() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(RequirementSet.MdaTypes.MDAASSOCDEP) @@ -219,8 +221,9 @@ public PaaSRequirement getPaasRequirement() { * Get the value of the 'providerRequirement' role.

* Role description: * null + * */ - @objid ("d97c6b38-18ff-4e6c-8848-c18639b7efdd") + @objid ("c6d7ae54-d5f1-4b84-8396-fdec1b452d5f") public ProviderRequirement getProviderRequirement() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(RequirementSet.MdaTypes.MDAASSOCDEP) @@ -236,8 +239,9 @@ public ProviderRequirement getProviderRequirement() { * Get the value of the 'resourceRequirement' role.

* Role description: * null + * */ - @objid ("9d57ce25-7ed8-40d4-93f9-b91cd4b1b84e") + @objid ("54da01a1-b908-4f4c-a72c-8a62b65e2e7d") public ResourceRequirement getResourceRequirement() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(RequirementSet.MdaTypes.MDAASSOCDEP) @@ -253,8 +257,9 @@ public ResourceRequirement getResourceRequirement() { * Get the value of the 'securityRequirement' role.

* Role description: * null + * */ - @objid ("9c73124f-2a7c-4248-81c6-8f841184d41e") + @objid ("ba2cd9f9-0ba7-40d9-b88b-d0962ef95f70") public SecurityRequirement getSecurityRequirement() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(RequirementSet.MdaTypes.MDAASSOCDEP) @@ -270,8 +275,9 @@ public SecurityRequirement getSecurityRequirement() { * Get the value of the 'verticalScaleRequirement' role.

* Role description: * null + * */ - @objid ("79ac42ff-5dac-4be2-90b5-ae0b5de2432d") + @objid ("147c925a-5f66-4a5b-90cc-dd154989ae19") public VerticalScaleRequirement getVerticalScaleRequirement() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(RequirementSet.MdaTypes.MDAASSOCDEP) @@ -283,7 +289,7 @@ public VerticalScaleRequirement getVerticalScaleRequirement() { return null; } - @objid ("bb54277f-a6e3-43a4-81a8-4bae1ab478d9") + @objid ("72ed9904-3a33-47a0-b0e5-a1d9ec27d866") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -293,8 +299,9 @@ public int hashCode() { * Set the value of the 'horizontalScaleRequirement' role.

* Role description: * null + * */ - @objid ("52b38e0c-641e-40a4-8e2a-e1dc9ef64775") + @objid ("502c59a2-8047-42f7-99b1-57e75990757d") public void setHorizontalScaleRequirement(final HorizontalScaleRequirement obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -318,8 +325,9 @@ public void setHorizontalScaleRequirement(final HorizontalScaleRequirement obj) * Set the value of the 'imageRequirement' role.

* Role description: * null + * */ - @objid ("eab4952d-eb77-413c-ab95-54ddda17442a") + @objid ("36060776-2def-4425-bd6c-c20e0b274466") public void setImageRequirement(final ImageRequirement obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -343,8 +351,9 @@ public void setImageRequirement(final ImageRequirement obj) { * Set the value of the 'locationRequirement' role.

* Role description: * null + * */ - @objid ("f61b462d-6b62-4c04-a642-85832bb3eae4") + @objid ("675a35fe-9b26-4dc8-9e96-3f6a76ba1f9f") public void setLocationRequirement(final LocationRequirement obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -368,8 +377,9 @@ public void setLocationRequirement(final LocationRequirement obj) { * Set the value of the 'osRequirement' role.

* Role description: * null + * */ - @objid ("72ccb650-7574-4d1f-982f-63a418a69b3e") + @objid ("145a58c1-1f8e-4bce-9908-3f255b1fa980") public void setOsRequirement(final OSRequirement obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -393,8 +403,9 @@ public void setOsRequirement(final OSRequirement obj) { * Set the value of the 'paasRequirement' role.

* Role description: * null + * */ - @objid ("cfef9f13-8888-409f-9ae7-d3d2e3779725") + @objid ("e338bef4-c9f1-4411-9686-596d5ff61b9d") public void setPaasRequirement(final PaaSRequirement obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -418,8 +429,9 @@ public void setPaasRequirement(final PaaSRequirement obj) { * Set the value of the 'providerRequirement' role.

* Role description: * null + * */ - @objid ("bd57334c-a64f-4f2a-9b30-11528e6ee029") + @objid ("93d026fc-4eb2-463f-b03d-227e7f699d42") public void setProviderRequirement(final ProviderRequirement obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -443,8 +455,9 @@ public void setProviderRequirement(final ProviderRequirement obj) { * Set the value of the 'resourceRequirement' role.

* Role description: * null + * */ - @objid ("1e908a2b-4e8b-458f-b36a-b0a06546a68f") + @objid ("362d2a33-d51d-43a0-a9e2-2f141d9d40c1") public void setResourceRequirement(final ResourceRequirement obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -468,8 +481,9 @@ public void setResourceRequirement(final ResourceRequirement obj) { * Set the value of the 'securityRequirement' role.

* Role description: * null + * */ - @objid ("c8c11292-b747-4fb1-9292-e490c368b80c") + @objid ("0d20b8f9-9bef-4856-90d2-1bd16e1f8af8") public void setSecurityRequirement(final SecurityRequirement obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -493,8 +507,9 @@ public void setSecurityRequirement(final SecurityRequirement obj) { * Set the value of the 'verticalScaleRequirement' role.

* Role description: * null + * */ - @objid ("ceb90145-84c0-4f9d-a222-d59cb684726b") + @objid ("b4b6e2d2-c4af-4fd3-8936-4b6f56502c1b") public void setVerticalScaleRequirement(final VerticalScaleRequirement obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -522,23 +537,23 @@ public List getChilds() { return result; } - @objid ("fef3d74d-8cd1-43c6-b115-ac65ba62d1ba") + @objid ("b0fda1d7-718b-4a7c-9fd7-e2b19675b9c6") protected RequirementSet(final Class elt) { super(elt); } @objid ("56f9723e-57a0-4b68-946b-a3f85b1617ce") public static final class MdaTypes { - @objid ("70e0fc8c-521a-4ea3-b73f-4c42e725d35a") + @objid ("0e2d0f9f-413a-44a2-a56d-a26e18365ec6") public static Stereotype STEREOTYPE_ELT; - @objid ("3fca2dc8-3d4f-4402-9531-8ae662ae3318") + @objid ("63101697-498e-4e86-8f06-d4013b9ac0bc") private static Stereotype MDAASSOCDEP; - @objid ("ece5870c-7fa8-4476-b0a0-9076895bfc56") + @objid ("f3eaa1ee-920a-43f9-9e6c-8b731d5ebbbb") private static TagType MDAASSOCDEP_ROLE; - @objid ("afab1d4c-e825-406f-ad66-b2f443450f89") + @objid ("10a77201-14c9-43b1-9788-ace8d4f783cf") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "513b1519-9560-4cd7-9dd4-f071d5fe54e8"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -546,11 +561,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 9dbc3691..76f5c7ad 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.deploymentmodel.standard.component; @@ -45,7 +45,7 @@ */ @objid ("a91a167f-9c29-4c56-bc2c-ba8458b6d7fa") public abstract class CamelComponent extends FeatureClass { - @objid ("6d959f26-0511-4c23-a12e-4d36b303e4aa") + @objid ("4aa4d925-a0e3-4f1c-9f04-dfb54638ad43") public static final String STEREOTYPE_NAME = "CamelComponent"; /** @@ -56,7 +56,7 @@ public abstract class CamelComponent extends FeatureClass { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("de1ba098-ffee-4235-a379-bb4a47c0a362") + @objid ("3eb9c875-276e-4ffa-b8e9-7dfd6eb8ccd7") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Component) && ((Component) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, CamelComponent.STEREOTYPE_NAME)); } @@ -70,8 +70,9 @@ public static CamelComponent instantiate(final Component obj) { * Add a value to the 'configurations' role.

* Role description: * null + * */ - @objid ("9358446b-de84-4097-947a-af7d9dee17fb") + @objid ("5868afa6-cf04-4213-9281-eec5a2aa1e34") public void addConfigurations(final Configuration obj) { if (obj!=null) ((Component) this.elt).getOwnedElement().add(obj.getElement()); @@ -81,8 +82,9 @@ public void addConfigurations(final Configuration obj) { * Add a value to the 'providedCommunications' role.

* Role description: * null + * */ - @objid ("85779203-1481-4d56-a193-ca1be71db8df") + @objid ("a7f6bd61-528f-456c-8de9-0010f6ef72cd") public void addProvidedCommunications(final CommunicationPort obj) { if (obj!=null) ((Component) this.elt).getInternalStructure().add(obj.getElement()); @@ -92,14 +94,15 @@ public void addProvidedCommunications(final CommunicationPort obj) { * Add a value to the 'providedHosts' role.

* Role description: * null + * */ - @objid ("cb037098-ede2-4fd7-b304-444604a0895b") + @objid ("d7e3515f-9070-4234-80b3-9cd0f0e85dcb") public void addProvidedHosts(final HostingPort obj) { if (obj!=null) ((Component) this.elt).getInternalStructure().add(obj.getElement()); } - @objid ("485e0052-ca64-466f-8904-d62d17ae66b4") + @objid ("d7f9207f-c699-47b1-88fd-4c92ca2319ce") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -119,29 +122,29 @@ public boolean equals(final Object obj) { * Get the values of the 'configurations' role.

* Role description: * null + * */ - @objid ("93c2fe5f-b1cd-46c7-b93a-bf40b1728cd7") + @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 ("1333f0e7-252c-4251-a397-a3b96f32afb4") + @objid ("12cb8d4b-3342-4bfc-bc7e-fc8c576e6c19") @Override public Component getElement() { return (Component)super.getElement(); @@ -151,14 +154,15 @@ public Component getElement() { * Get the values of the 'providedCommunications' role.

* Role description: * null + * */ - @objid ("28cc320d-7dbb-4227-afaa-eee5d645de0a") + @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); } @@ -166,18 +170,19 @@ public List getProvidedCommunications() { * Get the values of the 'providedHosts' role.

* Role description: * null + * */ - @objid ("21375f4c-a28a-4a9f-afa6-3a69dd768157") + @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); } - @objid ("6c176e0d-9104-4c79-84c6-13586bb33798") + @objid ("8e5e0a1d-5c1b-4dcc-b0de-79d045ccf409") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -187,8 +192,9 @@ public int hashCode() { * Remove a value from the 'configurations' role.

* Role description: * null + * */ - @objid ("13fdd14e-c9ae-4636-8bdc-73cd9ba6d748") + @objid ("6389fa03-43d0-4a01-b248-39f052005c5d") public boolean removeConfigurations(final Configuration obj) { return (obj!=null)? ((Component) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -197,8 +203,9 @@ public boolean removeConfigurations(final Configuration obj) { * Remove a value from the 'providedCommunications' role.

* Role description: * null + * */ - @objid ("539577db-47a5-4a7b-a51a-0d9226c36e9a") + @objid ("058a259f-09ab-4639-a423-8228ce07747d") public boolean removeProvidedCommunications(final CommunicationPort obj) { return (obj!=null)? ((Component) this.elt).getInternalStructure().remove(obj.getElement()) : false; } @@ -207,8 +214,9 @@ public boolean removeProvidedCommunications(final CommunicationPort obj) { * Remove a value from the 'providedHosts' role.

* Role description: * null + * */ - @objid ("e0d4cb87-de46-42bd-93b5-7eea3480e68f") + @objid ("d0eb5811-c24f-4f36-b5a7-48af5530c7fe") public boolean removeProvidedHosts(final HostingPort obj) { return (obj!=null)? ((Component) this.elt).getInternalStructure().remove(obj.getElement()) : false; } @@ -222,23 +230,23 @@ public List getChilds() { return result; } - @objid ("15c9b6b6-8647-4878-b716-da45e15b9efa") + @objid ("5dcf84c5-3d49-486a-9097-4be62f611359") protected CamelComponent(final Component elt) { super(elt); } @objid ("b119b6ad-b4ac-465e-9b4b-68e0a2014905") public static final class MdaTypes { - @objid ("581fb9bf-51c8-4dc2-aa9b-f1ac4e374ad3") + @objid ("7ef105ac-2322-4df4-ab52-a6fa4a242a24") public static Stereotype STEREOTYPE_ELT; - @objid ("9fd51d61-0ad4-421c-af09-3be1ed6c9df7") + @objid ("9c48a22c-fe1b-4901-887c-44e434c33983") private static Stereotype MDAASSOCDEP; - @objid ("0582d9c6-d8a0-4278-9625-eb693deac467") + @objid ("d48f1943-156e-49ad-847a-7e6665367694") private static TagType MDAASSOCDEP_ROLE; - @objid ("4776c7c0-e37d-4eaf-8afc-3d13f46e262b") + @objid ("b125578c-11ed-4930-9367-5d65b7ac6e1b") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "abb7159a-fde4-40d9-8e5e-8f9ad94f2b31"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -246,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/deploymentmodel/standard/component/Container.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/component/Container.java index 4284f81e..5d06b81c 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.deploymentmodel.standard.component; @@ -38,7 +38,7 @@ */ @objid ("15fbf220-8ef8-4f00-8ef6-eabbcf7cf108") public class Container extends CamelComponent { - @objid ("00de32ac-a781-436c-a353-f8ecceae7343") + @objid ("12c2108b-d110-428b-ad07-1a674fb4d376") public static final String STEREOTYPE_NAME = "Container"; /** @@ -49,7 +49,7 @@ public class Container extends CamelComponent { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("2a19fe7b-43e2-4545-a57c-cc1f2df079ca") + @objid ("321ab2ec-f3b8-4acf-9f3b-0fc2a04f0898") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Component) && ((Component) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, Container.STEREOTYPE_NAME)); } @@ -59,7 +59,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link Container} proxy on the created {@link Component}. */ - @objid ("71fba0b3-0dca-408b-93ee-9b885fc5edb9") + @objid ("2d920585-a979-4a76-87f0-04b986744e60") public static Container create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Component"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, Container.STEREOTYPE_NAME); @@ -67,41 +67,40 @@ 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. */ - @objid ("aaf74e97-50b6-4272-95e7-46d1fb85da95") + @objid ("c292dc62-1a7c-4b2b-9072-181258a40585") public static Container instantiate(final Component obj) { return Container.canInstantiate(obj) ? new Container(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("dffbbaa7-ceb2-421f-9e7e-a4592c301cec") + @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 ("313e5595-4c04-40b2-85f4-fd430a0caa95") + @objid ("5d865a83-8428-43d8-90da-dff850590b65") public void addRequiredCommunications(final CommunicationPort obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -111,7 +110,7 @@ public void addRequiredCommunications(final CommunicationPort obj) { } } - @objid ("35bcae9d-8fc5-4ec0-9bd1-2ab3a8d21e46") + @objid ("3163f1fc-6e50-4451-81a2-c13cd0a1cca5") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -128,11 +127,10 @@ 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 ("922caa3a-1fe1-4de5-89c6-2c6087f64a09") + @objid ("a24f32f1-e977-44db-a5b2-e12853ba7857") @Override public Component getElement() { return (Component)super.getElement(); @@ -142,8 +140,9 @@ public Component getElement() { * Get the values of the 'requiredCommunications' role.

* Role description: * null + * */ - @objid ("11dcbaf7-a761-4ade-a614-fd22f946ebc4") + @objid ("c0542ea8-3ef8-4786-a660-6d6c28c1e197") public List getRequiredCommunications() { List results = new ArrayList<>(); for (Dependency d : this.elt.getDependsOnDependency()) { @@ -160,17 +159,18 @@ public List getRequiredCommunications() { * Get the value to the 'requiredHost' role.

* Role description: * null + * */ - @objid ("08e4524a-9b9b-452e-a6fe-986d00649389") + @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 ("ebf2b385-2696-4ef6-9bfd-76d6f69e05a0") + @objid ("abbf4050-7c39-4886-9add-5c87427a8709") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -180,12 +180,13 @@ public int hashCode() { * Remove a value from the 'requiredCommunications' role.

* Role description: * null + * */ - @objid ("8eea3020-0a77-41ab-8e15-f2a14a313602") + @objid ("97a1a5bb-b20d-43a1-a58d-94f9d726e2fa") public boolean removeRequiredCommunications(final CommunicationPort obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getDependsOnDependency())) { - if (d.isStereotyped(Container.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(Container.MdaTypes.MDAASSOCDEP_ROLE), "")) + if (d.isStereotyped(Container.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(Container.MdaTypes.MDAASSOCDEP_ROLE), "requiredCommunications")) if (Objects.equals(d.getDependsOn(), obj.getElement())) { d.delete(); return true; @@ -199,8 +200,9 @@ public boolean removeRequiredCommunications(final CommunicationPort obj) { * Set the value of the 'requiredHost' role.

* Role description: * null + * */ - @objid ("06d021c7-615e-4ea0-90c7-4e9f31c4ebf4") + @objid ("c21bb1d2-b8ee-45e5-9952-7098612fb969") public void setRequiredHost(final HostingPort obj) { // Remove existing HostingPorts for (Port e : ((Component) this.elt).getInternalStructure(Port.class)) { @@ -222,23 +224,23 @@ public List getChilds() { return result; } - @objid ("590b1b09-a8b2-4082-966a-3312a3f8c655") + @objid ("15f4570d-b8c2-4534-a47e-56df95d899c0") protected Container(final Component elt) { super(elt); } @objid ("25652007-93fc-4904-a84c-cba4526236e3") public static final class MdaTypes { - @objid ("bed99451-1a53-4fdc-92e2-48bb13d7822f") + @objid ("dfc6aff1-c628-44a9-83d5-ca012ec2eb4f") public static Stereotype STEREOTYPE_ELT; - @objid ("716ab076-8e29-4ac3-b5fe-00316b493aee") + @objid ("0c03ec5b-8cfd-4256-8029-659375a889a4") private static Stereotype MDAASSOCDEP; - @objid ("6df16bb9-30aa-430d-bb5c-e7a20e8ac6ba") + @objid ("03d3faf6-1de8-47e1-835d-124a763ddc49") private static TagType MDAASSOCDEP_ROLE; - @objid ("563623f1-2a42-4813-9b87-d4d8e6a6e979") + @objid ("888e2f82-3b85-41e3-b006-8069cfd04dd4") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "ad6f0ae5-0d16-43f4-b514-9a46eea51950"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -246,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/deploymentmodel/standard/component/PaaS.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/component/PaaS.java index 85900e3c..ab81aa47 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.deploymentmodel.standard.component; @@ -35,7 +35,7 @@ */ @objid ("de5fbae9-da70-4f9b-a638-28a7fd9062a1") public class PaaS extends CamelComponent { - @objid ("aa529901-c58d-404f-b8f6-e23e2aedb280") + @objid ("20cc5a2e-0168-42e5-bbb9-286765d2f05a") public static final String STEREOTYPE_NAME = "PaaS"; /** @@ -46,7 +46,7 @@ public class PaaS extends CamelComponent { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("f5518a96-8f3d-47e7-b339-f73d48edd93c") + @objid ("cbf46383-65db-41c9-81ed-02034560fba4") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Component) && ((Component) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, PaaS.STEREOTYPE_NAME)); } @@ -56,7 +56,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link PaaS} proxy on the created {@link Component}. */ - @objid ("9e3e90b2-bf75-4fb1-ae50-0b6c06c36c0c") + @objid ("e838ef28-92b8-43e3-b5d8-650bc4664a66") public static PaaS create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Component"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, PaaS.STEREOTYPE_NAME); @@ -64,36 +64,34 @@ 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. */ - @objid ("617063ba-8eca-4809-8987-2b0e7de65ed6") + @objid ("b164ce84-13ef-4074-b96f-0cde93cb37e8") public static PaaS instantiate(final Component obj) { return PaaS.canInstantiate(obj) ? new PaaS(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("c3295508-b5b8-415e-ae9e-d1212ad23396") + @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 ("c0834f2d-d1c7-4652-ab39-b4aaec533af9") + @objid ("4317bffd-a05a-425a-b65e-cb8925d79933") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -110,17 +108,16 @@ 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 ("25e08457-f698-44b5-bab1-1a3f87e36a91") + @objid ("8144604d-f270-4b2f-a355-543956e5402c") @Override public Component getElement() { return (Component)super.getElement(); } - @objid ("4be05cbd-009f-4d04-b53c-72251b8cf50b") + @objid ("ef67a7c9-5d0c-46f5-88e3-fb8cda642acb") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -134,23 +131,23 @@ public List getChilds() { return result; } - @objid ("c80d11dc-e483-4a08-8076-906ec2edb54f") + @objid ("dc50fed9-e825-4255-9901-9fea176ffcb3") protected PaaS(final Component elt) { super(elt); } @objid ("ebb4dcf9-28ac-415f-b6ab-19e64a2fd1da") public static final class MdaTypes { - @objid ("b7dbe9fa-7a44-42f3-b813-fbecd0d0f555") + @objid ("e88afb9c-8e13-463d-8785-2eb036aa61e4") public static Stereotype STEREOTYPE_ELT; - @objid ("3f006148-063a-4b7f-a75d-4bf2a7e046de") + @objid ("e7268fe8-65f9-4259-9266-f3d681030586") private static Stereotype MDAASSOCDEP; - @objid ("e9d70e56-5ac5-48ce-b1db-75617a2318d1") + @objid ("c2a0b3f6-67d1-49f7-839e-f222472af7f0") private static TagType MDAASSOCDEP_ROLE; - @objid ("b4a01420-8290-47f6-8624-9b6e053edeb3") + @objid ("02f86b70-808d-4128-a15b-0106cf7663c2") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "d0c33c39-75b6-489b-be58-97166b99012b"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -158,11 +155,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 cdb0da1f..9541e938 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.deploymentmodel.standard.component; @@ -42,13 +42,13 @@ */ @objid ("7665f659-8d0d-492d-9074-064922996094") public class SoftwareComponent extends CamelComponent { - @objid ("27ae0591-4f4e-4c54-b0fd-3a37a415bd93") + @objid ("76f7250a-54d0-4b1a-8661-3645e621df6e") public static final String STEREOTYPE_NAME = "SoftwareComponent"; - @objid ("bb47cdef-3ca8-4e96-876d-2ef8ef79668c") + @objid ("6a81b3cd-e6b1-40e4-84d1-69cc25b1bb00") public static final String COINSTANCEHOSTING_TAGTYPE = "coInstanceHosting"; - @objid ("4b72ca3d-2655-4de0-ab8d-f2b8d141f006") + @objid ("342ff6fa-b53c-4584-89fb-3a18cee426e7") public static final String LONGLIVED_TAGTYPE = "longLived"; /** @@ -59,7 +59,7 @@ public class SoftwareComponent extends CamelComponent { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("b9edba8c-72be-4dbf-a5aa-d4454027a2d4") + @objid ("aa0c88d6-a3fb-415f-af5d-43ca0815be1d") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Component) && ((Component) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, SoftwareComponent.STEREOTYPE_NAME)); } @@ -69,7 +69,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link SoftwareComponent} proxy on the created {@link Component}. */ - @objid ("f40f66e0-98bf-4673-b228-f842c05848e1") + @objid ("e01f7b9b-ee13-4a3b-bbce-f7263f163a40") public static SoftwareComponent create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Component"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, SoftwareComponent.STEREOTYPE_NAME); @@ -77,41 +77,40 @@ 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. */ - @objid ("6edb8551-b0ce-4337-903b-dd581c56af61") + @objid ("ae98d955-a3f1-4e71-bc00-327e4a620ddb") public static SoftwareComponent instantiate(final Component obj) { return SoftwareComponent.canInstantiate(obj) ? new SoftwareComponent(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("7c25fe49-fe39-470d-9b14-f5e1bf3b3744") + @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 ("65449ff1-0f8d-4a52-89d3-2ca4bb759666") + @objid ("49712573-e947-4a58-a66c-048fa4db503a") public void addConsumesData(final Data obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -125,8 +124,9 @@ public void addConsumesData(final Data obj) { * Add a value to the 'generatesData' role.

* Role description: * null + * */ - @objid ("913bc71e-2d89-4d9f-9ee7-848b408d7750") + @objid ("07441328-0724-4b5b-bd50-eecad86e324a") public void addGeneratesData(final Data obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -140,8 +140,9 @@ public void addGeneratesData(final Data obj) { * Add a value to the 'managesDataSource' role.

* Role description: * null + * */ - @objid ("a2cfd9b8-fe5c-4f81-ad92-70cd1d71e046") + @objid ("dc692fd5-7800-4925-b01f-f7ef135d0bfb") public void addManagesDataSource(final DataSource obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -155,14 +156,15 @@ public void addManagesDataSource(final DataSource obj) { * Add a value to the 'requiredCommunications' role.

* Role description: * null + * */ - @objid ("9a89f496-ef50-47fd-b199-fccf860e8471") + @objid ("1a11b49e-d53a-43ad-a9bd-82f15c3250c2") public void addRequiredCommunications(final CommunicationPort obj) { if (obj!=null) ((Component) this.elt).getInternalStructure().add(obj.getElement()); } - @objid ("853e85b1-088b-4565-adac-bb2781665a04") + @objid ("710b0347-1a6a-4537-8934-f06bd347fb74") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -182,8 +184,9 @@ public boolean equals(final Object obj) { * Get the values of the 'consumesData' role.

* Role description: * null + * */ - @objid ("cd42b4d8-a67e-4d4b-b6f2-f2e995306b2d") + @objid ("135a1493-f5ee-4999-96cb-10d73d72e7bd") public List getConsumesData() { List results = new ArrayList<>(); for (Dependency d : this.elt.getDependsOnDependency()) { @@ -197,11 +200,10 @@ public List getConsumesData() { } /** - * Get the underlying {@link Component}. - * + * Get the underlying {@link Component}. * @return the Component represented by this proxy, never null. */ - @objid ("bd795bb7-89bb-42ea-8e03-7b050b947243") + @objid ("a3018b63-2c71-4284-b195-4acbf75c0007") @Override public Component getElement() { return (Component)super.getElement(); @@ -211,8 +213,9 @@ public Component getElement() { * Get the values of the 'generatesData' role.

* Role description: * null + * */ - @objid ("d46407ff-d807-453c-ac47-cd09e7a7e155") + @objid ("d6d39530-352c-4861-917c-0a5450b1bd37") public List getGeneratesData() { List results = new ArrayList<>(); for (Dependency d : this.elt.getDependsOnDependency()) { @@ -229,8 +232,9 @@ public List getGeneratesData() { * Get the values of the 'managesDataSource' role.

* Role description: * null + * */ - @objid ("d5e643bc-ecb2-44fb-80cb-626294c9b529") + @objid ("4afb5000-7c3e-4950-abfd-752a587d41cb") public List getManagesDataSource() { List results = new ArrayList<>(); for (Dependency d : this.elt.getDependsOnDependency()) { @@ -247,14 +251,15 @@ public List getManagesDataSource() { * Get the values of the 'requiredCommunications' role.

* Role description: * null + * */ - @objid ("e0a3ac8b-0cd8-4ee9-a547-1647184243ca") + @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); } @@ -262,22 +267,24 @@ public List getRequiredCommunications() { * Get the value to the 'requiredHost' role.

* Role description: * null + * */ - @objid ("944f625a-d93e-4324-a470-edf353de82fb") + @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 ("b84c4f95-db3f-4f64-85cf-21c41bb84a88") + @objid ("38351228-0003-46ea-8595-fdc60420ce3a") public RequirementSet getRequirementSet() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(SoftwareComponent.MdaTypes.MDAASSOCDEP) @@ -289,7 +296,7 @@ public RequirementSet getRequirementSet() { return null; } - @objid ("ddb761f1-8b08-4bed-9598-fe1b5e09b168") + @objid ("3c375757-48a3-44a6-a89b-282fc51e760c") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -300,7 +307,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("f037bc73-ea7a-465f-a0d9-9ea45c6504ac") + @objid ("01c630e2-2a94-45eb-8c12-20b775979b48") public boolean isCoInstanceHosting() { return this.elt.isTagged(SoftwareComponent.MdaTypes.COINSTANCEHOSTING_TAGTYPE_ELT); } @@ -310,7 +317,7 @@ public boolean isCoInstanceHosting() { *

Property description: *
null

*/ - @objid ("48a80caa-a918-4384-8d76-1116d12982b5") + @objid ("b9eea0c3-a818-4054-955a-259a3cd5f35e") public boolean isLongLived() { return this.elt.isTagged(SoftwareComponent.MdaTypes.LONGLIVED_TAGTYPE_ELT); } @@ -319,12 +326,13 @@ public boolean isLongLived() { * Remove a value from the 'consumesData' role.

* Role description: * null + * */ - @objid ("566b0282-fefd-4952-9af0-9aa8c582d3b1") + @objid ("36199e9b-22e4-465c-b919-099e5812a1e6") public boolean removeConsumesData(final Data obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getDependsOnDependency())) { - if (d.isStereotyped(SoftwareComponent.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(SoftwareComponent.MdaTypes.MDAASSOCDEP_ROLE), "")) + if (d.isStereotyped(SoftwareComponent.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(SoftwareComponent.MdaTypes.MDAASSOCDEP_ROLE), "consumesData")) if (Objects.equals(d.getDependsOn(), obj.getElement())) { d.delete(); return true; @@ -338,12 +346,13 @@ public boolean removeConsumesData(final Data obj) { * Remove a value from the 'generatesData' role.

* Role description: * null + * */ - @objid ("ecb5317e-112e-4d85-897f-41ecf0682948") + @objid ("8352370a-eaaa-44f4-9df4-b85cff6bbf09") public boolean removeGeneratesData(final Data obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getDependsOnDependency())) { - if (d.isStereotyped(SoftwareComponent.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(SoftwareComponent.MdaTypes.MDAASSOCDEP_ROLE), "")) + if (d.isStereotyped(SoftwareComponent.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(SoftwareComponent.MdaTypes.MDAASSOCDEP_ROLE), "generatesData")) if (Objects.equals(d.getDependsOn(), obj.getElement())) { d.delete(); return true; @@ -357,12 +366,13 @@ public boolean removeGeneratesData(final Data obj) { * Remove a value from the 'managesDataSource' role.

* Role description: * null + * */ - @objid ("9485c1a5-349f-46b9-b31e-3ed43dbea9da") + @objid ("bfeeec64-da34-45f0-82c1-5710f0e1dad0") public boolean removeManagesDataSource(final DataSource obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getDependsOnDependency())) { - if (d.isStereotyped(SoftwareComponent.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(SoftwareComponent.MdaTypes.MDAASSOCDEP_ROLE), "")) + if (d.isStereotyped(SoftwareComponent.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(SoftwareComponent.MdaTypes.MDAASSOCDEP_ROLE), "managesDataSource")) if (Objects.equals(d.getDependsOn(), obj.getElement())) { d.delete(); return true; @@ -376,8 +386,9 @@ public boolean removeManagesDataSource(final DataSource obj) { * Remove a value from the 'requiredCommunications' role.

* Role description: * null + * */ - @objid ("5ad43fe3-9b23-4163-80c1-b9787b00b990") + @objid ("837fd99a-55bf-4571-a6e3-883324a6392f") public boolean removeRequiredCommunications(final CommunicationPort obj) { return (obj!=null)? ((Component) this.elt).getInternalStructure().remove(obj.getElement()) : false; } @@ -387,7 +398,7 @@ public boolean removeRequiredCommunications(final CommunicationPort obj) { *

Property description: *
null

*/ - @objid ("4981503d-6748-4464-b9a9-64b30d2423b2") + @objid ("fe8d55cd-9589-46b2-8d42-ae466af04a32") public void setCoInstanceHosting(final boolean value) { if (value) CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createTaggedValue(SoftwareComponent.MdaTypes.COINSTANCEHOSTING_TAGTYPE_ELT, this.elt); @@ -400,7 +411,7 @@ public void setCoInstanceHosting(final boolean value) { *

Property description: *
null

*/ - @objid ("0bad5f30-108f-47b9-8063-e134d78bb09f") + @objid ("d430b37a-e65f-456e-9d09-1d4035b9a4cb") public void setLongLived(final boolean value) { if (value) CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createTaggedValue(SoftwareComponent.MdaTypes.LONGLIVED_TAGTYPE_ELT, this.elt); @@ -412,8 +423,9 @@ public void setLongLived(final boolean value) { * Set the value of the 'requiredHost' role.

* Role description: * null + * */ - @objid ("6afd3c11-09d3-4821-a280-b5dac2ca87dd") + @objid ("4f43dae6-2b20-4b18-97ab-400fc454faa4") public void setRequiredHost(final HostingPort obj) { // Remove existing HostingPorts for (Port e : ((Component) this.elt).getInternalStructure(Port.class)) { @@ -431,8 +443,9 @@ public void setRequiredHost(final HostingPort obj) { * Set the value of the 'requirementSet' role.

* Role description: * null + * */ - @objid ("3dac3447-f49f-4cf7-873b-54c5770b9954") + @objid ("a367ef59-97a0-40dc-a815-8fcdbdc0784f") public void setRequirementSet(final RequirementSet obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -460,29 +473,29 @@ public List getChilds() { return result; } - @objid ("25266dbe-e388-49fe-9f87-5c7c6b3fa3ba") + @objid ("26e1a77c-4f6e-4dde-aa41-6f7aca2afa42") protected SoftwareComponent(final Component elt) { super(elt); } @objid ("2f8e6622-096e-45ed-9142-912db33ad5b4") public static final class MdaTypes { - @objid ("45e3941f-d832-41f8-8428-136a56863cb0") + @objid ("1ce49bc9-1db3-4beb-9e64-12a5e4e35ec8") public static Stereotype STEREOTYPE_ELT; - @objid ("7c18a18b-1d95-46b9-9f26-c68bbf313133") + @objid ("17b10acb-19d6-4944-b173-61ceb865580f") public static TagType LONGLIVED_TAGTYPE_ELT; - @objid ("95ea11f8-6ab4-43d6-9ab5-369e2f6c8ba1") + @objid ("068745b8-5bda-4865-8bb8-8fe0a6fe4657") public static TagType COINSTANCEHOSTING_TAGTYPE_ELT; - @objid ("d9b1cfac-77c2-4e4f-b079-ff17024a63c6") + @objid ("712c987d-03d3-4e6d-a529-d1b3b5219371") private static Stereotype MDAASSOCDEP; - @objid ("2194391c-52b8-4492-9dcd-a541ff06b939") + @objid ("1a2c49ff-a62f-4965-987b-d66ff72af14a") private static TagType MDAASSOCDEP_ROLE; - @objid ("0bea109d-b8c9-4893-8656-904eecc8e523") + @objid ("129e477a-a16c-4ae1-a812-2f6f01352115") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "e66ca9e8-6d1c-46bd-9d9d-e1e16675fada"); LONGLIVED_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "dad4c8d0-a0a7-4cbd-86b5-f8f40b461f7e"); @@ -492,11 +505,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 63012433..6137e6bb 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.deploymentmodel.standard.component; @@ -35,7 +35,7 @@ */ @objid ("7ab7afe3-013e-4c06-af79-866889291e60") public class VM extends CamelComponent { - @objid ("c19b8000-cf14-402c-a50b-b19de1060348") + @objid ("6c62607f-3ba9-47fa-978e-815ab6ee29e1") public static final String STEREOTYPE_NAME = "VM"; /** @@ -46,7 +46,7 @@ public class VM extends CamelComponent { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("36f29283-6ebc-499a-bd36-ae5076d2e80d") + @objid ("8ab548bc-9e92-4116-8f34-ae15199e7b6a") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Component) && ((Component) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, VM.STEREOTYPE_NAME)); } @@ -56,7 +56,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link VM} proxy on the created {@link Component}. */ - @objid ("85ebd681-0417-43de-8fa6-ceb02b96e9af") + @objid ("8e94cabe-659c-45f4-936d-ff4d35499da5") public static VM create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Component"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, VM.STEREOTYPE_NAME); @@ -64,36 +64,34 @@ 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. */ - @objid ("baf6cb2f-faa2-432b-9792-cafc71885a3c") + @objid ("2a786936-1d71-4435-8955-b2880f44017c") public static VM instantiate(final Component obj) { return VM.canInstantiate(obj) ? new VM(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("c2d3ed41-5040-4913-a386-45ed39fd2b6e") + @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 ("b1e91da1-ee26-47ec-bfd5-7b846c70328a") + @objid ("64006e31-4ba3-4c11-af4c-5f1fbe9fc6d0") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -110,17 +108,16 @@ 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 ("795b9359-7e20-481d-99d7-d47f80177ed8") + @objid ("f377bf17-d779-4012-a73d-549abae547a3") @Override public Component getElement() { return (Component)super.getElement(); } - @objid ("58b8e785-c267-416f-a1cd-07d5bd772673") + @objid ("494df513-cdad-4172-95c9-c6a4a316fb23") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -134,23 +131,23 @@ public List getChilds() { return result; } - @objid ("fa37cafb-fe66-4582-8ebc-83c2e3f7f34d") + @objid ("a97a919e-a1b1-4972-82f4-cf3685417728") protected VM(final Component elt) { super(elt); } @objid ("b498c9c3-0245-4fb1-97a6-fbac3113e3fd") public static final class MdaTypes { - @objid ("683d4baf-d703-4ae1-9a2d-accbc6f3e926") + @objid ("da3f3ab0-fb4a-4ae1-8856-160ba73b7f31") public static Stereotype STEREOTYPE_ELT; - @objid ("7fe056e2-e3c5-4429-b74d-0adcda559738") + @objid ("74a7e406-be09-4272-8f79-76649bf09c61") private static Stereotype MDAASSOCDEP; - @objid ("55aac039-8616-4b5c-93a9-21fb86fa9cc0") + @objid ("75695a98-275c-43e5-872e-93073e4c50ce") private static TagType MDAASSOCDEP_ROLE; - @objid ("fb2d81c0-0975-492f-90b8-523ebe94efe2") + @objid ("525b3f34-32bb-4d2d-808a-6e2ca18c8638") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "8bd1ea8d-6714-4a3b-9da9-c914064d8440"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -158,11 +155,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 2f3bd757..8340299f 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.deploymentmodel.standard.connector; @@ -40,7 +40,7 @@ */ @objid ("f5a1e8b4-c495-4efa-a525-7238dae641c0") public class Communication extends ComponentRelation { - @objid ("e94b43ce-6c5e-4c59-babe-5297b573ae7e") + @objid ("ac801f38-36df-4749-93c7-b45370e6ade5") public static final String STEREOTYPE_NAME = "Communication"; /** @@ -51,7 +51,7 @@ public class Communication extends ComponentRelation { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("51921834-d00a-410b-8750-f47e0ff7624c") + @objid ("4d8099a0-c155-43e4-b55f-6c67fe0ff756") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Connector) && ((Connector) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, Communication.STEREOTYPE_NAME)); } @@ -61,7 +61,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link Communication} proxy on the created {@link Connector}. */ - @objid ("da4d9c85-4c1f-40eb-b909-7d89de114729") + @objid ("f0a9e35e-27f9-42aa-954c-c0dda30c0274") public static Communication create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Connector"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, Communication.STEREOTYPE_NAME); @@ -69,36 +69,34 @@ 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. */ - @objid ("b2c7e485-cada-4fe6-970b-91efaa171b69") + @objid ("0c437f57-9493-4266-ba43-4877979ab2e2") public static Communication instantiate(final Connector obj) { return Communication.canInstantiate(obj) ? new Communication(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("cb53ec49-c607-4c91-8126-cce4cd4eeba4") + @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 ("623a53bb-8c96-46e4-a380-21f2e1f35beb") + @objid ("b362a526-be58-4e21-9ee8-59142e55bc50") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -115,11 +113,10 @@ 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 ("88688b03-c813-402b-85c8-2f13c9092935") + @objid ("3e20256b-0c9b-4dc6-b7ee-184f2c35492b") @Override public Connector getElement() { return (Connector)super.getElement(); @@ -129,8 +126,9 @@ public Connector getElement() { * Get the value of the 'providedPortConfiguration' role.

* Role description: * null + * */ - @objid ("7d367f32-2f1f-4c34-acd0-de6fea61fd0c") + @objid ("968d0590-186f-4a01-9c6a-74f46ec54be5") public Configuration getProvidedPortConfiguration() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(Communication.MdaTypes.MDAASSOCDEP) @@ -152,8 +150,9 @@ public Configuration getProvidedPortConfiguration() { * Get the value of the 'requiredPortConfiguration' role.

* Role description: * null + * */ - @objid ("66dbf6d8-1d67-4560-ab5a-850f78e8c647") + @objid ("20171cdf-b85d-4524-9c6e-ef6a76ffa683") public Configuration getRequiredPortConfiguration() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(Communication.MdaTypes.MDAASSOCDEP) @@ -171,7 +170,7 @@ public Configuration getRequiredPortConfiguration() { return null; } - @objid ("276e17ca-e924-4c45-9f2a-901989d27db2") + @objid ("fd8eeb52-d419-40ef-83a9-0bb050358b19") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -181,8 +180,9 @@ public int hashCode() { * Set the value of the 'providedPortConfiguration' role.

* Role description: * null + * */ - @objid ("bdb80604-738b-435d-bd2f-5efdfc1b03a5") + @objid ("7159c3e2-8ed4-4454-8b7c-91e96235126f") public void setProvidedPortConfiguration(final Configuration obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -206,8 +206,9 @@ public void setProvidedPortConfiguration(final Configuration obj) { * Set the value of the 'requiredPortConfiguration' role.

* Role description: * null + * */ - @objid ("5f746fbe-eac4-4e72-b0f7-e82e475be97a") + @objid ("5fc61863-5514-4d4c-9723-14cd9bb3ca2b") public void setRequiredPortConfiguration(final Configuration obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -235,23 +236,23 @@ public List getChilds() { return result; } - @objid ("42a623c1-3927-4f52-afd6-3e3ae60ed3fd") + @objid ("f165195b-8e30-4614-bb7a-9c440ad5e717") protected Communication(final Connector elt) { super(elt); } @objid ("32a673a4-c270-4514-b3a4-c875b717ae42") public static final class MdaTypes { - @objid ("036b53ba-c166-4a50-b351-c05c310af472") + @objid ("77309aba-ed8f-41b5-8104-338547dfbda9") public static Stereotype STEREOTYPE_ELT; - @objid ("dd3261cf-d381-4a1a-a34c-6855ff20f8a6") + @objid ("ca264412-d0ae-4068-9ad0-a6f4502c0630") private static Stereotype MDAASSOCDEP; - @objid ("0724da91-3518-4dd9-8a2b-7b51de2baff5") + @objid ("23cb719f-1660-4f2c-b825-b1100e98ac23") private static TagType MDAASSOCDEP_ROLE; - @objid ("e8bc3f9c-0101-4ed5-902e-e608fe5dc386") + @objid ("a55ef655-2d4f-41b3-b591-8d195009a65b") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "141875d2-e648-4750-9fff-84c1b21e9b54"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -259,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/deploymentmodel/standard/connector/ComponentRelation.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/connector/ComponentRelation.java index 697e96ac..d4989c1a 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.deploymentmodel.standard.connector; @@ -36,7 +36,7 @@ */ @objid ("3fb63318-f18c-4336-85d0-330dbedebdfb") public abstract class ComponentRelation extends FeatureConnector { - @objid ("bf502587-e9bc-4ce9-bed3-9d234e42006b") + @objid ("90f4163e-a9a3-440e-a3b1-2ce65f6e8df3") public static final String STEREOTYPE_NAME = "ComponentRelation"; /** @@ -47,12 +47,12 @@ public abstract class ComponentRelation extends FeatureConnector { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("a10f871c-bf9f-4d18-8d5d-ead8cc127cb7") + @objid ("019f1bf4-720d-4a91-ba75-d6e976e5e084") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Connector) && ((Connector) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, ComponentRelation.STEREOTYPE_NAME)); } - @objid ("9a6ce928-ec64-41d3-89a2-1a3675cfc5df") + @objid ("2cca4d01-6df1-42c3-b568-e9122be518c2") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -69,17 +69,16 @@ 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 ("57989eef-8bdd-4311-acbc-db4bc4272a42") + @objid ("f3ae7ec9-0109-4d99-8e4c-5c47717a37a7") @Override public Connector getElement() { return (Connector)super.getElement(); } - @objid ("e626134b-ec0f-4574-bb5c-df9a963e4618") + @objid ("91dd634f-d03e-4563-8db3-c5361e409cd1") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -93,23 +92,23 @@ public List getChilds() { return result; } - @objid ("cef26052-5369-4d8a-931c-150a76b809b2") + @objid ("8f6030df-293e-4139-83c7-4ab20e837429") protected ComponentRelation(final Connector elt) { super(elt); } @objid ("f7e7dc75-93fe-4f68-8a5c-196b34e1a102") public static final class MdaTypes { - @objid ("4c5ceb8e-a213-4cc2-b449-8a65d4fc0684") + @objid ("cc4cc1c9-58a3-43b1-8205-97dace32bfef") public static Stereotype STEREOTYPE_ELT; - @objid ("b3e2756c-ed4b-4d82-ac52-1087c315241f") + @objid ("4807a378-069a-4735-8fd9-b36994156ea5") private static Stereotype MDAASSOCDEP; - @objid ("a49e6b87-8601-4272-9550-cb9f3ac3cc57") + @objid ("8a66ad7e-56ce-4441-9419-a3200c896d0a") private static TagType MDAASSOCDEP_ROLE; - @objid ("f144cfd5-d608-45b1-ac84-9970a74bd155") + @objid ("29ce6e1e-66af-450c-a219-5eb00793ff0c") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "1c00d806-f009-48a9-a7de-3f1e462818d1"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -117,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/deploymentmodel/standard/connector/Hosting.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/connector/Hosting.java index 0ff1392a..dbc51bdb 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.deploymentmodel.standard.connector; @@ -40,7 +40,7 @@ */ @objid ("48ee1919-d6f2-4da9-bbe0-d4d5b45b6d43") public class Hosting extends ComponentRelation { - @objid ("d84c7bc6-850e-4741-8c2a-4496f3fb3e79") + @objid ("324e67a1-e51a-41cc-b4d6-242671a56a36") public static final String STEREOTYPE_NAME = "Hosting"; /** @@ -51,7 +51,7 @@ public class Hosting extends ComponentRelation { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("329f771a-7db3-4164-8418-578dc98c9cae") + @objid ("596ac377-46c3-4cde-bb01-8ff0f35b818f") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Connector) && ((Connector) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, Hosting.STEREOTYPE_NAME)); } @@ -61,7 +61,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link Hosting} proxy on the created {@link Connector}. */ - @objid ("85104747-c451-41ab-87c5-60f21a937639") + @objid ("bde9c3ee-f417-452d-acd3-6fe2229b037c") public static Hosting create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Connector"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, Hosting.STEREOTYPE_NAME); @@ -69,41 +69,40 @@ 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. */ - @objid ("6d79239e-83bf-407d-a219-11c902e2e258") + @objid ("1c8fbfa2-b985-49f4-a7e3-04f59f65e863") public static Hosting instantiate(final Connector obj) { return Hosting.canInstantiate(obj) ? new Hosting(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("a0d6403e-1586-475c-abab-13c96f2331b8") + @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 ("98a3b383-4d8c-47d5-966d-864153ecca42") + @objid ("618c7f53-0356-42bd-b2d8-fd45f792d345") public void addRequiredHostsConfiguration(final Configuration obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -113,7 +112,7 @@ public void addRequiredHostsConfiguration(final Configuration obj) { } } - @objid ("59c769d1-ffc3-48cb-bb5f-c227033f139b") + @objid ("6c8d7bc3-93fc-4952-9c1b-14919dded4e2") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -130,11 +129,10 @@ 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 ("56a1c4b3-c5a9-4258-9f25-5a4168efd9f0") + @objid ("4b80d345-7a59-40d8-ad3f-34b8b13a4fd3") @Override public Connector getElement() { return (Connector)super.getElement(); @@ -144,8 +142,9 @@ public Connector getElement() { * Get the value of the 'providedHostConfiguration' role.

* Role description: * null + * */ - @objid ("ffada7ee-d828-4c2e-9caf-9bfd58ab656c") + @objid ("80d2b990-ed32-45a5-9658-d9d38621a58d") public Configuration getProvidedHostConfiguration() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(Hosting.MdaTypes.MDAASSOCDEP) @@ -167,8 +166,9 @@ public Configuration getProvidedHostConfiguration() { * Get the values of the 'requiredHostsConfiguration' role.

* Role description: * null + * */ - @objid ("6f5fde1a-c6ff-4e1d-b9ee-df5d4e4f3572") + @objid ("f0b8968b-64e0-4f29-9914-53e9988736e1") public List getRequiredHostsConfiguration() { List results = new ArrayList<>(); for (Dependency d : this.elt.getDependsOnDependency()) { @@ -187,7 +187,7 @@ public List getRequiredHostsConfiguration() { return Collections.unmodifiableList(results); } - @objid ("db20d7f6-e314-4606-9583-ff52fde75c2f") + @objid ("ae58e53d-98ce-46ed-aa11-31581100a6d7") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -197,12 +197,13 @@ public int hashCode() { * Remove a value from the 'requiredHostsConfiguration' role.

* Role description: * null + * */ - @objid ("f7a92fc9-09b1-44f8-a108-640e180e1108") + @objid ("1d82e6df-a9e9-4353-ab6a-96685d832b26") public boolean removeRequiredHostsConfiguration(final Configuration obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getDependsOnDependency())) { - if (d.isStereotyped(Hosting.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(Hosting.MdaTypes.MDAASSOCDEP_ROLE), "")) + if (d.isStereotyped(Hosting.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(Hosting.MdaTypes.MDAASSOCDEP_ROLE), "requiredHostsConfiguration")) if (Objects.equals(d.getDependsOn(), obj.getElement())) { d.delete(); return true; @@ -216,8 +217,9 @@ public boolean removeRequiredHostsConfiguration(final Configuration obj) { * Set the value of the 'providedHostConfiguration' role.

* Role description: * null + * */ - @objid ("410c8e5d-fb8c-4747-9643-657821babab1") + @objid ("04217f71-26df-4648-9213-42d1b20bc600") public void setProvidedHostConfiguration(final Configuration obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -245,23 +247,23 @@ public List getChilds() { return result; } - @objid ("21b73227-0e28-48df-b3c4-5a263fb50236") + @objid ("123bff72-0bd1-4cb8-bfda-45199290ad4e") protected Hosting(final Connector elt) { super(elt); } @objid ("71058a75-05c8-4604-b534-ff2d31f52287") public static final class MdaTypes { - @objid ("6a7958a7-bfa5-4c72-8675-7335f9223c83") + @objid ("a3a46c3d-b1ee-499a-857d-8d525648ede4") public static Stereotype STEREOTYPE_ELT; - @objid ("629f649a-a613-4b32-a4ac-622723791c73") + @objid ("a607a478-7603-475b-be11-575d8ce785a2") private static Stereotype MDAASSOCDEP; - @objid ("2e3fc841-0483-4076-b797-2c453f526712") + @objid ("0960acd2-0570-4acc-9886-2b4edac73988") private static TagType MDAASSOCDEP_ROLE; - @objid ("ba6b3dad-7f50-45ba-a2ae-84cffa3a4b43") + @objid ("e4e7c7cd-6466-4361-9d6b-f41dd24271ff") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "d727bc20-8640-446b-8252-f7e3783e8efe"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -269,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/connector/LocationCoupling.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/connector/LocationCoupling.java index 42f2d22d..8f83d632 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.deploymentmodel.standard.connector; @@ -37,13 +37,13 @@ */ @objid ("16e16d1c-b0c0-4b95-94f1-b4ff8c2929e6") public class LocationCoupling extends ComponentRelation { - @objid ("69ff5d56-6d7a-411d-b6bb-bc8b4b5f73f2") + @objid ("d30e15e7-e4d8-4b13-86be-0ca40ee27917") public static final String STEREOTYPE_NAME = "LocationCoupling"; - @objid ("12b80104-eb11-458f-86df-cae4d4ae8814") + @objid ("774e96b0-4df3-40be-8c93-1da8675317b3") public static final String COUPLINGTYPE_TAGTYPE = "couplingType"; - @objid ("6af885b7-c118-4774-91eb-9a412a90f24b") + @objid ("ff0e59f6-1fb2-426e-8536-74a168017838") public static final String RELAXED_TAGTYPE = "relaxed"; /** @@ -54,7 +54,7 @@ public class LocationCoupling extends ComponentRelation { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("0f070c9b-849a-4eb1-b4ef-67eaaa9b3a68") + @objid ("920c6281-e7c6-4f55-9e34-6e170da56391") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Connector) && ((Connector) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, LocationCoupling.STEREOTYPE_NAME)); } @@ -64,7 +64,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link LocationCoupling} proxy on the created {@link Connector}. */ - @objid ("4bd57075-3b42-4117-baf9-b97e5997b1d5") + @objid ("072ccc4c-85c4-4949-b411-9bcfd343826c") public static LocationCoupling create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Connector"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, LocationCoupling.STEREOTYPE_NAME); @@ -72,41 +72,40 @@ 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. */ - @objid ("9436dffb-d393-4765-bdd9-6e283be47039") + @objid ("44764cde-e8e1-4891-b6c6-99ef9418359d") public static LocationCoupling instantiate(final Connector obj) { return LocationCoupling.canInstantiate(obj) ? new LocationCoupling(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("7d2eff01-fa62-4064-9138-855009682c00") + @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 ("574cdc4e-19e7-442b-ac52-54922f4dd277") + @objid ("07839e60-a481-46fe-86fd-c9106cb959aa") public void addSoftwareComponents(final SoftwareComponent obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -116,7 +115,7 @@ public void addSoftwareComponents(final SoftwareComponent obj) { } } - @objid ("e667a90f-04ea-4ab7-8374-eaea85bd4974") + @objid ("ee4dc5d4-cf06-47ca-a880-528e4030bb46") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -137,17 +136,16 @@ public boolean equals(final Object obj) { *

Property description: *
null

*/ - @objid ("93179225-6b89-4cdd-acb3-5e064faee22e") + @objid ("0211f7e3-0aeb-4386-b6fd-c9a233d25b79") public String getCouplingType() { return this.elt.getTagValue(LocationCoupling.MdaTypes.COUPLINGTYPE_TAGTYPE_ELT); } /** - * Get the underlying {@link Connector}. - * + * Get the underlying {@link Connector}. * @return the Connector represented by this proxy, never null. */ - @objid ("07413701-5b0d-43da-bd15-f2dddd53fdb5") + @objid ("5f9ddd08-3ba0-4f49-a74c-3afeab4a2a6a") @Override public Connector getElement() { return (Connector)super.getElement(); @@ -157,8 +155,9 @@ public Connector getElement() { * Get the values of the 'softwareComponents' role.

* Role description: * null + * */ - @objid ("35c362df-558f-4d3b-948b-589df732d1d1") + @objid ("9d1117fe-5c96-4a02-8dfb-6feda275e876") public List getSoftwareComponents() { List results = new ArrayList<>(); for (Dependency d : this.elt.getDependsOnDependency()) { @@ -173,7 +172,7 @@ public List getSoftwareComponents() { return Collections.unmodifiableList(results); } - @objid ("590f519a-65aa-4040-aa25-23d3072e333d") + @objid ("fcefcc56-7ee9-423a-9468-9d3d15e21fba") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -184,7 +183,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("c8389683-dc01-4029-92f1-da12d6e241b0") + @objid ("778b5647-5227-43f7-aed1-b1258fb1a497") public boolean isRelaxed() { return this.elt.isTagged(LocationCoupling.MdaTypes.RELAXED_TAGTYPE_ELT); } @@ -193,12 +192,13 @@ public boolean isRelaxed() { * Remove a value from the 'softwareComponents' role.

* Role description: * null + * */ - @objid ("89b4469f-4cfd-40b5-9216-0f7d3e7146b1") + @objid ("c417fa67-025e-4159-9090-a8b2abc66c8b") public boolean removeSoftwareComponents(final SoftwareComponent obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getDependsOnDependency())) { - if (d.isStereotyped(LocationCoupling.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(LocationCoupling.MdaTypes.MDAASSOCDEP_ROLE), "")) + if (d.isStereotyped(LocationCoupling.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(LocationCoupling.MdaTypes.MDAASSOCDEP_ROLE), "softwareComponents")) if (Objects.equals(d.getDependsOn(), obj.getElement())) { d.delete(); return true; @@ -213,7 +213,7 @@ public boolean removeSoftwareComponents(final SoftwareComponent obj) { *

Property description: *
null

*/ - @objid ("cbb88cad-61d1-469d-9585-c621361f94d3") + @objid ("9b574356-db9a-4801-b4ef-88e8e117f6e4") public void setCouplingType(final String value) { this.elt.putTagValue(LocationCoupling.MdaTypes.COUPLINGTYPE_TAGTYPE_ELT, value); } @@ -223,7 +223,7 @@ public void setCouplingType(final String value) { *

Property description: *
null

*/ - @objid ("8e9ab082-e9c1-4182-9926-1d8095eba0db") + @objid ("dbd16d03-cc09-4cc3-b841-6c161b8c8ecf") public void setRelaxed(final boolean value) { if (value) CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createTaggedValue(LocationCoupling.MdaTypes.RELAXED_TAGTYPE_ELT, this.elt); @@ -239,29 +239,29 @@ public List getChilds() { return result; } - @objid ("986996a4-8044-4a59-9215-7938dd309709") + @objid ("f24b798f-bc5d-44ef-abf4-95142a76f330") protected LocationCoupling(final Connector elt) { super(elt); } @objid ("45955ff0-8335-4b65-a93f-e6357f827e77") public static final class MdaTypes { - @objid ("a211f852-80bb-405f-962f-b15c9bcf98dd") + @objid ("cf60ce84-a15b-454f-9d03-d02042eccb4c") public static Stereotype STEREOTYPE_ELT; - @objid ("df9909ec-3efa-497d-b06c-d39b790397bb") + @objid ("9d8d6209-fe0e-4bda-906d-d05a226ae055") public static TagType COUPLINGTYPE_TAGTYPE_ELT; - @objid ("4029e9dc-6829-4ca0-bfa1-753220a9c87e") + @objid ("7548ff77-ebd8-40af-9af2-8e45ccef64cb") public static TagType RELAXED_TAGTYPE_ELT; - @objid ("b08eadb8-a6d9-4a1e-9b7f-9d5d962d7bd2") + @objid ("56e79449-c35b-421c-bc4b-b9eb655724a8") private static Stereotype MDAASSOCDEP; - @objid ("31d139ff-0266-4757-8d58-44a2e65b1c33") + @objid ("6354583e-89db-4062-a088-cc20ecb36741") private static TagType MDAASSOCDEP_ROLE; - @objid ("0e871e2e-2672-4c34-85a7-5f97e24c8306") + @objid ("d8f3a459-bbe1-480d-a989-937f680c6e70") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "09dbc4af-5728-4b42-9d70-83e64d7205dd"); COUPLINGTYPE_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "e8ff5d38-9710-482d-84f1-69e389fdd673"); @@ -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 00515bf3..900d6bc4 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.deploymentmodel.standard.package_; @@ -37,7 +37,7 @@ */ @objid ("6e4c7b4b-d381-4e52-a43d-fcb0cea6173f") public abstract class DeploymentModel extends SubModel { - @objid ("f172fcef-1eaa-421e-a61e-ee5018df644f") + @objid ("5100d826-c093-4f2c-b65a-7796fd11b4ad") public static final String STEREOTYPE_NAME = "DeploymentModel"; /** @@ -48,12 +48,12 @@ public abstract class DeploymentModel extends SubModel { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("1f75b330-fe9c-4532-be74-a67f6657b486") + @objid ("57e4dbe0-9709-42e1-b726-83f4aa34122a") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Package) && ((Package) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, DeploymentModel.STEREOTYPE_NAME)); } - @objid ("42a17049-4034-4560-8fb0-2d5f6a11e47e") + @objid ("acb1c502-7bad-453f-acd0-c303b3081003") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -73,24 +73,24 @@ public boolean equals(final Object obj) { * Get the value to the 'camelModel' role.

* Role description: * null + * */ - @objid ("9596a5b5-2c75-4514-bc7f-8653d206b7d1") + @objid ("5464bf0b-1a20-4c3f-a514-acf3199e39a1") public CamelModel getCamelModel() { return (CamelModel)CamelDesignerProxyFactory.instantiate(((Package) this.elt).getOwner(), CamelModel.STEREOTYPE_NAME); } /** - * Get the underlying {@link Package}. - * + * Get the underlying {@link Package}. * @return the Package represented by this proxy, never null. */ - @objid ("77d914f1-2dc7-40cf-8313-f0a6964519b1") + @objid ("6fd4e672-6336-4cd3-9622-de62d6c68398") @Override public Package getElement() { return (Package)super.getElement(); } - @objid ("4daa5eba-20e2-4f78-bf73-5e1a94ca2106") + @objid ("6c4cd4e5-1356-40d9-afde-2a4a7154ac9d") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -100,8 +100,9 @@ public int hashCode() { * Set the value of the 'camelModel' role.

* Role description: * null + * */ - @objid ("1553903c-4ccd-467e-911f-b39cc0c03f65") + @objid ("6b2aeaed-fa3e-408c-944e-5525406b5c5b") public void setCamelModel(final CamelModel obj) { ((Package) this.elt).setOwner((obj != null) ? obj.getElement() : null); } @@ -114,23 +115,23 @@ public List getChilds() { return result; } - @objid ("c0eb77bf-ede5-4cd0-b0cc-b8a317d99e42") + @objid ("a9209205-df9b-4992-afa5-4532e318e96d") protected DeploymentModel(final Package elt) { super(elt); } @objid ("bcfd6f5c-46e7-47aa-9a4b-79a22339b9f4") public static final class MdaTypes { - @objid ("f02fb633-5295-490c-9b94-94f4ae5f10da") + @objid ("fc0de974-2578-4a5f-b9ae-f83eff2e479b") public static Stereotype STEREOTYPE_ELT; - @objid ("d902b590-3f61-4cf3-aa54-2aaf4674fa2d") + @objid ("65449e60-624e-4735-bf30-1c13731a2bf4") private static Stereotype MDAASSOCDEP; - @objid ("98c63b1e-b92d-4fea-858f-9003b470d227") + @objid ("25f8dcd7-31b1-4d41-bad5-d8de1844b17f") private static TagType MDAASSOCDEP_ROLE; - @objid ("1910f48b-b921-408b-9ffb-256e0e34df3a") + @objid ("75d321aa-afc0-4629-9a20-7598acccfacc") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "7d620068-3fc6-4fec-8829-0444c0c3186f"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -138,11 +139,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 456ab378..cc075736 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.deploymentmodel.standard.package_; @@ -45,7 +45,7 @@ */ @objid ("87c3b466-cf74-4126-ac62-bd1fb3c2d59d") public class DeploymentTypeModel extends DeploymentModel { - @objid ("e47c33ba-9106-48ed-a25d-a38e7e9732a7") + @objid ("2d19bba6-b254-41a7-aa70-c5d68b46b41a") public static final String STEREOTYPE_NAME = "DeploymentTypeModel"; /** @@ -56,7 +56,7 @@ public class DeploymentTypeModel extends DeploymentModel { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("3a92d2d0-4947-449d-84e3-076ba870fbdb") + @objid ("62f79d3a-ff6c-402a-a8c6-b7fdd6d6f22f") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Package) && ((Package) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, DeploymentTypeModel.STEREOTYPE_NAME)); } @@ -66,7 +66,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link DeploymentTypeModel} proxy on the created {@link Package}. */ - @objid ("816c911c-6e4d-4d3c-a1bf-3b916d83f157") + @objid ("cc354ca0-b2a8-48e7-bf43-abb1ee9c1daa") public static DeploymentTypeModel create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Package"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, DeploymentTypeModel.STEREOTYPE_NAME); @@ -74,41 +74,40 @@ 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. */ - @objid ("8dca6401-33be-4797-ad46-25a6ea8def1a") + @objid ("1202092d-80be-4e06-878b-02c35c081743") public static DeploymentTypeModel instantiate(final Package obj) { return DeploymentTypeModel.canInstantiate(obj) ? new DeploymentTypeModel(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("acc983f8-d81c-46a6-a9d3-baa66fd1af84") + @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 ("78a72676-fe48-48fc-bf6c-0063203fd032") + @objid ("c9b6e901-418b-4e2c-a6d9-36a69ed29438") public void addCommunications(final Communication obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -122,8 +121,9 @@ public void addCommunications(final Communication obj) { * Add a value to the 'containers' role.

* Role description: * null + * */ - @objid ("5c82aa98-ada3-47f4-877d-d52e9589f7d9") + @objid ("7b5e038d-5f33-410f-89d1-ceb1b9bdeadf") public void addContainers(final Container obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -133,8 +133,9 @@ public void addContainers(final Container obj) { * Add a value to the 'hostings' role.

* Role description: * null + * */ - @objid ("1603c6d8-6b2e-4596-b8d7-5de3519dc485") + @objid ("d90d58ed-7458-4380-982b-2afc77456595") public void addHostings(final Hosting obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -148,8 +149,9 @@ public void addHostings(final Hosting obj) { * Add a value to the 'locationCouplings' role.

* Role description: * null + * */ - @objid ("8129ac20-b57e-4f46-b169-61f1d9fd7003") + @objid ("d2ddeca6-14d6-4f67-905d-f1e76c172962") public void addLocationCouplings(final LocationCoupling obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -163,8 +165,9 @@ public void addLocationCouplings(final LocationCoupling obj) { * Add a value to the 'paases' role.

* Role description: * null + * */ - @objid ("399a5fb6-e5b6-4472-be49-101cc8e325c0") + @objid ("da0e0115-7aa2-498e-b5da-613a39d45a73") public void addPaases(final PaaS obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -174,8 +177,9 @@ public void addPaases(final PaaS obj) { * Add a value to the 'requirementSets' role.

* Role description: * null + * */ - @objid ("7d9e915c-797c-4219-9d7e-16569e017537") + @objid ("742e7230-7985-483f-8a39-d913a7d0bfaa") public void addRequirementSets(final RequirementSet obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -185,8 +189,9 @@ public void addRequirementSets(final RequirementSet obj) { * Add a value to the 'softwareComponents' role.

* Role description: * null + * */ - @objid ("d872de9a-95b7-4a8c-ac0c-bcbdbad929a6") + @objid ("3f74bdd4-e000-4f44-a85a-e6a534b2d1e8") public void addSoftwareComponents(final SoftwareComponent obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -196,14 +201,15 @@ public void addSoftwareComponents(final SoftwareComponent obj) { * Add a value to the 'vms' role.

* Role description: * null + * */ - @objid ("4381db69-7a21-4b4d-9570-b66e63fd8f80") + @objid ("793302d0-7e9c-4c8b-b3ed-93469c6f217a") public void addVms(final VM obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); } - @objid ("d1c81322-3fde-48f1-8d73-1dbcc52998a3") + @objid ("817ba1c4-5623-4c31-9add-2d35255585d9") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -223,8 +229,9 @@ public boolean equals(final Object obj) { * Get the values of the 'communications' role.

* Role description: * null + * */ - @objid ("2dbcface-ffb8-4bf1-bba8-4a81d95afccc") + @objid ("fbbb4897-74ad-4f4d-98ad-314668b521eb") public List getCommunications() { List results = new ArrayList<>(); for (Dependency d : this.elt.getDependsOnDependency()) { @@ -241,23 +248,23 @@ public List getCommunications() { * Get the values of the 'containers' role.

* Role description: * null + * */ - @objid ("12a5d906-aaea-4a49-b8eb-51d0316d083a") + @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 ("640df425-b802-49b5-a10f-f976176230c3") + @objid ("9e49f089-3812-48e4-91c0-dbc2242ee8b1") @Override public Package getElement() { return (Package)super.getElement(); @@ -267,8 +274,9 @@ public Package getElement() { * Get the value of the 'globalRequirementSet' role.

* Role description: * null + * */ - @objid ("9f51a088-8e73-4dcf-b858-8297ca89b16b") + @objid ("b218bef1-d5d8-47b0-884b-aa1fcc80c6ea") public RequirementSet getGlobalRequirementSet() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(DeploymentTypeModel.MdaTypes.MDAASSOCDEP) @@ -284,8 +292,9 @@ public RequirementSet getGlobalRequirementSet() { * Get the values of the 'hostings' role.

* Role description: * null + * */ - @objid ("cce6eba1-18a3-45c3-9c9e-03f8bf094467") + @objid ("09a707ce-e089-455f-9570-d28c64c89f19") public List getHostings() { List results = new ArrayList<>(); for (Dependency d : this.elt.getDependsOnDependency()) { @@ -302,8 +311,9 @@ public List getHostings() { * Get the values of the 'locationCouplings' role.

* Role description: * null + * */ - @objid ("8569727b-9e8a-4fff-a7de-9310609a5eda") + @objid ("1c6479b3-96b7-4539-a34d-03b2115e9e85") public List getLocationCouplings() { List results = new ArrayList<>(); for (Dependency d : this.elt.getDependsOnDependency()) { @@ -320,14 +330,15 @@ public List getLocationCouplings() { * Get the values of the 'paases' role.

* Role description: * null + * */ - @objid ("2e5dd874-a91a-4133-9129-195601e6f74e") + @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); } @@ -335,14 +346,15 @@ public List getPaases() { * Get the values of the 'requirementSets' role.

* Role description: * null + * */ - @objid ("1266b2a7-a213-42c2-8622-89efaf23eb5c") + @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); } @@ -350,16 +362,17 @@ public List getRequirementSets() { * Get the values of the 'softwareComponents' role.

* Role description: * null + * */ - @objid ("26183ba5-a657-47d3-b4b3-4f4519e3dd90") + @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); } @@ -367,18 +380,19 @@ public List getSoftwareComponents() { * Get the values of the 'vms' role.

* Role description: * null + * */ - @objid ("e863fab1-9e06-4d92-be5f-9a05e8df5156") + @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); } - @objid ("a016ccae-1e1b-4e4d-81b8-c90ee5d133eb") + @objid ("d8713845-dbcc-47a8-9757-6e5a65336e90") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -388,12 +402,13 @@ public int hashCode() { * Remove a value from the 'communications' role.

* Role description: * null + * */ - @objid ("f2dc436a-09a5-41b1-b42d-b6d4e2e59f0b") + @objid ("e4f2bf5a-e763-4547-be39-2da8fc447648") public boolean removeCommunications(final Communication obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getDependsOnDependency())) { - if (d.isStereotyped(DeploymentTypeModel.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(DeploymentTypeModel.MdaTypes.MDAASSOCDEP_ROLE), "")) + if (d.isStereotyped(DeploymentTypeModel.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(DeploymentTypeModel.MdaTypes.MDAASSOCDEP_ROLE), "communications")) if (Objects.equals(d.getDependsOn(), obj.getElement())) { d.delete(); return true; @@ -407,8 +422,9 @@ public boolean removeCommunications(final Communication obj) { * Remove a value from the 'containers' role.

* Role description: * null + * */ - @objid ("fce5a1e5-b75f-4bcc-9fb0-fdff240e2bdf") + @objid ("32822151-497d-4830-a2e1-0b5a9ee9483d") public boolean removeContainers(final Container obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -417,12 +433,13 @@ public boolean removeContainers(final Container obj) { * Remove a value from the 'hostings' role.

* Role description: * null + * */ - @objid ("3094c934-493b-4be6-b9a5-c45c3ecb3f04") + @objid ("31092ce6-6a19-48a5-ada2-26d5165c47d8") public boolean removeHostings(final Hosting obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getDependsOnDependency())) { - if (d.isStereotyped(DeploymentTypeModel.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(DeploymentTypeModel.MdaTypes.MDAASSOCDEP_ROLE), "")) + if (d.isStereotyped(DeploymentTypeModel.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(DeploymentTypeModel.MdaTypes.MDAASSOCDEP_ROLE), "hostings")) if (Objects.equals(d.getDependsOn(), obj.getElement())) { d.delete(); return true; @@ -436,12 +453,13 @@ public boolean removeHostings(final Hosting obj) { * Remove a value from the 'locationCouplings' role.

* Role description: * null + * */ - @objid ("4175da27-481b-4257-8b75-713a3447cf2e") + @objid ("0a5fcea8-479e-466d-931e-2821f8d9555e") public boolean removeLocationCouplings(final LocationCoupling obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getDependsOnDependency())) { - if (d.isStereotyped(DeploymentTypeModel.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(DeploymentTypeModel.MdaTypes.MDAASSOCDEP_ROLE), "")) + if (d.isStereotyped(DeploymentTypeModel.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(DeploymentTypeModel.MdaTypes.MDAASSOCDEP_ROLE), "locationCouplings")) if (Objects.equals(d.getDependsOn(), obj.getElement())) { d.delete(); return true; @@ -455,8 +473,9 @@ public boolean removeLocationCouplings(final LocationCoupling obj) { * Remove a value from the 'paases' role.

* Role description: * null + * */ - @objid ("658aa5e7-5f61-474b-b738-2fc658ec6fc5") + @objid ("feba0ce4-e7e6-4641-83ed-ff7c69d5b805") public boolean removePaases(final PaaS obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -465,8 +484,9 @@ public boolean removePaases(final PaaS obj) { * Remove a value from the 'requirementSets' role.

* Role description: * null + * */ - @objid ("8d914cde-68dc-4994-8a6c-aee4c467c39a") + @objid ("93f7bdc3-a219-43bd-a136-eebff8e62f6c") public boolean removeRequirementSets(final RequirementSet obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -475,8 +495,9 @@ public boolean removeRequirementSets(final RequirementSet obj) { * Remove a value from the 'softwareComponents' role.

* Role description: * null + * */ - @objid ("9824090b-9246-48f6-9e6d-af3bebcbabeb") + @objid ("8ad949d0-1090-4b7f-9b3f-915e9d69f7d1") public boolean removeSoftwareComponents(final SoftwareComponent obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -485,8 +506,9 @@ public boolean removeSoftwareComponents(final SoftwareComponent obj) { * Remove a value from the 'vms' role.

* Role description: * null + * */ - @objid ("87003e48-2ef0-4a0f-adea-a6bf1c40e34e") + @objid ("e37d6e1b-80db-4f05-ae22-60cf8e8cd103") public boolean removeVms(final VM obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -495,8 +517,9 @@ public boolean removeVms(final VM obj) { * Set the value of the 'globalRequirementSet' role.

* Role description: * null + * */ - @objid ("0d3d8491-5077-48ef-a630-ae3a98788ddf") + @objid ("5e31bc86-3cd6-4926-9c07-46a82a2c567e") public void setGlobalRequirementSet(final RequirementSet obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -532,23 +555,23 @@ public List getChilds() { return result; } - @objid ("63a17325-9924-4262-b292-a3d0bf96122a") + @objid ("46064a04-2f73-4403-95da-18d5a0dd316a") protected DeploymentTypeModel(final Package elt) { super(elt); } @objid ("aa0491e2-0f18-46c3-ba92-4686c725d9fa") public static final class MdaTypes { - @objid ("9c6e8edf-66a3-487b-95d0-ba996c6f1e49") + @objid ("fd4f3749-c3e9-4912-9f4f-9af10bc32c0b") public static Stereotype STEREOTYPE_ELT; - @objid ("b7ddbac4-1437-454f-959b-9c4aae80d756") + @objid ("29bdad54-929b-4cd8-afd2-c5e6b17d3756") private static Stereotype MDAASSOCDEP; - @objid ("3259719f-6d28-448a-8557-aa3737906a24") + @objid ("19bfd6ad-302d-4d39-8be2-bcdeb22daa53") private static TagType MDAASSOCDEP_ROLE; - @objid ("2555db28-3a70-452f-b19c-00cb14ceb764") + @objid ("be09db9d-0ef7-46c1-ab95-ba27a2236c96") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "24bc0f0f-63bd-4249-8f58-47597e6cae12"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -556,11 +579,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 f29a01c2..6384d2ed 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.deploymentmodel.standard.port; @@ -36,16 +36,16 @@ */ @objid ("25c6d854-7691-4b15-a2cb-b76b325613c6") public class CommunicationPort extends FeaturePort { - @objid ("b2b7b39d-8b7b-416f-9a0d-dde4f0bab48a") + @objid ("56888007-f060-4f32-a21e-850f22a9fd95") public static final String STEREOTYPE_NAME = "CommunicationPort"; - @objid ("6a3c8758-a4a7-487a-9622-25ec4c6ab274") + @objid ("0dadb409-ffd3-4227-9d5a-3db3bc2cb2bb") public static final String HIGHPORTNUMBER_TAGTYPE = "highPortNumber"; - @objid ("d36dcf58-d96e-49ed-a1de-c7376b75aa2e") + @objid ("09bc01ed-5a2e-4c9b-b287-90e16165ed05") public static final String ISMANDATORY_TAGTYPE = "isMandatory"; - @objid ("e910d562-2332-4761-b18c-f55fa572b08b") + @objid ("233396d8-e7d6-42f8-8a62-43a9bb3c780a") public static final String LOWPORTNUMBER_TAGTYPE = "lowPortNumber"; /** @@ -56,7 +56,7 @@ public class CommunicationPort extends FeaturePort { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("11ea799e-bbe3-4155-aea0-ec1c586b8b48") + @objid ("d474a05f-61cb-4a06-8915-5a8802461bea") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Port) && ((Port) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, CommunicationPort.STEREOTYPE_NAME)); } @@ -66,7 +66,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link CommunicationPort} proxy on the created {@link Port}. */ - @objid ("ab4a2236-8fe2-4a9c-8b21-44d96c49ae1d") + @objid ("c49108dd-bd7a-4940-8944-d2b787ccbb8b") public static CommunicationPort create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Port"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, CommunicationPort.STEREOTYPE_NAME); @@ -74,36 +74,34 @@ 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. */ - @objid ("9aa3f3ba-1328-4d16-bf26-7b3d0ddad9da") + @objid ("7a9d01fd-cdfc-4b13-a4bb-5b727a6cea51") public static CommunicationPort instantiate(final Port obj) { return CommunicationPort.canInstantiate(obj) ? new CommunicationPort(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("ea64f777-23c9-4f9e-aec7-fab6adb67a30") + @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 ("69f6b70a-769f-46d3-9361-86f3fec2c292") + @objid ("9c023824-c41d-4264-a56e-68296a2e5b9a") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -120,11 +118,10 @@ 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 ("37ff29e2-1734-48ed-92f6-4eb37391911a") + @objid ("9dcb6240-3993-4a0d-9db0-f6a0488fa2df") @Override public Port getElement() { return (Port)super.getElement(); @@ -135,7 +132,7 @@ public Port getElement() { *

Property description: *
null

*/ - @objid ("390904a6-ed3b-45c3-bc10-160f22dc7101") + @objid ("d27985c2-f23e-4815-95b8-3ac491364aa9") public String getHighPortNumber() { return this.elt.getTagValue(CommunicationPort.MdaTypes.HIGHPORTNUMBER_TAGTYPE_ELT); } @@ -145,12 +142,12 @@ public String getHighPortNumber() { *

Property description: *
null

*/ - @objid ("83d3ceb4-f386-41e9-b1c9-4d1dfa3e135a") + @objid ("5ccd80e8-635d-4a1b-b73a-2e9f650ed050") public String getLowPortNumber() { return this.elt.getTagValue(CommunicationPort.MdaTypes.LOWPORTNUMBER_TAGTYPE_ELT); } - @objid ("06d86da3-3b67-4281-b0ae-47696f45139b") + @objid ("96562514-98bd-405a-a60b-5fdc0e3e37e7") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -161,7 +158,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("b9c2ae89-d175-45f1-afc9-26f841f3b8f4") + @objid ("2367c0d3-023b-404e-be88-680aa0661efb") public boolean isIsMandatory() { return this.elt.isTagged(CommunicationPort.MdaTypes.ISMANDATORY_TAGTYPE_ELT); } @@ -171,7 +168,7 @@ public boolean isIsMandatory() { *

Property description: *
null

*/ - @objid ("207ac91a-4e88-4ebb-aba9-513662d30830") + @objid ("26a3647d-160f-48fa-8c30-dfaab51a6705") public void setHighPortNumber(final String value) { this.elt.putTagValue(CommunicationPort.MdaTypes.HIGHPORTNUMBER_TAGTYPE_ELT, value); } @@ -181,7 +178,7 @@ public void setHighPortNumber(final String value) { *

Property description: *
null

*/ - @objid ("322e8926-4d62-488c-a9f2-aa3f94faa344") + @objid ("b8c04d8d-9272-401b-b63d-b17693f0ec65") public void setIsMandatory(final boolean value) { if (value) CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createTaggedValue(CommunicationPort.MdaTypes.ISMANDATORY_TAGTYPE_ELT, this.elt); @@ -194,7 +191,7 @@ public void setIsMandatory(final boolean value) { *

Property description: *
null

*/ - @objid ("a5d0718e-b8ad-4ce1-89bb-b6de254848cc") + @objid ("c69b0dd6-0fc9-43a0-82f3-875ab6071e22") public void setLowPortNumber(final String value) { this.elt.putTagValue(CommunicationPort.MdaTypes.LOWPORTNUMBER_TAGTYPE_ELT, value); } @@ -207,32 +204,32 @@ public List getChilds() { return result; } - @objid ("c6248ee4-2417-44da-a38d-d9420324f066") + @objid ("1c31bd2f-6193-4e8b-ad31-3348448815fe") protected CommunicationPort(final Port elt) { super(elt); } @objid ("4372cf5a-f8d4-4bb8-ad18-085c5dd70583") public static final class MdaTypes { - @objid ("8f0577b0-32eb-4928-8902-48f01050f503") + @objid ("928d0ac5-7598-460d-84a0-6ded6312315f") public static Stereotype STEREOTYPE_ELT; - @objid ("c8c814fe-d3fe-44a0-bb2f-3abad1e883a9") + @objid ("61ed9465-eba6-47b5-8ceb-e30022a6c871") public static TagType LOWPORTNUMBER_TAGTYPE_ELT; - @objid ("f5015a1d-7e9d-4afe-b9c9-e9c59b759645") + @objid ("defe9904-992b-4ece-819a-b5343ce53745") public static TagType HIGHPORTNUMBER_TAGTYPE_ELT; - @objid ("f6deeac9-908f-4955-b718-faca67471596") + @objid ("b346eb79-7bb8-4d3c-96d4-76e6eff14284") public static TagType ISMANDATORY_TAGTYPE_ELT; - @objid ("0ecc3aad-5d75-4541-8947-904b3be3736c") + @objid ("99ac30bd-b1bb-4539-ab0c-b88fc4b35b6f") private static Stereotype MDAASSOCDEP; - @objid ("bade3596-40cf-48b6-aa3d-cddf3fbe833a") + @objid ("51f9c17b-3661-45cd-b25d-7db2aab3d3ea") private static TagType MDAASSOCDEP_ROLE; - @objid ("7c232e55-015d-4b7b-9d25-52769569b0bf") + @objid ("4658acfe-1760-4f7e-a26c-c0193399ab7d") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "c3c6e0a4-b112-4a00-9c2f-964e3093c423"); LOWPORTNUMBER_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "6a5677a8-e95a-48ca-9d2c-17c3eb64fb84"); @@ -243,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/deploymentmodel/standard/port/HostingPort.java b/src/main/java/fr/softeam/cameldesigner/api/deploymentmodel/standard/port/HostingPort.java index 25ae3a0d..979ff46e 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.deploymentmodel.standard.port; @@ -36,7 +36,7 @@ */ @objid ("bf141fb2-a5e7-4adf-9870-921e4a516048") public class HostingPort extends FeaturePort { - @objid ("2f00987f-49ae-41d9-93ac-213082b04763") + @objid ("6f655181-a453-47e4-ba74-b4bf35eecb2a") public static final String STEREOTYPE_NAME = "HostingPort"; /** @@ -47,7 +47,7 @@ public class HostingPort extends FeaturePort { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("d105d4d2-b480-493d-8d91-94661efd633b") + @objid ("a058b888-7a58-4f0e-9b92-83dbe7282f1f") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Port) && ((Port) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, HostingPort.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link HostingPort} proxy on the created {@link Port}. */ - @objid ("193f15f4-eaea-400c-99be-c1d64b8280bc") + @objid ("8e42516f-de82-43e4-a08d-c0b437da1914") public static HostingPort create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Port"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, HostingPort.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("34cc8de0-e0f7-48fd-8f19-186d11e6b238") + @objid ("a2b6a9c6-61bf-42ae-bd45-6e50364ee771") public static HostingPort instantiate(final Port obj) { return HostingPort.canInstantiate(obj) ? new HostingPort(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("0d42645f-5fe8-497b-ba41-ff34e929bc94") + @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 ("4502a389-9d6c-4034-bb4e-e0e52439ccd1") + @objid ("0fb694c6-02f5-4564-b90a-c62b3af38c57") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,17 +109,16 @@ 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 ("57a09759-eb52-449e-83c7-4db32b6288ea") + @objid ("57961d29-6099-4706-995c-bbb540255d3f") @Override public Port getElement() { return (Port)super.getElement(); } - @objid ("77dcc27c-dcbe-4d2e-8a64-8e85544cc980") + @objid ("88ed6dae-ebd8-47fc-ae3b-dad9652f3644") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -135,23 +132,23 @@ public List getChilds() { return result; } - @objid ("b4b955a7-858b-450a-a24b-275b2f9f620b") + @objid ("9e904947-b8c7-49c3-a69f-15c5b0ff8d54") protected HostingPort(final Port elt) { super(elt); } @objid ("98fe20f6-f33e-4b62-b8ea-1f4b27c8cf6e") public static final class MdaTypes { - @objid ("7d923518-3d89-413b-9832-41a98517fb93") + @objid ("5eed31b7-3245-4b54-9247-77830a4721a1") public static Stereotype STEREOTYPE_ELT; - @objid ("cd050c8b-d6a5-49b1-b57e-447f1d0028ae") + @objid ("bea5a50b-cf10-44b5-afab-79a312dc9192") private static Stereotype MDAASSOCDEP; - @objid ("4884fda2-64e5-4835-9aa9-9902ea852f0c") + @objid ("8eebf833-37f7-420b-b1c9-43d06e253899") private static TagType MDAASSOCDEP_ROLE; - @objid ("5cc2a3ff-d505-4668-8239-ddb6ada56b19") + @objid ("11a9542a-947b-439f-8cb4-1a41fb59ca0f") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "0672a25d-20e7-4566-b187-f3f3572d73c3"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -159,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/executionmodel/standard/class_/ApplicationMeasurement.java b/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/ApplicationMeasurement.java index 788fdb35..440503a1 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.executionmodel.standard.class_; @@ -35,7 +35,7 @@ */ @objid ("164b2229-0807-45e3-bcba-6b09194928b2") public class ApplicationMeasurement extends Measurement { - @objid ("66e840a5-3274-402a-80ee-6e22b211a414") + @objid ("f29e9a73-c99d-4a05-bfad-1be9eb86a857") public static final String STEREOTYPE_NAME = "ApplicationMeasurement"; /** @@ -46,7 +46,7 @@ public class ApplicationMeasurement extends Measurement { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("f4791844-7d48-4613-8056-ee701ca29ca7") + @objid ("2da278d8-8222-49b6-8862-40d4e2b1f961") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, ApplicationMeasurement.STEREOTYPE_NAME)); } @@ -56,7 +56,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link ApplicationMeasurement} proxy on the created {@link Class}. */ - @objid ("93205324-4be9-4867-b193-9ba1acfc0a70") + @objid ("9852f6e4-2007-497d-bdbc-bf3438922801") public static ApplicationMeasurement create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, ApplicationMeasurement.STEREOTYPE_NAME); @@ -64,36 +64,34 @@ 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. */ - @objid ("1b93d776-3c45-4c60-9e65-fa60e565c3ad") + @objid ("95e60beb-332a-4812-8568-b0e90cf1947c") public static ApplicationMeasurement instantiate(final Class obj) { return ApplicationMeasurement.canInstantiate(obj) ? new ApplicationMeasurement(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("084e64f8-539f-4401-b510-b4449df89c53") + @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 ("31049218-d380-4f87-8023-863bb6ff00e0") + @objid ("c6dde293-9e6a-46c6-84c3-325187271242") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -110,17 +108,16 @@ 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 ("7a832b65-22c7-4078-b7f0-cccf4a2749f4") + @objid ("0b140f54-9a46-4a5b-95ed-a037c3c2227f") @Override public Class getElement() { return (Class)super.getElement(); } - @objid ("c8a362be-ee21-46b3-ae18-20b8bd6863ba") + @objid ("47fcf530-b76e-4509-8e9b-501cf94fee97") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -134,23 +131,23 @@ public List getChilds() { return result; } - @objid ("ac71a9e4-87da-46f3-9a70-6d2ab11778b1") + @objid ("9a9e0985-53fc-4b25-a0fe-2bad8604cf61") protected ApplicationMeasurement(final Class elt) { super(elt); } @objid ("c03973d2-687e-4c2b-b6af-b5fe5dfcf3e3") public static final class MdaTypes { - @objid ("9b3e6e1e-9294-49e0-a78f-966df6bba652") + @objid ("18030117-cdcd-41e2-bd2b-050b502c7241") public static Stereotype STEREOTYPE_ELT; - @objid ("5d0cb663-1ddb-4979-8ac9-7329a2e1987e") + @objid ("17950d17-7d7d-4cd5-8450-40a9a01b789c") private static Stereotype MDAASSOCDEP; - @objid ("ed729566-5129-4206-afec-2c2ce60a375b") + @objid ("6c9c77f6-3333-47f7-933d-c1f3f53427a3") private static TagType MDAASSOCDEP_ROLE; - @objid ("0f9aefb7-c6ce-4aac-bd20-c395e9d5b96a") + @objid ("387f9222-9e5d-42a4-a1d3-6983cea5c4d8") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "8962d6e6-e540-41c6-bf79-3df6530aae2e"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -158,11 +155,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 7341f5b6..5d99a6ef 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.executionmodel.standard.class_; @@ -40,7 +40,7 @@ */ @objid ("1cafb6a7-d466-4de2-a97f-7137b1fa5b8b") public class Cause extends FeatureClass { - @objid ("46b47af2-ffba-49ea-8808-f50c3488c92c") + @objid ("f2f50c99-79ba-4e5a-9caf-40f1fcb2f71f") public static final String STEREOTYPE_NAME = "Cause"; /** @@ -51,7 +51,7 @@ public class Cause extends FeatureClass { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("4baf86b6-a5e8-4c25-8147-02e61b4f1107") + @objid ("cb4c4204-f074-4130-b343-bde821311e93") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, Cause.STEREOTYPE_NAME)); } @@ -61,7 +61,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link Cause} proxy on the created {@link Class}. */ - @objid ("60551db4-c8e3-4763-86c2-83f4a402755f") + @objid ("840eb6a3-0d57-40d1-8a9a-583c2757bf0c") public static Cause create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, Cause.STEREOTYPE_NAME); @@ -69,47 +69,46 @@ 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. */ - @objid ("6095fee9-ca63-4f87-9968-3fda0ea5b716") + @objid ("db01fd09-e23e-4b82-94b5-b5e3bba2afd4") public static Cause instantiate(final Class obj) { return Cause.canInstantiate(obj) ? new Cause(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("95b16420-721b-4518-a533-695ed481a17f") + @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 ("516832e9-7a16-4968-9f7a-47812db04fa1") + @objid ("d7d9d124-1f8e-48b1-ab51-b5e0a3fefd8a") public void addEventInstances(final EventInstance obj) { if (obj!=null) ((Class) this.elt).getDeclared().add(obj.getElement()); } - @objid ("7a14b2f5-663f-45fd-9837-5b29ab4ccbd6") + @objid ("998c2fe8-b3db-479c-9a41-25cd29c2223d") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -126,11 +125,10 @@ 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 ("49a3d4b0-9a4c-4933-a91c-b71ffb5f130b") + @objid ("f48c890a-d46e-4de7-9de3-38fe6aa38cd1") @Override public Class getElement() { return (Class)super.getElement(); @@ -140,20 +138,21 @@ public Class getElement() { * Get the values of the 'eventInstances' role.

* Role description: * null + * */ - @objid ("753254c9-22ef-4197-9121-368bb3c96715") + @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); } - @objid ("bd383fe5-526c-4be2-9964-3ea4df5648f6") + @objid ("363bc07a-e801-40b7-858e-1118d0c196ed") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -163,8 +162,9 @@ public int hashCode() { * Remove a value from the 'eventInstances' role.

* Role description: * null + * */ - @objid ("9c66b10f-75ae-4c10-80b3-a49375edfc68") + @objid ("918dec25-5c5f-4f87-8686-f69e2e32f53e") public boolean removeEventInstances(final EventInstance obj) { return (obj!=null)? ((Class) this.elt).getDeclared().remove(obj.getElement()) : false; } @@ -177,23 +177,23 @@ public List getChilds() { return result; } - @objid ("d3601b9a-3aab-4f7b-b720-1155865f09d7") + @objid ("8923d940-ebdd-497f-bb2e-29b805ae0041") protected Cause(final Class elt) { super(elt); } @objid ("4715c654-3715-48a5-94ee-f2e266c99336") public static final class MdaTypes { - @objid ("656a2340-f5af-40b0-835d-05ba9ca42460") + @objid ("f5168d57-8709-4399-9e40-2f26947479a3") public static Stereotype STEREOTYPE_ELT; - @objid ("f7788d14-7fd1-42c6-9fef-99018dd66a20") + @objid ("19561ba9-6b78-4c7a-a101-2fb286324309") private static Stereotype MDAASSOCDEP; - @objid ("417eca1e-f157-42da-848b-bd16e5b35cac") + @objid ("7256b10d-f0b5-402e-b0ab-f24a9b18aa76") private static TagType MDAASSOCDEP_ROLE; - @objid ("3e4a7c0a-39eb-4ddb-8dcd-fe03387c99a1") + @objid ("3b6d1a5e-b633-4516-9f6f-f1647f51a1f5") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "fc44bcb6-59df-49ef-9ed6-13f1d2b85393"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -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 c2f1276c..d1b0a58a 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.executionmodel.standard.class_; @@ -37,7 +37,7 @@ */ @objid ("edb868dc-4070-4b7f-8e36-da2647d6198a") public class CommunicationMeasurement extends Measurement { - @objid ("2a414f0b-8771-442d-b1a7-883e3bd2cd3b") + @objid ("b4d883ce-923a-4101-947f-6b47092dc2f8") public static final String STEREOTYPE_NAME = "CommunicationMeasurement"; /** @@ -48,7 +48,7 @@ public class CommunicationMeasurement extends Measurement { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("58f38cae-604e-4c29-b8ae-d4b2144bfd10") + @objid ("1dd41d80-5ebc-432e-8604-9599b0706a5d") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, CommunicationMeasurement.STEREOTYPE_NAME)); } @@ -58,7 +58,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link CommunicationMeasurement} proxy on the created {@link Class}. */ - @objid ("b0c0ae34-96a3-4174-86c1-c5b0409039cc") + @objid ("e04069e7-3791-486d-9206-13ef3fe8d537") public static CommunicationMeasurement create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, CommunicationMeasurement.STEREOTYPE_NAME); @@ -66,36 +66,34 @@ 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. */ - @objid ("25517b65-1eca-4a4b-985c-ea87c5998857") + @objid ("4dab25a5-f9ab-4ed5-9cc3-b52752f5b918") public static CommunicationMeasurement instantiate(final Class obj) { return CommunicationMeasurement.canInstantiate(obj) ? new CommunicationMeasurement(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("44350cfd-b93d-4fc8-9c54-83f27789c81c") + @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 ("977cea0a-e7ee-4176-be53-77b27d5ffa1b") + @objid ("d6d05eaf-a688-4e54-a8c8-4d763fb00d4b") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -112,11 +110,10 @@ 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 ("d3af87a5-3ad3-4c54-9aef-c447b88e113f") + @objid ("83253fe3-e688-4d9b-8643-2f589678f703") @Override public Class getElement() { return (Class)super.getElement(); @@ -126,8 +123,9 @@ public Class getElement() { * Get the value of the 'sourceVM' role.

* Role description: * null + * */ - @objid ("f294df00-f767-4d6d-af8a-5819ab2147b4") + @objid ("26a32bf3-63ab-42c2-8e93-aa4b3725ee94") public VM getSourceVM() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(CommunicationMeasurement.MdaTypes.MDAASSOCDEP) @@ -143,8 +141,9 @@ public VM getSourceVM() { * Get the value of the 'sourceVMInstance' role.

* Role description: * null + * */ - @objid ("fb7e4e39-aa6a-4a15-bd65-64caa62b04fe") + @objid ("dd957941-a535-427a-ab2b-c1b48a9a5478") public VMInstance getSourceVMInstance() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(CommunicationMeasurement.MdaTypes.MDAASSOCDEP) @@ -160,8 +159,9 @@ public VMInstance getSourceVMInstance() { * Get the value of the 'targetVM' role.

* Role description: * null + * */ - @objid ("1ef4c379-c60b-48fe-ad15-39826f71a056") + @objid ("0e1c10e3-6868-434c-a627-071f1ea512cd") public VM getTargetVM() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(CommunicationMeasurement.MdaTypes.MDAASSOCDEP) @@ -177,8 +177,9 @@ public VM getTargetVM() { * Get the value of the 'targetVMInstance' role.

* Role description: * null + * */ - @objid ("ae594777-18a8-4275-beb6-90434f3f9af1") + @objid ("f3c9bb72-289d-45d1-92ae-e0a00b480f07") public VMInstance getTargetVMInstance() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(CommunicationMeasurement.MdaTypes.MDAASSOCDEP) @@ -190,7 +191,7 @@ public VMInstance getTargetVMInstance() { return null; } - @objid ("f9fc9f8b-b6fd-4ee2-9d7c-7983f04e4e8b") + @objid ("4bce6998-74d2-4049-9fe4-524caab3b81e") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -200,8 +201,9 @@ public int hashCode() { * Set the value of the 'sourceVM' role.

* Role description: * null + * */ - @objid ("0901f01f-cb1c-4772-a197-f938685538d2") + @objid ("8b6243ba-0fc5-4b95-840c-d1eec00da4cb") public void setSourceVM(final VM obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -225,8 +227,9 @@ public void setSourceVM(final VM obj) { * Set the value of the 'sourceVMInstance' role.

* Role description: * null + * */ - @objid ("cd772c36-934b-45db-8f88-a08c5b72a10f") + @objid ("9cd5a30a-731b-4aea-80cf-f7daed31f102") public void setSourceVMInstance(final VMInstance obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -250,8 +253,9 @@ public void setSourceVMInstance(final VMInstance obj) { * Set the value of the 'targetVM' role.

* Role description: * null + * */ - @objid ("d2424ef6-0211-466b-af6e-70ceb19b80ef") + @objid ("e1057403-9ab2-4b86-8184-a49615627074") public void setTargetVM(final VM obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -275,8 +279,9 @@ public void setTargetVM(final VM obj) { * Set the value of the 'targetVMInstance' role.

* Role description: * null + * */ - @objid ("ae201c0c-1ce7-4ede-989f-d70f362f0bb8") + @objid ("87af96db-da9b-4ed8-9fb5-05f1bcd9b326") public void setTargetVMInstance(final VMInstance obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -304,23 +309,23 @@ public List getChilds() { return result; } - @objid ("f79dfc12-50a6-4ed6-b10d-b403a733386b") + @objid ("338111d5-830f-4264-b2d5-1fda08a72d87") protected CommunicationMeasurement(final Class elt) { super(elt); } @objid ("2bc724e6-be76-4f04-8dd1-ded2cd7a4cf6") public static final class MdaTypes { - @objid ("1323d44e-9ebd-4777-baa0-752c3febd17d") + @objid ("942e2932-ca05-44ee-87f5-26cbc7894963") public static Stereotype STEREOTYPE_ELT; - @objid ("92fce365-cbc2-453c-837c-37a1a529c990") + @objid ("c104cf89-873c-4f67-a7ff-b8e665c1568c") private static Stereotype MDAASSOCDEP; - @objid ("bff232b3-45a5-4d2e-8300-f5d9c64e6a12") + @objid ("b6c69dd9-a42d-482e-9ff7-85bbcdd152da") private static TagType MDAASSOCDEP_ROLE; - @objid ("28856fb3-5159-4289-a781-fce67718b74d") + @objid ("058907ee-dbcf-475f-a23e-a957473ff7af") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "438c005e-3455-4a76-ba8b-3791473a3e5a"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -328,11 +333,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 048a06a9..d51d08d1 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.executionmodel.standard.class_; @@ -37,7 +37,7 @@ */ @objid ("c4401553-3d0b-4901-8ab2-21261d105e3c") public class ContainerMeasurement extends Measurement { - @objid ("d3ee1fdd-10f1-4d84-bcd4-4ed64e0efb0c") + @objid ("da925dcf-d329-411b-a31f-9c1abc878044") public static final String STEREOTYPE_NAME = "ContainerMeasurement"; /** @@ -48,7 +48,7 @@ public class ContainerMeasurement extends Measurement { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("91c2770b-404b-4d7b-91fc-4c3925932c78") + @objid ("ad1dbd72-69e0-460d-bb5d-005ccad61991") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, ContainerMeasurement.STEREOTYPE_NAME)); } @@ -58,7 +58,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link ContainerMeasurement} proxy on the created {@link Class}. */ - @objid ("c84117b4-8f33-439f-a22d-6809f2961928") + @objid ("5180f66b-5937-4304-a5d8-c045a950880b") public static ContainerMeasurement create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, ContainerMeasurement.STEREOTYPE_NAME); @@ -66,36 +66,34 @@ 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. */ - @objid ("804c8355-5971-4e9b-b00a-b769cc85ea6e") + @objid ("c1de65c4-417d-467e-b119-e01586646539") public static ContainerMeasurement instantiate(final Class obj) { return ContainerMeasurement.canInstantiate(obj) ? new ContainerMeasurement(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("03ed8896-8ce6-45f9-9476-ec45093ab73b") + @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 ("902db1cf-fd6e-4a98-8afc-33eff9f15bb4") + @objid ("ac6d1c31-441a-4cc6-8078-0f21213b5b65") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -115,8 +113,9 @@ public boolean equals(final Object obj) { * Get the value of the 'container' role.

* Role description: * null + * */ - @objid ("8ccc1d3d-a0cf-4e8d-8784-dd7ef4b85b8e") + @objid ("5ffa6f9e-310e-482b-91a9-8bc41554f240") public Container getContainer() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(ContainerMeasurement.MdaTypes.MDAASSOCDEP) @@ -132,8 +131,9 @@ public Container getContainer() { * Get the value of the 'containerInstance' role.

* Role description: * null + * */ - @objid ("9e4d00e8-facf-4de2-90d8-673179e1fd97") + @objid ("b7ded167-1a4b-403a-ac0b-c1a1e6cb7e05") public ContainerInstance getContainerInstance() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(ContainerMeasurement.MdaTypes.MDAASSOCDEP) @@ -146,17 +146,16 @@ public ContainerInstance getContainerInstance() { } /** - * Get the underlying {@link Class}. - * + * Get the underlying {@link Class}. * @return the Class represented by this proxy, never null. */ - @objid ("189a2576-93cc-4614-9ddf-eec536ea823b") + @objid ("c168e8d2-f061-4303-8f95-eda4e7675cc6") @Override public Class getElement() { return (Class)super.getElement(); } - @objid ("009e9df1-2769-4178-b5e4-37be6af08106") + @objid ("2eac87fd-6683-452a-92db-315c3053a02b") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -166,8 +165,9 @@ public int hashCode() { * Set the value of the 'container' role.

* Role description: * null + * */ - @objid ("1fa0fa4a-49ad-4937-b3fa-59947b6f00b9") + @objid ("e88ef893-21ae-4d18-9518-fba0cd9530ee") public void setContainer(final Container obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -191,8 +191,9 @@ public void setContainer(final Container obj) { * Set the value of the 'containerInstance' role.

* Role description: * null + * */ - @objid ("2ff6fea9-c75f-44e8-af58-6e152bcb2438") + @objid ("fa8b09b1-abb9-4517-84b6-db98e4b319c1") public void setContainerInstance(final ContainerInstance obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -220,23 +221,23 @@ public List getChilds() { return result; } - @objid ("85f964aa-71aa-4339-9942-9f6918680576") + @objid ("13fd9201-95d9-4ee9-b706-8e003ef38fc3") protected ContainerMeasurement(final Class elt) { super(elt); } @objid ("0bc17bd6-139f-4ffe-97d9-fd0db467095f") public static final class MdaTypes { - @objid ("a103e159-dd76-4b5a-963a-d1ffcfb70b09") + @objid ("6e1549c5-d26c-45fb-b780-1338511e5f06") public static Stereotype STEREOTYPE_ELT; - @objid ("ad53eb59-f53f-4885-b41c-afc27233e64c") + @objid ("1b30c2b7-d79f-4343-804d-745c988769cf") private static Stereotype MDAASSOCDEP; - @objid ("f1dda47a-f411-43bd-9887-26d4fcc90c0e") + @objid ("9fc0556c-96a6-4254-b53d-0ddc282933b3") private static TagType MDAASSOCDEP_ROLE; - @objid ("1b95ee6c-19d6-4ce2-9765-f37197d3077e") + @objid ("2b930132-6c73-4b82-b53e-ebab51c7baf9") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "85629f9a-c7b9-455f-a948-e90a070e6b60"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -244,11 +245,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 7cbc1266..bd20c53c 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.executionmodel.standard.class_; @@ -38,7 +38,7 @@ */ @objid ("14a8b56f-d785-464c-a539-c3deadd856a3") public class DataMeasurement extends Measurement { - @objid ("c76eecf0-011b-4dd0-bbc0-aed9e2e13e15") + @objid ("842c6c9e-41e6-40c9-bdec-12e29bc54367") public static final String STEREOTYPE_NAME = "DataMeasurement"; /** @@ -49,7 +49,7 @@ public class DataMeasurement extends Measurement { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("7453d49d-d6c3-4c25-b43a-531c8d7fbbc1") + @objid ("469e36b9-1f3d-4346-b025-b68ab0c2df96") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, DataMeasurement.STEREOTYPE_NAME)); } @@ -59,7 +59,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link DataMeasurement} proxy on the created {@link Class}. */ - @objid ("6d882eb4-ded4-42db-8d28-2f82181b31a9") + @objid ("98809a01-1909-45b2-9907-3a8ce4b6c899") public static DataMeasurement create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, DataMeasurement.STEREOTYPE_NAME); @@ -67,36 +67,34 @@ 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. */ - @objid ("1c9d3b05-a8df-45a1-a2b9-55d880f52acb") + @objid ("522ec542-8b96-4479-8c14-a1d39d54052b") public static DataMeasurement instantiate(final Class obj) { return DataMeasurement.canInstantiate(obj) ? new DataMeasurement(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("a98495eb-f9eb-4c53-8895-392619612a81") + @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 ("fad3d26a-5283-4e1a-bf19-685ed799a191") + @objid ("7d1bf1c6-abef-435e-96db-679d4dc2ad07") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -116,8 +114,9 @@ public boolean equals(final Object obj) { * Get the value of the 'data' role.

* Role description: * null + * */ - @objid ("9817b57d-7ae0-4b41-950a-79fa49e297c2") + @objid ("f9311e3c-0aaa-4cb4-8738-843b5dd12e04") public Data getData() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(DataMeasurement.MdaTypes.MDAASSOCDEP) @@ -133,8 +132,9 @@ public Data getData() { * Get the value of the 'dataInstance' role.

* Role description: * null + * */ - @objid ("2ba91908-d474-47c6-803e-de91c90a26ce") + @objid ("4ab3ce3a-4510-4459-86dc-083be2f2c6de") public DataInstance getDataInstance() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(DataMeasurement.MdaTypes.MDAASSOCDEP) @@ -149,17 +149,16 @@ public DataInstance getDataInstance() { } /** - * Get the underlying {@link Class}. - * + * Get the underlying {@link Class}. * @return the Class represented by this proxy, never null. */ - @objid ("fd64d51c-f41b-4e44-a26b-cc5fbd20a32d") + @objid ("afa72234-ff74-4a30-b0f4-663e67a14c96") @Override public Class getElement() { return (Class)super.getElement(); } - @objid ("59bc03ff-eef4-423c-82e5-f3a5bb7573ac") + @objid ("c09ff340-2132-4efd-809b-981219dcba87") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -169,8 +168,9 @@ public int hashCode() { * Set the value of the 'data' role.

* Role description: * null + * */ - @objid ("83140154-8efa-4913-a572-09d234a53839") + @objid ("e194416c-4718-4d9d-8a3d-35a4dded5e1a") public void setData(final Data obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -194,8 +194,9 @@ public void setData(final Data obj) { * Set the value of the 'dataInstance' role.

* Role description: * null + * */ - @objid ("b6e7ebbb-cf4a-4b2c-a06b-fa150878afc0") + @objid ("b054f6da-5fa3-440c-8237-e688dc9b0d5d") public void setDataInstance(final DataInstance obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -223,23 +224,23 @@ public List getChilds() { return result; } - @objid ("7c6594df-a65b-4876-9f84-25acb6dcfcda") + @objid ("166131fa-e9fd-47be-8b1c-4bf3aa054232") protected DataMeasurement(final Class elt) { super(elt); } @objid ("87143fca-4f6e-494f-b6a8-3dd519ed1fa8") public static final class MdaTypes { - @objid ("2d7b2406-6de3-4827-a778-d73b58a29b5e") + @objid ("625087ed-dbc4-4701-80f9-814bb4da9581") public static Stereotype STEREOTYPE_ELT; - @objid ("b60f6346-b49a-40fc-a627-3c50c967d1f3") + @objid ("72d0d3d2-2a6d-40a5-af7d-b34ca50a67ad") private static Stereotype MDAASSOCDEP; - @objid ("1580b575-6eee-4d9a-b130-dff30a93096f") + @objid ("daa6154a-f392-4aab-a1e7-a1bb74eb642c") private static TagType MDAASSOCDEP_ROLE; - @objid ("7cabee9f-7091-46a6-9320-952539989b3e") + @objid ("26b411aa-43a0-478c-9fdb-ec3300a73e27") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "fe1fd247-1047-4137-8ff6-90ed2e79ac91"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -247,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/executionmodel/standard/class_/HistoryInfo.java b/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/HistoryInfo.java index d8d220e8..09e6618a 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.executionmodel.standard.class_; @@ -205,16 +205,16 @@ */ @objid ("32a73516-6547-4f5b-b3b1-4018a2466233") public class HistoryInfo extends FeatureClass { - @objid ("7e5a2ef0-6b2d-4221-8300-1f2c3cc0ad19") + @objid ("1027e113-2fee-40ed-9e6d-1560e44f4b86") public static final String STEREOTYPE_NAME = "HistoryInfo"; - @objid ("e4fd9aa0-ee31-4c33-887a-202bd0e6acd8") + @objid ("d9c01ecc-932b-400d-a329-363143a82a11") public static final String ENDTIME_TAGTYPE = "endTime"; - @objid ("9bc27d43-8033-406f-9ed5-4dc3ec2cac8b") + @objid ("10fc1713-1312-4e84-a5d0-0233fa1521cb") public static final String OBJECT_TAGTYPE = "object"; - @objid ("aeefdea9-68f3-4dd4-ad97-328383581397") + @objid ("23f6a54f-44d2-46b0-91b3-633ba0d30e3b") public static final String STARTTIME_TAGTYPE = "startTime"; /** @@ -225,7 +225,7 @@ public class HistoryInfo extends FeatureClass { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("a16f715a-6737-4ba1-a8a5-1dfc78a7b4d6") + @objid ("38798584-25ac-4358-bead-7900738afa2e") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, HistoryInfo.STEREOTYPE_NAME)); } @@ -235,7 +235,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link HistoryInfo} proxy on the created {@link Class}. */ - @objid ("00a328ed-6ba1-4b2f-b282-1b00eb969139") + @objid ("6f993a5e-7837-423f-87db-b98d92863aad") public static HistoryInfo create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, HistoryInfo.STEREOTYPE_NAME); @@ -243,36 +243,34 @@ 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. */ - @objid ("aa1c1e3e-7d06-4d88-8b8d-e53c10e95e8d") + @objid ("1c6cad42-e4f4-4694-b62e-5da6f6238123") public static HistoryInfo instantiate(final Class obj) { return HistoryInfo.canInstantiate(obj) ? new HistoryInfo(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("56b0c5b3-9ba1-45b4-92a3-fb273771929c") + @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 ("ed797e0c-588e-4e9a-8a08-ed245352099f") + @objid ("e467ba14-0693-4ae6-956e-eeeffa171110") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -292,8 +290,9 @@ public boolean equals(final Object obj) { * Get the value of the 'action' role.

* Role description: * null + * */ - @objid ("4fa2ddbe-8f83-4119-be6a-b27e982ae6ef") + @objid ("04c24647-b27e-4408-8e89-fb2d1d545e7f") public MmsObject getAction() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(HistoryInfo.MdaTypes.MDAASSOCDEP) @@ -312,11 +311,10 @@ public MmsObject getAction() { } /** - * Get the underlying {@link Class}. - * + * Get the underlying {@link Class}. * @return the Class represented by this proxy, never null. */ - @objid ("69445c23-e5d1-4e16-be5c-7e0a70ddaed5") + @objid ("bcb87729-8402-4806-a198-c45655131023") @Override public Class getElement() { return (Class)super.getElement(); @@ -327,7 +325,7 @@ public Class getElement() { *

Property description: *
null

*/ - @objid ("fbdfc322-3071-428c-905d-544fbbe82e73") + @objid ("2dbe7ce1-aeff-4ed8-8b35-d7d4feb1f08c") public String getEndTime() { return this.elt.getTagValue(HistoryInfo.MdaTypes.ENDTIME_TAGTYPE_ELT); } @@ -337,7 +335,7 @@ public String getEndTime() { *

Property description: *
null

*/ - @objid ("3bc6222c-31f7-4534-8dfd-e9e5e0a956f8") + @objid ("27e7f090-77af-4b6c-85df-1d06dfe6252d") public String getObject() { return this.elt.getTagValue(HistoryInfo.MdaTypes.OBJECT_TAGTYPE_ELT); } @@ -346,8 +344,9 @@ public String getObject() { * Get the value of the 'objectRef' role.

* Role description: * null + * */ - @objid ("5bf344c5-15e1-4a00-9e86-0d47523cb337") + @objid ("df8fd165-5ff4-4a29-ab52-7c1c84dcbcf1") public CamelElement getObjectRef() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(HistoryInfo.MdaTypes.MDAASSOCDEP) @@ -702,7 +701,7 @@ public CamelElement getObjectRef() { *

Property description: *
null

*/ - @objid ("2bc5b30e-d4c0-49a0-90f8-647bf93d0451") + @objid ("54d8f7ed-7161-4125-99ec-a56d5b215951") public String getStartTime() { return this.elt.getTagValue(HistoryInfo.MdaTypes.STARTTIME_TAGTYPE_ELT); } @@ -711,8 +710,9 @@ public String getStartTime() { * Get the value of the 'subject' role.

* Role description: * null + * */ - @objid ("4e0ec556-da04-4dff-9b79-c5edc5638756") + @objid ("a9dccf60-37f8-4281-b31c-dbc2d2b73569") public MmsObject getSubject() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(HistoryInfo.MdaTypes.MDAASSOCDEP) @@ -730,7 +730,7 @@ public MmsObject getSubject() { return null; } - @objid ("45f39644-3935-4e6a-8b83-89bb6c6b71ea") + @objid ("0c4178f8-073d-47b3-ae1a-a1253e7fb663") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -740,8 +740,9 @@ public int hashCode() { * Set the value of the 'action' role.

* Role description: * null + * */ - @objid ("4a32f3a7-fdb0-486b-8221-4da1094ab21e") + @objid ("5ce2e370-618c-4ce0-a5ad-91e80b508ca1") public void setAction(final MmsObject obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -766,7 +767,7 @@ public void setAction(final MmsObject obj) { *

Property description: *
null

*/ - @objid ("253ba93b-8d9e-4ee2-8d07-1ba6d57cc810") + @objid ("9a95062c-b996-4708-9776-bce0723cbc7b") public void setEndTime(final String value) { this.elt.putTagValue(HistoryInfo.MdaTypes.ENDTIME_TAGTYPE_ELT, value); } @@ -776,7 +777,7 @@ public void setEndTime(final String value) { *

Property description: *
null

*/ - @objid ("799751ec-fbaf-4abf-bca5-d52e38e59ec1") + @objid ("7f0123c7-be4c-4a4c-acdc-31afb17985cc") public void setObject(final String value) { this.elt.putTagValue(HistoryInfo.MdaTypes.OBJECT_TAGTYPE_ELT, value); } @@ -785,8 +786,9 @@ public void setObject(final String value) { * Set the value of the 'objectRef' role.

* Role description: * null + * */ - @objid ("bbda7e82-8bc9-4202-ae90-64de10c72446") + @objid ("383300e3-dc35-4e0e-86d1-63d97a837041") public void setObjectRef(final CamelElement obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -811,7 +813,7 @@ public void setObjectRef(final CamelElement obj) { *

Property description: *
null

*/ - @objid ("779434cd-9d43-4e13-9b3c-3b41c7f1ccef") + @objid ("9d2a3ab9-b740-4a80-8916-3e21d7cd22f6") public void setStartTime(final String value) { this.elt.putTagValue(HistoryInfo.MdaTypes.STARTTIME_TAGTYPE_ELT, value); } @@ -820,8 +822,9 @@ public void setStartTime(final String value) { * Set the value of the 'subject' role.

* Role description: * null + * */ - @objid ("bca98960-11ea-41a5-8702-bbb9235d4460") + @objid ("b112b3e7-78e3-434d-88d2-817a8780fd68") public void setSubject(final MmsObject obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -849,32 +852,32 @@ public List getChilds() { return result; } - @objid ("3b23caa2-d88c-4caa-9d20-032bead49088") + @objid ("2818290a-c116-4395-b357-1d1452b09c91") protected HistoryInfo(final Class elt) { super(elt); } @objid ("3e1aab74-be0c-48b2-b316-e35870217b33") public static final class MdaTypes { - @objid ("218ee8de-54d8-449d-9905-14805831288d") + @objid ("3006abee-d4af-43b9-abbf-f1b394f78033") public static Stereotype STEREOTYPE_ELT; - @objid ("26adb432-0529-499e-b7d0-02b265cd899d") + @objid ("6ddfcb03-01a2-4ba2-9a58-bbef72c0ab3c") public static TagType OBJECT_TAGTYPE_ELT; - @objid ("606ad401-a915-4cf7-a14a-565bd7c80b06") + @objid ("4d148f60-1128-4219-937a-de7025e96bac") public static TagType STARTTIME_TAGTYPE_ELT; - @objid ("07de0577-176b-4f1a-be35-8d698b113e46") + @objid ("02be3e3b-f5e2-4761-b5a9-7a5494c3b248") public static TagType ENDTIME_TAGTYPE_ELT; - @objid ("06851b49-f69d-4717-bba1-fbdc61f48d92") + @objid ("da06094a-2967-47b1-8859-ccd8f51a2b50") private static Stereotype MDAASSOCDEP; - @objid ("b64e2b94-d0c3-4666-94ec-793697cc5765") + @objid ("aba59a67-08c8-46de-aec9-c2ea611b97e8") private static TagType MDAASSOCDEP_ROLE; - @objid ("97a4c6d9-2edd-4d62-b4de-2649d5fe3763") + @objid ("1e11a329-851c-4d0b-a41d-98b5227743df") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "acef265d-7979-416d-8e8d-bc2a20331822"); OBJECT_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "b459f0a0-04c3-4f41-ba76-aca6f5dc6dda"); @@ -885,11 +888,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 4bbbef06..eb417a2c 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.executionmodel.standard.class_; @@ -17,6 +17,8 @@ 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; @@ -46,13 +48,13 @@ */ @objid ("b33e67d3-9fd0-4004-abdd-b08e7227aa1d") public class HistoryRecord extends FeatureClass { - @objid ("c441ec73-576a-4f02-9d1b-0ca99fda787a") + @objid ("429b1a14-a55e-422a-8f20-e40f7113445a") public static final String STEREOTYPE_NAME = "HistoryRecord"; - @objid ("3b6ced29-183c-42f0-85d9-6c506bfbbd4f") + @objid ("9220c0e0-6e0a-4589-aa31-61e39da5ea8d") public static final String ENDTIME_TAGTYPE = "endTime"; - @objid ("532267aa-155a-4f9d-9549-267215391866") + @objid ("a71a0ac2-c81c-4b9c-95aa-12570a94d351") public static final String STARTTIME_TAGTYPE = "startTime"; /** @@ -63,7 +65,7 @@ public class HistoryRecord extends FeatureClass { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("00c93599-c64b-4a36-8c32-a99d1060f5b3") + @objid ("af4f46f9-66da-40b0-9bfa-31603a1c3781") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, HistoryRecord.STEREOTYPE_NAME)); } @@ -73,7 +75,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link HistoryRecord} proxy on the created {@link Class}. */ - @objid ("dfd1f76a-11a3-4495-b528-33b30eaf7bb1") + @objid ("625f91f1-691e-4858-9cec-867182e4d866") public static HistoryRecord create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, HistoryRecord.STEREOTYPE_NAME); @@ -81,47 +83,46 @@ 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. */ - @objid ("34c17e9e-97f8-4831-b9cd-0bd6d941c449") + @objid ("2a97d471-9cf4-4e22-808b-85a75c56707f") public static HistoryRecord instantiate(final Class obj) { return HistoryRecord.canInstantiate(obj) ? new HistoryRecord(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("14618187-652d-4c29-a70a-d5fd73fcbaa0") + @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 ("eca56b66-a9a2-407c-8785-db253e572dbb") + @objid ("d55c9038-9e3a-4625-af53-5e4ac02d3a9c") public void addInfos(final HistoryInfo obj) { if (obj!=null) ((Class) this.elt).getOwnedElement().add(obj.getElement()); } - @objid ("ba427a07-6ab3-4ab3-bbaf-ac272a586a12") + @objid ("2f46d2b9-1082-41f4-93b6-1539d77f6102") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -141,8 +142,9 @@ public boolean equals(final Object obj) { * Get the value of the 'cause' role.

* Role description: * null + * */ - @objid ("aa9303f6-c722-4ff1-88db-d297d667d5a3") + @objid ("187e8b09-d8b1-466f-930c-17ea4cf04ef0") public Cause getCause() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(HistoryRecord.MdaTypes.MDAASSOCDEP) @@ -159,11 +161,10 @@ public Cause getCause() { } /** - * Get the underlying {@link Class}. - * + * Get the underlying {@link Class}. * @return the Class represented by this proxy, never null. */ - @objid ("9891e3f0-6497-4bcb-a21d-8e167da6e785") + @objid ("199b40d7-1d7f-4251-a14d-f96c54bd8fa8") @Override public Class getElement() { return (Class)super.getElement(); @@ -174,7 +175,7 @@ public Class getElement() { *

Property description: *
null

*/ - @objid ("2da1a3da-a9ec-491d-8bb7-ef6ad9a1229e") + @objid ("786eaf76-6e67-4cf4-9121-89e14bf707ab") public String getEndTime() { return this.elt.getTagValue(HistoryRecord.MdaTypes.ENDTIME_TAGTYPE_ELT); } @@ -183,8 +184,9 @@ public String getEndTime() { * Get the value of the 'fromDataInstanceModel' role.

* Role description: * null + * */ - @objid ("acdba219-c7a3-4c78-853f-ba8f0fa1b24f") + @objid ("f9a90c93-5632-4204-abc6-d814cd8b854d") public DataInstanceModel getFromDataInstanceModel() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(HistoryRecord.MdaTypes.MDAASSOCDEP) @@ -200,8 +202,9 @@ public DataInstanceModel getFromDataInstanceModel() { * Get the value of the 'fromDeploymentInstanceModel' role.

* Role description: * null + * */ - @objid ("583d62f0-a644-4540-913f-a356413d22be") + @objid ("052d6b01-b0e7-45d4-bfe8-308217dfa926") public DeploymentInstanceModel getFromDeploymentInstanceModel() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(HistoryRecord.MdaTypes.MDAASSOCDEP) @@ -217,14 +220,15 @@ public DeploymentInstanceModel getFromDeploymentInstanceModel() { * Get the values of the 'infos' role.

* Role description: * null + * */ - @objid ("5d8f02ae-d0bb-49ac-b017-23a753fc289e") + @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); } @@ -233,7 +237,7 @@ public List getInfos() { *

Property description: *
null

*/ - @objid ("53382f45-bf36-4279-9f8c-501a7d92fb1b") + @objid ("6fa07ab9-dfd5-4dfa-b3e5-c4014a3abf57") public String getStartTime() { return this.elt.getTagValue(HistoryRecord.MdaTypes.STARTTIME_TAGTYPE_ELT); } @@ -242,8 +246,9 @@ public String getStartTime() { * Get the value of the 'toDataInstanceModel' role.

* Role description: * null + * */ - @objid ("79db756c-14fd-40f3-a6e9-926bfd935f59") + @objid ("7e3615b4-39bb-4a79-8e66-245cc851e2f4") public DataInstanceModel getToDataInstanceModel() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(HistoryRecord.MdaTypes.MDAASSOCDEP) @@ -259,8 +264,9 @@ public DataInstanceModel getToDataInstanceModel() { * Get the value of the 'toDeploymentInstanceModel' role.

* Role description: * null + * */ - @objid ("379be1d2-b1d6-4f83-8ee6-5e1d1574bd4c") + @objid ("dccdf486-41e8-470a-aeff-467baa3ed2b1") public DeploymentInstanceModel getToDeploymentInstanceModel() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(HistoryRecord.MdaTypes.MDAASSOCDEP) @@ -276,8 +282,9 @@ public DeploymentInstanceModel getToDeploymentInstanceModel() { * Get the value of the 'type' role.

* Role description: * null + * */ - @objid ("3dd2603f-0872-476e-9d7e-f04e2a0f8706") + @objid ("c2e44506-d3d7-4d21-9e2c-7b1cf6f07341") public MmsObject getType() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(HistoryRecord.MdaTypes.MDAASSOCDEP) @@ -295,7 +302,7 @@ public MmsObject getType() { return null; } - @objid ("8a3d40dd-f8e9-45ee-874e-90f34cab5227") + @objid ("a1ec261c-e9cd-4063-a577-2f097e557895") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -305,8 +312,9 @@ public int hashCode() { * Remove a value from the 'infos' role.

* Role description: * null + * */ - @objid ("5ebba132-7f92-4fc1-83a7-84df65ba7a8a") + @objid ("690c9838-6c01-4d74-8253-2047b17559ac") public boolean removeInfos(final HistoryInfo obj) { return (obj!=null)? ((Class) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -315,8 +323,9 @@ public boolean removeInfos(final HistoryInfo obj) { * Set the value of the 'cause' role.

* Role description: * null + * */ - @objid ("a9b5ef35-aaa4-4a0c-a52a-5331a8a1232e") + @objid ("334a6184-0ec3-41f9-a194-125e351ae168") public void setCause(final Cause obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -341,7 +350,7 @@ public void setCause(final Cause obj) { *

Property description: *
null

*/ - @objid ("08f11b3e-ecd2-4a78-a5ee-1c022b1e9729") + @objid ("39d99e8a-2cc1-42d9-8783-51419af8119c") public void setEndTime(final String value) { this.elt.putTagValue(HistoryRecord.MdaTypes.ENDTIME_TAGTYPE_ELT, value); } @@ -350,8 +359,9 @@ public void setEndTime(final String value) { * Set the value of the 'fromDataInstanceModel' role.

* Role description: * null + * */ - @objid ("6d3e7255-afdf-4a0e-9fa6-a9a3e55772b1") + @objid ("be8dc91e-51bb-448e-94f1-d3755f14e634") public void setFromDataInstanceModel(final DataInstanceModel obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -375,8 +385,9 @@ public void setFromDataInstanceModel(final DataInstanceModel obj) { * Set the value of the 'fromDeploymentInstanceModel' role.

* Role description: * null + * */ - @objid ("13d7d246-d508-48cc-841b-5136e7b2bd7c") + @objid ("5f2af83d-c746-4fdc-ae4d-15b3a37c0e7b") public void setFromDeploymentInstanceModel(final DeploymentInstanceModel obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -401,7 +412,7 @@ public void setFromDeploymentInstanceModel(final DeploymentInstanceModel obj) { *

Property description: *
null

*/ - @objid ("b3466df7-71dd-4eba-a28e-0d7fdf0b9114") + @objid ("1a7de1f8-58a8-4275-b419-19cd2d86d7c5") public void setStartTime(final String value) { this.elt.putTagValue(HistoryRecord.MdaTypes.STARTTIME_TAGTYPE_ELT, value); } @@ -410,8 +421,9 @@ public void setStartTime(final String value) { * Set the value of the 'toDataInstanceModel' role.

* Role description: * null + * */ - @objid ("ef91f91f-8237-4457-98cc-54f65aa9ac19") + @objid ("dd148f1a-54e8-47d1-9326-3c0ea646e8e8") public void setToDataInstanceModel(final DataInstanceModel obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -435,8 +447,9 @@ public void setToDataInstanceModel(final DataInstanceModel obj) { * Set the value of the 'toDeploymentInstanceModel' role.

* Role description: * null + * */ - @objid ("83c31c13-01a3-4bb5-98cc-989e4e031266") + @objid ("a2db28f3-e90d-4a05-ad29-6f189f114638") public void setToDeploymentInstanceModel(final DeploymentInstanceModel obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -460,8 +473,9 @@ public void setToDeploymentInstanceModel(final DeploymentInstanceModel obj) { * Set the value of the 'type' role.

* Role description: * null + * */ - @objid ("6b0cad28-690b-4282-8262-f4e6ad5176f5") + @objid ("dceef23e-33d1-41ee-bea1-3e539df230b6") public void setType(final MmsObject obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -489,29 +503,29 @@ public List getChilds() { return result; } - @objid ("47b4b69d-aecf-45b7-869c-9cd7fac4de46") + @objid ("9813e0dd-4382-469f-b3f9-2ccba9b07254") protected HistoryRecord(final Class elt) { super(elt); } @objid ("462585e9-30df-4f59-b5c8-ec375790a32b") public static final class MdaTypes { - @objid ("613dd0ff-8cb9-4ce6-981a-e105f3f9a5d0") + @objid ("66708304-6a9c-4969-b8d5-223c751047a2") public static Stereotype STEREOTYPE_ELT; - @objid ("87549f57-3e1e-489c-a186-d6cbfd9da5f5") + @objid ("8a68a3c8-26d7-4ef0-acef-169476fe139f") public static TagType STARTTIME_TAGTYPE_ELT; - @objid ("80c1ae8d-dc19-4a53-86f5-cd84043e158d") + @objid ("e7dd0356-2a1d-45a8-9800-0fff315e4243") public static TagType ENDTIME_TAGTYPE_ELT; - @objid ("fd776611-45bf-4106-8a32-4251a7e9c39c") + @objid ("2d153e4d-0831-4dec-a8e3-31e858d2b5c0") private static Stereotype MDAASSOCDEP; - @objid ("ca2807c6-da48-498e-bf6f-31799654b81c") + @objid ("526d4042-4110-4e6a-b01e-4624391ae992") private static TagType MDAASSOCDEP_ROLE; - @objid ("9403398b-c08d-4335-b053-2d1cfde0af10") + @objid ("d61eba6c-3407-4e28-bc17-7ea77a6aa605") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "fe3e6072-933d-456c-bd5a-77cd25aeb183"); STARTTIME_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "d4316e17-4ce7-49fa-8ef0-c2743e111a0b"); @@ -521,11 +535,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 0af200b0..623831d9 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.executionmodel.standard.class_; @@ -41,13 +41,13 @@ */ @objid ("fd364a84-8a23-4f50-a661-f2ea77419f95") public abstract class Measurement extends FeatureClass { - @objid ("a056b4f8-3f68-44ac-9d9e-51d7dfab9ecf") + @objid ("fc58096c-d0dd-4d5c-835e-b1d6c3c0c718") public static final String STEREOTYPE_NAME = "Measurement"; - @objid ("a3ba7018-abf8-4f41-b4c8-bf23ad838b5b") + @objid ("f16a2554-32b8-4c78-9851-0c68b4eabe6d") public static final String MEASUREMENTTIME_TAGTYPE = "measurementTime"; - @objid ("a469044b-1e7c-4a86-ae76-d6a38d5083f9") + @objid ("fa14dbf2-b5ab-45fd-b568-c3de2e99b86e") public static final String VALUE_TAGTYPE = "value"; /** @@ -58,12 +58,12 @@ public abstract class Measurement extends FeatureClass { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("650cce93-9b65-4418-8346-a5bebf62769b") + @objid ("6baf3d2d-6c58-4647-b6fd-9e8bee6fec36") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, Measurement.STEREOTYPE_NAME)); } - @objid ("76239579-0172-47a5-a467-de7e693cd4d2") + @objid ("1280848c-abfe-4464-891f-6f639cff4e4f") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -80,11 +80,10 @@ 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 ("7282f0ad-8718-48aa-a527-3bf3b06c544d") + @objid ("507c4f08-bf0b-4183-ab06-be2ca010c6b3") @Override public Class getElement() { return (Class)super.getElement(); @@ -94,8 +93,9 @@ public Class getElement() { * Get the value of the 'eventInstance' role.

* Role description: * null + * */ - @objid ("ac172c29-d420-4071-b028-b96eb358569b") + @objid ("d8a7b303-691b-4ff2-b957-292734582388") public EventInstance getEventInstance() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(Measurement.MdaTypes.MDAASSOCDEP) @@ -114,7 +114,7 @@ public EventInstance getEventInstance() { *

Property description: *
null

*/ - @objid ("055534a6-9e88-4b3d-946c-8c0b934af0c0") + @objid ("78192467-948d-4921-88e7-368d2449dc1a") public String getMeasurementTime() { return this.elt.getTagValue(Measurement.MdaTypes.MEASUREMENTTIME_TAGTYPE_ELT); } @@ -123,8 +123,9 @@ public String getMeasurementTime() { * Get the value of the 'metricInstance' role.

* Role description: * null + * */ - @objid ("3b786ddc-d0bc-4c93-90aa-d1104e1d5a53") + @objid ("cb5f7074-ee3a-43b5-9bf2-b8c87b66d0cb") public MetricInstance getMetricInstance() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(Measurement.MdaTypes.MDAASSOCDEP) @@ -143,12 +144,12 @@ public MetricInstance getMetricInstance() { *

Property description: *
null

*/ - @objid ("de7d5665-c331-4452-b7ac-0942dd35d4a5") + @objid ("7ca90edf-e6b5-48a1-b27f-87bdb91075ee") public String getValue() { return this.elt.getTagValue(Measurement.MdaTypes.VALUE_TAGTYPE_ELT); } - @objid ("30255a3e-f695-480d-a3c3-863c0a76273a") + @objid ("9706b301-c336-4e87-99dc-e5e7f7186e5c") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -158,8 +159,9 @@ public int hashCode() { * Set the value of the 'eventInstance' role.

* Role description: * null + * */ - @objid ("d2938902-04bf-4b2c-85d0-9971f90cd0ae") + @objid ("4f0f0890-f284-4e24-bd1b-6fa860f24425") public void setEventInstance(final EventInstance obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -184,7 +186,7 @@ public void setEventInstance(final EventInstance obj) { *

Property description: *
null

*/ - @objid ("9ebff87f-eb8a-4e3f-8540-79aa2d565bcb") + @objid ("74f24446-dc90-4793-aa06-79b513a860c6") public void setMeasurementTime(final String value) { this.elt.putTagValue(Measurement.MdaTypes.MEASUREMENTTIME_TAGTYPE_ELT, value); } @@ -193,8 +195,9 @@ public void setMeasurementTime(final String value) { * Set the value of the 'metricInstance' role.

* Role description: * null + * */ - @objid ("3f405254-5f9d-4f21-8e8e-7476d5471239") + @objid ("7050b24c-2bf6-4796-af49-e95e85f958bd") public void setMetricInstance(final MetricInstance obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -219,7 +222,7 @@ public void setMetricInstance(final MetricInstance obj) { *

Property description: *
null

*/ - @objid ("6694e53c-3b62-4e18-b442-4cab14e27e75") + @objid ("b23b2edd-3653-41ec-a6dd-52156d22af4f") public void setValue(final String value) { this.elt.putTagValue(Measurement.MdaTypes.VALUE_TAGTYPE_ELT, value); } @@ -232,29 +235,29 @@ public List getChilds() { return result; } - @objid ("b501c88c-264a-404a-8b5d-8ecdcb506542") + @objid ("74ca5a74-963c-4329-9dab-e643465d5606") protected Measurement(final Class elt) { super(elt); } @objid ("c5c12d99-af0a-463a-876e-c2847d9efbb0") public static final class MdaTypes { - @objid ("2488f7a8-3f71-480d-bd0c-453eae55340d") + @objid ("710456c3-1e87-4b10-81ca-97a6261ed8f5") public static Stereotype STEREOTYPE_ELT; - @objid ("845c1390-627d-4769-a8a9-d86ab2686586") + @objid ("402e4e28-55b9-4347-aa9a-71699cfe1399") public static TagType VALUE_TAGTYPE_ELT; - @objid ("b9009db3-80ce-4482-b88b-23697fb86584") + @objid ("1046f971-aa69-46e3-93af-14a122e471d8") public static TagType MEASUREMENTTIME_TAGTYPE_ELT; - @objid ("738c9b1f-56cf-4d93-8db6-aabe98584c05") + @objid ("296ea214-23c2-4f3b-b5f9-4bc5fc110ad3") private static Stereotype MDAASSOCDEP; - @objid ("56927ca5-3a0d-480f-8b24-45e85a062500") + @objid ("14e948b6-ae63-4617-bd95-6448b6d4a7e9") private static TagType MDAASSOCDEP_ROLE; - @objid ("24588970-2c4f-4417-ae82-53b372d1323b") + @objid ("ce2e050d-777f-4a63-a7f1-e6b4bce5b06c") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "481e52bb-d5b3-4dcb-a365-8ca5d75d8ac2"); VALUE_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "03f06745-0e69-475c-a468-9f73b761a5d0"); @@ -264,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/executionmodel/standard/class_/PaaSMeasurement.java b/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/PaaSMeasurement.java index f0feca4e..4e877157 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.executionmodel.standard.class_; @@ -37,7 +37,7 @@ */ @objid ("05eacc67-2cab-4ffa-8176-cecce0a96a57") public class PaaSMeasurement extends Measurement { - @objid ("0bb59a5f-057f-4399-9726-0ea153c2862e") + @objid ("173fcaf8-6288-4090-9a5e-d4c655f73767") public static final String STEREOTYPE_NAME = "PaaSMeasurement"; /** @@ -48,7 +48,7 @@ public class PaaSMeasurement extends Measurement { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("ec9a06bf-c763-47e6-8248-15898bb972fa") + @objid ("70bac35c-159e-4132-9200-ca91c2ccd2f9") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, PaaSMeasurement.STEREOTYPE_NAME)); } @@ -58,7 +58,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link PaaSMeasurement} proxy on the created {@link Class}. */ - @objid ("dbdd4cb7-ee4a-4a94-942c-5099add9df44") + @objid ("8b48ee8e-ec99-46af-bc43-0d5d931c13d8") public static PaaSMeasurement create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, PaaSMeasurement.STEREOTYPE_NAME); @@ -66,36 +66,34 @@ 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. */ - @objid ("bc4dd027-10f1-4634-afa2-db919957551f") + @objid ("fce12f9b-0647-4280-8a5e-90781875b927") public static PaaSMeasurement instantiate(final Class obj) { return PaaSMeasurement.canInstantiate(obj) ? new PaaSMeasurement(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("fab61c90-f032-42c7-bc65-6dd92bd0b923") + @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 ("63abe5e4-b072-47ea-b2a3-8fb089607808") + @objid ("6c7629ea-6e5d-4685-85fa-7363badf3442") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -112,11 +110,10 @@ 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 ("65c1ed28-1223-4db8-9408-8f033f7d1e7a") + @objid ("aa23457e-e611-4009-b03a-8cff33116e6a") @Override public Class getElement() { return (Class)super.getElement(); @@ -126,8 +123,9 @@ public Class getElement() { * Get the value of the 'paaS' role.

* Role description: * null + * */ - @objid ("537c2917-f716-4533-bcc9-ab179c152d86") + @objid ("2885d4be-65ed-4209-ad31-bfda0aec5f09") public PaaS getPaaS() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(PaaSMeasurement.MdaTypes.MDAASSOCDEP) @@ -143,8 +141,9 @@ public PaaS getPaaS() { * Get the value of the 'paaSInstance' role.

* Role description: * null + * */ - @objid ("c1db7a4d-409a-492e-99c5-607e108f9462") + @objid ("691fea1f-ac22-4352-8c3c-b20add98730b") public PaaSInstance getPaaSInstance() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(PaaSMeasurement.MdaTypes.MDAASSOCDEP) @@ -156,7 +155,7 @@ public PaaSInstance getPaaSInstance() { return null; } - @objid ("0de6b00d-ffdc-4e18-afbf-7f1f44a624de") + @objid ("7dd83061-474f-4e46-977f-9fab751a4051") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -166,8 +165,9 @@ public int hashCode() { * Set the value of the 'paaS' role.

* Role description: * null + * */ - @objid ("bdd8ec61-ec88-4e1e-b25c-a8e323f06bea") + @objid ("58455251-4168-4a6c-9453-96722340d943") public void setPaaS(final PaaS obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -191,8 +191,9 @@ public void setPaaS(final PaaS obj) { * Set the value of the 'paaSInstance' role.

* Role description: * null + * */ - @objid ("5ee94551-6ae4-4d25-810f-a125cce655ec") + @objid ("8efd5383-7008-4d9d-9130-2a5acbcb856f") public void setPaaSInstance(final PaaSInstance obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -220,23 +221,23 @@ public List getChilds() { return result; } - @objid ("48c6e56c-39b5-4311-ae57-12b12076ef55") + @objid ("8b569244-592d-43db-ad7d-77e8be626704") protected PaaSMeasurement(final Class elt) { super(elt); } @objid ("2d45a35d-f931-4999-aeb9-e4d0259e5f71") public static final class MdaTypes { - @objid ("4bb4347f-76a2-40a3-a10b-df4cc4eaa678") + @objid ("2cff79c0-a34b-4003-b57c-2e9a20d1adef") public static Stereotype STEREOTYPE_ELT; - @objid ("bafa80be-05df-4893-a276-5153ee5ff4c9") + @objid ("42622049-547c-4bda-9dfb-19374d003275") private static Stereotype MDAASSOCDEP; - @objid ("4a4e50fc-9f49-44ba-8c3c-30bf8a47fc87") + @objid ("cf54b57e-bbc3-4b2f-80ef-590dbe5e8224") private static TagType MDAASSOCDEP_ROLE; - @objid ("9aeac556-acaf-4ea4-bab6-21f4769144f7") + @objid ("4555e04f-5098-45ac-aa08-ac872cb15a03") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "726f03cf-0c34-448c-a300-42d54277a37d"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -244,11 +245,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 5203ef94..93860ebb 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.executionmodel.standard.class_; @@ -36,10 +36,10 @@ */ @objid ("92bee481-90ec-4831-ae16-86a6451589ef") public class RuleTrigger extends Cause { - @objid ("fec8f191-302f-4f17-be99-a8389d39784c") + @objid ("480410e8-5a67-4211-bb16-b58d84669cbd") public static final String STEREOTYPE_NAME = "RuleTrigger"; - @objid ("a24a5176-a636-4aaf-b093-2db3cea09a0e") + @objid ("9fe1bcee-5bdc-4fb7-9a94-541b9a6de3c4") public static final String TRIGGERINGTIME_TAGTYPE = "TriggeringTime"; /** @@ -50,7 +50,7 @@ public class RuleTrigger extends Cause { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("9d7e1335-f963-48a7-9507-6ff3adaec28b") + @objid ("5c01e582-810a-4b2a-87d8-48b7a78bc35e") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, RuleTrigger.STEREOTYPE_NAME)); } @@ -60,7 +60,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link RuleTrigger} proxy on the created {@link Class}. */ - @objid ("f175b77a-f235-45d8-9c2e-5e4277e652d3") + @objid ("1de7749e-1010-49a0-93ca-a656a2239906") public static RuleTrigger create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, RuleTrigger.STEREOTYPE_NAME); @@ -68,36 +68,34 @@ 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. */ - @objid ("e8ea770e-87a0-4e47-b32a-fa21dad5b1cc") + @objid ("a73dcf20-8d11-4e60-89f6-63d06ca964b6") public static RuleTrigger instantiate(final Class obj) { return RuleTrigger.canInstantiate(obj) ? new RuleTrigger(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("5e2b32fa-ee80-48aa-a971-6cf42a1d7f9f") + @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 ("789b8e94-05ae-40e3-8edf-8df81277942e") + @objid ("b7d3ad9b-b268-4acf-be6f-01910a11675b") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -114,11 +112,10 @@ 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 ("47dfa02d-bf5d-4c0c-a05e-c9e34f087318") + @objid ("be0e5728-b8f5-4bc2-a6ef-1bd9783a57df") @Override public Class getElement() { return (Class)super.getElement(); @@ -128,8 +125,9 @@ public Class getElement() { * Get the value of the 'scalabilityRule' role.

* Role description: * null + * */ - @objid ("fe5798b8-80ac-4c09-941f-f5be9c402181") + @objid ("3b91b674-e5e2-46dd-bb76-52f438489ac1") public ScalabilityRule getScalabilityRule() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(RuleTrigger.MdaTypes.MDAASSOCDEP) @@ -146,12 +144,12 @@ public ScalabilityRule getScalabilityRule() { *

Property description: *
null

*/ - @objid ("5371d390-4fb3-4aa8-93fc-7ed36f755c2a") + @objid ("057a00f7-950e-4b1e-b630-64d43d56c815") public String getTriggeringTime() { return this.elt.getTagValue(RuleTrigger.MdaTypes.TRIGGERINGTIME_TAGTYPE_ELT); } - @objid ("3bda992b-fa98-4f07-9f09-d199c2650564") + @objid ("f9055450-9c05-43f2-9877-34aea154ecd7") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -161,8 +159,9 @@ public int hashCode() { * Set the value of the 'scalabilityRule' role.

* Role description: * null + * */ - @objid ("427aaee4-2899-46eb-b81a-83de105e0616") + @objid ("79c2882c-910f-4c7c-ad7c-fe01be1e5734") public void setScalabilityRule(final ScalabilityRule obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -187,7 +186,7 @@ public void setScalabilityRule(final ScalabilityRule obj) { *

Property description: *
null

*/ - @objid ("5a0e4b06-47be-4e50-83e2-9a8c033729d6") + @objid ("3a598806-82e1-41b5-87d2-588a011d6eb9") public void setTriggeringTime(final String value) { this.elt.putTagValue(RuleTrigger.MdaTypes.TRIGGERINGTIME_TAGTYPE_ELT, value); } @@ -200,26 +199,26 @@ public List getChilds() { return result; } - @objid ("52064ba1-79ad-4b4e-9a6b-e77b330e9f8b") + @objid ("a650a2ab-9746-4aed-994d-e557aaad1488") protected RuleTrigger(final Class elt) { super(elt); } @objid ("4d25ae3c-a321-44a2-bbb9-74f641ada07d") public static final class MdaTypes { - @objid ("7ae8bdda-dc22-4402-b67f-c699961c378e") + @objid ("4dc92949-689d-44d6-8096-bf437861da99") public static Stereotype STEREOTYPE_ELT; - @objid ("77aaf93a-548e-4266-a604-b97794da6ab9") + @objid ("09a4e407-5fe4-4727-8c40-5881e747ebca") public static TagType TRIGGERINGTIME_TAGTYPE_ELT; - @objid ("c47cafa5-3f0b-4b7a-a43b-abce0ca1dd85") + @objid ("855ac193-13a6-47e7-91b4-d92ca07e5352") private static Stereotype MDAASSOCDEP; - @objid ("1adf3c68-cb68-43ad-9310-dbd8771dcc59") + @objid ("0e65b727-7640-4af1-9f4b-0c59f09f8477") private static TagType MDAASSOCDEP_ROLE; - @objid ("5ebb9f25-35a5-4d56-a26b-b60b379b2368") + @objid ("0f84f9d6-b224-4961-b2a7-ca293c04d59d") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "6feb668e-fc53-4354-93a8-d98b00fdb186"); TRIGGERINGTIME_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "222df9b1-1654-420c-9e13-31a2c7f0da8d"); @@ -228,11 +227,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 f41f9e4e..6116821c 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.executionmodel.standard.class_; @@ -18,6 +18,7 @@ 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; @@ -44,10 +45,10 @@ */ @objid ("229f0919-35a3-4332-a078-24ebef396ceb") public class SLOViolation extends Cause { - @objid ("602cb16a-3430-4435-b320-7b5557eefc70") + @objid ("754471de-99e2-4c37-b52b-22d6be4d2e8f") public static final String STEREOTYPE_NAME = "SLOViolation"; - @objid ("4b00670d-bbd5-43f3-88b6-c81d865e9658") + @objid ("7ba8e152-108c-4d2d-90fc-f0b48808e4eb") public static final String ASSESSMENTTIME_TAGTYPE = "assessmentTime"; /** @@ -58,7 +59,7 @@ public class SLOViolation extends Cause { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("9d9cec6e-8339-4db5-a20c-8c7877704e62") + @objid ("335f730f-ccf9-49bd-88f9-9181129b633a") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, SLOViolation.STEREOTYPE_NAME)); } @@ -68,7 +69,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link SLOViolation} proxy on the created {@link Class}. */ - @objid ("5de8f9b3-addc-41b3-8deb-00f825eb9e8d") + @objid ("e3057367-b2e7-4d6f-b986-62ac04e60ace") public static SLOViolation create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, SLOViolation.STEREOTYPE_NAME); @@ -76,36 +77,34 @@ 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. */ - @objid ("025e7793-ac10-43df-9f3d-ed4355d2746e") + @objid ("804285de-a2e6-444d-af58-211ab59414e0") public static SLOViolation instantiate(final Class obj) { return SLOViolation.canInstantiate(obj) ? new SLOViolation(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("e7cbf8d9-62d6-444e-bb7f-0b25eb041a1f") + @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 ("c6f2fc3d-7451-4475-bbbf-7db640a79c74") + @objid ("875b35ab-b207-43a3-b345-8e901cb8a6b3") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -126,17 +125,16 @@ public boolean equals(final Object obj) { *

Property description: *
null

*/ - @objid ("90b729a1-2f9a-4765-8632-7a60dc026b87") + @objid ("8d27dc7a-94f4-41f1-914f-2830504ac2dd") public String getAssessmentTime() { return this.elt.getTagValue(SLOViolation.MdaTypes.ASSESSMENTTIME_TAGTYPE_ELT); } /** - * Get the underlying {@link Class}. - * + * Get the underlying {@link Class}. * @return the Class represented by this proxy, never null. */ - @objid ("20f5eeb5-e466-4e27-acda-3491020a1f89") + @objid ("a0929432-90c9-4342-ba58-613a0823ad87") @Override public Class getElement() { return (Class)super.getElement(); @@ -146,8 +144,9 @@ public Class getElement() { * Get the value of the 'measurement' role.

* Role description: * null + * */ - @objid ("3d1a59b7-e5c3-4f1b-831e-ed2ced29fb83") + @objid ("1cd850a2-8ff6-4f03-96bd-1850f5411a81") public Measurement getMeasurement() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(SLOViolation.MdaTypes.MDAASSOCDEP) @@ -175,8 +174,9 @@ public Measurement getMeasurement() { * Get the value of the 'slo' role.

* Role description: * null + * */ - @objid ("73529b93-2854-465a-b4b2-fd5839d7eda3") + @objid ("b2663d10-dc4c-453e-bb5c-36c7de70901b") public ServiceLevelObjective getSlo() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(SLOViolation.MdaTypes.MDAASSOCDEP) @@ -190,7 +190,7 @@ public ServiceLevelObjective getSlo() { return null; } - @objid ("b0d04f95-3cf3-414d-952d-7b68e68ac539") + @objid ("d93814dd-6339-453e-8f84-0a5a3e1a5e8f") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -201,7 +201,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("6f3d1783-841d-4528-a92e-a952e49005db") + @objid ("c03dc76a-ebce-4194-b9b8-49be530269b3") public void setAssessmentTime(final String value) { this.elt.putTagValue(SLOViolation.MdaTypes.ASSESSMENTTIME_TAGTYPE_ELT, value); } @@ -210,8 +210,9 @@ public void setAssessmentTime(final String value) { * Set the value of the 'measurement' role.

* Role description: * null + * */ - @objid ("7e069bb0-644f-4393-9455-9e5b03ee4081") + @objid ("de20abe8-b216-4c4d-bac9-053d93a65dd9") public void setMeasurement(final Measurement obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -235,8 +236,9 @@ public void setMeasurement(final Measurement obj) { * Set the value of the 'slo' role.

* Role description: * null + * */ - @objid ("f02e2c98-8c5b-4df5-9cb1-00c16daaaf5d") + @objid ("9b218bb6-138a-49e5-9472-6c4655745b03") public void setSlo(final ServiceLevelObjective obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -264,26 +266,26 @@ public List getChilds() { return result; } - @objid ("c063b2dd-ecf0-462b-818f-d1b66f6abbee") + @objid ("995b1fbe-8b98-438b-a62c-fee35eddc78b") protected SLOViolation(final Class elt) { super(elt); } @objid ("d2af686a-83ed-4904-8eb0-ef64e85d5728") public static final class MdaTypes { - @objid ("189ea639-b03b-46c5-a780-e91f09fb683c") + @objid ("c5f959f6-1e84-4fb4-9280-3792f6a811cb") public static Stereotype STEREOTYPE_ELT; - @objid ("e6ed451b-481c-4113-bf35-50d473fb1361") + @objid ("cf4b75a0-f70a-4754-bb80-b3f7717e1e84") public static TagType ASSESSMENTTIME_TAGTYPE_ELT; - @objid ("695ca6a0-9df3-40f4-ad59-e8262d03a215") + @objid ("ec2c3f0f-ef85-40d3-873d-6409c1e10c52") private static Stereotype MDAASSOCDEP; - @objid ("eeef9e71-9fd6-4053-9eea-f8a9053fbbe0") + @objid ("fce93c34-0d34-45f0-9c5e-1abf484e8076") private static TagType MDAASSOCDEP_ROLE; - @objid ("f7545cf8-fbbd-4166-872e-075619fc28c9") + @objid ("0e23f5ee-cd62-4536-857b-9b9bb6d9bdb8") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "fe591c4e-317f-4202-9f7a-43dff0e6d7fe"); ASSESSMENTTIME_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "fc352744-f101-466f-a61c-0b32b9269a34"); @@ -292,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/executionmodel/standard/class_/SoftwareComponentMeasurement.java b/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/SoftwareComponentMeasurement.java index 4c7d8a22..b72dbfb8 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.executionmodel.standard.class_; @@ -38,7 +38,7 @@ */ @objid ("89078e63-2e23-49e3-a485-89531a4dcc4c") public class SoftwareComponentMeasurement extends Measurement { - @objid ("c6e665b4-addb-4cca-91cc-3fb77b9b8bc5") + @objid ("29f2faa4-257e-49c4-8130-8b2d0f1c24ec") public static final String STEREOTYPE_NAME = "SoftwareComponentMeasurement"; /** @@ -49,7 +49,7 @@ public class SoftwareComponentMeasurement extends Measurement { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("10f01096-cd78-42d6-9333-1333be22d170") + @objid ("19967907-286b-4428-a3a8-4dcf1d78156a") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, SoftwareComponentMeasurement.STEREOTYPE_NAME)); } @@ -59,7 +59,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link SoftwareComponentMeasurement} proxy on the created {@link Class}. */ - @objid ("52c99106-c534-4423-8f68-a6fec1a518fd") + @objid ("8e5d31f9-3dc8-479c-8550-0525fa8ca7b9") public static SoftwareComponentMeasurement create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, SoftwareComponentMeasurement.STEREOTYPE_NAME); @@ -67,36 +67,34 @@ 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. */ - @objid ("ee2999ea-ac8f-4551-9e45-a5408b9c9864") + @objid ("a4cc215d-7158-4da1-a803-bc6b58ef0e16") public static SoftwareComponentMeasurement instantiate(final Class obj) { return SoftwareComponentMeasurement.canInstantiate(obj) ? new SoftwareComponentMeasurement(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("29e3baf7-2247-4dc7-bb66-e5cf1b741142") + @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 ("fe517f00-80b7-4237-bd83-f8a30287a39a") + @objid ("a75bf8bd-2c69-400d-94df-4099cd4cba6c") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -113,11 +111,10 @@ 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 ("f5ae3852-c36a-46c4-94af-958315ada83c") + @objid ("dba49bc7-1a15-4b74-8c1c-1583fa1d192e") @Override public Class getElement() { return (Class)super.getElement(); @@ -127,8 +124,9 @@ public Class getElement() { * Get the value of the 'softwareComponent' role.

* Role description: * null + * */ - @objid ("256c4f93-2230-456f-9808-880dd49aa019") + @objid ("c6fe253a-ebb0-434a-97d1-90d3c1103a2e") public SoftwareComponent getSoftwareComponent() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(SoftwareComponentMeasurement.MdaTypes.MDAASSOCDEP) @@ -146,8 +144,9 @@ public SoftwareComponent getSoftwareComponent() { * Get the value of the 'softwareComponentInstance' role.

* Role description: * null + * */ - @objid ("0eb6d8e2-2029-46f9-8bc6-17b4355a576e") + @objid ("16ce7047-761a-4288-a68e-6dd1b85a2146") public SoftwareComponentInstance getSoftwareComponentInstance() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(SoftwareComponentMeasurement.MdaTypes.MDAASSOCDEP) @@ -159,7 +158,7 @@ public SoftwareComponentInstance getSoftwareComponentInstance() { return null; } - @objid ("0c12edda-f20e-405b-9784-211c51b1365d") + @objid ("c57f8362-5dab-42c0-8484-05f3abeab0f4") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -169,8 +168,9 @@ public int hashCode() { * Set the value of the 'softwareComponent' role.

* Role description: * null + * */ - @objid ("5700b74e-a245-4baf-8463-2c66ca0b2bba") + @objid ("0586543c-0b3e-4cb1-9f33-c9985ed42dbc") public void setSoftwareComponent(final SoftwareComponent obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -194,8 +194,9 @@ public void setSoftwareComponent(final SoftwareComponent obj) { * Set the value of the 'softwareComponentInstance' role.

* Role description: * null + * */ - @objid ("92552fcc-3c98-4d68-9565-8c7e926620ed") + @objid ("1c36b0f7-9ba9-4438-a838-bf136dd9dcff") public void setSoftwareComponentInstance(final SoftwareComponentInstance obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -223,23 +224,23 @@ public List getChilds() { return result; } - @objid ("55430111-cae7-4247-896a-96ef21282cbd") + @objid ("2fd1832d-6079-4721-b751-e3eebd428235") protected SoftwareComponentMeasurement(final Class elt) { super(elt); } @objid ("6678fa3a-6261-42c4-945e-36481919263d") public static final class MdaTypes { - @objid ("3c0270ed-dbbc-4fbd-b449-b88300c6d4de") + @objid ("0043d664-a6b7-4e2c-b22d-cd816f9757f3") public static Stereotype STEREOTYPE_ELT; - @objid ("fdf56d89-bdcd-44c5-a14a-ef5accfae8c5") + @objid ("122a9984-4da8-4845-969c-ef4b8cf1b02e") private static Stereotype MDAASSOCDEP; - @objid ("4081a1b1-0f63-4116-b5a6-f7ce38fb9f54") + @objid ("fe5b3a46-45f2-4845-9a07-7d405ee3dfea") private static TagType MDAASSOCDEP_ROLE; - @objid ("712d530b-98c3-48b1-b354-679185bf7dc2") + @objid ("f7da81be-a6c8-45e3-902d-ca3806091543") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "cef53d47-e830-42d6-9834-bfc960dc6abe"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -247,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/executionmodel/standard/class_/VMMeasurement.java b/src/main/java/fr/softeam/cameldesigner/api/executionmodel/standard/class_/VMMeasurement.java index 1a3659ac..0be68d02 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.executionmodel.standard.class_; @@ -37,7 +37,7 @@ */ @objid ("0daa56af-0081-4d09-ba8b-b2b01233ee1d") public class VMMeasurement extends Measurement { - @objid ("98bf30c4-8516-4a59-8c79-844ecd65bb6c") + @objid ("45eae804-5fbe-4ce8-b02b-2241c6008be2") public static final String STEREOTYPE_NAME = "VMMeasurement"; /** @@ -48,7 +48,7 @@ public class VMMeasurement extends Measurement { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("63a9a50a-bbf6-4b31-931e-450582d745b0") + @objid ("413cdca3-50c1-4d82-8b09-ee88d582f015") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, VMMeasurement.STEREOTYPE_NAME)); } @@ -58,7 +58,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link VMMeasurement} proxy on the created {@link Class}. */ - @objid ("280dfaa2-dd5a-4977-b924-b54775563ab8") + @objid ("48e22220-320d-4a35-98b0-8ab27c58e47d") public static VMMeasurement create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, VMMeasurement.STEREOTYPE_NAME); @@ -66,36 +66,34 @@ 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. */ - @objid ("b5f8719d-d4d9-425b-9640-a7a5b1efb5f2") + @objid ("43fa5dbb-1da0-45ee-9c31-897848d6f758") public static VMMeasurement instantiate(final Class obj) { return VMMeasurement.canInstantiate(obj) ? new VMMeasurement(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("b631030d-7873-4746-bce7-bf6869684fe5") + @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 ("b70797e6-e17a-4fc1-8c6a-7b026e0ee8a8") + @objid ("ddf427dd-0f60-4cb1-a3f4-0d837f81d657") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -112,11 +110,10 @@ 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 ("2483a713-d58f-4ab1-aad3-e8ec69be8b7d") + @objid ("699fbebc-6a27-42b7-80b2-d0446f3583f4") @Override public Class getElement() { return (Class)super.getElement(); @@ -126,8 +123,9 @@ public Class getElement() { * Get the value of the 'vm' role.

* Role description: * null + * */ - @objid ("9361d3c0-08e9-4bbe-9db7-859ac1a5c797") + @objid ("08a0e25f-95d4-4757-801f-e398606876cf") public VM getVm() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(VMMeasurement.MdaTypes.MDAASSOCDEP) @@ -143,8 +141,9 @@ public VM getVm() { * Get the value of the 'vmInstance' role.

* Role description: * null + * */ - @objid ("a126e6ac-5397-472f-94d0-00c92fb5d231") + @objid ("fe2d0869-c8e0-4ee7-a4d7-9d8b2de84e19") public VMInstance getVmInstance() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(VMMeasurement.MdaTypes.MDAASSOCDEP) @@ -156,7 +155,7 @@ public VMInstance getVmInstance() { return null; } - @objid ("0edb0394-9171-4462-8461-347119ef09c4") + @objid ("ee79eecd-539e-4749-895b-ab3b06db0de0") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -166,8 +165,9 @@ public int hashCode() { * Set the value of the 'vm' role.

* Role description: * null + * */ - @objid ("5df73462-2e90-4094-89d5-77e789b4bc98") + @objid ("1167dd0d-1c77-4200-8eac-ebe5426864d3") public void setVm(final VM obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -191,8 +191,9 @@ public void setVm(final VM obj) { * Set the value of the 'vmInstance' role.

* Role description: * null + * */ - @objid ("25a655d3-3172-43fa-ad96-a7efdc317005") + @objid ("e78742cc-ce3f-4ac2-867b-4807cbe5e0cf") public void setVmInstance(final VMInstance obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -220,23 +221,23 @@ public List getChilds() { return result; } - @objid ("004825b9-84c2-435a-b70d-7fd7e0f5da93") + @objid ("560e0494-cbee-4c1b-b39b-35e3071806ff") protected VMMeasurement(final Class elt) { super(elt); } @objid ("722c2a2d-2b4b-4306-9ed5-0f04e5426046") public static final class MdaTypes { - @objid ("8f564a9f-9d0b-447d-bd65-44c175fc5aab") + @objid ("17d55eb7-e3d8-4b8c-ae92-7bb71550c13a") public static Stereotype STEREOTYPE_ELT; - @objid ("8b3c2863-e666-4872-b40e-0ffa9ba90620") + @objid ("0c6e8f20-49b2-4bf2-bf76-3ba63c26543e") private static Stereotype MDAASSOCDEP; - @objid ("d4c419c3-60f5-424d-83ad-28ee69dcdf30") + @objid ("91b2deff-534c-4945-b339-e387c8a3cb51") private static TagType MDAASSOCDEP_ROLE; - @objid ("38d4f422-4415-4e8d-886b-2a5e573a4744") + @objid ("b6767db1-cd6c-4fd9-9d20-bc20a323eb8c") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "a33f8ce2-8fb0-4642-be2c-588ae287f860"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -244,11 +245,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 5d808a89..35cffb59 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.executionmodel.standard.instance; @@ -37,16 +37,16 @@ */ @objid ("a76b8220-83aa-410e-a6dc-9369e64f59e2") public class ActionInstance extends FeatureInstance { - @objid ("dce0b363-c189-4d48-9b22-b5833619bd01") + @objid ("84b7a286-2460-49fa-a5a4-8ec4aec0dfea") public static final String STEREOTYPE_NAME = "ActionInstance"; - @objid ("6638cff8-80b1-48ee-9be7-8ded7c782b8e") + @objid ("acf68e27-aaa7-45a5-92fc-1191bb1a5c71") public static final String ENDTIME_TAGTYPE = "endTime"; - @objid ("a7e26790-8483-4810-9aaf-5b632cef9232") + @objid ("16b5fafe-177c-48d5-9305-96bdcee0e503") public static final String STARTTIME_TAGTYPE = "startTime"; - @objid ("82d60fb2-3fee-4d87-a9e3-5b2416d52f14") + @objid ("9dde5f14-3508-4a4c-9789-40734af71818") public static final String SUCCESSFUL_TAGTYPE = "successful"; /** @@ -57,7 +57,7 @@ public class ActionInstance extends FeatureInstance { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("cb28461c-4218-4c72-8c44-b869519097eb") + @objid ("03b08027-4fe8-455f-aa09-a5f5adf2c34f") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Instance) && ((Instance) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, ActionInstance.STEREOTYPE_NAME)); } @@ -67,7 +67,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link ActionInstance} proxy on the created {@link Instance}. */ - @objid ("e0edb3e8-06e5-4516-a808-5fc99663a8b0") + @objid ("1670a2e2-e0e7-4f0d-a119-3d95096b38c0") public static ActionInstance create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Instance"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, ActionInstance.STEREOTYPE_NAME); @@ -75,36 +75,34 @@ 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. */ - @objid ("c44c10c8-ee9f-4237-bfa8-f0fd762becbd") + @objid ("01bed8e4-19e9-4efa-83a5-a17cfa922eed") public static ActionInstance instantiate(final Instance obj) { return ActionInstance.canInstantiate(obj) ? new ActionInstance(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("6ca48f7a-f209-4072-b338-cd6b2d62f0eb") + @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 ("f462bd0f-cefd-48a3-91ee-a16da2db83c4") + @objid ("fed88c88-b3c1-4c38-81d7-7e70ce8af54e") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -121,11 +119,10 @@ 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 ("11d37066-7a25-4ac3-b6b7-a4d6c4899bb3") + @objid ("c98bfabf-8550-4600-976b-03edc3cb22c5") @Override public Instance getElement() { return (Instance)super.getElement(); @@ -136,7 +133,7 @@ public Instance getElement() { *

Property description: *
null

*/ - @objid ("7be385ea-e3ce-4ace-a2a3-eb5d8fe741c1") + @objid ("9e59a1e4-b01b-43c4-a41d-e853baa1e76d") public String getEndTime() { return this.elt.getTagValue(ActionInstance.MdaTypes.ENDTIME_TAGTYPE_ELT); } @@ -146,12 +143,12 @@ public String getEndTime() { *

Property description: *
null

*/ - @objid ("eaf72367-212a-47b3-93b5-33d9f1149617") + @objid ("db22cee0-d073-4ef5-a445-15ae9ac3a216") public String getStartTime() { return this.elt.getTagValue(ActionInstance.MdaTypes.STARTTIME_TAGTYPE_ELT); } - @objid ("88a04873-c4a0-4e91-8a40-55aca3b3d4d6") + @objid ("b193c99e-104b-4b01-84b1-00cef02cfb25") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -162,7 +159,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("c7433250-2f52-45b0-9f73-253d6888df89") + @objid ("fa7510c8-6103-4534-9e9a-38f3a668f674") public boolean isSuccessful() { return this.elt.isTagged(ActionInstance.MdaTypes.SUCCESSFUL_TAGTYPE_ELT); } @@ -172,7 +169,7 @@ public boolean isSuccessful() { *

Property description: *
null

*/ - @objid ("e49e4343-0748-44c5-b75a-b0973789ec6a") + @objid ("15ae98a1-eac8-48b2-8b0e-96c4508a7168") public void setEndTime(final String value) { this.elt.putTagValue(ActionInstance.MdaTypes.ENDTIME_TAGTYPE_ELT, value); } @@ -182,7 +179,7 @@ public void setEndTime(final String value) { *

Property description: *
null

*/ - @objid ("11ce96e3-85fb-4c4f-869e-044eb967faee") + @objid ("67a330ad-125a-41d4-a196-bd6014e44d72") public void setStartTime(final String value) { this.elt.putTagValue(ActionInstance.MdaTypes.STARTTIME_TAGTYPE_ELT, value); } @@ -192,7 +189,7 @@ public void setStartTime(final String value) { *

Property description: *
null

*/ - @objid ("5929c97a-f0f0-4c11-a284-41092d2170a8") + @objid ("532ae10f-7cdc-4fc2-ad34-e40f352b0b7e") public void setSuccessful(final boolean value) { if (value) CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createTaggedValue(ActionInstance.MdaTypes.SUCCESSFUL_TAGTYPE_ELT, this.elt); @@ -218,32 +215,32 @@ public void setAction(final Action value) { getElement().setBase(value.getElement()); } - @objid ("4fa87bcc-75df-4882-8214-e435e5b0065a") + @objid ("314b934f-cbba-45d3-acaa-006bddc8ad56") protected ActionInstance(final Instance elt) { super(elt); } @objid ("e6124144-40b2-4d8e-9200-f628fda5f4f2") public static final class MdaTypes { - @objid ("cf2f1825-9ad9-4cfa-a657-2f25b6ec04fe") + @objid ("2a2426db-1065-4e58-b075-8715487d635c") public static Stereotype STEREOTYPE_ELT; - @objid ("38d08a99-06cd-4b83-8089-77d47f03ebf6") + @objid ("fdef22e1-a547-4f3b-a763-ee8a3f547a54") public static TagType STARTTIME_TAGTYPE_ELT; - @objid ("7ae7f4ed-4f93-4eae-8a4b-5444797231e1") + @objid ("4b4f4557-0dc7-430d-ab00-af45ea43cfef") public static TagType ENDTIME_TAGTYPE_ELT; - @objid ("86e4aca2-d8b7-47b7-b4c7-19c788bc2284") + @objid ("b3655768-46ee-481f-bb45-cd96ff71af3f") public static TagType SUCCESSFUL_TAGTYPE_ELT; - @objid ("2ffe2be2-b2b5-467a-9e5f-c9f0d532fa2e") + @objid ("a22ec693-b09f-4713-8987-2f2444a2206a") private static Stereotype MDAASSOCDEP; - @objid ("5f82407b-424e-4760-bb98-6f7475f5a270") + @objid ("217152a9-c7fb-47b7-98ad-fbf2267ac4e1") private static TagType MDAASSOCDEP_ROLE; - @objid ("fa4db062-7f01-474a-9568-dffd3cceda07") + @objid ("1ddfe9a4-6d5f-44cb-8949-03a83a4f58dd") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "fe6343f1-1474-4d9e-a80f-e88b019c9e46"); STARTTIME_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "b0fbf0b8-55e7-49bd-8638-48285c121023"); @@ -254,11 +251,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 b7a2ed02..381860da 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.executionmodel.standard.package_; @@ -58,16 +58,16 @@ */ @objid ("c96f7eac-9b70-45a9-8082-1890dc328f78") public class ExecutionModel extends SubModel { - @objid ("e64d7da8-bdf8-4f0a-a725-12890b05e160") + @objid ("ba2d1039-e60b-4d5f-bb63-ea0bf5f6893f") public static final String STEREOTYPE_NAME = "ExecutionModel"; - @objid ("9345f54f-408c-4f59-b0cc-86b46e3b8f93") + @objid ("9160bdfb-3465-49cc-80cf-29273b3e0945") public static final String ENDTIME_TAGTYPE = "endTime"; - @objid ("e1b1bb9f-b56e-4f68-ba9e-2f4ec6936521") + @objid ("c0297909-cbae-491c-a9d8-961b60455288") public static final String STARTTIME_TAGTYPE = "startTime"; - @objid ("70552092-77f7-4866-8251-3bde26185e86") + @objid ("15b5585d-1412-491c-8ed0-925699410169") public static final String TOTALCOST_TAGTYPE = "totalCost"; /** @@ -78,7 +78,7 @@ public class ExecutionModel extends SubModel { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("acea92ba-63b3-4605-beb8-0261ef0cacd0") + @objid ("ac82158a-2d4e-46e4-a98f-6ab8d7f6da80") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Package) && ((Package) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, ExecutionModel.STEREOTYPE_NAME)); } @@ -88,7 +88,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link ExecutionModel} proxy on the created {@link Package}. */ - @objid ("b8c2bdf7-cb23-4f33-8b6b-4cac6e56a3a2") + @objid ("a83d471a-b4a9-4d13-8258-3d2aa3f27aaf") public static ExecutionModel create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Package"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, ExecutionModel.STEREOTYPE_NAME); @@ -96,41 +96,40 @@ 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. */ - @objid ("4c63e355-265a-4d48-890a-1fdd27b95b9f") + @objid ("4c804f77-3adc-46a9-91c2-698def009347") public static ExecutionModel instantiate(final Package obj) { return ExecutionModel.canInstantiate(obj) ? new ExecutionModel(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("7b9c97c2-690b-4c38-be97-eb666f26600c") + @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 ("57dd56c5-5002-4882-b195-69f327b79316") + @objid ("0ad0f47f-8137-4ea5-8324-df982e1ca8e7") public void addDiagram(final ExecutionModelDiagram obj) { if (obj!=null) ((Package) this.elt).getProduct().add(obj.getElement()); @@ -140,8 +139,9 @@ public void addDiagram(final ExecutionModelDiagram obj) { * Add a value to the 'historyRecords' role.

* Role description: * null + * */ - @objid ("ca98f38f-1c8d-489d-b581-1da156181519") + @objid ("3172d2c6-d066-465e-b334-27467a872a8f") public void addHistoryRecords(final HistoryRecord obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -151,8 +151,9 @@ public void addHistoryRecords(final HistoryRecord obj) { * Add a value to the 'measurements' role.

* Role description: * null + * */ - @objid ("d450a887-a8a9-4a53-b34c-085d797d3350") + @objid ("5afeb856-2269-4e65-96ec-6d5b7f9d3392") public void addMeasurements(final Measurement obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -162,8 +163,9 @@ public void addMeasurements(final Measurement obj) { * Add a value to the 'ruleTriggers' role.

* Role description: * null + * */ - @objid ("6911e341-b5fc-46c3-a81d-cdc7045c160c") + @objid ("46bcb1c8-0ec4-4727-86df-b2e7aecc6e94") public void addRuleTriggers(final RuleTrigger obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -173,14 +175,15 @@ public void addRuleTriggers(final RuleTrigger obj) { * Add a value to the 'sloViolations' role.

* Role description: * null + * */ - @objid ("66ad076f-eb04-49b1-af8f-cee1933f9e60") + @objid ("cd08dfd0-1931-4f57-af3d-5925b675bb5c") public void addSloViolations(final SLOViolation obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); } - @objid ("e0832479-a06f-4aec-95e8-ca8d89d1e72e") + @objid ("69e9be99-15d0-412c-812c-d61f1ad9e178") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -200,8 +203,9 @@ public boolean equals(final Object obj) { * Get the value to the 'camelModel' role.

* Role description: * null + * */ - @objid ("396ab50d-cf30-4fff-a774-7eb7149c24fe") + @objid ("0a42b571-c107-47ce-a092-137baf94069d") public CamelModel getCamelModel() { return (CamelModel)CamelDesignerProxyFactory.instantiate(((Package) this.elt).getOwner(), CamelModel.STEREOTYPE_NAME); } @@ -210,8 +214,9 @@ public CamelModel getCamelModel() { * Get the value of the 'costUnit' role.

* Role description: * null + * */ - @objid ("a9cb5ebe-ed50-4a29-afef-83b7186838c0") + @objid ("6a3aa0ab-b591-4a34-94a6-a9e6502ef086") public Unit getCostUnit() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(ExecutionModel.MdaTypes.MDAASSOCDEP) @@ -231,8 +236,9 @@ public Unit getCostUnit() { * Get the value of the 'dataTypeModel' role.

* Role description: * null + * */ - @objid ("29164e43-d2f1-49cd-8e08-ec31f7dcc2a1") + @objid ("97f459c3-49df-418a-9dfe-d4574f22f37d") public DataTypeModel getDataTypeModel() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(ExecutionModel.MdaTypes.MDAASSOCDEP) @@ -248,8 +254,9 @@ public DataTypeModel getDataTypeModel() { * Get the value of the 'deploymentTypeModel' role.

* Role description: * null + * */ - @objid ("f5523f93-bd08-4fc1-a627-2e384db6c086") + @objid ("2db5bc89-03ff-44fd-912f-eb900f9de221") public DeploymentTypeModel getDeploymentTypeModel() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(ExecutionModel.MdaTypes.MDAASSOCDEP) @@ -265,23 +272,23 @@ public DeploymentTypeModel getDeploymentTypeModel() { * Get the values of the 'Diagram' role.

* Role description: * null + * */ - @objid ("c5760ec4-9e93-4b46-b3eb-5f8a12decf54") + @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 ("0d09cddb-9f64-4901-8bda-5f69bba353f4") + @objid ("f7ad9498-6592-41a9-a825-82ea42536848") @Override public Package getElement() { return (Package)super.getElement(); @@ -292,7 +299,7 @@ public Package getElement() { *

Property description: *
null

*/ - @objid ("5465c539-1080-423f-a4a4-60cff9e49217") + @objid ("d9d99b34-44b2-4ffa-a32e-1c31453536dc") public String getEndTime() { return this.elt.getTagValue(ExecutionModel.MdaTypes.ENDTIME_TAGTYPE_ELT); } @@ -301,14 +308,15 @@ public String getEndTime() { * Get the values of the 'historyRecords' role.

* Role description: * null + * */ - @objid ("eaece330-ca3d-4136-9fe6-09a6b19b66fd") + @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); } @@ -316,26 +324,27 @@ public List getHistoryRecords() { * Get the values of the 'measurements' role.

* Role description: * null + * */ - @objid ("53fd3cf2-1e39-4216-8475-f98d32e635a3") + @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); } @@ -343,8 +352,9 @@ public List getMeasurements() { * Get the value of the 'requirementModel' role.

* Role description: * null + * */ - @objid ("13118f8a-25f9-49fa-a64d-80b443bf5f7e") + @objid ("736313e6-ba60-4a6e-8b65-8c8df6a811c9") public RequirementModel getRequirementModel() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(ExecutionModel.MdaTypes.MDAASSOCDEP) @@ -360,14 +370,15 @@ public RequirementModel getRequirementModel() { * Get the values of the 'ruleTriggers' role.

* Role description: * null + * */ - @objid ("766f0b38-b787-4255-9347-d5405a27d406") + @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); } @@ -375,14 +386,15 @@ public List getRuleTriggers() { * Get the values of the 'sloViolations' role.

* Role description: * null + * */ - @objid ("829c3297-e87b-4b58-b8cf-275ff15dada4") + @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); } @@ -391,7 +403,7 @@ public List getSloViolations() { *

Property description: *
null

*/ - @objid ("ff07adeb-261c-497b-b0f6-70226b5fe3cb") + @objid ("902a15d5-be5e-4008-a187-c0c1b051b20c") public String getStartTime() { return this.elt.getTagValue(ExecutionModel.MdaTypes.STARTTIME_TAGTYPE_ELT); } @@ -401,12 +413,12 @@ public String getStartTime() { *

Property description: *
null

*/ - @objid ("a2599256-e6e1-4253-a9b9-923d75c06717") + @objid ("eb6d742a-efed-48c1-afb8-6c3f90aa973d") public String getTotalCost() { return this.elt.getTagValue(ExecutionModel.MdaTypes.TOTALCOST_TAGTYPE_ELT); } - @objid ("4b5a00c0-8417-4ed6-90e3-09bceb8c2bef") + @objid ("c017d217-9ace-4526-ac70-43bdae1b7ae7") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -416,8 +428,9 @@ public int hashCode() { * Remove a value from the 'Diagram' role.

* Role description: * null + * */ - @objid ("ebded3df-7ee4-4d5a-98ff-13f16dee9c30") + @objid ("4ad34726-af3e-447a-9975-053758571811") public boolean removeDiagram(final ExecutionModelDiagram obj) { return (obj!=null)? ((Package) this.elt).getProduct().remove(obj.getElement()) : false; } @@ -426,8 +439,9 @@ public boolean removeDiagram(final ExecutionModelDiagram obj) { * Remove a value from the 'historyRecords' role.

* Role description: * null + * */ - @objid ("a365340d-55b0-4c08-9be1-b0587772d0f2") + @objid ("5fcc0896-6128-4b00-a371-6f5d558722e1") public boolean removeHistoryRecords(final HistoryRecord obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -436,8 +450,9 @@ public boolean removeHistoryRecords(final HistoryRecord obj) { * Remove a value from the 'measurements' role.

* Role description: * null + * */ - @objid ("d9f0e51e-7dc0-4e56-ae2f-8c36e6ecf65a") + @objid ("ea0039d3-1bd9-4f3b-bb4a-e638986257fd") public boolean removeMeasurements(final Measurement obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -446,8 +461,9 @@ public boolean removeMeasurements(final Measurement obj) { * Remove a value from the 'ruleTriggers' role.

* Role description: * null + * */ - @objid ("6d8ca45c-4724-4ce7-ba72-e811e1584e4a") + @objid ("e284e010-b941-4422-bbd5-107d4d324894") public boolean removeRuleTriggers(final RuleTrigger obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -456,8 +472,9 @@ public boolean removeRuleTriggers(final RuleTrigger obj) { * Remove a value from the 'sloViolations' role.

* Role description: * null + * */ - @objid ("c1220cd0-9ff5-43ec-9aba-783efe895aa3") + @objid ("c0a993d2-0d55-4ea4-aa5e-0a438a2c42cb") public boolean removeSloViolations(final SLOViolation obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -466,8 +483,9 @@ public boolean removeSloViolations(final SLOViolation obj) { * Set the value of the 'camelModel' role.

* Role description: * null + * */ - @objid ("a90d70d9-3b4c-44c8-9eaf-a1fede257bff") + @objid ("f7e545d5-f718-426f-8a70-a190d1063b79") public void setCamelModel(final CamelModel obj) { ((Package) this.elt).setOwner((obj != null) ? obj.getElement() : null); } @@ -476,8 +494,9 @@ public void setCamelModel(final CamelModel obj) { * Set the value of the 'costUnit' role.

* Role description: * null + * */ - @objid ("6ec4c99b-8c0d-4bba-89ba-a7b20c69b117") + @objid ("3398a40f-8b27-4f9d-ac11-789e36d6b795") public void setCostUnit(final Unit obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -501,8 +520,9 @@ public void setCostUnit(final Unit obj) { * Set the value of the 'dataTypeModel' role.

* Role description: * null + * */ - @objid ("dccea9ff-894a-4831-aef0-085063e0ca34") + @objid ("e6131a7d-619e-462b-8a04-79722695eb0b") public void setDataTypeModel(final DataTypeModel obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -526,8 +546,9 @@ public void setDataTypeModel(final DataTypeModel obj) { * Set the value of the 'deploymentTypeModel' role.

* Role description: * null + * */ - @objid ("a9ae4bde-93fa-4d2d-9770-6bcfa39d0c5d") + @objid ("d9e4f825-d8f0-4711-bcd2-fa835115fdd0") public void setDeploymentTypeModel(final DeploymentTypeModel obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -552,7 +573,7 @@ public void setDeploymentTypeModel(final DeploymentTypeModel obj) { *

Property description: *
null

*/ - @objid ("a1f02289-f2c4-43ec-acc6-36f62a0476fa") + @objid ("1ac251e4-4074-4b76-9722-344078906f16") public void setEndTime(final String value) { this.elt.putTagValue(ExecutionModel.MdaTypes.ENDTIME_TAGTYPE_ELT, value); } @@ -561,8 +582,9 @@ public void setEndTime(final String value) { * Set the value of the 'requirementModel' role.

* Role description: * null + * */ - @objid ("021d3709-4099-4db3-afc6-395c1dc5e8ca") + @objid ("0f435b8a-a3c3-4581-aee6-b9fce6d5a0b6") public void setRequirementModel(final RequirementModel obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -587,7 +609,7 @@ public void setRequirementModel(final RequirementModel obj) { *

Property description: *
null

*/ - @objid ("2ff156f6-bdbf-42b3-a735-5102ec4a1980") + @objid ("c5a1ac20-92d1-4d41-a84f-e18394b07323") public void setStartTime(final String value) { this.elt.putTagValue(ExecutionModel.MdaTypes.STARTTIME_TAGTYPE_ELT, value); } @@ -597,7 +619,7 @@ public void setStartTime(final String value) { *

Property description: *
null

*/ - @objid ("9136f9f9-5348-47f1-ae37-939b621a66c6") + @objid ("9be88b18-5db3-4024-9db8-2f23593f4d26") public void setTotalCost(final String value) { this.elt.putTagValue(ExecutionModel.MdaTypes.TOTALCOST_TAGTYPE_ELT, value); } @@ -610,32 +632,32 @@ public List getChilds() { return result; } - @objid ("23193f52-ba24-44e4-8e35-0ee5f6476efa") + @objid ("13cd4955-fd7c-4c7e-86de-f3b4615547d4") protected ExecutionModel(final Package elt) { super(elt); } @objid ("717cbe7b-f67e-4b04-8825-65ff42b77f09") public static final class MdaTypes { - @objid ("7a37e522-3595-4d8c-aa9f-a778c4c3d3f2") + @objid ("081b9576-8987-45ed-9972-352c0c526531") public static Stereotype STEREOTYPE_ELT; - @objid ("c45c4e1d-dbee-4409-bc8e-20f1941409d7") + @objid ("226584e1-fdc7-4518-a97a-87f5478acd15") public static TagType STARTTIME_TAGTYPE_ELT; - @objid ("d6442155-f17f-40e8-8654-f050863a80d8") + @objid ("7b6dc01d-43c1-4de5-b039-e15a11302f82") public static TagType ENDTIME_TAGTYPE_ELT; - @objid ("066670f0-a655-4bac-a2cc-f4ce33e98b51") + @objid ("6af279ce-5f1e-4f93-ac48-8880bd3f88f6") public static TagType TOTALCOST_TAGTYPE_ELT; - @objid ("efbc36ea-58e2-4a32-80c0-9add08aa9c65") + @objid ("93a1bab4-f41b-40b4-ab59-71fde2960bb9") private static Stereotype MDAASSOCDEP; - @objid ("27aafe1b-a63e-4c1f-85a3-961391f4fd1f") + @objid ("d95258f4-c526-4497-9833-e93006d1cde1") private static TagType MDAASSOCDEP_ROLE; - @objid ("a45521ec-c8f4-4813-a6e5-17aafcf5a283") + @objid ("aae8b3a0-874a-4425-a074-6f34978cc930") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "e68f7e04-ff66-47dd-af65-5c017645cb8d"); STARTTIME_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "8a1a55fb-6fdd-41a1-8b7f-0402a36c1c5a"); @@ -646,11 +668,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 af83ce22..fa44b6ff 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.locationmodel.standard.enumeration; @@ -14,14 +14,19 @@ 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; import org.modelio.api.module.context.IModuleContext; +import org.modelio.metamodel.mmextensions.infrastructure.ExtensionNotFoundException; import org.modelio.metamodel.uml.infrastructure.Dependency; 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.infrastructure.properties.PropertyDefinition; +import org.modelio.metamodel.uml.infrastructure.properties.PropertyTableDefinition; import org.modelio.metamodel.uml.statik.Enumeration; import org.modelio.vcore.smkernel.mapi.MObject; @@ -32,10 +37,10 @@ */ @objid ("ec445b98-cb41-4e0b-8577-5f1b03d78177") public class CloudLocation extends Location { - @objid ("c7a6f6cc-1d34-4cfb-8787-4b7df4e686f2") + @objid ("9234e15a-64ce-4d65-bd3c-6895fa1494ea") public static final String STEREOTYPE_NAME = "CloudLocation"; - @objid ("e90bb258-d49d-4e8c-8a86-81991ce0efb0") + @objid ("5a7cdc20-68cb-42c9-9e47-149adea1f71f") public static final String ISASSIGNABLE_TAGTYPE = "isAssignable"; /** @@ -46,7 +51,7 @@ public class CloudLocation extends Location { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("e8e17d54-491f-49ff-9df1-39ce40be3c02") + @objid ("2cd4c3a2-6af3-49ce-be6e-6a4a238d34ee") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Enumeration) && ((Enumeration) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, CloudLocation.STEREOTYPE_NAME)); } @@ -56,7 +61,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link CloudLocation} proxy on the created {@link Enumeration}. */ - @objid ("a0b8af6c-ee78-4801-a0e0-a9a70d79a362") + @objid ("562c3637-5542-472b-98ac-267ac19f6273") public static CloudLocation create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Enumeration"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, CloudLocation.STEREOTYPE_NAME); @@ -64,47 +69,46 @@ 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. */ - @objid ("dd190eb6-07cf-4bb8-b6a5-0b1a46beb53b") + @objid ("5a4ccb77-6682-473b-9939-5b97deb8ac26") public static CloudLocation instantiate(final Enumeration obj) { return CloudLocation.canInstantiate(obj) ? new CloudLocation(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("98694c27-04c8-44f7-9439-1805c835093b") + @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 ("cc9dac08-d189-4694-817f-030c1f01a127") + @objid ("7177999a-483a-4626-8c98-a8a31e361951") public void addSubLocations(final CloudLocation obj) { if (obj!=null) ((Enumeration) this.elt).getOwnedElement().add(obj.getElement()); } - @objid ("231d8983-0575-456a-8e92-94aea026bab0") + @objid ("93e07509-1c8f-4665-b433-40d88dd9549d") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -121,11 +125,10 @@ 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 ("1b71fb1f-5ff4-4f77-aef9-f181404d7e08") + @objid ("7ddd2bd5-ce8b-4f0a-a8eb-1e498627b8ec") @Override public Enumeration getElement() { return (Enumeration)super.getElement(); @@ -135,8 +138,9 @@ public Enumeration getElement() { * Get the value of the 'geographicalRegion' role.

* Role description: * null + * */ - @objid ("50d98dd3-9496-4e44-88a1-135e7a76ab7e") + @objid ("785b28cc-88c9-492c-936d-c466007c4e95") public GeographicalRegion getGeographicalRegion() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(CloudLocation.MdaTypes.MDAASSOCDEP) @@ -152,8 +156,9 @@ public GeographicalRegion getGeographicalRegion() { * Get the value to the 'parent' role.

* Role description: * null + * */ - @objid ("e1dbdef1-3678-4a8a-9b12-0a52c44296cb") + @objid ("c135263c-ba1d-4012-ad44-d3368d208401") public CloudLocation getParent() { return (CloudLocation)CamelDesignerProxyFactory.instantiate(((Enumeration) this.elt).getOwner(), CloudLocation.STEREOTYPE_NAME); } @@ -162,18 +167,19 @@ public CloudLocation getParent() { * Get the values of the 'subLocations' role.

* Role description: * null + * */ - @objid ("4b6f18df-79ab-4e22-b080-8f9a6a08fe2d") + @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); } - @objid ("6ea5ba94-6240-42a3-9082-a08c0c7bda1c") + @objid ("78744f85-95d0-4eba-8d97-426bbcac30ab") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -184,7 +190,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("fc0850a0-16ab-4ff5-a04e-77aa06974b73") + @objid ("7112db84-6d2d-491c-9471-ccca5c5e04e0") public boolean isIsAssignable() { return this.elt.isTagged(CloudLocation.MdaTypes.ISASSIGNABLE_TAGTYPE_ELT); } @@ -193,8 +199,9 @@ public boolean isIsAssignable() { * Remove a value from the 'subLocations' role.

* Role description: * null + * */ - @objid ("3d3bbcae-c035-4e60-ba1c-5d35d38da5d0") + @objid ("26768b59-cef4-4e5a-b60d-91850288a7d3") public boolean removeSubLocations(final CloudLocation obj) { return (obj!=null)? ((Enumeration) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -203,8 +210,9 @@ public boolean removeSubLocations(final CloudLocation obj) { * Set the value of the 'geographicalRegion' role.

* Role description: * null + * */ - @objid ("ebc48ee8-1cb5-4870-868f-c15ca8726c80") + @objid ("2e836d4c-8010-44d5-b7ba-89511fe8a685") public void setGeographicalRegion(final GeographicalRegion obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -229,7 +237,7 @@ public void setGeographicalRegion(final GeographicalRegion obj) { *

Property description: *
null

*/ - @objid ("42874aab-fbb1-450d-9d8f-c446364aecae") + @objid ("c2831735-ecdf-47e6-81ef-47d9172a12fa") public void setIsAssignable(final boolean value) { if (value) CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createTaggedValue(CloudLocation.MdaTypes.ISASSIGNABLE_TAGTYPE_ELT, this.elt); @@ -241,8 +249,9 @@ public void setIsAssignable(final boolean value) { * Set the value of the 'parent' role.

* Role description: * null + * */ - @objid ("d85f129f-3b90-4451-a251-1742d89e3eb4") + @objid ("0389bbd3-a0f6-4934-9590-33c7f6ee3cfd") public void setParent(final CloudLocation obj) { ((Enumeration) this.elt).setOwner((obj != null) ? obj.getElement() : null); } @@ -256,26 +265,26 @@ public List getChilds() { return result; } - @objid ("a3a32df3-8e4f-4125-a3ab-72c8c9749610") + @objid ("e604d1ca-caee-404c-b137-b86ea0b386b6") protected CloudLocation(final Enumeration elt) { super(elt); } @objid ("2601abe9-713a-4dc1-b7a9-b34987ddef2b") public static final class MdaTypes { - @objid ("b7cd7164-ac14-41cc-8389-5430c3bfefd0") + @objid ("24cde533-83d2-4964-8094-cba0140b90fb") public static Stereotype STEREOTYPE_ELT; - @objid ("c6a1a6b7-6362-4014-b5c7-ffae9b7cdd7d") + @objid ("6bbbd7de-2448-400f-8835-3fbe56a0e3bc") public static TagType ISASSIGNABLE_TAGTYPE_ELT; - @objid ("3f5cf4d6-c08b-4ec4-99ae-849da5ec8286") + @objid ("c157b035-225a-4b36-84a5-9364548ec97b") private static Stereotype MDAASSOCDEP; - @objid ("ea32b664-1a50-4327-bf57-120487fee808") + @objid ("b6f71bc2-c412-45f9-bb32-984ce66bb290") private static TagType MDAASSOCDEP_ROLE; - @objid ("2477a20f-97e8-4549-a744-820b4f8bb7a5") + @objid ("fa8808c6-fd18-47bb-b79f-fedcf9dc0f76") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "230c406e-effa-4238-9937-957af3c1a96d"); ISASSIGNABLE_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "9636ddd4-581e-40c7-98e9-2ce66cca47e8"); @@ -284,11 +293,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 0d23fa1e..0e5810cc 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.locationmodel.standard.enumeration; @@ -36,7 +36,7 @@ */ @objid ("840d6f54-3cb7-4c64-bc4c-8a2ef6fc0cd4") public class GeographicalRegion extends Location { - @objid ("6f815fb7-39c2-4d9a-bb64-c38a48a93ae3") + @objid ("dcb08c24-38bd-4683-a420-5bf9a30bcb69") public static final String STEREOTYPE_NAME = "GeographicalRegion"; /** @@ -47,7 +47,7 @@ public class GeographicalRegion extends Location { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("302c1107-367b-4a35-aec4-7047d00e3150") + @objid ("83a1ca44-ad74-4aa6-80f6-ea2a473e91d7") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Enumeration) && ((Enumeration) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, GeographicalRegion.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link GeographicalRegion} proxy on the created {@link Enumeration}. */ - @objid ("ba6087cd-d5ce-4d0f-bd26-c843205ab9bc") + @objid ("0548442c-90f0-4328-8ec2-7538a0253e47") public static GeographicalRegion create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Enumeration"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, GeographicalRegion.STEREOTYPE_NAME); @@ -65,41 +65,40 @@ 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. */ - @objid ("0df7259a-9aed-4559-910c-7c2c015e1874") + @objid ("16f63630-f803-4234-8ef0-bc9a81771268") public static GeographicalRegion instantiate(final Enumeration obj) { return GeographicalRegion.canInstantiate(obj) ? new GeographicalRegion(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("6234533b-86f2-4876-93f5-540c21a379b5") + @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 ("35d1f927-8133-460a-886c-d9b3d20efdea") + @objid ("686b6469-ead1-44ec-90c4-e5f5c6b874b3") public void addParentRegions(final GeographicalRegion obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -109,7 +108,7 @@ public void addParentRegions(final GeographicalRegion obj) { } } - @objid ("f93c32c6-f285-4279-812c-45721def4f20") + @objid ("d703f640-49e8-4687-9659-280bc36225ca") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -126,11 +125,10 @@ 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 ("9d00a774-c23d-4f35-b92a-b25b91b724ed") + @objid ("a6341596-de38-41cd-97a7-a071766f99b0") @Override public Enumeration getElement() { return (Enumeration)super.getElement(); @@ -140,8 +138,9 @@ public Enumeration getElement() { * Get the values of the 'parentRegions' role.

* Role description: * null + * */ - @objid ("ef997a87-879c-4c13-b8ba-66cce0448186") + @objid ("d3a7366d-8d21-4613-9a7e-4b514f6f8e16") public List getParentRegions() { List results = new ArrayList<>(); for (Dependency d : this.elt.getImpactedDependency()) { @@ -154,7 +153,7 @@ public List getParentRegions() { return Collections.unmodifiableList(results); } - @objid ("6f11faea-4e12-48c0-beed-c5d7a0280a14") + @objid ("edfd5c81-1dd7-476f-b91d-82e1f844a7cd") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -164,8 +163,9 @@ public int hashCode() { * Remove a value from 'parentRegions' role.

* Role description: * null + * */ - @objid ("e0c9e1eb-7555-419a-a249-b644f1f03f58") + @objid ("d4eed3cb-65bd-4f4e-9df2-97121927c2e5") public boolean removeParentRegions(final GeographicalRegion obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getImpactedDependency())) { @@ -218,23 +218,23 @@ public boolean removeAlternativeName(String name) { return false; } - @objid ("f4ccbc3f-320a-423d-a2a1-e733d8614c98") + @objid ("c8e0fb5b-74a6-4dc6-861c-1d2ee8653466") protected GeographicalRegion(final Enumeration elt) { super(elt); } @objid ("99a544e5-32ff-4e49-b598-8e15beae3213") public static final class MdaTypes { - @objid ("a5bc7b76-99da-48e6-82a3-f197a545edca") + @objid ("39901103-8254-4f28-b2e8-6d46de111b01") public static Stereotype STEREOTYPE_ELT; - @objid ("092f8a11-410e-477e-99f4-d25de094fbc4") + @objid ("3e353f0c-c616-4d45-bafc-d76ce2c5bba3") private static Stereotype MDAASSOCDEP; - @objid ("2d7d8cbd-17aa-4c00-87c5-c69c5080e945") + @objid ("f5f05009-66c7-498f-9218-0b3698348164") private static TagType MDAASSOCDEP_ROLE; - @objid ("8954718c-f33e-42c9-8bac-08c69bc22f37") + @objid ("c18e7523-1f9d-4bd4-9fa8-b00d14c5da6c") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "b9be9f56-5f88-4cfb-8745-3fe2ceda1c86"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -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 72c84196..3b44f6b3 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.locationmodel.standard.enumeration; @@ -36,10 +36,10 @@ */ @objid ("a6a4b7ae-60d0-494b-a18d-6990283999a7") public abstract class Location extends FeatureEnumeration { - @objid ("facb2880-03ef-4342-b1d7-575ad2b63f06") + @objid ("5dff65fc-fcde-4831-91d6-5c91d3c6d51d") public static final String STEREOTYPE_NAME = "Location"; - @objid ("4c414ebc-fb42-4e2f-8e62-ea282e0c5d98") + @objid ("65a708f2-ff98-4668-b088-06f1f1081fab") public static final String ID_TAGTYPE = "id"; /** @@ -50,7 +50,7 @@ public abstract class Location extends FeatureEnumeration { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("018e9275-2e75-49e6-af7c-0b0e1a33f900") + @objid ("3def2ada-c325-44cb-941c-755dd63045f4") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Enumeration) && ((Enumeration) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, Location.STEREOTYPE_NAME)); } @@ -93,7 +93,7 @@ public static Location safeInstantiate(final Enumeration obj) throws IllegalArgu throw new IllegalArgumentException("Location: Cannot instantiate "+obj+": wrong element type or stereotype"); } - @objid ("0766f00e-b89c-4d09-9edf-ac78bff1bab4") + @objid ("5d9c9d79-fd84-4c9c-9ba4-1b33c4337148") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -110,11 +110,10 @@ 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 ("93b0cc68-2b20-4684-ab5c-abe2dfc9e1c5") + @objid ("660d4d8e-8ad2-48a6-a224-3563b722fa46") @Override public Enumeration getElement() { return (Enumeration)super.getElement(); @@ -125,12 +124,12 @@ public Enumeration getElement() { *

Property description: *
null

*/ - @objid ("546595b9-18fa-4285-b388-b935d43c2081") + @objid ("ea67df1a-3a52-4e2c-bbd8-dd0884f6e2d4") public String getId() { return this.elt.getTagValue(Location.MdaTypes.ID_TAGTYPE_ELT); } - @objid ("1df5c703-f2e8-4967-999c-342df0153ff5") + @objid ("562168b1-b951-4bce-bcba-09815ca9581b") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -141,7 +140,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("1272fcf7-647d-4909-b73e-afeb6e8813a2") + @objid ("82e60f02-e8b0-487f-8ea9-660ff1509420") public void setId(final String value) { this.elt.putTagValue(Location.MdaTypes.ID_TAGTYPE_ELT, value); } @@ -154,26 +153,26 @@ public List getChilds() { return result; } - @objid ("6143ab38-2eb6-4ae6-afbb-86d2814f61f3") + @objid ("17bf6abc-5e95-4038-8789-4fc875c6cc56") protected Location(final Enumeration elt) { super(elt); } @objid ("a0bb5fe1-09b7-41e5-9811-6126f9ea7b6e") public static final class MdaTypes { - @objid ("47aaf35a-961b-42d9-96fe-2d688d477d7b") + @objid ("07b2a461-ed0b-4904-a349-831620f6e4a4") public static Stereotype STEREOTYPE_ELT; - @objid ("74a36c17-19b4-4a2a-86af-c01bb379e2f1") + @objid ("3de3d0bb-54a6-4673-ad62-4953d31bd78b") public static TagType ID_TAGTYPE_ELT; - @objid ("2ea53d44-ace1-442e-811b-b8c589de5d53") + @objid ("38304564-c7d7-4f94-80b3-c5e61adc287d") private static Stereotype MDAASSOCDEP; - @objid ("021f1c3e-92e9-46ca-864b-7b09a27c7566") + @objid ("3f375f87-a6b2-4e40-b32f-266a5f5ac528") private static TagType MDAASSOCDEP_ROLE; - @objid ("4a5975f4-2b82-4f53-b5bc-2c3cbe07c8fc") + @objid ("82f0ae92-d445-4f87-b155-66af7b9546f5") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "451ac0cf-b5d0-488a-8f05-43139794aa83"); ID_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "4726ff4f-02ae-437f-aebc-16cda8f5d0df"); @@ -182,11 +181,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 56ab275e..ddcb4672 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 @@ -1,14 +1,15 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.locationmodel.standard.package_; import java.util.ArrayList; import java.util.Collections; import java.util.List; +import java.util.Objects; import com.modeliosoft.modelio.javadesigner.annotations.objid; import fr.softeam.cameldesigner.api.CamelDesignerProxyFactory; import fr.softeam.cameldesigner.api.ICamelDesignerPeerModule; @@ -18,11 +19,17 @@ import fr.softeam.cameldesigner.api.locationmodel.standard.enumeration.CloudLocation; 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; import org.modelio.api.module.context.IModuleContext; +import org.modelio.metamodel.mmextensions.infrastructure.ExtensionNotFoundException; +import org.modelio.metamodel.uml.infrastructure.Dependency; 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.infrastructure.properties.PropertyDefinition; +import org.modelio.metamodel.uml.infrastructure.properties.PropertyTableDefinition; import org.modelio.metamodel.uml.statik.Package; import org.modelio.vcore.smkernel.mapi.MObject; @@ -33,7 +40,7 @@ */ @objid ("e06f1e35-8aba-474b-985b-73a18abd3a7a") public class LocationModel extends SubModel { - @objid ("7b0f8f16-3a6c-4c8c-98d2-e3d8d01b1b4d") + @objid ("293f0ca4-7232-4c94-8c81-15df5e378f4d") public static final String STEREOTYPE_NAME = "LocationModel"; /** @@ -44,7 +51,7 @@ public class LocationModel extends SubModel { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("a2338453-5899-468b-87b4-27fa81204f9d") + @objid ("9fd70b13-0b49-4b76-9877-1103a677b588") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Package) && ((Package) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, LocationModel.STEREOTYPE_NAME)); } @@ -54,7 +61,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link LocationModel} proxy on the created {@link Package}. */ - @objid ("81b8b767-69d9-42c8-a8be-325c408e212b") + @objid ("b235246d-c454-4292-a9ed-a3a61afe61e9") public static LocationModel create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Package"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, LocationModel.STEREOTYPE_NAME); @@ -62,41 +69,40 @@ 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. */ - @objid ("6d7d0e5c-d4ac-455e-b962-043126c8579e") + @objid ("27dda09f-e95c-4da7-8bb1-e47254434ffc") public static LocationModel instantiate(final Package obj) { return LocationModel.canInstantiate(obj) ? new LocationModel(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("e699020b-b43f-4b44-b754-57a2b923799b") + @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 ("5bf9d517-23f3-4094-995b-98fbb8e49031") + @objid ("f9797bda-eeb7-4234-ae56-a6eb620de349") public void addCloudLocations(final CloudLocation obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -106,14 +112,15 @@ public void addCloudLocations(final CloudLocation obj) { * Add a value to the 'regions' role.

* Role description: * null + * */ - @objid ("9114df28-1020-4933-ab46-3b667eac6bcf") + @objid ("9ef41bb6-cb18-4487-bfae-e01ca2b9bb66") public void addRegions(final GeographicalRegion obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); } - @objid ("6599021b-ca26-45b3-b669-cfd29d1a277f") + @objid ("961bd1f5-b533-41e5-baea-8d9420957a81") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -133,8 +140,9 @@ public boolean equals(final Object obj) { * Get the value to the 'camelModel' role.

* Role description: * null + * */ - @objid ("9247c277-c839-4b5e-ba6d-19ae0ccec073") + @objid ("05a815b3-878e-490f-9d9d-480a60ac9021") public CamelModel getCamelModel() { return (CamelModel)CamelDesignerProxyFactory.instantiate(((Package) this.elt).getOwner(), CamelModel.STEREOTYPE_NAME); } @@ -143,23 +151,23 @@ public CamelModel getCamelModel() { * Get the values of the 'cloudLocations' role.

* Role description: * null + * */ - @objid ("6ca29e8d-b93e-422b-a773-a03c96083186") + @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 ("7d04b677-8882-40d9-816d-fbe318514018") + @objid ("a23ff23b-593c-4584-9aae-a186a61f32a4") @Override public Package getElement() { return (Package)super.getElement(); @@ -169,18 +177,19 @@ public Package getElement() { * Get the values of the 'regions' role.

* Role description: * null + * */ - @objid ("ed9e382d-0469-4e92-9fe1-339cc97f49c1") + @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); } - @objid ("e389bdfc-f5a2-4394-af7a-df11a289cfa1") + @objid ("c7749909-6dd0-4889-be57-6e425266fb5d") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -190,8 +199,9 @@ public int hashCode() { * Remove a value from the 'cloudLocations' role.

* Role description: * null + * */ - @objid ("ba6c6857-b313-4f3a-b3da-e7ad3f94adac") + @objid ("6c7f8e1d-2e19-4ba1-bab2-1f37f3a246ac") public boolean removeCloudLocations(final CloudLocation obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -200,8 +210,9 @@ public boolean removeCloudLocations(final CloudLocation obj) { * Remove a value from the 'regions' role.

* Role description: * null + * */ - @objid ("1151004d-ebb3-402e-b4b4-e0d281a85595") + @objid ("a2b3575d-6a1e-471b-882f-4cef32e6af42") public boolean removeRegions(final GeographicalRegion obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -210,8 +221,9 @@ public boolean removeRegions(final GeographicalRegion obj) { * Set the value of the 'camelModel' role.

* Role description: * null + * */ - @objid ("77721d78-9c6f-4d75-b160-903e813b4805") + @objid ("30ee7c4f-d033-43ed-990d-0bf26d2468f4") public void setCamelModel(final CamelModel obj) { ((Package) this.elt).setOwner((obj != null) ? obj.getElement() : null); } @@ -226,23 +238,23 @@ public List getChilds() { return result; } - @objid ("b8b84d56-d148-49eb-a3f3-8372d13ce003") + @objid ("5b65a461-1f49-469b-a81a-e5afe7c9e8a7") protected LocationModel(final Package elt) { super(elt); } @objid ("a2ca82c4-fc32-4a3b-bda6-79e19816d45c") public static final class MdaTypes { - @objid ("aa6daf45-b4ee-4fe8-b719-b78ae5f01593") + @objid ("ebdc062f-da07-435e-be1d-d98725ef3592") public static Stereotype STEREOTYPE_ELT; - @objid ("bea00ead-349c-46c0-a2f2-7edd443ee343") + @objid ("8e6f5000-a701-4c42-ba54-00ff4f9d882a") private static Stereotype MDAASSOCDEP; - @objid ("cb04b846-0b42-4dc1-945d-021d1e6f025f") + @objid ("322fec25-9440-4b0d-b473-6ef43225f87f") private static TagType MDAASSOCDEP_ROLE; - @objid ("56e482d1-5807-4e59-9585-073033021a93") + @objid ("2cf0581d-3853-4b94-94f7-e6d877ab6485") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "ae1d1599-c214-4ba0-9176-8cd1277e2ae1"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -250,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/metadatamodel/infrastructure/modelelement/MmsObject.java b/src/main/java/fr/softeam/cameldesigner/api/metadatamodel/infrastructure/modelelement/MmsObject.java index dd70e4ee..aa36f3e1 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.metadatamodel.infrastructure.modelelement; @@ -43,13 +43,13 @@ */ @objid ("5b8e0066-83d4-4b26-bada-7dcae35d5e7d") public abstract class MmsObject extends NamedElement { - @objid ("f2943003-3de2-4db7-91eb-5c72448cf437") + @objid ("b3104571-0a3e-400f-96b8-fee65f03b939") public static final String STEREOTYPE_NAME = "MmsObject"; - @objid ("0f50486a-61b0-4b07-ae38-c0943ccd5893") + @objid ("ec4f67e5-869d-4161-b5f5-7fd2526a9171") public static final String ID_TAGTYPE = "id"; - @objid ("1573f91c-d6a4-4e76-ad11-df5c366a7306") + @objid ("613992af-2e25-4aec-877a-77f8534bb9fe") public static final String URI_TAGTYPE = "uri"; /** @@ -60,7 +60,7 @@ public abstract class MmsObject extends NamedElement { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("4c4756a9-3e2e-4a71-bec0-013308f3c94d") + @objid ("775eedb6-045f-4194-a2e7-d2ec9b3bb0a8") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof ModelElement) && ((ModelElement) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, MmsObject.STEREOTYPE_NAME)); } @@ -73,7 +73,7 @@ public static MmsObject instantiate(final ModelElement obj) { MmsPropertyInstance.canInstantiate(obj) ? MmsPropertyInstance.instantiate((AttributeLink)obj) : null; } - @objid ("d908f114-8e40-4538-bb99-ad5c59a4b80d") + @objid ("3368edf9-1db3-4ea3-badf-00aa549aa808") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -90,11 +90,10 @@ 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 ("8ca8bf7d-5a38-4a19-8450-d47594711620") + @objid ("310c0080-1466-4e76-8e06-130ef24f1e16") @Override public ModelElement getElement() { return (ModelElement)super.getElement(); @@ -105,7 +104,7 @@ public ModelElement getElement() { *

Property description: *
null

*/ - @objid ("4f31026e-4db8-4e69-8ae6-d89cfbb47b2e") + @objid ("c9df9383-894c-45da-8717-f7f3aa974c81") public String getId() { return this.elt.getTagValue(MmsObject.MdaTypes.ID_TAGTYPE_ELT); } @@ -115,12 +114,12 @@ public String getId() { *

Property description: *
null

*/ - @objid ("0c034109-3269-460a-945c-b477689bb670") + @objid ("5d55b12d-bc2c-4420-81f1-153237338a64") public String getUri() { return this.elt.getTagValue(MmsObject.MdaTypes.URI_TAGTYPE_ELT); } - @objid ("c8c2a1f8-1f56-41f0-9a67-76f0a579d930") + @objid ("96a5ef5f-7c3b-49ea-9bd2-dac629da5e8e") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -131,7 +130,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("fadedd53-f771-4e3d-b623-c3d3e0068ae0") + @objid ("66ca8be9-38c8-4cfb-9393-58fb65bef0ee") public void setId(final String value) { this.elt.putTagValue(MmsObject.MdaTypes.ID_TAGTYPE_ELT, value); } @@ -141,7 +140,7 @@ public void setId(final String value) { *

Property description: *
null

*/ - @objid ("5bebf34f-59d5-4f81-9c7a-2319dcc9be86") + @objid ("b4521e6d-a2cc-46cc-ad90-157668e261be") public void setUri(final String value) { this.elt.putTagValue(MmsObject.MdaTypes.URI_TAGTYPE_ELT, value); } @@ -154,29 +153,29 @@ public List getChilds() { return result; } - @objid ("43bcf78a-ccbd-4f8b-8a73-17846ffbce3f") + @objid ("a1fdbda1-d903-4577-b7d9-61d3336aa06f") protected MmsObject(final ModelElement elt) { super(elt); } @objid ("2f90ab01-c906-4902-9288-e931e22fb14d") public static final class MdaTypes { - @objid ("d37d7360-db1b-4812-92fc-88cc106b1e67") + @objid ("999a6a75-302f-47fc-abad-4ea759573294") public static Stereotype STEREOTYPE_ELT; - @objid ("8b657546-a868-4665-b7cd-69add41b0a6e") + @objid ("35342a79-23c2-4128-9dcd-ff227da0a095") public static TagType ID_TAGTYPE_ELT; - @objid ("6f9b3fc3-3ce6-4c10-8741-86dce3429a84") + @objid ("646a545b-c173-4ce0-b158-ca0b8c483001") public static TagType URI_TAGTYPE_ELT; - @objid ("e12e9437-4030-47fe-ab98-d1e5d69c4a54") + @objid ("1c338228-004e-42ae-9348-e7782a30de54") private static Stereotype MDAASSOCDEP; - @objid ("5b890767-552c-4308-aab2-5e1b7759c962") + @objid ("1c4b4091-c637-41e0-946d-40d8a321090d") private static TagType MDAASSOCDEP_ROLE; - @objid ("d00fe3d1-7c22-4852-b398-dce3c253d648") + @objid ("3056ad76-5fbc-4034-8c84-abf128a874e0") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "907f72a5-eb52-4908-953e-7f9a66b9939d"); ID_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "a139c9cf-4b74-454a-b4cd-b0363a008c40"); @@ -186,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/metadatamodel/standard/attribute/MmsProperty.java b/src/main/java/fr/softeam/cameldesigner/api/metadatamodel/standard/attribute/MmsProperty.java index 1e4181c3..6db455e3 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 @@ -1,35 +1,30 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.metadatamodel.standard.attribute; import java.util.ArrayList; -import java.util.Collections; 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.modelio.model.PropertyConverter; import org.modelio.api.module.context.IModuleContext; -import org.modelio.metamodel.mmextensions.infrastructure.ExtensionNotFoundException; import org.modelio.metamodel.uml.infrastructure.Dependency; import org.modelio.metamodel.uml.infrastructure.ModelElement; import org.modelio.metamodel.uml.infrastructure.Stereotype; import org.modelio.metamodel.uml.infrastructure.TagType; -import org.modelio.metamodel.uml.infrastructure.properties.PropertyDefinition; -import org.modelio.metamodel.uml.infrastructure.properties.PropertyTableDefinition; 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. @@ -38,34 +33,34 @@ */ @objid ("e54ed6d9-ad78-40db-9d11-255a1e3c76fc") public class MmsProperty extends MmsObject { - @objid ("f0675fcc-a6e1-4ddc-bf8b-1407c181b18f") + @objid ("5956198a-248b-4282-8733-f65b11d38108") public static final String STEREOTYPE_NAME = "MmsProperty"; - @objid ("a1f8bb97-b709-4079-bd74-39da73674fcc") + @objid ("9047e72e-3eeb-40a7-82a6-d68b8790b390") public static final String PROPERTYTYPE_TAGTYPE = "propertyType"; - @objid ("0257dd72-bf7c-4213-bbbc-98e384162c16") + @objid ("fd83e911-906f-481b-8774-8e8b63f8f261") public static final String RANGEURI_TAGTYPE = "rangeUri"; /** * 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. */ - @objid ("2bea44ec-aa8c-4c14-a74a-6243f0d0c264") + @objid ("1eb99a74-9173-4ec7-b233-577617283822") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Attribute) && ((Attribute) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, MmsProperty.STEREOTYPE_NAME)); } /** * Create a new {@link Attribute} stereotyped << MmsProperty >> then instantiate a {@link MmsProperty} proxy. - * + * * @return a {@link MmsProperty} proxy on the created {@link Attribute}. */ - @objid ("dfbd48b1-cabd-4b2d-8749-76c1fd3e3b2b") + @objid ("f9e7e3f2-33f7-453e-ba92-795fb90ef448") public static MmsProperty create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Attribute"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, MmsProperty.STEREOTYPE_NAME); @@ -76,11 +71,10 @@ 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. */ - @objid ("3fa9e453-4b9a-49e5-ad80-cbd17e7e3c71") + @objid ("02f5ef52-a3fe-4d80-892f-067628fc7a22") public static MmsProperty instantiate(final Attribute obj) { return MmsProperty.canInstantiate(obj) ? new MmsProperty(obj) : null; } @@ -89,20 +83,19 @@ 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("7027608e-5f75-4bb8-b284-aaec818aa0ab") + @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 ("9e3eeed6-cc2a-43cb-8f99-8aebd998dec9") + @objid ("61f233b1-6b0b-487d-830f-134c3ae1767a") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -122,18 +115,18 @@ public boolean equals(final Object obj) { * Get the value to the 'domain' role.

* Role description: * null + * */ - @objid ("046eb11f-2b3d-4651-9af1-a3d8551abe48") + @objid ("91efefd5-7b9d-4659-9d0f-23e1adcffd2e") public MmsConcept getDomain() { return (MmsConcept)CamelDesignerProxyFactory.instantiate(((Attribute) this.elt).getOwner(), MmsConcept.STEREOTYPE_NAME); } /** * Get the underlying {@link Attribute}. - * * @return the Attribute represented by this proxy, never null. */ - @objid ("c53da42a-e87b-4e8d-9fd0-6f132435aea1") + @objid ("52341d85-45e0-4e24-9244-834bb78cfd5c") @Override public Attribute getElement() { return (Attribute)super.getElement(); @@ -144,7 +137,7 @@ public Attribute getElement() { *

Property description: *
null

*/ - @objid ("16a55552-fbf2-42c8-9f23-c801c56aefd1") + @objid ("3ddf487d-d802-4f79-968a-462dbb85bbcc") public String getPropertyType() { return this.elt.getTagValue(MmsProperty.MdaTypes.PROPERTYTYPE_TAGTYPE_ELT); } @@ -153,8 +146,9 @@ public String getPropertyType() { * Get the value of the 'range' role.

* Role description: * null + * */ - @objid ("604b5688-9086-4652-8833-29fc7aad8b29") + @objid ("6e1c7de2-b4af-47c3-8a5a-bf84f1bdb9b0") public MmsConcept getRange() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(MmsProperty.MdaTypes.MDAASSOCDEP) @@ -171,12 +165,12 @@ public MmsConcept getRange() { *

Property description: *
null

*/ - @objid ("e940cb1e-0f5a-49e2-912c-a6059e9319fa") + @objid ("65742b56-6396-4943-bc00-431be836e88e") public String getRangeUri() { return this.elt.getTagValue(MmsProperty.MdaTypes.RANGEURI_TAGTYPE_ELT); } - @objid ("81e4ccff-f772-4981-a794-6847f8b0b759") + @objid ("98b309c2-84ee-4964-888b-68e0952e6228") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -186,8 +180,9 @@ public int hashCode() { * Set the value of the 'domain' role.

* Role description: * null + * */ - @objid ("72890d57-0323-4cfb-a27f-b050095e912b") + @objid ("4a2fbefb-3496-4ca6-891c-a74208be060d") public void setDomain(final MmsConcept obj) { ((Attribute) this.elt).setOwner((obj != null) ? obj.getElement() : null); } @@ -197,7 +192,7 @@ public void setDomain(final MmsConcept obj) { *

Property description: *
null

*/ - @objid ("4807de91-b834-48c7-acf5-3223ded89124") + @objid ("a9f68d8a-ccd9-4317-9b12-797233c1b32d") public void setPropertyType(final String value) { this.elt.putTagValue(MmsProperty.MdaTypes.PROPERTYTYPE_TAGTYPE_ELT, value); } @@ -206,8 +201,9 @@ public void setPropertyType(final String value) { * Set the value of the 'range' role.

* Role description: * null + * */ - @objid ("3568d6c8-6f63-40b9-afe8-04fc97fdc9c9") + @objid ("9f128525-3fde-4129-8975-71612893497e") public void setRange(final MmsConcept obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -232,7 +228,7 @@ public void setRange(final MmsConcept obj) { *

Property description: *
null

*/ - @objid ("f7373c34-51da-4ae9-8ff3-609fd0e4a3f5") + @objid ("5c9e96b1-80ca-421e-a5f2-9eda2da4c72a") public void setRangeUri(final String value) { this.elt.putTagValue(MmsProperty.MdaTypes.RANGEURI_TAGTYPE_ELT, value); } @@ -261,29 +257,29 @@ public void setMmsPropertyType(final MmsPropertyType value) { this.elt.putTagValue(MmsProperty.MdaTypes.PROPERTYTYPE_TAGTYPE_ELT, value.toString()); } - @objid ("85b45aa3-a93b-49e8-bb31-7bfc346ad449") + @objid ("1458d21c-8820-4881-a832-01b42290a6a5") protected MmsProperty(final Attribute elt) { super(elt); } @objid ("37803f35-5e0b-4470-b34c-8406e4c82277") public static final class MdaTypes { - @objid ("dd376bba-c7e5-42a7-bca2-6e2e18ec7986") + @objid ("83be9808-ffb0-4ffc-8028-6223372455df") public static Stereotype STEREOTYPE_ELT; - @objid ("da1f58c7-fc21-4f66-8279-573a515c2b7b") + @objid ("e9657a6f-a3c2-45a1-882f-bac398e08304") public static TagType RANGEURI_TAGTYPE_ELT; - @objid ("67972e88-b383-43f7-afe5-82f8b338dddb") + @objid ("0df16466-5716-4198-8eee-954940bc4873") public static TagType PROPERTYTYPE_TAGTYPE_ELT; - @objid ("fb919cac-02ec-4484-b44e-568e05f61618") + @objid ("b41d3213-382c-4493-a3b8-d55e5f8deb64") private static Stereotype MDAASSOCDEP; - @objid ("6ede1c5a-4573-4051-b912-0ccb757e1664") + @objid ("1fdb0e34-e221-46d2-83de-0489e602b807") private static TagType MDAASSOCDEP_ROLE; - @objid ("988f5d75-69e6-4299-8509-5d08be2e9a4f") + @objid ("8f62bce2-cbb0-4ea2-a95d-22591bfe43b3") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "2fd479fe-3531-4636-aba9-b8fb0976fe66"); RANGEURI_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "d51c3381-6675-4439-9ba0-f0c7da269bcf"); @@ -293,11 +289,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 796e3ddc..406417f3 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.metadatamodel.standard.attributelink; @@ -38,10 +38,10 @@ */ @objid ("09e9e24f-9c1d-4cfb-b3bb-bf35bf56c7f5") public class MmsPropertyInstance extends MmsObject { - @objid ("1650c14c-3b20-41e4-a30f-d6f4fd79f56d") + @objid ("cca9189d-7712-417c-83c4-cbc26bba6d13") public static final String STEREOTYPE_NAME = "MmsPropertyInstance"; - @objid ("722b8721-878a-4324-988a-3850c5afb99e") + @objid ("b11c1fa5-2e5a-4e4c-8fc5-edf017a51b3a") public static final String PROPERTYVALUE_TAGTYPE = "propertyValue"; /** @@ -52,7 +52,7 @@ public class MmsPropertyInstance extends MmsObject { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("ea3df7be-145f-4bad-b9fc-c1a4904bef69") + @objid ("ef2f89e7-5a70-4fc1-a459-d536eb7c8b10") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof AttributeLink) && ((AttributeLink) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, MmsPropertyInstance.STEREOTYPE_NAME)); } @@ -62,7 +62,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link MmsPropertyInstance} proxy on the created {@link AttributeLink}. */ - @objid ("278e1d3d-b5d4-4515-9b5b-9d2b2d4afa6a") + @objid ("9f55dcd8-edcf-40fb-8a6d-a956b454643c") public static MmsPropertyInstance create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.AttributeLink"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, MmsPropertyInstance.STEREOTYPE_NAME); @@ -70,36 +70,34 @@ 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. */ - @objid ("fcd6f19f-2067-454e-a32a-502aa8d12515") + @objid ("91e6d827-7c4d-4aff-b050-e9fe58b94143") public static MmsPropertyInstance instantiate(final AttributeLink obj) { return MmsPropertyInstance.canInstantiate(obj) ? new MmsPropertyInstance(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("e4f89df1-59a0-4e09-a198-4d4f2d0465e8") + @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 ("9971402a-abbc-4e98-8408-5aed3fe328e9") + @objid ("72073487-8ba1-4608-bbdd-a8b908bd1544") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -119,18 +117,18 @@ public boolean equals(final Object obj) { * Get the value to the 'conceptInstance' role.

* Role description: * null + * */ - @objid ("ce221036-970a-4a84-9d91-40b78d3f8387") + @objid ("2d431b11-aeee-43c8-b4a8-8a20e513b6c2") public MmsConceptInstance getConceptInstance() { return (MmsConceptInstance)CamelDesignerProxyFactory.instantiate(((AttributeLink) this.elt).getAttributed(), MmsConceptInstance.STEREOTYPE_NAME); } /** - * Get the underlying {@link AttributeLink}. - * + * Get the underlying {@link AttributeLink}. * @return the AttributeLink represented by this proxy, never null. */ - @objid ("480c52cc-6d82-4249-a2f2-ee73aec2ccbc") + @objid ("27de1336-f515-48d9-91c1-bff822b349e5") @Override public AttributeLink getElement() { return (AttributeLink)super.getElement(); @@ -140,8 +138,9 @@ public AttributeLink getElement() { * Get the value to the 'isA' role.

* Role description: * null + * */ - @objid ("554e5821-b7ea-4f04-868c-fff25177f6e1") + @objid ("23532be1-504b-4ef0-aede-789a92a8e750") public MmsProperty getIsA() { return (MmsProperty)CamelDesignerProxyFactory.instantiate(((AttributeLink) this.elt).getBase(), MmsProperty.STEREOTYPE_NAME); } @@ -151,12 +150,12 @@ public MmsProperty getIsA() { *

Property description: *
null

*/ - @objid ("f3cf6587-6e87-4650-bb92-856375f3a97a") + @objid ("28329b93-f12f-44d2-a5bb-7ba632359665") public String getPropertyValue() { return this.elt.getTagValue(MmsPropertyInstance.MdaTypes.PROPERTYVALUE_TAGTYPE_ELT); } - @objid ("e469995a-b05c-400e-a4b1-1b40e2805f95") + @objid ("249affa8-dce7-4c4b-b609-7792134ab14e") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -166,8 +165,9 @@ public int hashCode() { * Set the value of the 'conceptInstance' role.

* Role description: * null + * */ - @objid ("aa67a5cd-b556-488b-8443-68095ea0a381") + @objid ("0a617c5a-8f95-4bde-8d4d-b8c1bc24249c") public void setConceptInstance(final MmsConceptInstance obj) { ((AttributeLink) this.elt).setAttributed((obj != null) ? obj.getElement() : null); } @@ -176,8 +176,9 @@ public void setConceptInstance(final MmsConceptInstance obj) { * Set the value of the 'isA' role.

* Role description: * null + * */ - @objid ("a6e4ac47-b723-498a-a7a9-b4250df57d65") + @objid ("c6a56234-f83c-44de-8a08-cae335312c9e") public void setIsA(final MmsProperty obj) { ((AttributeLink) this.elt).setBase((obj != null) ? obj.getElement() : null); } @@ -187,7 +188,7 @@ public void setIsA(final MmsProperty obj) { *

Property description: *
null

*/ - @objid ("96e4e99b-1200-4d01-b4f2-f632e6aa4c7f") + @objid ("8b279acd-3278-483b-8b4a-320d3b40576e") public void setPropertyValue(final String value) { this.elt.putTagValue(MmsPropertyInstance.MdaTypes.PROPERTYVALUE_TAGTYPE_ELT, value); } @@ -200,26 +201,26 @@ public List getChilds() { return result; } - @objid ("7756a89e-4ed5-4024-a9f0-e177845f8b90") + @objid ("bb18bedb-4fc4-45ae-aa53-39133c3da6b9") protected MmsPropertyInstance(final AttributeLink elt) { super(elt); } @objid ("3974f7b7-9317-4102-aa68-17990b0b6b2f") public static final class MdaTypes { - @objid ("f15f2ff8-be1e-4cfd-a7ab-a0735f6a2fb5") + @objid ("ff26eca8-63f0-47da-8b45-a751cdd15bb2") public static Stereotype STEREOTYPE_ELT; - @objid ("7f8580d2-5bb8-46b3-b259-5068d775cbaa") + @objid ("6fc8ed75-b1bb-4f5d-b0c1-9b830851bf71") public static TagType PROPERTYVALUE_TAGTYPE_ELT; - @objid ("a6447bca-2892-48a7-b80a-213be775accc") + @objid ("a038f9d9-0d7f-456e-9262-31a6914e5124") private static Stereotype MDAASSOCDEP; - @objid ("9d67ed27-c001-42ca-aa61-6df2599eb1c3") + @objid ("9bff72a2-dc7a-40f6-939c-da2bb6500319") private static TagType MDAASSOCDEP_ROLE; - @objid ("36e6c55e-06d4-4ec7-aa25-61213f0bc746") + @objid ("3a3761b6-1772-46bc-8b48-8d73f793ad5e") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "f4953787-31fa-4eed-88df-83d5ad51d82e"); PROPERTYVALUE_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "1df65abe-3c98-4cde-9656-91b11230e762"); @@ -228,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/metadatamodel/standard/class_/MmsConcept.java b/src/main/java/fr/softeam/cameldesigner/api/metadatamodel/standard/class_/MmsConcept.java index d9a34c8c..c9642e66 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.metadatamodel.standard.class_; @@ -41,7 +41,7 @@ */ @objid ("87827b52-a413-4f8b-ac16-cf56568d032b") public class MmsConcept extends MmsObject { - @objid ("49a27f74-7f10-4033-a3c4-49a0eef362f4") + @objid ("f05ed593-937e-4f77-be95-1105a7f6fc85") public static final String STEREOTYPE_NAME = "MmsConcept"; /** @@ -52,7 +52,7 @@ public class MmsConcept extends MmsObject { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("58201a08-0fe2-407e-a732-2ef05dae26f1") + @objid ("2bd57cc5-6e00-44de-ba17-0971cce4e78d") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, MmsConcept.STEREOTYPE_NAME)); } @@ -62,7 +62,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link MmsConcept} proxy on the created {@link Class}. */ - @objid ("88952a15-c830-43d9-b877-9ec40bf6f652") + @objid ("f6acd464-79aa-437f-a104-60df5f46b1fe") public static MmsConcept create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, MmsConcept.STEREOTYPE_NAME); @@ -70,41 +70,40 @@ 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. */ - @objid ("3c1563c1-7775-4eef-abb6-97cf279074ef") + @objid ("28791b3d-cf4c-411a-9381-0f60d652fa5e") public static MmsConcept instantiate(final Class obj) { return MmsConcept.canInstantiate(obj) ? new MmsConcept(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("19e3b58e-8476-4192-9eab-09ce05b35b65") + @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 ("4c3dce38-165c-46e4-9ded-fa2defb5e36d") + @objid ("99683534-1e45-49f2-9ae6-31dc5d10b27c") public void addConcept(final MmsConcept obj) { if (obj!=null) ((Class) this.elt).getOwnedElement().add(obj.getElement()); @@ -114,8 +113,9 @@ public void addConcept(final MmsConcept obj) { * Add a value to the 'instance' role.

* Role description: * null + * */ - @objid ("47638f27-2cc7-4497-a8ec-ced441adfe95") + @objid ("83a7f631-57fe-43c3-84d2-5e94caaf9f1a") public void addInstance(final MmsConceptInstance obj) { if (obj!=null) ((Class) this.elt).getRepresenting().add(obj.getElement()); @@ -125,14 +125,15 @@ public void addInstance(final MmsConceptInstance obj) { * Add a value to the 'property' role.

* Role description: * null + * */ - @objid ("3709e9e4-e932-4939-baf4-66e9bec8ff6b") + @objid ("e41b5f83-7210-4fa6-b2ab-48ce8fb17dc9") public void addProperty(final MmsProperty obj) { if (obj!=null) ((Class) this.elt).getOwnedAttribute().add(obj.getElement()); } - @objid ("707f10a5-6ff0-4d8a-8272-ad6c08fee0d7") + @objid ("4b3bea96-5353-48df-b757-a72c02264b66") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -152,23 +153,23 @@ public boolean equals(final Object obj) { * Get the values of the 'concept' role.

* Role description: * null + * */ - @objid ("6bc2e0de-c230-41ad-a5b2-a10d90998892") + @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 ("611b82da-bb1e-44a5-9ba2-20c23c7adfe6") + @objid ("b15678ea-2408-4959-a7fd-3253a9850d83") @Override public Class getElement() { return (Class)super.getElement(); @@ -178,14 +179,15 @@ public Class getElement() { * Get the values of the 'instance' role.

* Role description: * null + * */ - @objid ("ba80b76f-8e3d-4abf-86e5-266e3a900896") + @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); } @@ -193,8 +195,9 @@ public List getInstance() { * Get the value to the 'parent' role.

* Role description: * null + * */ - @objid ("7e647763-1de4-43d8-b35a-0645ee659e03") + @objid ("ccb7e389-f44c-4b99-b3fe-da004fe9e79a") public MmsConcept getParent() { return (MmsConcept)CamelDesignerProxyFactory.instantiate(((Class) this.elt).getOwner(), MmsConcept.STEREOTYPE_NAME); } @@ -203,18 +206,19 @@ public MmsConcept getParent() { * Get the values of the 'property' role.

* Role description: * null + * */ - @objid ("d9ac7d2b-8382-4b82-90b4-cab50066b8e3") + @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); } - @objid ("9dc55bbd-fc0a-4975-8c75-1e68c148642c") + @objid ("dbfec9f0-13dc-4306-a94f-a3de043c0a28") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -224,8 +228,9 @@ public int hashCode() { * Remove a value from the 'concept' role.

* Role description: * null + * */ - @objid ("4058621f-b58e-4aaf-b9ea-149ca4ec0a72") + @objid ("cbe7451f-3c7c-4e68-94df-ca0365cb7b4c") public boolean removeConcept(final MmsConcept obj) { return (obj!=null)? ((Class) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -234,8 +239,9 @@ public boolean removeConcept(final MmsConcept obj) { * Remove a value from the 'instance' role.

* Role description: * null + * */ - @objid ("65a5cc03-3191-498a-9d58-95ee639c9a25") + @objid ("313bc3b3-7248-4293-8075-c1ab09c940af") public boolean removeInstance(final MmsConceptInstance obj) { return (obj!=null)? ((Class) this.elt).getRepresenting().remove(obj.getElement()) : false; } @@ -244,8 +250,9 @@ public boolean removeInstance(final MmsConceptInstance obj) { * Remove a value from the 'property' role.

* Role description: * null + * */ - @objid ("4987acc0-5bd7-4b9d-bdf8-3efed6f0680c") + @objid ("0934c283-ad4f-4916-a63b-c33b736b5f43") public boolean removeProperty(final MmsProperty obj) { return (obj!=null)? ((Class) this.elt).getOwnedAttribute().remove(obj.getElement()) : false; } @@ -254,8 +261,9 @@ public boolean removeProperty(final MmsProperty obj) { * Set the value of the 'parent' role.

* Role description: * null + * */ - @objid ("939bd024-a1a3-40cd-81c5-0c15c9287475") + @objid ("49a56627-b9f0-4851-9cc4-3ad4598243a2") public void setParent(final MmsConcept obj) { ((Class) this.elt).setOwner((obj != null) ? obj.getElement() : null); } @@ -271,23 +279,23 @@ public List getChilds() { return result; } - @objid ("f80f84db-49e9-4b82-849d-da3b21e11446") + @objid ("f31fd0d4-5259-4a74-b25a-83f3996f16b2") protected MmsConcept(final Class elt) { super(elt); } @objid ("acc006aa-96cd-4009-abc5-630b360acd1a") public static final class MdaTypes { - @objid ("686adc98-6347-44f7-b222-3269dffcd629") + @objid ("fcc2fe7c-3209-450b-8f21-89414e508a55") public static Stereotype STEREOTYPE_ELT; - @objid ("92fc1834-1d7a-460f-afd6-eca1400aec86") + @objid ("f4c16518-cdc0-4dda-ac4a-987991b8f732") private static Stereotype MDAASSOCDEP; - @objid ("809b7e58-b134-4374-b2d3-820cf50a12ac") + @objid ("8e2acda5-8259-4b71-8dc2-9c66210dddf9") private static TagType MDAASSOCDEP_ROLE; - @objid ("1bbdcaaf-d71e-4e28-bbbe-71ac5e865ee1") + @objid ("5be0215c-3496-4d68-ac31-c6db9401c369") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "6f3091ee-3a3b-4157-8b89-872f99b970f9"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -295,11 +303,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 55dbd9ec..f4ee3f0d 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.metadatamodel.standard.instance; @@ -38,7 +38,7 @@ */ @objid ("28cc79c1-8e23-4dd7-b100-83242c265aac") public class MmsConceptInstance extends MmsObject { - @objid ("3e94ed98-6c14-4e95-b41c-68908f3468fe") + @objid ("50ec8af5-032e-4eb4-8c1e-749b13b10225") public static final String STEREOTYPE_NAME = "MmsConceptInstance"; /** @@ -49,7 +49,7 @@ public class MmsConceptInstance extends MmsObject { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("7944b5d0-8089-417b-94c1-b15454a30e34") + @objid ("f9fba55d-052f-4366-a8af-75841f8e7223") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Instance) && ((Instance) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, MmsConceptInstance.STEREOTYPE_NAME)); } @@ -59,7 +59,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link MmsConceptInstance} proxy on the created {@link Instance}. */ - @objid ("d3c70f82-e4b0-4319-9993-783df25bb677") + @objid ("70fad005-bddb-48f2-8812-550945a7f9b2") public static MmsConceptInstance create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Instance"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, MmsConceptInstance.STEREOTYPE_NAME); @@ -67,47 +67,46 @@ 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. */ - @objid ("1236ac35-b81a-4657-88d0-3d86ff28d789") + @objid ("c58197ed-d557-46f6-8ccb-0561ae546ef9") public static MmsConceptInstance instantiate(final Instance obj) { return MmsConceptInstance.canInstantiate(obj) ? new MmsConceptInstance(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("3550ecc0-76e1-4ab4-a28c-d55eaa4e8255") + @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 ("d38135aa-5fe1-4753-8a67-b4f3d3abba7e") + @objid ("2de7091c-cbf3-4857-ac89-ad4b6cc0e262") public void addPropertyInstance(final MmsPropertyInstance obj) { if (obj!=null) ((Instance) this.elt).getSlot().add(obj.getElement()); } - @objid ("9a6f0e12-875a-4130-ad77-926baad58506") + @objid ("03d0fc10-0bec-445e-9897-6acd7a0b91ee") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -124,11 +123,10 @@ 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 ("f25b6d8d-d7c9-4e3d-9609-b3f77efce9e2") + @objid ("b9f8b96d-3b0f-4464-920e-9019de9835da") @Override public Instance getElement() { return (Instance)super.getElement(); @@ -138,18 +136,19 @@ public Instance getElement() { * Get the values of the 'propertyInstance' role.

* Role description: * null + * */ - @objid ("f7c94f96-a903-4180-9d4d-5a450b3cd4ac") + @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); } - @objid ("758ed6e0-ff5e-442d-a0f1-550356757fbf") + @objid ("d8fcb9b3-6cd4-41ba-a7ac-ea682f4abe5b") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -159,8 +158,9 @@ public int hashCode() { * Remove a value from the 'propertyInstance' role.

* Role description: * null + * */ - @objid ("93eec6fe-245e-491b-825d-bebde0bc32c7") + @objid ("795ca5db-7ea7-4c03-b1bf-0a61a7e62625") public boolean removePropertyInstance(final MmsPropertyInstance obj) { return (obj!=null)? ((Instance) this.elt).getSlot().remove(obj.getElement()) : false; } @@ -173,23 +173,23 @@ public List getChilds() { return result; } - @objid ("0ab2f4c9-1831-4204-a071-e0b89d54ca07") + @objid ("3ad8d343-9812-4d0d-bbb3-544f696edc27") protected MmsConceptInstance(final Instance elt) { super(elt); } @objid ("862d75e0-5992-4012-8c83-7a0ec8b66ab5") public static final class MdaTypes { - @objid ("1a28cf44-413a-48c1-a669-ff3f3c966a99") + @objid ("00e405b6-0368-4ee4-93a4-f10c30289fae") public static Stereotype STEREOTYPE_ELT; - @objid ("485a88f1-2003-4837-836a-1bea6dc74b67") + @objid ("c34fdbe6-4b6e-4f58-94bc-d701f8b8929e") private static Stereotype MDAASSOCDEP; - @objid ("363e4864-fa99-42a4-b77c-2e575e3675d0") + @objid ("53fe63cd-2c2a-4990-bc6e-ddd79ce7c864") private static TagType MDAASSOCDEP_ROLE; - @objid ("124bdd5f-6561-44e1-86be-73ed1a022641") + @objid ("5c62eaf1-8c18-42a0-bcc1-7a875c4ef0b5") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "81bc1a2f-1255-41fb-b517-5ca503ccc73e"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -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 59446c30..6b8c53a3 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.metadatamodel.standard.package_; @@ -41,7 +41,7 @@ */ @objid ("bffe392b-7477-486d-851e-fb774d44120c") public class MetaDataModel extends SubModel { - @objid ("40dbc6e6-41bb-40e8-8d32-e96a241cc39e") + @objid ("ea006f6e-cfb3-4be4-9356-f4a980727710") public static final String STEREOTYPE_NAME = "MetaDataModel"; /** @@ -52,7 +52,7 @@ public class MetaDataModel extends SubModel { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("434b17fb-087c-434f-9ec0-12bd70ec87ef") + @objid ("e7b5d4ec-f320-4ab2-9ef5-d7360762afe5") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Package) && ((Package) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, MetaDataModel.STEREOTYPE_NAME)); } @@ -62,7 +62,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link MetaDataModel} proxy on the created {@link Package}. */ - @objid ("4b933e43-a9da-4a7d-a26e-b6406fc023da") + @objid ("7e75eeec-a56a-4995-ac6d-3680597a8870") public static MetaDataModel create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Package"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, MetaDataModel.STEREOTYPE_NAME); @@ -70,41 +70,40 @@ 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. */ - @objid ("32e078ba-ce99-408b-a296-8c3b261c7748") + @objid ("b986d61f-10d9-41b1-a9f5-b567592b64d8") public static MetaDataModel instantiate(final Package obj) { return MetaDataModel.canInstantiate(obj) ? new MetaDataModel(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("20ecd783-65d8-4d2c-8034-0c8cadda09b2") + @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 ("aa24a7d2-d6ed-44b9-b786-28ae895952b8") + @objid ("9d339909-6318-4b03-a031-8d4d6ac571ce") public void addConcept(final MmsConcept obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -114,14 +113,15 @@ public void addConcept(final MmsConcept obj) { * Add a value to the 'conceptInstance' role.

* Role description: * null + * */ - @objid ("6d687b44-8ca0-4d88-9fca-85bebdd720b0") + @objid ("435d9407-7a26-4aa5-8a85-d7f8a5f602bb") public void addConceptInstance(final MmsConceptInstance obj) { if (obj!=null) ((Package) this.elt).getDeclared().add(obj.getElement()); } - @objid ("9d24e3f3-0152-4d90-a5eb-c9900c4b0a57") + @objid ("8be85df1-7483-46f6-b2ad-05258a96798d") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -141,8 +141,9 @@ public boolean equals(final Object obj) { * Get the value to the 'camelModel' role.

* Role description: * null + * */ - @objid ("6cb6c162-d43c-4e65-bc48-dd69f64a044b") + @objid ("83222711-b2f2-4818-be69-66e3895b3e92") public CamelModel getCamelModel() { return (CamelModel)CamelDesignerProxyFactory.instantiate(((Package) this.elt).getOwner(), CamelModel.STEREOTYPE_NAME); } @@ -151,14 +152,15 @@ public CamelModel getCamelModel() { * Get the values of the 'concept' role.

* Role description: * null + * */ - @objid ("18581616-d926-455c-b504-ab02bf476063") + @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); } @@ -166,29 +168,29 @@ public List getConcept() { * Get the values of the 'conceptInstance' role.

* Role description: * null + * */ - @objid ("48dd9b19-e3e7-481e-b8c7-ee0f391e6f8a") + @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 ("ed63d0da-6620-4d43-96bc-50924c4b8c48") + @objid ("ab04f3bd-7669-4e3e-a275-f93329e3c672") @Override public Package getElement() { return (Package)super.getElement(); } - @objid ("0017b773-2e29-4d74-85a2-260f036cf3ee") + @objid ("e62f4604-b396-4cb5-ac8f-998fe3889d6a") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -198,8 +200,9 @@ public int hashCode() { * Remove a value from the 'concept' role.

* Role description: * null + * */ - @objid ("fa9a8ad0-70b5-45f6-a8a7-38dff769103d") + @objid ("489ae629-b5c1-42b7-ac87-2f9f4479ea83") public boolean removeConcept(final MmsConcept obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -208,8 +211,9 @@ public boolean removeConcept(final MmsConcept obj) { * Remove a value from the 'conceptInstance' role.

* Role description: * null + * */ - @objid ("4da67c32-3504-4ea3-bba5-de149faf27ae") + @objid ("ed60ebca-c8dc-4334-8a6e-1d7b7af826f8") public boolean removeConceptInstance(final MmsConceptInstance obj) { return (obj!=null)? ((Package) this.elt).getDeclared().remove(obj.getElement()) : false; } @@ -218,8 +222,9 @@ public boolean removeConceptInstance(final MmsConceptInstance obj) { * Set the value of the 'camelModel' role.

* Role description: * null + * */ - @objid ("b0af260b-22c9-441f-a9ca-a967a087ac69") + @objid ("110b23a8-e5bc-43d3-83c1-a63f771b2fab") public void setCamelModel(final CamelModel obj) { ((Package) this.elt).setOwner((obj != null) ? obj.getElement() : null); } @@ -234,23 +239,23 @@ public List getChilds() { return result; } - @objid ("63c0d126-e0d0-4710-8db9-f95f4728b12d") + @objid ("f1b50e83-30c6-473c-9970-8823fc275b25") protected MetaDataModel(final Package elt) { super(elt); } @objid ("dcdbd03e-a04b-4330-976d-64d85bfa5c03") public static final class MdaTypes { - @objid ("95c1da0f-ee23-4228-a7dd-06cb9986647e") + @objid ("e4dd3634-da1c-40e5-b78c-83805cf69110") public static Stereotype STEREOTYPE_ELT; - @objid ("9d909f42-c834-4bbb-b8ef-158530adcf8a") + @objid ("62d5702a-b7e1-43be-80fb-b0f213b3954a") private static Stereotype MDAASSOCDEP; - @objid ("fd8e64dc-1ad5-493f-be4c-51705c62c1ce") + @objid ("63bd5e0a-45c2-4354-a54e-86db6cd55b97") private static TagType MDAASSOCDEP_ROLE; - @objid ("b1d96ab4-ad8e-42d7-b120-68aad7f14c6c") + @objid ("d858c1df-7c5a-4777-a97e-7f682d5d3faf") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "73200409-c934-45d3-b418-8d71c00e7382"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -258,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/metricmodel/standard/class_/AttributeContext.java b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/AttributeContext.java index ea76c8bc..5cee1b0e 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.metricmodel.standard.class_; @@ -23,6 +23,7 @@ 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; @@ -47,7 +48,7 @@ */ @objid ("1b575b5c-1104-4a3c-9f42-515ee181bb91") public class AttributeContext extends FeatureClass { - @objid ("7705c63e-7096-4d1c-96e5-a37c1232bb4a") + @objid ("6c944839-4b5b-4afc-b696-901d3abde20f") public static final String STEREOTYPE_NAME = "AttributeContext"; /** @@ -58,7 +59,7 @@ public class AttributeContext extends FeatureClass { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("3e3c30b7-c23e-4a86-8f3c-3fd7e6de6d9c") + @objid ("8c7a7881-029c-4b85-b15b-b299905c20bc") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, AttributeContext.STEREOTYPE_NAME)); } @@ -68,7 +69,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link AttributeContext} proxy on the created {@link Class}. */ - @objid ("81b98c8a-84b2-4287-9ec9-28f68ff36196") + @objid ("aab205ef-9228-4467-a2e3-433d67f9643f") public static AttributeContext create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, AttributeContext.STEREOTYPE_NAME); @@ -76,47 +77,46 @@ 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. */ - @objid ("a29ec250-219e-469c-86a4-e3c37e5ecb3b") + @objid ("7c34cf88-8f90-410b-bc62-d5ec5163d026") public static AttributeContext instantiate(final Class obj) { return AttributeContext.canInstantiate(obj) ? new AttributeContext(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("3e2df9f9-ecf9-4a7d-9355-c7b40afaf10e") + @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 ("4f6f52ad-5032-41cc-acc7-f6cb9660051b") + @objid ("36b50c99-c892-4b47-afde-8a1c22426ff0") public void addAttributeConstraint(final AttributeConstraint obj) { if (obj!=null) ((Class) this.elt).getConstraintDefinition().add(obj.getElement()); } - @objid ("34ceda7c-f886-4170-aebc-bd769fb69480") + @objid ("4c6beb08-b9d0-4215-808c-f02d271b567e") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -136,8 +136,9 @@ public boolean equals(final Object obj) { * Get the value of the 'attribute' role.

* Role description: * null + * */ - @objid ("91163924-89cc-4932-bc1d-f3962b8e1dd8") + @objid ("ada1fc4a-2e8e-4e0c-b97a-ed8ff9db7b12") public CamelAttribute getAttribute() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(AttributeContext.MdaTypes.MDAASSOCDEP) @@ -167,23 +168,23 @@ public CamelAttribute getAttribute() { * Get the values of the 'attributeConstraint' role.

* Role description: * null + * */ - @objid ("97141819-c47e-4372-9014-147f5e408c48") + @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 ("ea111b95-2348-41ad-89eb-bdf6dd2902b7") + @objid ("f1b64541-327a-4fb6-8a28-10cd00c530dc") @Override public Class getElement() { return (Class)super.getElement(); @@ -193,8 +194,9 @@ public Class getElement() { * Get the value of the 'objectContext' role.

* Role description: * null + * */ - @objid ("98ad1a63-be3f-4063-b1d5-b61867a82c0c") + @objid ("b6d3673a-c907-465a-bdc4-9ae612391e59") public ObjectContext getObjectContext() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(AttributeContext.MdaTypes.MDAASSOCDEP) @@ -206,7 +208,7 @@ public ObjectContext getObjectContext() { return null; } - @objid ("b44e96d6-6c4c-49e9-845e-8f146e20fb1b") + @objid ("d18d1140-db9b-4b63-80b5-8bc9fd33ef6d") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -216,8 +218,9 @@ public int hashCode() { * Remove a value from the 'attributeConstraint' role.

* Role description: * null + * */ - @objid ("b9d11da3-cda6-4c9d-8bcb-c31f88023e3d") + @objid ("37c2bea1-8c04-45ad-b992-e0638ca5595f") public boolean removeAttributeConstraint(final AttributeConstraint obj) { return (obj!=null)? ((Class) this.elt).getConstraintDefinition().remove(obj.getElement()) : false; } @@ -226,8 +229,9 @@ public boolean removeAttributeConstraint(final AttributeConstraint obj) { * Set the value of the 'attribute' role.

* Role description: * null + * */ - @objid ("44d1bde7-1590-4d11-a251-cc8a2ce2eac7") + @objid ("9e0e9cca-ba0d-4d9c-a055-3dc51a9846ca") public void setAttribute(final CamelAttribute obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -251,8 +255,9 @@ public void setAttribute(final CamelAttribute obj) { * Set the value of the 'objectContext' role.

* Role description: * null + * */ - @objid ("ea51f7fa-504a-4821-9e02-8ce3aefbb4c0") + @objid ("2ab5cc69-a445-4e3f-9ec0-d48aca1db66a") public void setObjectContext(final ObjectContext obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -305,23 +310,23 @@ public List getChilds() { return result; } - @objid ("96985811-cafe-47a5-85ac-42cd5becff32") + @objid ("32ae6399-4eea-428c-8a63-abc1836a5ac5") protected AttributeContext(final Class elt) { super(elt); } @objid ("898481e6-a467-4f70-8be0-666ac6fd56ed") public static final class MdaTypes { - @objid ("7ab27644-28b4-49be-b6a6-56cf99fa6526") + @objid ("bb74d815-97d7-443c-be7f-bb58efb1ed01") public static Stereotype STEREOTYPE_ELT; - @objid ("0975760b-d378-454f-be65-b78aa51f8ff7") + @objid ("4b3f11db-8231-4a57-b629-19b8f9b4f8f8") private static Stereotype MDAASSOCDEP; - @objid ("e84f467a-7f84-4d22-ab5f-325605e41d83") + @objid ("1dd088bd-a591-4d03-abd4-a7201a08fcaa") private static TagType MDAASSOCDEP_ROLE; - @objid ("ccabe9fb-dcbe-4589-8a46-70ebb99393f2") + @objid ("84977265-1741-44c1-b9ad-f02f318bdeb4") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "817ee7bc-b7e6-432e-af4a-bbc95f4162be"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -329,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/metricmodel/standard/class_/CompositeMetric.java b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/CompositeMetric.java index 48aa5796..3330fd4c 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.metricmodel.standard.class_; @@ -14,6 +14,7 @@ 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; @@ -39,10 +40,10 @@ */ @objid ("0f0eceac-8159-46e5-b1f0-1e1cd9fd9b49") public class CompositeMetric extends Metric { - @objid ("f891f3fd-342c-4433-93e1-a3b6ac5324ee") + @objid ("a4025877-0b44-4930-979d-b66b71f9c982") public static final String STEREOTYPE_NAME = "CompositeMetric"; - @objid ("804ba007-9dfd-498f-9bdd-8b6c7cda7bb3") + @objid ("623183de-fb53-428c-a38d-3a2ce42b1c31") public static final String FORMULA_TAGTYPE = "formula"; /** @@ -53,7 +54,7 @@ public class CompositeMetric extends Metric { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("86a33e35-4ee2-4d48-95b4-13473dcb7e85") + @objid ("50c52176-6176-46ce-b0cb-adcf2a74d974") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, CompositeMetric.STEREOTYPE_NAME)); } @@ -63,7 +64,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link CompositeMetric} proxy on the created {@link Class}. */ - @objid ("5c059989-ca18-4cb7-bec4-2d6e0338305e") + @objid ("fa42940e-c74b-4197-b648-a66846ea937a") public static CompositeMetric create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, CompositeMetric.STEREOTYPE_NAME); @@ -71,41 +72,40 @@ 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. */ - @objid ("0b3892d4-6f08-4870-86f9-b0a9dd97ec6b") + @objid ("269f0b31-92b7-4c0e-99c6-1410501e3f1a") public static CompositeMetric instantiate(final Class obj) { return CompositeMetric.canInstantiate(obj) ? new CompositeMetric(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("884f20cc-346d-4dfe-b971-6d94d5319c39") + @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 ("ede5cf19-c0cd-4916-9ee8-85a957ea6867") + @objid ("b5cc55de-aebf-492d-99bb-e654a9405061") public void addComponentMetrics(final Metric obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -115,7 +115,7 @@ public void addComponentMetrics(final Metric obj) { } } - @objid ("b4d29fdb-9362-48e1-8cc7-ed1147456dbd") + @objid ("f6819d09-f28c-4b7f-b7b6-8992bb4003a5") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -135,8 +135,9 @@ public boolean equals(final Object obj) { * Get the values of the 'componentMetrics' role.

* Role description: * null + * */ - @objid ("5a637c17-4a72-4875-b79a-aec63c8886a9") + @objid ("7c4b1e7f-cc25-4d93-8032-d693c288c375") public List getComponentMetrics() { List results = new ArrayList<>(); for (Dependency d : this.elt.getDependsOnDependency()) { @@ -158,11 +159,10 @@ public List getComponentMetrics() { } /** - * Get the underlying {@link Class}. - * + * Get the underlying {@link Class}. * @return the Class represented by this proxy, never null. */ - @objid ("8084e3f1-63e5-49f7-b285-745ff9dd365f") + @objid ("79de585c-47cc-4756-8f10-47bd0d633666") @Override public Class getElement() { return (Class)super.getElement(); @@ -173,12 +173,12 @@ public Class getElement() { *

Property description: *
null

*/ - @objid ("d231d60f-1cb2-4bf3-8fa0-2ae5164cb74f") + @objid ("0dbfc018-0b16-45bf-9251-faac84a8a5c2") public String getFormula() { return this.elt.getTagValue(CompositeMetric.MdaTypes.FORMULA_TAGTYPE_ELT); } - @objid ("573b4ecd-4844-4a35-85d1-f3bffe27b45c") + @objid ("ae014ccd-ea4d-4e1b-a544-c41dc6a446c4") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -188,12 +188,13 @@ public int hashCode() { * Remove a value from the 'componentMetrics' role.

* Role description: * null + * */ - @objid ("e6a2ea93-6396-4004-a098-60d03c44d8bf") + @objid ("5cb8241f-a515-45bf-ad6a-a346e38617ef") public boolean removeComponentMetrics(final Metric obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getDependsOnDependency())) { - if (d.isStereotyped(CompositeMetric.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(CompositeMetric.MdaTypes.MDAASSOCDEP_ROLE), "")) + if (d.isStereotyped(CompositeMetric.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(CompositeMetric.MdaTypes.MDAASSOCDEP_ROLE), "componentMetrics")) if (Objects.equals(d.getDependsOn(), obj.getElement())) { d.delete(); return true; @@ -208,7 +209,7 @@ public boolean removeComponentMetrics(final Metric obj) { *

Property description: *
null

*/ - @objid ("3beb9c75-3ccd-42ff-8316-b7dcce24c6ce") + @objid ("58ecc14f-950b-4a12-8186-6b605358618a") public void setFormula(final String value) { this.elt.putTagValue(CompositeMetric.MdaTypes.FORMULA_TAGTYPE_ELT, value); } @@ -221,26 +222,26 @@ public List getChilds() { return result; } - @objid ("677ac804-02b9-4681-847a-5dc3b2cdd74d") + @objid ("be82a9e5-776f-4366-93fe-d00b60d0d74c") protected CompositeMetric(final Class elt) { super(elt); } @objid ("b52a26f6-5581-4431-a657-8c340315e64d") public static final class MdaTypes { - @objid ("1dd2b3df-985f-4c44-82cc-844ffd926931") + @objid ("9e738628-176b-4855-a46f-b2fe27170cdc") public static Stereotype STEREOTYPE_ELT; - @objid ("8d25f9fa-deb9-4ba4-b9ae-2a2f801b6e2b") + @objid ("43df8b4a-980a-47cd-8df6-0a75525de8a9") public static TagType FORMULA_TAGTYPE_ELT; - @objid ("7d9a3138-c6cb-4521-b610-b1f96f56d9be") + @objid ("377684ee-db1f-4686-a1ff-eb5dd7ab7513") private static Stereotype MDAASSOCDEP; - @objid ("4c9d0566-f791-49f2-96b1-c11625a3fbeb") + @objid ("ed36109a-8227-416d-a068-9556a5d37a32") private static TagType MDAASSOCDEP_ROLE; - @objid ("1f4d1c6c-1d37-4965-bc46-482630e56e24") + @objid ("9ef8daaa-ad97-4b1e-a836-148c422bfa27") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "680d667b-9545-40d8-9c12-84675bc68fc4"); FORMULA_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "851d14e4-ea15-4582-a92c-96160e350212"); @@ -249,11 +250,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 1a4b23f9..3ff5b958 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.metricmodel.standard.class_; @@ -14,6 +14,7 @@ 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; @@ -36,10 +37,10 @@ */ @objid ("448daa47-c892-46fc-8cf2-94d1153ff985") public class CompositeMetricContext extends MetricContext { - @objid ("4a8219f1-3fbb-4759-8a62-fba647837c9f") + @objid ("dec48a2b-807d-4187-86b7-5c67ee31fd27") public static final String STEREOTYPE_NAME = "CompositeMetricContext"; - @objid ("02e5e800-2dc1-47eb-a7a7-fb12b55cdff9") + @objid ("b854afcf-4e55-4729-a62f-43576a334d5e") public static final String GROUPINGTYPE_TAGTYPE = "groupingType"; /** @@ -50,7 +51,7 @@ public class CompositeMetricContext extends MetricContext { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("a1d4a4b3-14bd-42f5-9eed-1f8b78a45976") + @objid ("e64eeb4c-3269-4d7c-befa-3e617dde4df0") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, CompositeMetricContext.STEREOTYPE_NAME)); } @@ -60,7 +61,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link CompositeMetricContext} proxy on the created {@link Class}. */ - @objid ("97a8c7bb-1936-4682-ba57-5982e1cc6478") + @objid ("d7b02cc4-c514-41a5-8aed-5c97cc647cdd") public static CompositeMetricContext create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, CompositeMetricContext.STEREOTYPE_NAME); @@ -68,41 +69,40 @@ 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. */ - @objid ("ca526fb9-d1d3-4575-b8a2-eb8d419ed8c8") + @objid ("391aca93-e6e9-4af0-b7ee-43920d452659") public static CompositeMetricContext instantiate(final Class obj) { return CompositeMetricContext.canInstantiate(obj) ? new CompositeMetricContext(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("62971d67-5f49-4f30-834f-5465c943d58c") + @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 ("5cbf5cc7-2276-41b1-815e-f9cbbd31f96d") + @objid ("e3bc5abd-dc9a-43d8-b0e0-691c61188d3e") public void addComposingMetricContexts(final MetricContext obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -112,7 +112,7 @@ public void addComposingMetricContexts(final MetricContext obj) { } } - @objid ("8fa1ada4-b3fc-4343-b708-adb74e233b8f") + @objid ("092a63d8-422e-47fe-b7fc-b19f25789428") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -132,8 +132,9 @@ public boolean equals(final Object obj) { * Get the values of the 'composingMetricContexts' role.

* Role description: * null + * */ - @objid ("1ed1bd81-1641-4f13-adf2-d6cea523d4da") + @objid ("70210b21-cc93-4371-8687-beffa77d374f") public List getComposingMetricContexts() { List results = new ArrayList<>(); for (Dependency d : this.elt.getDependsOnDependency()) { @@ -149,11 +150,10 @@ public List getComposingMetricContexts() { } /** - * Get the underlying {@link Class}. - * + * Get the underlying {@link Class}. * @return the Class represented by this proxy, never null. */ - @objid ("230edd64-2627-4f40-b42d-5f0745d79ec5") + @objid ("84bf27c2-6085-403a-b78d-e06c0f9bba05") @Override public Class getElement() { return (Class)super.getElement(); @@ -164,12 +164,12 @@ public Class getElement() { *

Property description: *
null

*/ - @objid ("5eed5fe0-d2dd-4852-996f-29ea637c2af4") + @objid ("0cd47158-dbc6-40a7-ac83-d003ee054691") public String getGroupingType() { return this.elt.getTagValue(CompositeMetricContext.MdaTypes.GROUPINGTYPE_TAGTYPE_ELT); } - @objid ("b1501efd-d7ac-4ba1-96ae-93096c877b72") + @objid ("4c0e516b-9d06-493c-ae47-347dd11f1d12") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -179,12 +179,13 @@ public int hashCode() { * Remove a value from the 'composingMetricContexts' role.

* Role description: * null + * */ - @objid ("f831920a-5558-4dbf-9829-b269c4367c6b") + @objid ("bf6c2481-0a1d-410e-b638-427cc91b3927") public boolean removeComposingMetricContexts(final MetricContext obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getDependsOnDependency())) { - if (d.isStereotyped(CompositeMetricContext.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(CompositeMetricContext.MdaTypes.MDAASSOCDEP_ROLE), "")) + if (d.isStereotyped(CompositeMetricContext.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(CompositeMetricContext.MdaTypes.MDAASSOCDEP_ROLE), "composingMetricContexts")) if (Objects.equals(d.getDependsOn(), obj.getElement())) { d.delete(); return true; @@ -199,7 +200,7 @@ public boolean removeComposingMetricContexts(final MetricContext obj) { *

Property description: *
null

*/ - @objid ("b6f8ea3d-878e-4802-ad92-9d220d55ce99") + @objid ("00741170-4f37-4ace-b4c6-8e49427b6282") public void setGroupingType(final String value) { this.elt.putTagValue(CompositeMetricContext.MdaTypes.GROUPINGTYPE_TAGTYPE_ELT, value); } @@ -212,26 +213,26 @@ public List getChilds() { return result; } - @objid ("c4555c1f-af50-4577-864b-54d01ce55ee9") + @objid ("360ee850-3c58-4f30-9c91-469466960731") protected CompositeMetricContext(final Class elt) { super(elt); } @objid ("9ffb0326-f714-4556-995b-da9eb6055bfe") public static final class MdaTypes { - @objid ("4e49d84f-9612-4a7e-bc59-b0437dbcf016") + @objid ("6ce4a534-491a-478d-a461-15430f634307") public static Stereotype STEREOTYPE_ELT; - @objid ("60a3da9a-fde3-4389-9d75-042e4aa79392") + @objid ("05102813-e1ba-41e3-b928-01a1d9da8cfa") public static TagType GROUPINGTYPE_TAGTYPE_ELT; - @objid ("da51a571-0517-4c9b-9331-6e2ec9160d89") + @objid ("f98032b6-e646-47e0-9f56-0299c15b02a9") private static Stereotype MDAASSOCDEP; - @objid ("3aafc88c-b5a4-4381-8a72-46d52b56baa3") + @objid ("4a7b2dff-1ae7-43a7-a703-043235656b81") private static TagType MDAASSOCDEP_ROLE; - @objid ("3d1847b3-1084-45cb-a616-c5ffe086bcb1") + @objid ("211c557f-e6a9-45ff-9679-d516b82598d6") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "5967b9ec-f47f-4506-8f58-e308c56214d4"); GROUPINGTYPE_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "7147fecd-832f-4c13-ad68-032239f5c0f3"); @@ -240,11 +241,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 fb3f0f72..08756704 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.metricmodel.standard.class_; @@ -36,13 +36,13 @@ */ @objid ("01bf9d90-3138-4d31-84e2-99a064932b6c") public class Function extends FeatureClass { - @objid ("bffe0df6-441c-49c2-ab0f-89355082e1d2") + @objid ("15c3f7e7-8fce-4017-8ab0-bb750547be5c") public static final String STEREOTYPE_NAME = "Function"; - @objid ("518c1a08-fc67-4268-9536-f7cab6a13b34") + @objid ("a7b320c6-4d53-4840-a36d-22c26ec868f4") public static final String ARGUMENTS_TAGTYPE = "arguments"; - @objid ("d4655ea3-d6a6-45c1-8d31-b53252d126f4") + @objid ("6045ad41-2b72-4020-b7f2-558c0828dbe9") public static final String EXPRESSION_TAGTYPE = "expression"; /** @@ -53,7 +53,7 @@ public class Function extends FeatureClass { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("09623818-5940-414d-8317-a16a3bd7831b") + @objid ("bd497555-dcc8-4561-8be9-cc66061df948") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, Function.STEREOTYPE_NAME)); } @@ -63,7 +63,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link Function} proxy on the created {@link Class}. */ - @objid ("429329b9-3bfa-4d40-8ce2-674d44de3be9") + @objid ("950a9f42-3b71-47c4-b7b1-4f490db37877") public static Function create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, Function.STEREOTYPE_NAME); @@ -71,36 +71,34 @@ 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. */ - @objid ("4e145845-81db-43ca-a22c-99aaada2d27b") + @objid ("c9054772-fe57-43ab-a76e-9f91582c861f") public static Function instantiate(final Class obj) { return Function.canInstantiate(obj) ? new Function(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("ac7bb83e-fdb2-4467-921f-4320ea30971c") + @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 ("a5db6e4a-793a-41a9-9f51-6e5d78caf2c9") + @objid ("db4c2ef3-07b8-42e8-bafe-0e561a269724") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -121,17 +119,16 @@ public boolean equals(final Object obj) { *

Property description:
* null

*/ - @objid ("02d60813-fae5-4fb2-9949-7eae8586bd24") + @objid ("1367099e-ad2f-46bc-a930-2da204a690f3") public List getArguments() { return this.elt.getTagValues(Function.MdaTypes.ARGUMENTS_TAGTYPE_ELT); } /** - * Get the underlying {@link Class}. - * + * Get the underlying {@link Class}. * @return the Class represented by this proxy, never null. */ - @objid ("46d57be8-a23c-4955-a559-d5544081baa3") + @objid ("75d74542-7c13-4a90-9585-dfdbf9992cf5") @Override public Class getElement() { return (Class)super.getElement(); @@ -142,12 +139,12 @@ public Class getElement() { *

Property description: *
null

*/ - @objid ("05400ba8-1c4c-4279-bf64-8e1159d105d6") + @objid ("551fbf4c-7bc6-483b-88e2-e9dd2bc24cd5") public String getExpression() { return this.elt.getTagValue(Function.MdaTypes.EXPRESSION_TAGTYPE_ELT); } - @objid ("634b6b7d-87f1-4459-947c-50b923395344") + @objid ("6724591f-bb05-4be5-ba86-945b4fb15d40") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -158,7 +155,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("4400954d-3d2a-4546-83d8-1531c441f28d") + @objid ("fd404ed7-02b7-47aa-85aa-747717dcf62a") public void setArguments(final List values) { this.elt.putTagValues(Function.MdaTypes.ARGUMENTS_TAGTYPE_ELT, values); } @@ -168,7 +165,7 @@ public void setArguments(final List values) { *

Property description: *
null

*/ - @objid ("f4ebb04e-5d9f-440b-b1be-4cabbb040346") + @objid ("32793152-1d59-4344-8ea0-f98477b8608e") public void setExpression(final String value) { this.elt.putTagValue(Function.MdaTypes.EXPRESSION_TAGTYPE_ELT, value); } @@ -181,29 +178,29 @@ public List getChilds() { return result; } - @objid ("f2d83ee7-e25d-41ef-90c4-77b479fdd993") + @objid ("adf62965-4ba3-45a3-8d2c-854cf458b169") protected Function(final Class elt) { super(elt); } @objid ("9eab8954-1b48-4a6e-93ae-bfc5ed9fb0dc") public static final class MdaTypes { - @objid ("51c78954-e03e-44d8-b141-f42b5c4034cc") + @objid ("e46425c9-922d-408e-a9c3-0ceabec751e0") public static Stereotype STEREOTYPE_ELT; - @objid ("2caa0b2f-891b-46de-ab16-326b3d84cf0e") + @objid ("c1909b85-5e6b-4979-8da6-a2fe64dcda2d") public static TagType EXPRESSION_TAGTYPE_ELT; - @objid ("42f13703-3a54-4dab-a57f-fc92424fbec4") + @objid ("3d126571-d0c3-4b6c-b072-5651149be06f") public static TagType ARGUMENTS_TAGTYPE_ELT; - @objid ("582fa15e-8686-40b9-ac2f-86d1ad9fcaf0") + @objid ("93b4691c-a960-4e9d-8b28-830041114708") private static Stereotype MDAASSOCDEP; - @objid ("49718e23-d1e7-410a-957f-852154b6d154") + @objid ("09ce03d3-facf-47b9-8236-6fed72b78d92") private static TagType MDAASSOCDEP_ROLE; - @objid ("4ad45a14-cb73-4135-ae27-e3e02e4aa49e") + @objid ("cd28d502-9818-4a0b-9f21-880b4559aa61") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "2ce13037-e3af-417d-9c03-54d155a1d933"); EXPRESSION_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "8e19ff42-15d1-4aa8-b24d-934d6c6f8774"); @@ -213,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/metricmodel/standard/class_/Metric.java b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/Metric.java index 386dbb6b..be9e4405 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.metricmodel.standard.class_; @@ -15,6 +15,7 @@ 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; @@ -36,7 +37,7 @@ */ @objid ("b0754957-bc68-473c-a808-aac4f2fd0421") public abstract class Metric extends FeatureClass { - @objid ("76bf61d2-186c-409a-8ca1-b4be14ec2a52") + @objid ("340ca6b4-ec64-4909-bae4-69fa77946e11") public static final String STEREOTYPE_NAME = "Metric"; /** @@ -47,7 +48,7 @@ public abstract class Metric extends FeatureClass { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("bc0254c2-8a6d-4d99-baad-cb04c916dd80") + @objid ("4da785d4-9d7a-42ac-8e0d-5c140fec21d1") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, Metric.STEREOTYPE_NAME)); } @@ -59,7 +60,7 @@ public static Metric instantiate(final Class obj) { RawMetric.canInstantiate(obj) ? RawMetric.instantiate(obj) : null; } - @objid ("adafedee-953c-409f-99cb-47074b158f41") + @objid ("2ce6dc30-fb5c-47df-9ea2-03119d0e8806") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -76,11 +77,10 @@ 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 ("e7e3d6c5-6a85-4d35-8c32-65fd342a7e0e") + @objid ("431d3471-dc5b-4081-8cdc-03b200a659a4") @Override public Class getElement() { return (Class)super.getElement(); @@ -90,8 +90,9 @@ public Class getElement() { * Get the value of the 'metricTemplate' role.

* Role description: * null + * */ - @objid ("027ab602-8d68-4982-b2c4-920e9c0eeaef") + @objid ("7c9cf13a-3d20-4f11-96c0-65e39da5a6e4") public MetricTemplate getMetricTemplate() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(Metric.MdaTypes.MDAASSOCDEP) @@ -103,7 +104,7 @@ public MetricTemplate getMetricTemplate() { return null; } - @objid ("c87b8f81-6cec-47cb-b296-1f73665dbcdf") + @objid ("2e37c514-6d43-46e6-beb3-9baaad4b3976") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -113,8 +114,9 @@ public int hashCode() { * Set the value of the 'metricTemplate' role.

* Role description: * null + * */ - @objid ("0a7aafa8-1722-47e9-a837-12f31cca1b97") + @objid ("7fe23818-565d-48a1-8e1d-f0d746c469d3") public void setMetricTemplate(final MetricTemplate obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -142,23 +144,23 @@ public List getChilds() { return result; } - @objid ("2b584c45-5b91-4847-a94f-7bb38137f6f7") + @objid ("b68eb110-123d-40c5-8bbb-5a1547f4b514") protected Metric(final Class elt) { super(elt); } @objid ("7453f2c0-0edc-453a-bbfc-bbc62bf7a06d") public static final class MdaTypes { - @objid ("2926bc46-f79f-466d-b1a0-86dd5d9230b5") + @objid ("d5ffcac5-43b7-4f03-ad95-16d2c45ef56e") public static Stereotype STEREOTYPE_ELT; - @objid ("4ab156aa-ff76-46c9-9d11-5f89f8c50a54") + @objid ("b5618eaa-3262-45e0-aace-c3e4e73afb3e") private static Stereotype MDAASSOCDEP; - @objid ("76e7dc3c-dd39-44e5-a462-7e496666d425") + @objid ("c601240b-e8c7-4933-a78f-236e653c7b63") private static TagType MDAASSOCDEP_ROLE; - @objid ("d2f24c1f-5ad5-4ffa-97e7-15f3bffd4033") + @objid ("d18ccae5-7a5f-47e9-aa30-ca2a39bcd5e0") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "1603af9c-7b21-4da2-96b7-6607aa8066cc"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -166,11 +168,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 14853f02..33cb27f1 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.metricmodel.standard.class_; @@ -17,8 +17,12 @@ 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; @@ -43,7 +47,7 @@ */ @objid ("7e09088f-c382-4e86-bf9f-279d86520d36") public abstract class MetricContext extends FeatureClass { - @objid ("0ca0a033-72e3-479f-9122-ac264ef9c8fd") + @objid ("30c8b0a1-8dc7-44c1-8153-95d718bf4b85") public static final String STEREOTYPE_NAME = "MetricContext"; /** @@ -54,7 +58,7 @@ public abstract class MetricContext extends FeatureClass { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("aa4d7c99-f294-4f16-904a-dab2650e72e1") + @objid ("4a3fdcaa-cbfc-418f-b676-cd741ad08ec4") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, MetricContext.STEREOTYPE_NAME)); } @@ -63,14 +67,15 @@ public static boolean canInstantiate(final MObject elt) { * Add a value to the 'metricConstraint' role.

* Role description: * null + * */ - @objid ("34c98ee8-2603-4f6e-88d9-a968347519e6") + @objid ("e4ff5eae-88ad-4d04-a8e7-db3fa6bd7b82") public void addMetricConstraint(final MetricConstraint obj) { if (obj!=null) ((Class) this.elt).getConstraintDefinition().add(obj.getElement()); } - @objid ("d25f6dfc-08ee-4473-a43e-6240f2670a9d") + @objid ("b8bee8c5-57fc-4ff9-ab55-c354d9d69636") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -87,11 +92,10 @@ 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 ("2cbe3071-de5e-4222-a055-9cfdc51fad50") + @objid ("5ce0ae84-c7bd-4c30-a71b-c97d4786225a") @Override public Class getElement() { return (Class)super.getElement(); @@ -101,8 +105,9 @@ public Class getElement() { * Get the value of the 'metric' role.

* Role description: * null + * */ - @objid ("c0601e99-31fb-4241-a8f4-f77fbcb40485") + @objid ("42b07ea4-727a-4bd4-b16f-65cb4c2d82ed") public Metric getMetric() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(MetricContext.MdaTypes.MDAASSOCDEP) @@ -126,14 +131,15 @@ public Metric getMetric() { * Get the values of the 'metricConstraint' role.

* Role description: * null + * */ - @objid ("cf5d1771-3049-42d9-b9b6-2340579e5992") + @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); } @@ -141,8 +147,9 @@ public List getMetricConstraint() { * Get the value of the 'objectContext' role.

* Role description: * null + * */ - @objid ("e2cd5c4b-099d-4790-9d92-877f9d4a9067") + @objid ("e487cac6-bf98-4275-a176-ad3d41f6c818") public ObjectContext getObjectContext() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(MetricContext.MdaTypes.MDAASSOCDEP) @@ -158,8 +165,9 @@ public ObjectContext getObjectContext() { * Get the value of the 'schedule' role.

* Role description: * null + * */ - @objid ("9e6728b7-17d1-41d4-88c2-dea7ca1c133f") + @objid ("f50b929b-6c0d-4fd1-a594-fd3227aeb6e9") public Schedule getSchedule() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(MetricContext.MdaTypes.MDAASSOCDEP) @@ -175,8 +183,9 @@ public Schedule getSchedule() { * Get the value of the 'window' role.

* Role description: * null + * */ - @objid ("f2d91b8d-d692-4c65-9d89-310a9f1c0b24") + @objid ("dae46bd4-5cc6-425b-a3e2-98d048b49dab") public Window getWindow() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(MetricContext.MdaTypes.MDAASSOCDEP) @@ -188,7 +197,7 @@ public Window getWindow() { return null; } - @objid ("311e3561-6959-44fa-aa8d-9245ee6a07f3") + @objid ("fcbbfab3-632d-4739-a6f7-3d042b28ec1a") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -198,8 +207,9 @@ public int hashCode() { * Remove a value from the 'metricConstraint' role.

* Role description: * null + * */ - @objid ("9e04aa59-7579-485f-b248-ec7d6ee5dc86") + @objid ("d7bd27db-f4a6-41f5-ac4a-03897d25b0b0") public boolean removeMetricConstraint(final MetricConstraint obj) { return (obj!=null)? ((Class) this.elt).getConstraintDefinition().remove(obj.getElement()) : false; } @@ -208,8 +218,9 @@ public boolean removeMetricConstraint(final MetricConstraint obj) { * Set the value of the 'metric' role.

* Role description: * null + * */ - @objid ("a015e2d1-b0f6-49bb-ad1a-8ec11b1181a9") + @objid ("0c3de3e0-3659-4240-a54e-fa4c12bde45d") public void setMetric(final Metric obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -233,8 +244,9 @@ public void setMetric(final Metric obj) { * Set the value of the 'objectContext' role.

* Role description: * null + * */ - @objid ("316702d8-d8c0-4125-9317-8fd37abb7bb9") + @objid ("b900c77e-5cfe-4ec6-af82-4f2e946f2063") public void setObjectContext(final ObjectContext obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -258,8 +270,9 @@ public void setObjectContext(final ObjectContext obj) { * Set the value of the 'schedule' role.

* Role description: * null + * */ - @objid ("fe6d6fe2-859f-4851-a354-6120bf67bb13") + @objid ("ff51587c-78c5-45ff-965a-63c4cb2a2967") public void setSchedule(final Schedule obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -283,8 +296,9 @@ public void setSchedule(final Schedule obj) { * Set the value of the 'window' role.

* Role description: * null + * */ - @objid ("80ea11b6-d983-416a-90e4-0ae30299852a") + @objid ("bcdde6cb-6413-4565-9162-6267cbc95378") public void setWindow(final Window obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -312,23 +326,23 @@ public List getChilds() { return result; } - @objid ("3199f801-6ff8-4e09-9e01-b39ba55cee57") + @objid ("90fd9c8c-7ef9-47f2-8092-c624ca7ec6b3") protected MetricContext(final Class elt) { super(elt); } @objid ("3357aabf-9da8-4702-9625-397f3c7ea782") public static final class MdaTypes { - @objid ("edd4195a-51ff-4e1b-ae29-5e7beff20cc7") + @objid ("caf80ed3-78cf-4502-9ec6-d3e829c19ef9") public static Stereotype STEREOTYPE_ELT; - @objid ("005d12aa-f885-42f9-8a72-243dbced393c") + @objid ("9360d4f8-fb16-4fb3-b0fd-c71a24f52a60") private static Stereotype MDAASSOCDEP; - @objid ("31fb8352-4e05-4a1b-86a3-7d4711dfb2fb") + @objid ("b93c66a6-2a14-4cd5-8d36-e4ad3f90df7a") private static TagType MDAASSOCDEP_ROLE; - @objid ("7b7d275d-01aa-4e11-9668-ee466d8c1a95") + @objid ("28bf02db-54cf-4e23-a017-d2b6470d9b97") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "488a751d-5081-4d44-bdb2-716e2a588fb4"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -336,11 +350,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 62cd6f19..afcce3be 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.metricmodel.standard.class_; @@ -43,7 +43,7 @@ */ @objid ("f5340f1c-c3cf-49b5-938b-4ac6b35cbc07") public class MetricObjectBinding extends FeatureClass { - @objid ("6de8b4e9-4319-4df7-96a5-07d14fbadc98") + @objid ("e0fb7756-6df1-4063-a8d5-557efe41467d") public static final String STEREOTYPE_NAME = "MetricObjectBinding"; /** @@ -54,7 +54,7 @@ public class MetricObjectBinding extends FeatureClass { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("92bb316e-51fe-4e7a-aa34-5a8ee7fa5e75") + @objid ("b014eb9c-8093-4177-9143-b59d43aaf481") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, MetricObjectBinding.STEREOTYPE_NAME)); } @@ -64,7 +64,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link MetricObjectBinding} proxy on the created {@link Class}. */ - @objid ("c3e2018a-36b4-452f-9b92-d89c9cafd1a4") + @objid ("d2a41263-38eb-41a5-a285-2892248f3051") public static MetricObjectBinding create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, MetricObjectBinding.STEREOTYPE_NAME); @@ -72,36 +72,34 @@ 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. */ - @objid ("cc4b1e29-0782-44e1-a0cd-42da5fe1270b") + @objid ("9bc348eb-c456-4ac6-9b29-1e8c935b476e") public static MetricObjectBinding instantiate(final Class obj) { return MetricObjectBinding.canInstantiate(obj) ? new MetricObjectBinding(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("be86bd85-9870-4d1e-9733-a9706ab61a36") + @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 ("9663ab66-4d08-4dc4-b796-c31bc540ed19") + @objid ("ef5a0999-f9f5-444d-831d-dbb1042e3a4b") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -121,8 +119,9 @@ public boolean equals(final Object obj) { * Get the value of the 'communicationInstance' role.

* Role description: * null + * */ - @objid ("55416c5a-5255-4f20-8f6c-87ddc59e4927") + @objid ("aea7bf63-15b4-421a-ba5d-712f57a4f2ab") public CommunicationInstance getCommunicationInstance() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(MetricObjectBinding.MdaTypes.MDAASSOCDEP) @@ -138,8 +137,9 @@ public CommunicationInstance getCommunicationInstance() { * Get the value of the 'componentInstance' role.

* Role description: * null + * */ - @objid ("7bb01c0b-d939-4858-a65f-5aca1e374065") + @objid ("1007808f-0620-4566-ba3b-87f8efa57e0f") public ComponentInstance getComponentInstance() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(MetricObjectBinding.MdaTypes.MDAASSOCDEP) @@ -158,11 +158,10 @@ public ComponentInstance getComponentInstance() { } /** - * Get the underlying {@link Class}. - * + * Get the underlying {@link Class}. * @return the Class represented by this proxy, never null. */ - @objid ("59510d89-5e3a-4ae4-9a13-ac9ef464fe87") + @objid ("4dbefc5e-424e-4502-bac1-c71003ab3a09") @Override public Class getElement() { return (Class)super.getElement(); @@ -172,8 +171,9 @@ public Class getElement() { * Get the value of the 'executionModel' role.

* Role description: * null + * */ - @objid ("5045ce6c-41dd-4b10-bfe9-7b3dbe0c590d") + @objid ("f9b20ed2-5cc5-405c-ab9c-9411a95f8deb") public ExecutionModel getExecutionModel() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(MetricObjectBinding.MdaTypes.MDAASSOCDEP) @@ -185,7 +185,7 @@ public ExecutionModel getExecutionModel() { return null; } - @objid ("3c932129-2fc2-4db4-a815-cb9fcf88e945") + @objid ("244a7a26-fb09-4c45-9584-6fc06f4e0801") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -195,8 +195,9 @@ public int hashCode() { * Set the value of the 'communicationInstance' role.

* Role description: * null + * */ - @objid ("cc5a0188-f510-4021-b793-49df00687b57") + @objid ("aecc1cba-1101-4c64-b4c3-45e79c7f2f7f") public void setCommunicationInstance(final CommunicationInstance obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -220,8 +221,9 @@ public void setCommunicationInstance(final CommunicationInstance obj) { * Set the value of the 'componentInstance' role.

* Role description: * null + * */ - @objid ("56cedba9-8ff6-4b7f-90d5-7d6b8ac6839d") + @objid ("1219d3ac-0338-46ad-a6a7-2a99e15e646d") public void setComponentInstance(final ComponentInstance obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -245,8 +247,9 @@ public void setComponentInstance(final ComponentInstance obj) { * Set the value of the 'executionModel' role.

* Role description: * null + * */ - @objid ("acb948cf-7c46-437f-a7c8-db82391c3e39") + @objid ("f898bbbb-1960-4282-91c2-4ddcdba17040") public void setExecutionModel(final ExecutionModel obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -274,23 +277,23 @@ public List getChilds() { return result; } - @objid ("787bf7f7-9bbc-463d-af18-edac0bc5e021") + @objid ("762ca659-597a-49fe-940f-8187db3bfda2") protected MetricObjectBinding(final Class elt) { super(elt); } @objid ("272f62f0-81e6-49eb-82ae-aabe9b0a0678") public static final class MdaTypes { - @objid ("fa0a7c7e-2345-4510-b29d-89bf35fcf9c9") + @objid ("cf9c6d43-0e1a-40f4-a776-a0a7410c5c81") public static Stereotype STEREOTYPE_ELT; - @objid ("13ed271c-4cbf-4f47-8280-2de612f70038") + @objid ("c89d22b9-ca89-4510-8aa9-36b9aaece519") private static Stereotype MDAASSOCDEP; - @objid ("bf3f94d5-bcb7-483a-b133-7ca7123a6838") + @objid ("3e03ed3a-b4d5-4f1c-929a-0e102a548b52") private static TagType MDAASSOCDEP_ROLE; - @objid ("cd22112c-133e-4b44-a0b6-f9a01c85e4d9") + @objid ("0b365fff-ddc9-4061-9ba5-54dddfcdbab8") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "53d4e08f-3c02-461e-91e7-e2adf292b0c2"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -298,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_/MetricTemplate.java b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/MetricTemplate.java index 74dbf7a7..befc8de2 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 @@ -1,12 +1,13 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.metricmodel.standard.class_; import java.util.ArrayList; +import java.util.Collections; import java.util.List; import java.util.Objects; import com.modeliosoft.modelio.javadesigner.annotations.objid; @@ -27,11 +28,15 @@ 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; import org.modelio.api.module.context.IModuleContext; +import org.modelio.metamodel.mmextensions.infrastructure.ExtensionNotFoundException; import org.modelio.metamodel.uml.infrastructure.Dependency; import org.modelio.metamodel.uml.infrastructure.ModelElement; import org.modelio.metamodel.uml.infrastructure.Stereotype; import org.modelio.metamodel.uml.infrastructure.TagType; +import org.modelio.metamodel.uml.infrastructure.properties.PropertyDefinition; +import org.modelio.metamodel.uml.infrastructure.properties.PropertyTableDefinition; import org.modelio.metamodel.uml.statik.Class; import org.modelio.vcore.smkernel.mapi.MObject; @@ -42,10 +47,10 @@ */ @objid ("9fda9bc1-f8e9-4e34-86e6-3b44d86b5703") public class MetricTemplate extends FeatureClass { - @objid ("12eb507f-dfe9-42f7-b410-d0b5a37a43d5") + @objid ("8e58e4c3-e3f6-4180-ab6f-4dcc3cfb3769") public static final String STEREOTYPE_NAME = "MetricTemplate"; - @objid ("d73bb832-2f87-4c8d-a6d4-5c6b410854b8") + @objid ("28fa68bc-530c-4183-b3db-d89d824ac737") public static final String VALUEDIRECTION_TAGTYPE = "valueDirection"; /** @@ -56,7 +61,7 @@ public class MetricTemplate extends FeatureClass { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("1154a829-a400-47d2-99d4-43eb194f65e0") + @objid ("ebc0658d-cc40-44c0-b9b0-e3265aa4cede") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, MetricTemplate.STEREOTYPE_NAME)); } @@ -66,7 +71,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link MetricTemplate} proxy on the created {@link Class}. */ - @objid ("58510490-59ac-4553-835e-2b1374af082c") + @objid ("d58e1f8f-dec5-452d-8cf1-16161d7ffca1") public static MetricTemplate create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, MetricTemplate.STEREOTYPE_NAME); @@ -74,36 +79,34 @@ 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. */ - @objid ("d3af261f-feda-4ec3-836f-a81ead0121fb") + @objid ("6cfe902a-ffc0-4add-94c6-c37b6d98c23f") public static MetricTemplate instantiate(final Class obj) { return MetricTemplate.canInstantiate(obj) ? new MetricTemplate(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("fe2c9e9f-d99e-4240-a6d4-765c7ca32541") + @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 ("06562521-717b-431f-9d64-71b39e76c4ff") + @objid ("99cb1dde-cbde-43e6-a3a0-ec1f77f09062") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -123,8 +126,9 @@ public boolean equals(final Object obj) { * Get the value of the 'attribute' role.

* Role description: * null + * */ - @objid ("62bfdc51-b0bc-43f5-b4c5-25d6ee64301d") + @objid ("34c415cb-0fa6-4903-bdd5-145904ee5225") public MeasurableAttributeClass getAttribute() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(MetricTemplate.MdaTypes.MDAASSOCDEP) @@ -137,11 +141,10 @@ public MeasurableAttributeClass getAttribute() { } /** - * Get the underlying {@link Class}. - * + * Get the underlying {@link Class}. * @return the Class represented by this proxy, never null. */ - @objid ("47242683-1679-4aa3-aef7-7ca24eed81dd") + @objid ("1277724e-600e-4b6d-b3ab-c9f8e05e434b") @Override public Class getElement() { return (Class)super.getElement(); @@ -151,8 +154,9 @@ public Class getElement() { * Get the value of the 'unit' role.

* Role description: * null + * */ - @objid ("10043520-f80a-4af4-808d-1d9f05b21c39") + @objid ("ab3f33b5-627d-4e7c-9f5f-555a11ddf801") public Unit getUnit() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(MetricTemplate.MdaTypes.MDAASSOCDEP) @@ -173,7 +177,7 @@ public Unit getUnit() { *

Property description: *
null

*/ - @objid ("d58e3675-df90-432d-93fd-30c3550701da") + @objid ("8dba30b9-21f5-4fd4-817e-e51e82384b6e") public String getValueDirection() { return this.elt.getTagValue(MetricTemplate.MdaTypes.VALUEDIRECTION_TAGTYPE_ELT); } @@ -182,8 +186,9 @@ public String getValueDirection() { * Get the value of the 'valueType' role.

* Role description: * null + * */ - @objid ("fab9728f-fea2-4409-9b1a-427734c472c4") + @objid ("1f001063-84d8-4728-b1e6-8b2467ee8000") public ValueType getValueType() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(MetricTemplate.MdaTypes.MDAASSOCDEP) @@ -203,7 +208,7 @@ public ValueType getValueType() { return null; } - @objid ("4b94f44c-1b9a-484a-98c7-3f0086cf74bf") + @objid ("c111e424-1be1-41c5-86fa-13aa2039eae5") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -213,8 +218,9 @@ public int hashCode() { * Set the value of the 'attribute' role.

* Role description: * null + * */ - @objid ("9e881892-0d69-4bb1-9553-03536cfaf491") + @objid ("f559310b-26ac-4fe1-980b-ae024f05abc9") public void setAttribute(final MeasurableAttributeClass obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -238,8 +244,9 @@ public void setAttribute(final MeasurableAttributeClass obj) { * Set the value of the 'unit' role.

* Role description: * null + * */ - @objid ("224def92-3800-4ddb-b279-6287e387ff8b") + @objid ("b5e3383b-5508-4b60-bf3b-4080d1077f26") public void setUnit(final Unit obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -264,7 +271,7 @@ public void setUnit(final Unit obj) { *

Property description: *
null

*/ - @objid ("731b5ff3-2d14-4179-b0b7-0385754392a6") + @objid ("169be589-d13d-4286-9b84-f84590358adc") public void setValueDirection(final String value) { this.elt.putTagValue(MetricTemplate.MdaTypes.VALUEDIRECTION_TAGTYPE_ELT, value); } @@ -273,8 +280,9 @@ public void setValueDirection(final String value) { * Set the value of the 'valueType' role.

* Role description: * null + * */ - @objid ("583016eb-aac5-49f9-a329-72d0b3152c57") + @objid ("4ba793d1-ebc8-41a1-bc73-196bc87df6b3") public void setValueType(final ValueType obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -302,63 +310,26 @@ public List getChilds() { return result; } - @objid ("b713223d-1019-472c-8090-e686c280ee50") + @objid ("ccdca219-9f87-4276-8b4e-a1542ae56735") protected MetricTemplate(final Class elt) { super(elt); } - /** - * Get the value of the 'valueType' role.

- * Role description: - * null - */ - @objid ("fe30ddd7-27fc-42b8-8a30-fc46390c6e64") - public ValueType getValueTypeOld() { - for (Dependency d : this.elt.getDependsOnDependency()) { - if (d.isStereotyped(MetricTemplate.MdaTypes.MDAASSOCDEP) - && Objects.equals(d.getTagValue(MetricTemplate.MdaTypes.MDAASSOCDEP_ROLE), "valueType") - && d.getDependsOn().isStereotyped(ValueType.MdaTypes.STEREOTYPE_ELT)) { - ModelElement attribut = d.getDependsOn(); - - //BooleanValueType - if (BooleanValueType.canInstantiate(attribut)) - return (ValueType)CamelDesignerProxyFactory.instantiate(attribut, BooleanValueType.MdaTypes.STEREOTYPE_ELT.getName()); - - //List - if (CamelList.canInstantiate(attribut)) - return (ValueType)CamelDesignerProxyFactory.instantiate(attribut, CamelList.MdaTypes.STEREOTYPE_ELT.getName()); - - //Range - if (Range.canInstantiate(attribut)) - return (ValueType)CamelDesignerProxyFactory.instantiate(attribut, Range.MdaTypes.STEREOTYPE_ELT.getName()); - - //RangeUnion - if (RangeUnion.canInstantiate(attribut)) - return (ValueType)CamelDesignerProxyFactory.instantiate(attribut, RangeUnion.MdaTypes.STEREOTYPE_ELT.getName()); - - //StringValueType - if (StringValueType.canInstantiate(attribut)) - return (ValueType)CamelDesignerProxyFactory.instantiate(attribut, StringValueType.MdaTypes.STEREOTYPE_ELT.getName()); - } - } - return null; - } - @objid ("167b1a3c-171c-4d03-b995-511599eb3e3e") public static final class MdaTypes { - @objid ("3d14e823-7909-4e33-823d-aa28e6e6015b") + @objid ("f4d26518-2db3-412e-a61e-9b60beda8cd0") public static Stereotype STEREOTYPE_ELT; - @objid ("d98ab90c-54a6-4636-a7a7-c061b08a0d68") + @objid ("25c96ce3-3cb0-486e-9c07-51b8015ef588") public static TagType VALUEDIRECTION_TAGTYPE_ELT; - @objid ("151b82c1-5367-45de-9385-f5fd5acaabee") + @objid ("8ea9b4d7-9409-4682-9294-f3c1d3a181b0") private static Stereotype MDAASSOCDEP; - @objid ("0602b1c4-bbcd-4201-9773-44a6718d7acf") + @objid ("0d35bae9-3e8c-47aa-b8b3-87be22338913") private static TagType MDAASSOCDEP_ROLE; - @objid ("18b86ee9-b86d-4461-9ad5-3d3c0b7d9632") + @objid ("ec6cf46b-5247-461e-a632-ac102ef633df") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "9f394e40-1b72-4bd0-a2e6-b02a67cf87fd"); VALUEDIRECTION_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "537c84fa-0460-4eae-bc55-104097f503c9"); @@ -367,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/metricmodel/standard/class_/MetricVariable.java b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/class_/MetricVariable.java index 50a4fbc3..c116936b 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.metricmodel.standard.class_; @@ -21,6 +21,7 @@ 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; @@ -47,16 +48,16 @@ */ @objid ("7f8056db-66ca-4270-b581-2dad325c84aa") public class MetricVariable extends Metric { - @objid ("10570c38-8928-43ca-99e2-478c918efc84") + @objid ("20b138dc-5c4a-487b-b898-fac028dd1a85") public static final String STEREOTYPE_NAME = "MetricVariable"; - @objid ("fe327bab-b63d-4cee-8446-717d2739a381") + @objid ("adde714a-1da9-4fd4-8f5e-9a194dc9c8e4") public static final String CURRENTCONFIGURATION_TAGTYPE = "currentConfiguration"; - @objid ("f1eb9b63-7732-464a-aba8-a6fb7a4aa7da") + @objid ("662e0205-bb26-4ebd-8eab-ede53759b017") public static final String FORMULA_TAGTYPE = "formula"; - @objid ("a5578998-49bb-450e-bcfd-2cd81a266b51") + @objid ("495214fd-3c02-4451-a90b-d65e61583fa8") public static final String ONNODECANDIDATES_TAGTYPE = "onNodeCandidates"; /** @@ -67,7 +68,7 @@ public class MetricVariable extends Metric { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("0bf95342-0906-4252-acf4-d4025235ec3c") + @objid ("80a1d961-ee85-4c72-afde-912bf206d69b") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, MetricVariable.STEREOTYPE_NAME)); } @@ -77,7 +78,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link MetricVariable} proxy on the created {@link Class}. */ - @objid ("937b2090-b7a6-4759-8af3-56507dc6435f") + @objid ("408d3921-37f1-4a80-ae30-15f864d0f476") public static MetricVariable create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, MetricVariable.STEREOTYPE_NAME); @@ -85,41 +86,40 @@ 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. */ - @objid ("587b8f31-58de-4511-a9a8-a96cde5df761") + @objid ("14200f02-de32-4b70-ad2f-fe107d52c152") public static MetricVariable instantiate(final Class obj) { return MetricVariable.canInstantiate(obj) ? new MetricVariable(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("61e7c56b-eb46-491b-ae3c-ddbff49b533d") + @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 ("5cfe8356-a002-4c6e-b1a9-dae6542ce6ce") + @objid ("f23006f4-3f4e-4db1-9eaf-b9759b8041d5") public void addComponentMetrics(final Metric obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -133,14 +133,15 @@ public void addComponentMetrics(final Metric obj) { * Add a value to the 'metricVariableConstraint' role.

* Role description: * null + * */ - @objid ("1509d73c-5d1d-46d5-8463-8442f4ce147e") + @objid ("8b6069c0-a46e-4bd0-ae88-6f7d198c0d58") public void addMetricVariableConstraint(final MetricVariableConstraint obj) { if (obj!=null) ((Class) this.elt).getConstraintDefinition().add(obj.getElement()); } - @objid ("784ddf99-d8d4-4922-b4f1-ea12ea9af3ab") + @objid ("e66baa70-55e3-43b8-8e54-c96f3857485f") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -160,8 +161,9 @@ public boolean equals(final Object obj) { * Get the value of the 'component' role.

* Role description: * null + * */ - @objid ("21864f26-df09-40f6-a10d-f9b68332a607") + @objid ("c7470f0d-b4dd-4dd2-b126-f8fb55e6ede3") public CamelComponent getComponent() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(MetricVariable.MdaTypes.MDAASSOCDEP) @@ -185,8 +187,9 @@ public CamelComponent getComponent() { * Get the values of the 'componentMetrics' role.

* Role description: * null + * */ - @objid ("3a2a63e2-3671-4b11-b087-76cdac4dccd4") + @objid ("ce23207e-a5f4-44ce-b7f6-8bd11acf9880") public List getComponentMetrics() { List results = new ArrayList<>(); for (Dependency d : this.elt.getDependsOnDependency()) { @@ -208,11 +211,10 @@ public List getComponentMetrics() { } /** - * Get the underlying {@link Class}. - * + * Get the underlying {@link Class}. * @return the Class represented by this proxy, never null. */ - @objid ("bc08723c-beec-4a1b-8eae-eff2135d2e25") + @objid ("54343cda-ee0c-4eb6-a6aa-edf2745696ac") @Override public Class getElement() { return (Class)super.getElement(); @@ -223,7 +225,7 @@ public Class getElement() { *

Property description: *
null

*/ - @objid ("2d33233b-7573-4ac5-ae31-c2e74b5fb6d2") + @objid ("e0038d94-5715-451c-8aed-8c20fe97b830") public String getFormula() { return this.elt.getTagValue(MetricVariable.MdaTypes.FORMULA_TAGTYPE_ELT); } @@ -232,18 +234,19 @@ public String getFormula() { * Get the values of the 'metricVariableConstraint' role.

* Role description: * null + * */ - @objid ("dbb340e1-024f-4afb-bfc7-33b751ee1c98") + @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); } - @objid ("44570601-d278-49f6-909a-a1abe9d42130") + @objid ("75e0afed-a68f-4e20-b9fd-863e468f42ca") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -254,7 +257,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("f6f3f3cf-b17c-4dce-a3c5-33627a28f5e3") + @objid ("6b1084e9-daa7-424b-928d-07a10503bc45") public boolean isCurrentConfiguration() { return this.elt.isTagged(MetricVariable.MdaTypes.CURRENTCONFIGURATION_TAGTYPE_ELT); } @@ -264,7 +267,7 @@ public boolean isCurrentConfiguration() { *

Property description: *
null

*/ - @objid ("0b09f89b-75d2-472d-a7ae-63128c4f8fb0") + @objid ("1fe23e13-0acf-40f7-894a-23e383020b5a") public boolean isOnNodeCandidates() { return this.elt.isTagged(MetricVariable.MdaTypes.ONNODECANDIDATES_TAGTYPE_ELT); } @@ -273,12 +276,13 @@ public boolean isOnNodeCandidates() { * Remove a value from the 'componentMetrics' role.

* Role description: * null + * */ - @objid ("00af3bdb-0448-4195-9afe-b222f7db96c2") + @objid ("859bfb55-5b71-413e-b9b6-ba2492c6c428") public boolean removeComponentMetrics(final Metric obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getDependsOnDependency())) { - if (d.isStereotyped(MetricVariable.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(MetricVariable.MdaTypes.MDAASSOCDEP_ROLE), "")) + if (d.isStereotyped(MetricVariable.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(MetricVariable.MdaTypes.MDAASSOCDEP_ROLE), "componentMetrics")) if (Objects.equals(d.getDependsOn(), obj.getElement())) { d.delete(); return true; @@ -292,8 +296,9 @@ public boolean removeComponentMetrics(final Metric obj) { * Remove a value from the 'metricVariableConstraint' role.

* Role description: * null + * */ - @objid ("57ac4731-adc1-44d6-b956-8343ef45a8ec") + @objid ("1ab1bb24-9f0c-4200-bb30-a3ecfeedd53e") public boolean removeMetricVariableConstraint(final MetricVariableConstraint obj) { return (obj!=null)? ((Class) this.elt).getConstraintDefinition().remove(obj.getElement()) : false; } @@ -302,8 +307,9 @@ public boolean removeMetricVariableConstraint(final MetricVariableConstraint obj * Set the value of the 'component' role.

* Role description: * null + * */ - @objid ("ff8982b0-c635-4dd0-8f6e-dc1b6891c865") + @objid ("6e826295-daa2-41b6-96e5-e9c61031f755") public void setComponent(final CamelComponent obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -328,7 +334,7 @@ public void setComponent(final CamelComponent obj) { *

Property description: *
null

*/ - @objid ("a6d1ba9f-ae04-4eed-bbd9-9027e82e823e") + @objid ("a7060b96-5a1d-40bc-ac7c-fefcaceb7875") public void setCurrentConfiguration(final boolean value) { if (value) CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createTaggedValue(MetricVariable.MdaTypes.CURRENTCONFIGURATION_TAGTYPE_ELT, this.elt); @@ -341,7 +347,7 @@ public void setCurrentConfiguration(final boolean value) { *

Property description: *
null

*/ - @objid ("1545f2c0-2ff9-4446-b016-e12c5ab22c16") + @objid ("5c71e14a-ac7d-43e8-8c27-0a467e5754a3") public void setFormula(final String value) { this.elt.putTagValue(MetricVariable.MdaTypes.FORMULA_TAGTYPE_ELT, value); } @@ -351,7 +357,7 @@ public void setFormula(final String value) { *

Property description: *
null

*/ - @objid ("5e22d536-5dbe-4cf2-aa1f-bc93669bd024") + @objid ("8542c306-ebbe-422c-95fb-7e1627b22423") public void setOnNodeCandidates(final boolean value) { if (value) CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createTaggedValue(MetricVariable.MdaTypes.ONNODECANDIDATES_TAGTYPE_ELT, this.elt); @@ -367,32 +373,32 @@ public List getChilds() { return result; } - @objid ("40356e17-439c-4e14-b8da-fec7a62596d8") + @objid ("15cec7bb-d830-4c32-8f78-ab56ed22a7c9") protected MetricVariable(final Class elt) { super(elt); } @objid ("81037834-9acd-42d9-b1a5-2bc14d8ad956") public static final class MdaTypes { - @objid ("a7cb7b8c-8cd6-46ee-a588-6a044a3e872b") + @objid ("369036e6-37c4-4ba5-8841-80129c25ecc0") public static Stereotype STEREOTYPE_ELT; - @objid ("c2b3774a-1806-46ff-abdc-e5c9b8513c9b") + @objid ("a15aa35b-1eb0-4187-83c7-73aa5b45354a") public static TagType CURRENTCONFIGURATION_TAGTYPE_ELT; - @objid ("53a41b7e-92d0-41ff-a69c-7c9e12b64bfd") + @objid ("4bb0175e-2588-4c97-8323-fbde549f6e57") public static TagType ONNODECANDIDATES_TAGTYPE_ELT; - @objid ("58890b3a-01cd-403b-9777-85269da6baad") + @objid ("0be96716-83df-437b-81c8-9c165c65634f") public static TagType FORMULA_TAGTYPE_ELT; - @objid ("d3d8a256-cac0-4d6d-88be-f56e7c5de8ec") + @objid ("586404e1-0dd8-4dc5-b35c-e415b398f2c8") private static Stereotype MDAASSOCDEP; - @objid ("721c99ac-0672-40b6-bf08-0399f44522af") + @objid ("94e5a2a7-2222-42b1-8f8b-9e17ea2f1d88") private static TagType MDAASSOCDEP_ROLE; - @objid ("b3da9627-7d96-41a6-9952-cda4dcf356c8") + @objid ("4cc0813c-88f9-4df5-83c3-1ebe5994fb58") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "74fbbe90-c06f-4bc3-81a7-d13724b575a8"); CURRENTCONFIGURATION_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "c0614ae1-0ba0-4112-bdfd-d97d8b6faafa"); @@ -403,11 +409,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 529ee6fe..f00d8e38 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.metricmodel.standard.class_; @@ -44,7 +44,7 @@ */ @objid ("6b0e8788-1e8c-4f51-b3be-5895fa33507f") public class ObjectContext extends FeatureClass { - @objid ("e66bbda1-cd01-494e-ac55-226ef5fcf0a0") + @objid ("8be378d1-5ac1-4e38-bd76-8e67ab677771") public static final String STEREOTYPE_NAME = "ObjectContext"; /** @@ -55,7 +55,7 @@ public class ObjectContext extends FeatureClass { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("7f1c1cc3-2fac-4011-aa9d-8efd495a00a5") + @objid ("df5ea682-6bf8-4ac4-9cc1-3ca5f7842909") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, ObjectContext.STEREOTYPE_NAME)); } @@ -65,7 +65,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link ObjectContext} proxy on the created {@link Class}. */ - @objid ("e4d621fd-3977-4ebd-bcd6-84936feebf2f") + @objid ("705f422f-484e-4661-b6dc-48aad98e7ae6") public static ObjectContext create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, ObjectContext.STEREOTYPE_NAME); @@ -73,36 +73,34 @@ 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. */ - @objid ("236a09dd-37ad-45a1-8c51-651a738e1b29") + @objid ("602ecb1a-0f98-4ddc-85cd-99480256d853") public static ObjectContext instantiate(final Class obj) { return ObjectContext.canInstantiate(obj) ? new ObjectContext(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("b5104c1c-dfb2-453f-8b01-b97cdaba793f") + @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 ("9911d322-ab57-4faa-8b17-0eb2ec79eac2") + @objid ("a5344e23-8631-4e70-8837-82b886a96f60") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -122,8 +120,9 @@ public boolean equals(final Object obj) { * Get the value of the 'communication' role.

* Role description: * null + * */ - @objid ("16a41fcf-1ec4-4fe0-b094-30470cc79d18") + @objid ("99dbdf14-3fc5-48f3-8a73-94de13152a3f") public Communication getCommunication() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(ObjectContext.MdaTypes.MDAASSOCDEP) @@ -139,8 +138,9 @@ public Communication getCommunication() { * Get the value of the 'component' role.

* Role description: * null + * */ - @objid ("2fe9c97a-c2e3-4372-8660-498c257aefcb") + @objid ("938145ea-96ad-4f23-8b54-3727e9840fe5") public CamelComponent getComponent() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(ObjectContext.MdaTypes.MDAASSOCDEP) @@ -164,8 +164,9 @@ public CamelComponent getComponent() { * Get the value of the 'data' role.

* Role description: * null + * */ - @objid ("4609d92e-187d-43aa-b7e6-baaa87ee7bc8") + @objid ("d2284069-60a7-410c-be31-8b9bb82812d0") public Data getData() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(ObjectContext.MdaTypes.MDAASSOCDEP) @@ -178,17 +179,16 @@ public Data getData() { } /** - * Get the underlying {@link Class}. - * + * Get the underlying {@link Class}. * @return the Class represented by this proxy, never null. */ - @objid ("74182a00-bc68-4b6f-97d2-0d0567cefb61") + @objid ("1d248e99-2365-4d0a-b539-1f3f9ae5477f") @Override public Class getElement() { return (Class)super.getElement(); } - @objid ("36d271f0-733e-4c23-840e-6ba3424198eb") + @objid ("d61e4138-37ec-4c49-a491-c2c1af9a0719") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -198,8 +198,9 @@ public int hashCode() { * Set the value of the 'communication' role.

* Role description: * null + * */ - @objid ("855d3024-6623-49ec-8623-6473b62a2ebc") + @objid ("f1d38417-2b24-436f-899b-9443b01b6f6b") public void setCommunication(final Communication obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -223,8 +224,9 @@ public void setCommunication(final Communication obj) { * Set the value of the 'component' role.

* Role description: * null + * */ - @objid ("a56ec184-0703-4a95-a4fd-576825717b49") + @objid ("3b5e376a-20cc-4738-a5cd-7f437187b067") public void setComponent(final CamelComponent obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -248,8 +250,9 @@ public void setComponent(final CamelComponent obj) { * Set the value of the 'data' role.

* Role description: * null + * */ - @objid ("ae125939-fbe2-45ea-b3cf-6cfbc3606e17") + @objid ("89253c10-7e1b-4b63-a4d1-b9029e330d46") public void setData(final Data obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -277,23 +280,23 @@ public List getChilds() { return result; } - @objid ("201132b3-826a-45a5-9a91-bb030e747596") + @objid ("85843b67-89b7-4f86-a0b0-09a36adb65f1") protected ObjectContext(final Class elt) { super(elt); } @objid ("5fffe97f-3562-4512-9295-ad884699b40d") public static final class MdaTypes { - @objid ("e78864b1-d4d5-4531-9d7a-dc5845edfef3") + @objid ("e673e19a-84b2-4022-aeb5-248019115427") public static Stereotype STEREOTYPE_ELT; - @objid ("ac8791ea-6881-495e-859e-92824e19ff11") + @objid ("0f986384-32ea-45e5-94ca-571295bb6525") private static Stereotype MDAASSOCDEP; - @objid ("deee4256-663b-4c87-be09-e04fd54be3cb") + @objid ("0ff0a05d-b935-453c-a0c7-e5188cefde72") private static TagType MDAASSOCDEP_ROLE; - @objid ("aa5918fa-f4e9-4971-bd9e-a496dea8ee47") + @objid ("aa353ae9-2466-433f-b96d-30ffc28ca07e") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "b5ec870a-0a52-4a49-a5f3-ee6a50acb0c7"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -301,11 +304,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 822887a9..91281207 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.metricmodel.standard.class_; @@ -35,7 +35,7 @@ */ @objid ("572cad03-96ad-4628-9ea6-cb55bb5f2e80") public class RawMetric extends Metric { - @objid ("f60d5e19-11a0-4036-9cc6-5b0475e99420") + @objid ("a011d9a5-9502-4490-a48c-cdb1e3de223a") public static final String STEREOTYPE_NAME = "RawMetric"; /** @@ -46,7 +46,7 @@ public class RawMetric extends Metric { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("071b9520-2eeb-4807-98c5-26cf87fe51eb") + @objid ("54a93146-47be-42e6-a94c-e31d032a7c43") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, RawMetric.STEREOTYPE_NAME)); } @@ -56,7 +56,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link RawMetric} proxy on the created {@link Class}. */ - @objid ("a31403ed-934a-4149-a32a-e3c885ef5e53") + @objid ("d4cd1102-ac28-48a5-9ce4-0f10baa5264c") public static RawMetric create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, RawMetric.STEREOTYPE_NAME); @@ -64,36 +64,34 @@ 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. */ - @objid ("405aed99-a3c0-4af9-8787-f91150dd932a") + @objid ("be6befc5-ccf6-4a70-858d-f2368ce8ad7f") public static RawMetric instantiate(final Class obj) { return RawMetric.canInstantiate(obj) ? new RawMetric(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("3382041f-5d2b-48be-9b50-ad550fa2cb26") + @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 ("e7358dd8-4afc-4bd7-9c6a-f18e7f37fbdd") + @objid ("5b379b00-e9ba-414f-b768-50b988dde269") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -110,17 +108,16 @@ 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 ("b6ae41a0-f8b5-478b-b023-a8a0fd5fb35a") + @objid ("bbf23b94-3bc6-4832-8b2d-bd9175bb2205") @Override public Class getElement() { return (Class)super.getElement(); } - @objid ("f3dcafdb-e90f-48ed-b278-c69fce40c93f") + @objid ("f66de758-79dd-4e6e-9a7f-9823da438667") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -134,23 +131,23 @@ public List getChilds() { return result; } - @objid ("8d0e5f9e-42f7-4367-a542-a8a51124257a") + @objid ("b9009015-7b92-44bc-a4c9-61a7569595df") protected RawMetric(final Class elt) { super(elt); } @objid ("9403e058-8f41-410e-a153-e595cb37e02b") public static final class MdaTypes { - @objid ("0dceeff1-d8af-4d59-bd0c-213b14279e83") + @objid ("1305e911-c2bf-4c5f-a4f2-3650b781aad6") public static Stereotype STEREOTYPE_ELT; - @objid ("ba922f05-462e-46b8-bcf4-9c90fadd5898") + @objid ("9361c18d-f5b9-409c-9dbb-af5ecfafad89") private static Stereotype MDAASSOCDEP; - @objid ("8dcb4b5f-2077-459e-806f-a909c28bda80") + @objid ("ce140ad5-cf5b-48de-91bc-35aefe2180b9") private static TagType MDAASSOCDEP_ROLE; - @objid ("b5fe395d-9713-4bfd-b9de-44ddedb8d1fd") + @objid ("59998c20-cbef-4f50-8748-66405c8d2862") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "01e0501b-37c4-4e17-af3c-6a30e6ad9290"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -158,11 +155,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 539fbf94..56a7bc7b 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.metricmodel.standard.class_; @@ -36,7 +36,7 @@ */ @objid ("f6e35952-0df3-4920-a24c-8a8b737ff791") public class RawMetricContext extends MetricContext { - @objid ("25424f06-f250-4dd6-8f91-cac4dc386fb2") + @objid ("42fc8db2-b39d-4ef7-a5c5-eb8ddee8bf1f") public static final String STEREOTYPE_NAME = "RawMetricContext"; /** @@ -47,7 +47,7 @@ public class RawMetricContext extends MetricContext { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("6638d9ca-f289-4996-9448-3c0f1237fdd5") + @objid ("b9bbdad3-c592-493c-932b-86fb50ff738e") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, RawMetricContext.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link RawMetricContext} proxy on the created {@link Class}. */ - @objid ("60418ca9-142f-400a-be2f-2dede3565559") + @objid ("63b8b4a2-fd76-4a21-a512-b9462993fa66") public static RawMetricContext create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, RawMetricContext.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("3c3ba4af-3667-4c18-9bcd-d1efa1f3a2c5") + @objid ("02a4d41d-ace1-4dc4-a82e-b6a0f97270c0") public static RawMetricContext instantiate(final Class obj) { return RawMetricContext.canInstantiate(obj) ? new RawMetricContext(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("3d6801bb-245d-44c1-9e5b-1da6081dd8be") + @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 ("7d674390-f595-4162-b099-d14aea34147e") + @objid ("d6675941-21fb-4601-b118-aa08cf523a90") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,11 +109,10 @@ 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 ("8ae0b498-8099-4041-bb75-f00006ca574b") + @objid ("0965f91b-11c7-49bd-811c-a375eb8dc8e6") @Override public Class getElement() { return (Class)super.getElement(); @@ -125,8 +122,9 @@ public Class getElement() { * Get the value of the 'sensor' role.

* Role description: * null + * */ - @objid ("788b7b2a-1029-4f6d-9460-e9040b936f39") + @objid ("f57ded58-87a8-44a9-8dd3-c78a45f49f62") public Sensor getSensor() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(RawMetricContext.MdaTypes.MDAASSOCDEP) @@ -138,7 +136,7 @@ public Sensor getSensor() { return null; } - @objid ("b2087874-9a43-4bde-bc8d-f8e3a2b76e01") + @objid ("63636a93-2897-4fd6-9af8-b8b5ca6037a3") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -148,8 +146,9 @@ public int hashCode() { * Set the value of the 'sensor' role.

* Role description: * null + * */ - @objid ("4c5174e0-2686-4ccc-8925-9f5d8160be0e") + @objid ("73965773-5967-4622-b531-c96e86367bbd") public void setSensor(final Sensor obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -177,23 +176,23 @@ public List getChilds() { return result; } - @objid ("795c7a53-c54b-49bc-a154-273f42c2edb1") + @objid ("e54942ab-7fc6-4934-a6ec-498174d76aea") protected RawMetricContext(final Class elt) { super(elt); } @objid ("38465a8d-1a40-453e-9f7e-e6b706813cd4") public static final class MdaTypes { - @objid ("0805e87b-d6dd-4000-a23a-5da266d4de6a") + @objid ("3a9ccda3-13cd-4d53-b5fe-4817b2488ef0") public static Stereotype STEREOTYPE_ELT; - @objid ("58b8e0b6-a250-4bd7-bce4-3bf3b3196997") + @objid ("c5522c94-365a-4bf0-83cb-9982034d4fab") private static Stereotype MDAASSOCDEP; - @objid ("373e4a8a-0049-49d8-8f28-0dd341dc3089") + @objid ("a8dac70a-b3f2-4d8a-bf6a-d7526ae8d3de") private static TagType MDAASSOCDEP_ROLE; - @objid ("f43f2d0e-ce7d-4591-822d-7c51830b633e") + @objid ("057a27f6-54e0-48cc-b7a4-aab4dd358aa3") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "e344a491-8e64-437e-81c2-ca5e85a6daf9"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -201,11 +200,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 3b933cd9..23db7686 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.metricmodel.standard.class_; @@ -40,19 +40,19 @@ */ @objid ("98c5a57b-bbdd-4a3e-ab7c-6767c10ff2bd") public class Schedule extends FeatureClass { - @objid ("f930370f-021a-4aa5-b97e-4c8729a099b8") + @objid ("b3ef5251-fb66-4ea1-806e-d9d956ae549d") public static final String STEREOTYPE_NAME = "Schedule"; - @objid ("6f27e9bc-4627-4613-9890-05c1e39295ef") + @objid ("fa189f2d-62fa-46af-a5d2-c48dbb235bf2") public static final String END_TAGTYPE = "end"; - @objid ("de691dff-3a0f-4006-a2fc-3af09e2c7509") + @objid ("80f601bf-6c32-436f-b923-6682f37081ba") public static final String INTERVAL_TAGTYPE = "interval"; - @objid ("8a18e8b0-2118-4bee-b678-44651640e97f") + @objid ("b5914155-f277-4258-ba83-bf1c985aa185") public static final String REPETITIONS_TAGTYPE = "repetitions"; - @objid ("8bb187c2-b320-43f9-97a8-5d19e53848bb") + @objid ("c8689aeb-1f4a-423b-a35d-fcaa7db77e47") public static final String START_TAGTYPE = "start"; /** @@ -63,7 +63,7 @@ public class Schedule extends FeatureClass { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("077fe772-37fd-423b-8c2d-7053f2731c40") + @objid ("de4acbd0-5450-4990-853b-385a8ec3d4ee") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, Schedule.STEREOTYPE_NAME)); } @@ -73,7 +73,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link Schedule} proxy on the created {@link Class}. */ - @objid ("0741f501-2910-4d1a-9e5d-c3a76fb9fe88") + @objid ("71e907b1-9ca3-4c23-832a-8d7525d68690") public static Schedule create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, Schedule.STEREOTYPE_NAME); @@ -81,36 +81,34 @@ 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. */ - @objid ("57f6dc5b-63ff-4a41-a31c-00fa2459a95b") + @objid ("7aa4399b-5619-40e6-8a17-06bc2aece5de") public static Schedule instantiate(final Class obj) { return Schedule.canInstantiate(obj) ? new Schedule(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("0abf3163-9964-45b5-a17b-c5de56aacf17") + @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 ("9fce49e3-3e21-4c90-94c0-7910e477ef93") + @objid ("f949b157-4d4b-49f3-8110-974f75766f41") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -127,11 +125,10 @@ 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 ("372830c6-155b-49a2-a364-4ffb3556affd") + @objid ("73f34d25-99e2-4068-8afa-0c7179149e1e") @Override public Class getElement() { return (Class)super.getElement(); @@ -142,7 +139,7 @@ public Class getElement() { *

Property description: *
null

*/ - @objid ("304b06d0-a828-4184-b0fe-e16956a35168") + @objid ("5524cb6f-36c0-4942-9365-6143ed35e90f") public String getEnd() { return this.elt.getTagValue(Schedule.MdaTypes.END_TAGTYPE_ELT); } @@ -152,7 +149,7 @@ public String getEnd() { *

Property description: *
null

*/ - @objid ("ad9f2721-7d47-42b7-ad51-15bc0a412554") + @objid ("806dc202-1bd8-478b-8a5b-d75a1db464d7") public String getInterval() { return this.elt.getTagValue(Schedule.MdaTypes.INTERVAL_TAGTYPE_ELT); } @@ -162,7 +159,7 @@ public String getInterval() { *

Property description: *
null

*/ - @objid ("4d2e02ca-2feb-432d-9142-42a6f2cca18b") + @objid ("c95c41c9-ade0-42ef-9b2a-92d4414ebad4") public String getRepetitions() { return this.elt.getTagValue(Schedule.MdaTypes.REPETITIONS_TAGTYPE_ELT); } @@ -172,7 +169,7 @@ public String getRepetitions() { *

Property description: *
null

*/ - @objid ("b74deeb3-6ea1-4575-98d9-b1ce40f0f614") + @objid ("bdc0452c-bd1e-411a-b8af-fbaf99c6c2ee") public String getStart() { return this.elt.getTagValue(Schedule.MdaTypes.START_TAGTYPE_ELT); } @@ -181,8 +178,9 @@ public String getStart() { * Get the value of the 'timeUnit' role.

* Role description: * null + * */ - @objid ("215d2850-04f8-4c15-8030-e49770bbb055") + @objid ("d35441e4-e274-4b86-a9dd-50ee84bfe9e7") public Unit getTimeUnit() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(Schedule.MdaTypes.MDAASSOCDEP) @@ -198,7 +196,7 @@ public Unit getTimeUnit() { return null; } - @objid ("74d9a1ac-11dd-47d7-b14d-f13394ed00cb") + @objid ("54f06df0-a969-4ebc-b4fc-ce459c50a693") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -209,7 +207,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("2aafec3b-3af1-40a9-a26c-f2f4672bd147") + @objid ("89bf60b7-fed2-465b-b410-308548739516") public void setEnd(final String value) { this.elt.putTagValue(Schedule.MdaTypes.END_TAGTYPE_ELT, value); } @@ -219,7 +217,7 @@ public void setEnd(final String value) { *

Property description: *
null

*/ - @objid ("c9c0efb2-324a-42b1-81eb-5ba997b16b2e") + @objid ("f12ccc40-c7de-476a-a38d-d7992d74612d") public void setInterval(final String value) { this.elt.putTagValue(Schedule.MdaTypes.INTERVAL_TAGTYPE_ELT, value); } @@ -229,7 +227,7 @@ public void setInterval(final String value) { *

Property description: *
null

*/ - @objid ("570db2ff-70d0-4209-bbc4-ce210f1963af") + @objid ("2831ddc5-97d6-4b10-9b66-d96a0f105d1c") public void setRepetitions(final String value) { this.elt.putTagValue(Schedule.MdaTypes.REPETITIONS_TAGTYPE_ELT, value); } @@ -239,7 +237,7 @@ public void setRepetitions(final String value) { *

Property description: *
null

*/ - @objid ("9043db37-3487-4c63-be35-42a13fcfda96") + @objid ("4fbab203-2bb7-4ca8-aecd-c74ebb1d22c3") public void setStart(final String value) { this.elt.putTagValue(Schedule.MdaTypes.START_TAGTYPE_ELT, value); } @@ -248,8 +246,9 @@ public void setStart(final String value) { * Set the value of the 'timeUnit' role.

* Role description: * null + * */ - @objid ("43e5c858-7cb5-4457-8de3-9d0198f9b543") + @objid ("70c15678-4607-449d-a0f4-a38dcb4f5f13") public void setTimeUnit(final Unit obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -277,35 +276,35 @@ public List getChilds() { return result; } - @objid ("bb39a091-b7a9-461a-8bdf-532a1f32ffe1") + @objid ("ac3c0d98-a494-4b39-8577-c4aa92e3ca95") protected Schedule(final Class elt) { super(elt); } @objid ("0e156ba5-618a-44cd-8a09-9cb3cbf093ee") public static final class MdaTypes { - @objid ("dbc7a8b5-5cda-4359-a796-0481ed516155") + @objid ("942e36f3-1a32-4ef8-93ea-afe1f06d706e") public static Stereotype STEREOTYPE_ELT; - @objid ("cebfde7c-bf32-43eb-9f15-8ac2cdc685e7") + @objid ("f38997e0-61c6-4424-ae68-f9ffa3cc78b5") public static TagType START_TAGTYPE_ELT; - @objid ("97818de9-b7e0-44c0-bc41-fad6c561e9ca") + @objid ("7e08b206-4a2b-47c0-bf1f-e1ad1cd12832") public static TagType END_TAGTYPE_ELT; - @objid ("f38ccd90-755a-4fc3-8066-842fe0d60590") + @objid ("b9b761b0-1012-4996-9fe8-d1eda21d396d") public static TagType REPETITIONS_TAGTYPE_ELT; - @objid ("d0e7dec9-b454-4f3a-90d5-4a8190a60644") + @objid ("2e64e040-8fe0-42ad-a2e6-6cf38ba2ce77") public static TagType INTERVAL_TAGTYPE_ELT; - @objid ("61821f78-18bf-41f5-817d-00c64ce8683e") + @objid ("a4b7ebe1-0157-46db-b831-42ffb54ade52") private static Stereotype MDAASSOCDEP; - @objid ("1b9b6c1f-b36c-4e1c-a756-762210c0b64d") + @objid ("51243233-1d1a-4570-8cf4-42db92d7817a") private static TagType MDAASSOCDEP_ROLE; - @objid ("45eda8d7-42dd-4af4-ad01-1386017cd946") + @objid ("5925b81b-cc42-46aa-88cb-26c28f64deda") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "cad43b0e-412b-4e89-9a37-e7e1cda6ca29"); START_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "798817d7-1858-433c-924c-d2de04defbb5"); @@ -317,11 +316,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 53ab7d4b..c9e4336a 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.metricmodel.standard.class_; @@ -40,19 +40,19 @@ */ @objid ("8bc634f0-656d-49d2-ba18-28050cd2f9dd") public class Window extends FeatureClass { - @objid ("d70f1563-dcc6-48a5-910c-7704cacf504f") + @objid ("46ab6551-e629-488d-8188-586470228884") public static final String STEREOTYPE_NAME = "Window"; - @objid ("a4109b5f-d91c-421a-bc46-6384618e3591") + @objid ("fb88dfed-bfe5-4b57-8ff9-9dcc8106a644") public static final String MEASUREMENTSIZE_TAGTYPE = "measurementSize"; - @objid ("c8abf10c-c471-4f62-b023-39655efb0462") + @objid ("78568c9d-283a-4275-933f-efa7cd9be7a9") public static final String SIZETYPE_TAGTYPE = "sizeType"; - @objid ("0de89e9a-927c-4e3b-84cc-d9889037d9da") + @objid ("086da270-fe2c-407a-b78d-b7e2de1c7249") public static final String TIMESIZE_TAGTYPE = "timeSize"; - @objid ("b441370e-852d-468d-aa3b-4c15be5a4402") + @objid ("7ca560d0-d3b1-42cd-80eb-6fb95d889075") public static final String WINDOWTYPE_TAGTYPE = "windowType"; /** @@ -63,7 +63,7 @@ public class Window extends FeatureClass { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("7d9e4e9d-e939-47c3-9732-6ca0983bbb68") + @objid ("b02dd077-0ca1-4f18-aa96-a0c96e9a12d2") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, Window.STEREOTYPE_NAME)); } @@ -73,7 +73,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link Window} proxy on the created {@link Class}. */ - @objid ("25dbe448-3395-4900-b325-1c779563308d") + @objid ("1e5654f8-7a3a-4fc5-b255-3f3c342922f7") public static Window create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, Window.STEREOTYPE_NAME); @@ -81,36 +81,34 @@ 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. */ - @objid ("a1209a97-5b5f-4419-992a-0e241c876a4d") + @objid ("bc11d6b8-8c43-4a89-9315-a0a44d348f69") public static Window instantiate(final Class obj) { return Window.canInstantiate(obj) ? new Window(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("567f9dad-fb98-4536-92e7-4b4cebb70d63") + @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 ("ab388004-209a-4364-a51b-7d9bd9720e79") + @objid ("dc8b208a-f929-4754-80cd-bf9510ea00c2") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -127,11 +125,10 @@ 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 ("0bf68ab9-c75f-4c66-9fde-01d1715411c4") + @objid ("8b38993e-aa9d-4dba-ab76-81c0cbda37c4") @Override public Class getElement() { return (Class)super.getElement(); @@ -142,7 +139,7 @@ public Class getElement() { *

Property description: *
null

*/ - @objid ("4690194c-f853-4183-b090-c30e16939607") + @objid ("ded79448-262e-4f78-92d5-20fb17b0fc03") public String getMeasurementSize() { return this.elt.getTagValue(Window.MdaTypes.MEASUREMENTSIZE_TAGTYPE_ELT); } @@ -152,7 +149,7 @@ public String getMeasurementSize() { *

Property description: *
null

*/ - @objid ("d3dd9e00-960c-45ef-b3fa-a6e5ba99858b") + @objid ("effc4608-29c8-4ac6-a3c2-83ab31f5903e") public String getSizeType() { return this.elt.getTagValue(Window.MdaTypes.SIZETYPE_TAGTYPE_ELT); } @@ -162,7 +159,7 @@ public String getSizeType() { *

Property description: *
null

*/ - @objid ("c3110bd6-c1a4-452e-80ca-32b5b2304cb2") + @objid ("78cda094-3bca-499d-9ca0-b65e80eabcc9") public String getTimeSize() { return this.elt.getTagValue(Window.MdaTypes.TIMESIZE_TAGTYPE_ELT); } @@ -171,8 +168,9 @@ public String getTimeSize() { * Get the value of the 'timeUnit' role.

* Role description: * null + * */ - @objid ("68ed7b7d-f1fc-433e-a1a3-317f1cebf9b7") + @objid ("08eba475-7efa-4f71-ae3f-7ff491afa4ad") public Unit getTimeUnit() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(Window.MdaTypes.MDAASSOCDEP) @@ -193,12 +191,12 @@ public Unit getTimeUnit() { *

Property description: *
null

*/ - @objid ("fd303364-2e0e-4606-99df-0bfdeb6e97e5") + @objid ("692c8977-24f5-49c6-b408-a541a8656a5d") public String getWindowType() { return this.elt.getTagValue(Window.MdaTypes.WINDOWTYPE_TAGTYPE_ELT); } - @objid ("f7282a2b-d93a-47b0-a8b6-bd5ad754ed64") + @objid ("63238798-c2db-4874-8a41-822bacac1aed") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -209,7 +207,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("b6cbc3f3-fde9-46fd-890c-94d4f94787fd") + @objid ("befdcdee-ceb6-4de4-9b0f-0eefc9b02848") public void setMeasurementSize(final String value) { this.elt.putTagValue(Window.MdaTypes.MEASUREMENTSIZE_TAGTYPE_ELT, value); } @@ -219,7 +217,7 @@ public void setMeasurementSize(final String value) { *

Property description: *
null

*/ - @objid ("56e9b71f-3917-409d-9daa-1a56d213a616") + @objid ("f9c4e4ff-3c10-4149-ab2e-7522560d7f38") public void setSizeType(final String value) { this.elt.putTagValue(Window.MdaTypes.SIZETYPE_TAGTYPE_ELT, value); } @@ -229,7 +227,7 @@ public void setSizeType(final String value) { *

Property description: *
null

*/ - @objid ("0024ae2e-69c2-41ce-af01-d38a4f144588") + @objid ("40fdb669-ff65-423f-ae75-f39340ea945c") public void setTimeSize(final String value) { this.elt.putTagValue(Window.MdaTypes.TIMESIZE_TAGTYPE_ELT, value); } @@ -238,8 +236,9 @@ public void setTimeSize(final String value) { * Set the value of the 'timeUnit' role.

* Role description: * null + * */ - @objid ("72f0af24-868c-40d9-825e-44c21d63974a") + @objid ("1e8a4445-473e-4c05-a23c-7e1b8d262aa8") public void setTimeUnit(final Unit obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -264,7 +263,7 @@ public void setTimeUnit(final Unit obj) { *

Property description: *
null

*/ - @objid ("12532d60-0d4d-4b0b-a125-f904db84a2ef") + @objid ("272b646f-1455-430b-9b9d-2a40ae129680") public void setWindowType(final String value) { this.elt.putTagValue(Window.MdaTypes.WINDOWTYPE_TAGTYPE_ELT, value); } @@ -277,35 +276,35 @@ public List getChilds() { return result; } - @objid ("010ef53a-69e3-486e-9d5f-3b93db3bcfcc") + @objid ("f0b23977-8cb1-486d-b332-438823dc3950") protected Window(final Class elt) { super(elt); } @objid ("0f238069-a54e-4f1f-ae34-e69145b5ddda") public static final class MdaTypes { - @objid ("b22985db-7bdb-458b-b2c8-8f9cf5a7c402") + @objid ("0279002e-35fe-4e1e-9665-e4c26cf8b5d8") public static Stereotype STEREOTYPE_ELT; - @objid ("01f40510-b2ca-4fa3-9d61-7062876a1bd1") + @objid ("e20fe1b2-2c5f-41e9-a38c-8958488d1052") public static TagType WINDOWTYPE_TAGTYPE_ELT; - @objid ("fa296517-a3d9-4db9-ab62-5b9ca2d999a2") + @objid ("03b8c33f-a67c-43c3-be9c-e064aed26e84") public static TagType SIZETYPE_TAGTYPE_ELT; - @objid ("0e6ae1a6-5bfc-488e-9035-47507018472b") + @objid ("9364e2fa-22e2-4f21-a4a9-66ab81e28943") public static TagType MEASUREMENTSIZE_TAGTYPE_ELT; - @objid ("756f5ed7-ab4a-4419-bc9b-fc5c00cb3d7f") + @objid ("b3270500-f817-4091-a584-a6e4515637f7") public static TagType TIMESIZE_TAGTYPE_ELT; - @objid ("183ae478-89e6-4700-aa4a-6a85529b528a") + @objid ("e24fff5e-62eb-40fa-9b96-2cb1ac911091") private static Stereotype MDAASSOCDEP; - @objid ("1e2ee73b-e8b9-4a14-ac3b-093607922d97") + @objid ("590f1111-28ad-4dcd-b351-db7774a208a7") private static TagType MDAASSOCDEP_ROLE; - @objid ("04e77aa9-5dd4-4432-a7d1-e4d95ac73c8f") + @objid ("a5b01e2c-8d1b-4d19-9a59-b7299300d4bf") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "33bb8dc7-688c-4f64-97da-a3fcddbddc20"); WINDOWTYPE_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "cd7ae4c0-9f79-4384-b562-1bfdfa78754a"); @@ -317,11 +316,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 157d60d9..895e0681 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.metricmodel.standard.component; @@ -36,13 +36,13 @@ */ @objid ("a0dafd4c-3a94-4343-86b0-316952020ebd") public class Sensor extends SoftwareComponent { - @objid ("d312831e-0cf6-493e-a7e9-fa268dd23028") + @objid ("43453058-86d0-4218-9991-ae6477978d6d") public static final String STEREOTYPE_NAME = "Sensor"; - @objid ("4cf8de70-4149-4762-b9ce-52a26ab4ec03") + @objid ("b2319a0f-945c-440c-b9e2-b1fca090f19a") public static final String CONFIGURATION_TAGTYPE = "configuration"; - @objid ("7bf6dec1-241c-469b-8c88-21692fbd3794") + @objid ("b1ee1cb0-2335-43ab-8aae-3ed3af8d2098") public static final String ISPUSH_TAGTYPE = "isPush"; /** @@ -53,7 +53,7 @@ public class Sensor extends SoftwareComponent { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("2600fa70-892c-45a7-8299-d46dab91dca3") + @objid ("c7492944-54bf-4adc-abd8-64d89486c325") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Component) && ((Component) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, Sensor.STEREOTYPE_NAME)); } @@ -63,7 +63,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link Sensor} proxy on the created {@link Component}. */ - @objid ("8cd79fcf-ffec-447a-bd2b-97641e1e05a4") + @objid ("62bd2308-f3c1-42b6-98d8-0061caf3b38d") public static Sensor create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Component"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, Sensor.STEREOTYPE_NAME); @@ -71,36 +71,34 @@ 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. */ - @objid ("4b7c6b60-3de7-4a11-a02b-4ae1ae136edc") + @objid ("16aad77f-d076-445d-9be6-38b741e834cb") public static Sensor instantiate(final Component obj) { return Sensor.canInstantiate(obj) ? new Sensor(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("e612869f-8328-475d-be50-c577f9e7400b") + @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 ("ada1b138-6758-4116-b61f-b3d17964f7f2") + @objid ("96fec0a9-e31f-44ed-ae20-e840d5cf9642") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -121,23 +119,22 @@ public boolean equals(final Object obj) { *

Property description: *
null

*/ - @objid ("0e75153f-6f25-420a-8dc7-733cfdfa3a21") + @objid ("42a1f665-5469-4c17-8d67-759ff8f9a9f2") public String getConfiguration() { return this.elt.getTagValue(Sensor.MdaTypes.CONFIGURATION_TAGTYPE_ELT); } /** - * Get the underlying {@link Component}. - * + * Get the underlying {@link Component}. * @return the Component represented by this proxy, never null. */ - @objid ("b242c650-6bc3-4028-8df4-921500084b11") + @objid ("b2ae3b11-a69b-4917-94a5-875ab2c5ee99") @Override public Component getElement() { return (Component)super.getElement(); } - @objid ("0adae025-9bb3-4f8c-9850-99763b7149dc") + @objid ("489cb682-1763-4002-8f3f-8373b697c548") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -148,7 +145,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("91b3a11b-dbd5-46c4-b6fb-c7e85303f8c5") + @objid ("15f91a36-b096-4e15-a7a5-328d0ad4e28b") public boolean isIsPush() { return this.elt.isTagged(Sensor.MdaTypes.ISPUSH_TAGTYPE_ELT); } @@ -158,7 +155,7 @@ public boolean isIsPush() { *

Property description: *
null

*/ - @objid ("f914497c-f7fb-4071-98c4-8173728210ae") + @objid ("ed09d4db-f1d2-452f-bf25-6a69a961a0db") public void setConfiguration(final String value) { this.elt.putTagValue(Sensor.MdaTypes.CONFIGURATION_TAGTYPE_ELT, value); } @@ -168,7 +165,7 @@ public void setConfiguration(final String value) { *

Property description: *
null

*/ - @objid ("9eb9e257-ec0e-468c-abd2-372d74134a19") + @objid ("9c976f24-9f24-4bae-aff9-b67f2971f397") public void setIsPush(final boolean value) { if (value) CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createTaggedValue(Sensor.MdaTypes.ISPUSH_TAGTYPE_ELT, this.elt); @@ -184,29 +181,29 @@ public List getChilds() { return result; } - @objid ("c424968f-9583-4b90-86ef-24a0242a674f") + @objid ("65960c1f-f9b3-4ad3-b4b6-0101851770da") protected Sensor(final Component elt) { super(elt); } @objid ("ab2c122d-31c1-421d-919a-92957fbd08bd") public static final class MdaTypes { - @objid ("eea6a7ee-f414-4888-b8bc-3decdaf254fa") + @objid ("4c3bf2a9-c874-428b-a6e4-950e7f2665a1") public static Stereotype STEREOTYPE_ELT; - @objid ("37425679-781e-45df-bd6d-6648a4828d33") + @objid ("795e95c8-5dbc-4175-8879-7d83ce181e99") public static TagType CONFIGURATION_TAGTYPE_ELT; - @objid ("edbcea37-c873-47a9-9ded-b976b548602a") + @objid ("cfa018a9-3856-41f6-9af7-8fb51d1d1020") public static TagType ISPUSH_TAGTYPE_ELT; - @objid ("d03d23b3-6cdc-45f3-8d60-3d9fac499c85") + @objid ("f25d1922-20fa-4039-9588-91b673a1ec86") private static Stereotype MDAASSOCDEP; - @objid ("e383da68-f21f-4949-a43e-654b8e1c7af0") + @objid ("1190934d-b114-42ee-b986-c61a30afa242") private static TagType MDAASSOCDEP_ROLE; - @objid ("9274dc19-b744-470c-927e-bf534a6e2185") + @objid ("b5bf86a7-32f2-4376-8f03-7460dfdf2081") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "d130006b-ebe5-4a5f-818a-abc63742cf56"); CONFIGURATION_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "326b1fa3-0a38-48be-aace-c126d5979004"); @@ -216,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/instance/MetricInstance.java b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/instance/MetricInstance.java index 1e4204de..5fba66c7 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.metricmodel.standard.instance; @@ -40,7 +40,7 @@ */ @objid ("5336bcd3-259d-4b82-a7c1-f1ce23e0ed30") public class MetricInstance extends FeatureInstance { - @objid ("0a1284cb-af28-41a8-8c4d-b01eabc89e04") + @objid ("96028051-93e8-4343-ba06-e2d5863912cc") public static final String STEREOTYPE_NAME = "MetricInstance"; /** @@ -51,7 +51,7 @@ public class MetricInstance extends FeatureInstance { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("24ab0a8c-6918-4b5d-a536-1563a1ce6be7") + @objid ("fc9a9ac4-fc29-4d51-b833-31a410a0a06a") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Instance) && ((Instance) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, MetricInstance.STEREOTYPE_NAME)); } @@ -61,7 +61,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link MetricInstance} proxy on the created {@link Instance}. */ - @objid ("723a40e5-aee1-44f0-8be8-1b4c4b3e083d") + @objid ("eb8b4df6-d96f-4c1b-92e6-7878279ecb46") public static MetricInstance create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Instance"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, MetricInstance.STEREOTYPE_NAME); @@ -69,41 +69,40 @@ 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. */ - @objid ("276ecf97-280b-4b0e-8c1e-d9f69b365a07") + @objid ("7f6935f5-8593-4c2c-b1e6-53363d8d1163") public static MetricInstance instantiate(final Instance obj) { return MetricInstance.canInstantiate(obj) ? new MetricInstance(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("cc76e179-3270-429e-8d39-7056ad0f3f15") + @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 ("332dd208-54a7-42ab-a89c-e49bb2d1efe6") + @objid ("6ce3f047-8ba1-49a9-9d92-2e543d90e7cc") public void addComposingMetricInstances(final MetricInstance obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -113,7 +112,7 @@ public void addComposingMetricInstances(final MetricInstance obj) { } } - @objid ("52f08fa8-9489-48bc-a5a5-006576145191") + @objid ("ba5f698e-db24-474f-8c7b-3d9dfe58947e") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -133,8 +132,9 @@ public boolean equals(final Object obj) { * Get the values of the 'composingMetricInstances' role.

* Role description: * null + * */ - @objid ("6726bde9-c8ed-4835-9f52-8bb376f450e7") + @objid ("edef1622-ff74-41c6-9b59-94fad120d248") public List getComposingMetricInstances() { List results = new ArrayList<>(); for (Dependency d : this.elt.getImpactedDependency()) { @@ -148,11 +148,10 @@ public List getComposingMetricInstances() { } /** - * Get the underlying {@link Instance}. - * + * Get the underlying {@link Instance}. * @return the Instance represented by this proxy, never null. */ - @objid ("39257fe5-f3cc-4cca-9673-cbdb555d4cc1") + @objid ("03f3eb52-73b4-4f14-8c7e-9dc30e137f64") @Override public Instance getElement() { return (Instance)super.getElement(); @@ -162,8 +161,9 @@ public Instance getElement() { * Get the value of the 'metricContext' role.

* Role description: * null + * */ - @objid ("39eb7683-b80f-486d-9c3c-41d67eb03820") + @objid ("0ee52127-1d0d-45bf-9f23-0d2caa382436") public MetricContext getMetricContext() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(MetricInstance.MdaTypes.MDAASSOCDEP) @@ -181,8 +181,9 @@ public MetricContext getMetricContext() { * Get the value of the 'objectBinding' role.

* Role description: * null + * */ - @objid ("59622d71-f5a0-484e-8641-b56d153bb103") + @objid ("a96767a1-3152-4086-9c12-802f30909cd2") public MetricObjectBinding getObjectBinding() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(MetricInstance.MdaTypes.MDAASSOCDEP) @@ -194,7 +195,7 @@ public MetricObjectBinding getObjectBinding() { return null; } - @objid ("7701a45f-9df0-4720-8d7f-76d9013686ef") + @objid ("894859eb-1537-416d-b48d-a89ccf21f1e5") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -204,8 +205,9 @@ public int hashCode() { * Remove a value from 'composingMetricInstances' role.

* Role description: * null + * */ - @objid ("a25277f5-9ee4-49ca-848f-a93d71d40320") + @objid ("6b66a046-5b5e-4f9b-9e1a-9d46f9bd3341") public boolean removeComposingMetricInstances(final MetricInstance obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getImpactedDependency())) { @@ -223,8 +225,9 @@ public boolean removeComposingMetricInstances(final MetricInstance obj) { * Set the value of the 'metricContext' role.

* Role description: * null + * */ - @objid ("4cb809d0-2a61-4051-a8fe-8ce3fca09dcf") + @objid ("6918273b-38e9-4be2-a3a0-a9320923bd88") public void setMetricContext(final MetricContext obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -248,8 +251,9 @@ public void setMetricContext(final MetricContext obj) { * Set the value of the 'objectBinding' role.

* Role description: * null + * */ - @objid ("d0e235b8-f1d7-4a60-a13e-6db175cdce71") + @objid ("eb57bcf0-9386-4eba-bb34-70d43d537fbe") public void setObjectBinding(final MetricObjectBinding obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -277,23 +281,23 @@ public List getChilds() { return result; } - @objid ("fd537018-7e32-420f-8901-a8f377c1708d") + @objid ("9eb084d1-2f83-4e55-bd3a-b5570be145c1") protected MetricInstance(final Instance elt) { super(elt); } @objid ("45ad6582-8f92-4a4c-8f72-6829ca4fe86b") public static final class MdaTypes { - @objid ("76670606-f4a7-4bb0-8b86-c29fee048a4d") + @objid ("f4965933-546f-4187-8aee-4aac5a94da2f") public static Stereotype STEREOTYPE_ELT; - @objid ("a61fdefb-7a5e-4b59-85f1-984fea0fb3e3") + @objid ("73758d0f-6558-4bef-ac7b-7925ef0ccf89") private static Stereotype MDAASSOCDEP; - @objid ("fc01c3ec-11b0-415a-8a7f-e1dfaaa3357a") + @objid ("ba4b39e4-b165-4217-a2be-e289465a2099") private static TagType MDAASSOCDEP_ROLE; - @objid ("08a50319-4164-4ca2-b6de-3fd89ccc9cda") + @objid ("c76cddfa-53c7-44a0-84e7-9a617906a90f") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "52b2d53f-cfda-455d-ae3d-dd97fed6fa84"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -301,11 +305,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 39e076ac..4d2911bb 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.metricmodel.standard.package_; @@ -16,6 +16,7 @@ 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; @@ -40,7 +41,7 @@ */ @objid ("fc62e562-4151-4b10-80da-5289e792c7a8") public class MetricInstanceModel extends MetricModel { - @objid ("63e96686-1b4a-4b96-9358-7497fe7bb951") + @objid ("5befef65-eb8d-4e95-8227-413bb2697103") public static final String STEREOTYPE_NAME = "MetricInstanceModel"; /** @@ -51,7 +52,7 @@ public class MetricInstanceModel extends MetricModel { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("eb30c647-738f-4be1-8f91-6c4989b91335") + @objid ("08a2667c-d60c-47ec-b5f7-2a31b55adea9") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Package) && ((Package) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, MetricInstanceModel.STEREOTYPE_NAME)); } @@ -61,7 +62,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link MetricInstanceModel} proxy on the created {@link Package}. */ - @objid ("6d983c7f-08f1-4b2a-ae4c-fb142e8720f0") + @objid ("dfdfdc27-78ab-4eeb-8acf-20c0e2e910b9") public static MetricInstanceModel create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Package"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, MetricInstanceModel.STEREOTYPE_NAME); @@ -69,41 +70,40 @@ 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. */ - @objid ("9d681143-1068-42b2-a6f1-bb170c1123e6") + @objid ("d846ad73-6b50-40f2-a761-34d4d853097a") public static MetricInstanceModel instantiate(final Package obj) { return MetricInstanceModel.canInstantiate(obj) ? new MetricInstanceModel(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("792bff01-1043-45e1-aed2-480f74d27e29") + @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 ("4e955435-8fb5-4843-b32b-472a20f4c18d") + @objid ("bf911d29-f0ef-4169-8f46-fb0bdfec061c") public void addBindings(final MetricObjectBinding obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -113,14 +113,15 @@ public void addBindings(final MetricObjectBinding obj) { * Add a value to the 'metricInstances' role.

* Role description: * null + * */ - @objid ("67742ea1-81bc-4dfc-84ef-caa8822dcd14") + @objid ("b55af172-3bc6-4345-92d1-92d9f9cd4eaa") public void addMetricInstances(final MetricInstance obj) { if (obj!=null) ((Package) this.elt).getDeclared().add(obj.getElement()); } - @objid ("3a0c9d4c-c9e6-4475-b4ae-10a36c28e7a5") + @objid ("97daddcb-ff9b-43f9-913b-124e82cb503a") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -140,23 +141,23 @@ public boolean equals(final Object obj) { * Get the values of the 'bindings' role.

* Role description: * null + * */ - @objid ("e0937f69-e948-45c8-8df3-51047295f980") + @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 ("7b60d9c6-7a94-41f4-8862-c9306ed3bb9b") + @objid ("9204ca65-2847-4418-badd-3b34b9171e59") @Override public Package getElement() { return (Package)super.getElement(); @@ -166,16 +167,17 @@ public Package getElement() { * Get the values of the 'metricInstances' role.

* Role description: * null + * */ - @objid ("573f0f1b-f524-432b-bbf0-773ae71fb966") + @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); } @@ -183,8 +185,9 @@ public List getMetricInstances() { * Get the value of the 'type' role.

* Role description: * null + * */ - @objid ("28b6265a-5140-4c11-a05e-1a46aa919f28") + @objid ("e7de06f5-ffcb-4b0f-8120-e9c89e2a24c7") public MetricTypeModel getType() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(MetricInstanceModel.MdaTypes.MDAASSOCDEP) @@ -196,7 +199,7 @@ public MetricTypeModel getType() { return null; } - @objid ("f619763a-1440-4e1d-9d9e-1348f9919d49") + @objid ("9c161707-2f14-42a3-90fc-ab5e253d78ec") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -206,8 +209,9 @@ public int hashCode() { * Remove a value from the 'bindings' role.

* Role description: * null + * */ - @objid ("f80ab0ce-7e96-4cfd-8320-56810614265e") + @objid ("112cc47c-8616-4f7f-bdc4-72d0fdc0e118") public boolean removeBindings(final MetricObjectBinding obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -216,8 +220,9 @@ public boolean removeBindings(final MetricObjectBinding obj) { * Remove a value from the 'metricInstances' role.

* Role description: * null + * */ - @objid ("0b7050aa-4e2c-4cff-9fc6-4263cc3b9107") + @objid ("eeb7b416-f514-46c3-b585-22ccfcac4783") public boolean removeMetricInstances(final MetricInstance obj) { return (obj!=null)? ((Package) this.elt).getDeclared().remove(obj.getElement()) : false; } @@ -226,8 +231,9 @@ public boolean removeMetricInstances(final MetricInstance obj) { * Set the value of the 'type' role.

* Role description: * null + * */ - @objid ("01aaee32-2354-4127-91a1-0131c07b982f") + @objid ("df359627-78ef-41ff-b4a0-bd3cef682de3") public void setType(final MetricTypeModel obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -255,23 +261,23 @@ public List getChilds() { return result; } - @objid ("583ea02d-e738-4a55-b67d-46849a7e4232") + @objid ("4ff31a55-dd84-4c6f-9435-486964746cab") protected MetricInstanceModel(final Package elt) { super(elt); } @objid ("f50c0e56-9674-4958-8a3c-cef476fee649") public static final class MdaTypes { - @objid ("dc4eab50-a67b-45b4-b17c-89fbced7fd60") + @objid ("6be6fe58-9640-4476-8a5d-8dc0a3939281") public static Stereotype STEREOTYPE_ELT; - @objid ("3f922560-88f5-4962-9849-52b02334d1fe") + @objid ("d52188d7-6c2c-464f-ac0b-19a6640ef0d1") private static Stereotype MDAASSOCDEP; - @objid ("07383edc-6b79-4158-89bc-e9add1d1ea02") + @objid ("d87b4a75-258c-4f8c-b5e2-1e400f362251") private static TagType MDAASSOCDEP_ROLE; - @objid ("a99cd073-fe46-4bc9-9d7a-4bfe7e91df6d") + @objid ("d8226d56-0a60-4737-8b7b-816fbe3215fb") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "42ce7273-a709-4cf7-bc51-ac7ee48b9f13"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -279,11 +285,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 dacac160..e97ddeab 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.metricmodel.standard.package_; @@ -36,7 +36,7 @@ */ @objid ("51d9d8d2-09df-43a4-afb2-46e9551ee43b") public abstract class MetricModel extends SubModel { - @objid ("4ad57e5b-427c-4804-9b41-52be7c2a19da") + @objid ("8620d597-f1d4-42d0-96fc-d19dac5e1197") public static final String STEREOTYPE_NAME = "MetricModel"; /** @@ -47,12 +47,12 @@ public abstract class MetricModel extends SubModel { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("0a81276b-3ffc-45d8-b80d-8cf07177fd67") + @objid ("08644dba-02b7-4180-9071-027ab033d922") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Package) && ((Package) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, MetricModel.STEREOTYPE_NAME)); } - @objid ("8e088201-f85f-4131-87cd-c639246187e4") + @objid ("11453808-e4d5-45af-ab23-b50c1fed9987") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -69,17 +69,16 @@ 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 ("a77ebf8d-2555-48fc-9c98-1766fabc25e6") + @objid ("d3a4c0b8-e689-4d5e-bcb7-7f8f13f192ef") @Override public Package getElement() { return (Package)super.getElement(); } - @objid ("cf149894-0933-42e4-bde6-e18b63500a26") + @objid ("3344e3d0-5e2f-4352-b36b-c99e5e1a72d6") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -93,23 +92,23 @@ public List getChilds() { return result; } - @objid ("b2f235cc-0c18-4138-bcc9-12383aa29159") + @objid ("c21a3222-2708-4a3d-ad88-887b96578baf") protected MetricModel(final Package elt) { super(elt); } @objid ("e2df5621-cc23-4f96-99f5-e13e4b7f8425") public static final class MdaTypes { - @objid ("2410aeb2-f125-4295-aa77-e89ecac52fe1") + @objid ("cfb64940-c5ef-4571-bed4-f1c8e5cee8ce") public static Stereotype STEREOTYPE_ELT; - @objid ("db5f8667-679a-4764-a719-729fc9615a0f") + @objid ("1f736262-c80e-4d0e-9365-0848d9103798") private static Stereotype MDAASSOCDEP; - @objid ("8676ebdf-8354-4d6f-a73f-b4416e0a4c8c") + @objid ("ef8eaf94-aa8f-4b13-a002-60610aa6da3e") private static TagType MDAASSOCDEP_ROLE; - @objid ("e6c6f0a3-1661-4f16-a0b6-4f62f2961d1a") + @objid ("6dc802f0-4581-4889-99eb-42147a0b54af") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "e9c199d4-1f22-4720-a79c-39ebaf36e7bb"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -117,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/metricmodel/standard/package_/MetricTypeModel.java b/src/main/java/fr/softeam/cameldesigner/api/metricmodel/standard/package_/MetricTypeModel.java index 952b8da0..ead3319e 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.metricmodel.standard.package_; @@ -10,6 +10,7 @@ import java.util.Collection; import java.util.Collections; import java.util.List; +import java.util.Objects; import com.modeliosoft.modelio.javadesigner.annotations.objid; import fr.softeam.cameldesigner.api.CamelDesignerProxyFactory; import fr.softeam.cameldesigner.api.ICamelDesignerPeerModule; @@ -32,11 +33,17 @@ import fr.softeam.cameldesigner.api.securitymodel.standard.class_.CompositeSecurityMetric; import fr.softeam.cameldesigner.api.securitymodel.standard.class_.RawSecurityMetric; import fr.softeam.cameldesigner.impl.CamelDesignerModule; +import org.modelio.api.modelio.model.IModelingSession; +import org.modelio.api.modelio.model.PropertyConverter; import org.modelio.api.module.context.IModuleContext; +import org.modelio.metamodel.mmextensions.infrastructure.ExtensionNotFoundException; +import org.modelio.metamodel.uml.infrastructure.Dependency; 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.infrastructure.properties.PropertyDefinition; +import org.modelio.metamodel.uml.infrastructure.properties.PropertyTableDefinition; import org.modelio.metamodel.uml.statik.Class; import org.modelio.metamodel.uml.statik.Package; import org.modelio.vcore.smkernel.mapi.MObject; @@ -48,7 +55,7 @@ */ @objid ("30ab5720-bd4b-4612-8c18-791b8446b14d") public class MetricTypeModel extends MetricModel { - @objid ("ba36678e-35f5-4835-b954-7a8eb6b0e011") + @objid ("795aec81-b0d5-4216-be49-319ea6497328") public static final String STEREOTYPE_NAME = "MetricTypeModel"; /** @@ -59,7 +66,7 @@ public class MetricTypeModel extends MetricModel { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("983b6950-b403-4444-a9bf-534eaadeae54") + @objid ("2f6ae500-1812-41e0-9bef-bb8c328f510e") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Package) && ((Package) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, MetricTypeModel.STEREOTYPE_NAME)); } @@ -69,7 +76,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link MetricTypeModel} proxy on the created {@link Package}. */ - @objid ("790923f6-befa-412a-9546-6e2c7b523d07") + @objid ("d547643b-f455-4ae5-b0ef-9c56ae25d34f") public static MetricTypeModel create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Package"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, MetricTypeModel.STEREOTYPE_NAME); @@ -77,41 +84,40 @@ 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. */ - @objid ("845637c3-5dfb-4e1a-b80d-22b11620ae40") + @objid ("44290a1c-5ba4-4130-b68e-5bc0bf6c7ffd") public static MetricTypeModel instantiate(final Package obj) { return MetricTypeModel.canInstantiate(obj) ? new MetricTypeModel(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("0c98e9ec-1d9b-40d4-8b30-1c0de175c1b3") + @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 ("dfb369a2-4db0-46d6-8959-991ea4243831") + @objid ("b8dae037-b82c-4fa4-8c44-ee08c4336d0f") public void addAttributContexts(final AttributeContext obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -121,8 +127,9 @@ public void addAttributContexts(final AttributeContext obj) { * Add a value to the 'functions' role.

* Role description: * null + * */ - @objid ("60213d9c-88c7-4254-a1e3-5dd40d9e5ab6") + @objid ("2b832fd9-f02e-480b-956a-82e82c7545d6") public void addFunctions(final Function obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -132,8 +139,9 @@ public void addFunctions(final Function obj) { * Add a value to the 'metricContexts' role.

* Role description: * null + * */ - @objid ("c4affa41-b35c-4080-9ab8-0a81bd663050") + @objid ("8e4a79db-2c88-475c-ba14-5a559fb24549") public void addMetricContexts(final MetricContext obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -143,8 +151,9 @@ public void addMetricContexts(final MetricContext obj) { * Add a value to the 'metrics' role.

* Role description: * null + * */ - @objid ("c1409f82-280b-4b05-a900-c8fbe1fca0f7") + @objid ("ae5048f1-97f8-4478-938f-e321927ad162") public void addMetrics(final Metric obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -154,8 +163,9 @@ public void addMetrics(final Metric obj) { * Add a value to the 'objectContexts' role.

* Role description: * null + * */ - @objid ("76ace2f6-280e-4837-be09-efd9e42652a8") + @objid ("9718ce8c-ae89-4c5a-ae64-a88c1f981c88") public void addObjectContexts(final ObjectContext obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -165,8 +175,9 @@ public void addObjectContexts(final ObjectContext obj) { * Add a value to the 'schedules' role.

* Role description: * null + * */ - @objid ("58f6486f-88ff-49c3-ba9b-cd8bd79f6f77") + @objid ("9831c4d9-952a-4fe2-9aad-4da2f9a90898") public void addSchedules(final Schedule obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -176,8 +187,9 @@ public void addSchedules(final Schedule obj) { * Add a value to the 'sensors' role.

* Role description: * null + * */ - @objid ("e9775256-b9fb-4af3-8321-8d47e013c425") + @objid ("1b4dfdef-fbad-4abf-be6e-8522d5463706") public void addSensors(final Sensor obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -187,8 +199,9 @@ public void addSensors(final Sensor obj) { * Add a value to the 'templates' role.

* Role description: * null + * */ - @objid ("a60a53ff-f424-427d-9561-ae41b7589b2e") + @objid ("0a35e4f7-63df-4a2c-b9bf-f587e3c56b4b") public void addTemplates(final MetricTemplate obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -198,14 +211,15 @@ public void addTemplates(final MetricTemplate obj) { * Add a value to the 'windows' role.

* Role description: * null + * */ - @objid ("ce126d42-7441-4570-a838-476b3bc62576") + @objid ("f527b953-661e-4548-af24-5b3e8a18b81f") public void addWindows(final Window obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); } - @objid ("36aec1e2-ed53-4628-8b83-80bc21d47b77") + @objid ("93ebc12e-01d2-4ab2-8373-9de5839252e5") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -225,23 +239,23 @@ public boolean equals(final Object obj) { * Get the values of the 'attributContexts' role.

* Role description: * null + * */ - @objid ("4ceeb12d-ecb8-4b60-8ad0-0c2ff18ffc34") + @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 ("11719dac-0c2b-4645-8c42-8cedef0aaba4") + @objid ("52809e05-68b1-4709-a21e-f01d7f043b69") @Override public Package getElement() { return (Package)super.getElement(); @@ -251,14 +265,15 @@ public Package getElement() { * Get the values of the 'functions' role.

* Role description: * null + * */ - @objid ("2d4122ea-c30c-4f0b-bc1f-c3c9e9fbbf03") + @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); } @@ -266,16 +281,17 @@ public List getFunctions() { * Get the values of the 'metricContexts' role.

* Role description: * null + * */ - @objid ("3b36fb1f-3c1a-4256-bfcf-792858911ad0") + @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); } @@ -283,22 +299,23 @@ public List getMetricContexts() { * Get the values of the 'metrics' role.

* Role description: * null + * */ - @objid ("d6382d9a-69fb-47c2-9351-bcd3a9dc7fc4") + @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); } @@ -306,14 +323,15 @@ public List getMetrics() { * Get the values of the 'objectContexts' role.

* Role description: * null + * */ - @objid ("e34db0e4-f155-4aba-b333-e1ff659176ea") + @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); } @@ -321,14 +339,15 @@ public List getObjectContexts() { * Get the values of the 'schedules' role.

* Role description: * null + * */ - @objid ("713172fd-dd32-48bc-b331-27bc6a09a812") + @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); } @@ -336,14 +355,15 @@ public List getSchedules() { * Get the values of the 'sensors' role.

* Role description: * null + * */ - @objid ("97f23691-63e2-4914-8eeb-11b8dbd9ea76") + @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); } @@ -351,14 +371,15 @@ public List getSensors() { * Get the values of the 'templates' role.

* Role description: * null + * */ - @objid ("1b56c97e-895f-45a1-9483-e6c575ed867c") + @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); } @@ -366,18 +387,19 @@ public List getTemplates() { * Get the values of the 'windows' role.

* Role description: * null + * */ - @objid ("1099e3ab-5847-4dc2-8e3f-2e329395d52f") + @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); } - @objid ("7281ede5-adbd-483d-89f0-dac827358ee1") + @objid ("ff5c98bd-6465-49a1-9ad6-d53a8c79b948") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -387,8 +409,9 @@ public int hashCode() { * Remove a value from the 'attributContexts' role.

* Role description: * null + * */ - @objid ("a2dcaefc-198e-46a6-9f30-a6ab2e1bc78c") + @objid ("935ed4d5-a9e6-4dd6-91bf-0e2655446268") public boolean removeAttributContexts(final AttributeContext obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -397,8 +420,9 @@ public boolean removeAttributContexts(final AttributeContext obj) { * Remove a value from the 'functions' role.

* Role description: * null + * */ - @objid ("5425676f-0212-482d-b2e1-06a371954c3d") + @objid ("31f9d6ac-d409-4b80-ac4b-9a7ce394b68a") public boolean removeFunctions(final Function obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -407,8 +431,9 @@ public boolean removeFunctions(final Function obj) { * Remove a value from the 'metricContexts' role.

* Role description: * null + * */ - @objid ("e729b19e-c210-4802-b42b-c8c5eb2aeda7") + @objid ("58c91b05-7bb7-4fbb-8c34-2e9e41548e2f") public boolean removeMetricContexts(final MetricContext obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -417,8 +442,9 @@ public boolean removeMetricContexts(final MetricContext obj) { * Remove a value from the 'metrics' role.

* Role description: * null + * */ - @objid ("75d6a420-b4d4-47b6-883c-6cf29c4de1bb") + @objid ("3c014d70-3372-4521-ad3b-53279c198c30") public boolean removeMetrics(final Metric obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -427,8 +453,9 @@ public boolean removeMetrics(final Metric obj) { * Remove a value from the 'objectContexts' role.

* Role description: * null + * */ - @objid ("d75dd0b3-b37a-4d27-b5f8-68eb2cb3d596") + @objid ("b70cabd7-5826-4ad1-9d0d-b9000090c97f") public boolean removeObjectContexts(final ObjectContext obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -437,8 +464,9 @@ public boolean removeObjectContexts(final ObjectContext obj) { * Remove a value from the 'schedules' role.

* Role description: * null + * */ - @objid ("baf2fb85-43e9-4696-85c2-3700cd605e0b") + @objid ("dde8659f-e016-407d-989e-2c179653c686") public boolean removeSchedules(final Schedule obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -447,8 +475,9 @@ public boolean removeSchedules(final Schedule obj) { * Remove a value from the 'sensors' role.

* Role description: * null + * */ - @objid ("1fdcfe1b-9063-41b1-8158-b9e62219e86f") + @objid ("ce3f3446-86d5-4762-bf8e-36eefd812d1c") public boolean removeSensors(final Sensor obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -457,8 +486,9 @@ public boolean removeSensors(final Sensor obj) { * Remove a value from the 'templates' role.

* Role description: * null + * */ - @objid ("2076569e-b92e-4682-bdc5-510a229c7efa") + @objid ("2d4c4f78-daf6-49e5-b243-d306aa07ebb1") public boolean removeTemplates(final MetricTemplate obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -467,8 +497,9 @@ public boolean removeTemplates(final MetricTemplate obj) { * Remove a value from the 'windows' role.

* Role description: * null + * */ - @objid ("a7da980f-3b83-4641-8030-500e7c9a612c") + @objid ("63fdd304-ad1b-4193-ae43-07ba70de7eb6") public boolean removeWindows(final Window obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -553,23 +584,23 @@ public Collection getRawMetrics() { return Collections.unmodifiableList(results); } - @objid ("a4a57000-23ae-473a-9996-ec10783cbfe1") + @objid ("c8f235af-3bbb-4c75-acc8-7dacb3c255de") protected MetricTypeModel(final Package elt) { super(elt); } @objid ("b2e0d996-4162-4a1b-ad97-a59aa22661b6") public static final class MdaTypes { - @objid ("8df96e88-8e19-4293-9519-1d0d8b2b5b49") + @objid ("8e603900-59f0-4a16-85cb-35d0027c3bc3") public static Stereotype STEREOTYPE_ELT; - @objid ("9a21b4db-c19d-45eb-9d29-1b495555c55f") + @objid ("9ed7917c-8dcf-4a9e-b483-47b2d24e830f") private static Stereotype MDAASSOCDEP; - @objid ("28fcc25a-1bc4-4b53-b5d5-9de95d2b1780") + @objid ("b955af15-c52f-4327-b851-3bdcbccfa872") private static TagType MDAASSOCDEP_ROLE; - @objid ("bb73638c-4d98-45a0-bdf3-b42d33b79261") + @objid ("7eaa2f47-ddb0-45e2-9d4c-ee562ac4b05b") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "76545176-b1ff-442f-8629-bc2c4845dbdb"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -577,11 +608,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 79baf466..7db6db9c 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.organisationmodel.standard.class_; @@ -35,25 +35,25 @@ */ @objid ("03b02447-2b3a-4311-86ad-5b5ef5314b71") public class CloudCredentials extends Credentials { - @objid ("158b2358-c5e9-4a45-a7df-66048d5293f3") + @objid ("84b8973f-dde7-4199-b6e5-dd7e41612d99") public static final String STEREOTYPE_NAME = "CloudCredentials"; - @objid ("6e8208eb-1298-4454-9be9-0c594e2a885a") + @objid ("b3587894-2fbd-4edd-95a2-8db46346ae74") public static final String CLOUDPROVIDERNAME_TAGTYPE = "cloudProviderName"; - @objid ("f8ce9aee-844e-47fa-959d-056de14c0dde") + @objid ("3a331dd4-9b3d-48cc-86bb-7ff332575c58") public static final String PASSWORD_TAGTYPE = "password"; - @objid ("33ff06e6-cacf-4346-aea7-cd3f6206804a") + @objid ("d3d96c78-591e-4c9d-95a7-a23f75ecf903") public static final String PRIVATESSHKEY_TAGTYPE = "privateSSHKey"; - @objid ("e95a1b24-9734-4856-898b-dcb6e1881317") + @objid ("a78ba5ae-0c0e-4d1d-938d-38777438003f") public static final String PUBLICSSHKEY_TAGTYPE = "publicSSHKey"; - @objid ("760479a6-0444-4eb0-802a-1ddac5c62442") + @objid ("47ddf757-48ab-4ca1-b590-41676ec65dce") public static final String SECURITYGROUP_TAGTYPE = "securityGroup"; - @objid ("427b41c2-0005-4cc0-9edc-2cc0163d3b1f") + @objid ("780a4d34-bb73-479c-ac3f-9b0a0c34b0e3") public static final String USERNAME_TAGTYPE = "username"; /** @@ -64,7 +64,7 @@ public class CloudCredentials extends Credentials { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("e0d87e96-c8c3-4cf8-a363-0d79a6cb126b") + @objid ("71cfb598-8227-4362-ad8a-ad97b20a6634") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, CloudCredentials.STEREOTYPE_NAME)); } @@ -74,7 +74,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link CloudCredentials} proxy on the created {@link Class}. */ - @objid ("8326446e-8a12-41e1-b4f1-94e751120a54") + @objid ("6d4e0ccf-7e58-48b2-84b9-65126f72c305") public static CloudCredentials create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, CloudCredentials.STEREOTYPE_NAME); @@ -82,36 +82,34 @@ 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. */ - @objid ("5331d19b-6390-4a78-a72c-6d15c2a14f3c") + @objid ("19794854-b61d-44b8-9504-b75a572e3470") public static CloudCredentials instantiate(final Class obj) { return CloudCredentials.canInstantiate(obj) ? new CloudCredentials(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("9dc45ad8-0e5b-4c1b-89b0-0a4b3ab7e4d3") + @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 ("9b474f25-d060-4b53-a7c0-505efe8256e6") + @objid ("1c39bf86-6cf0-43c1-ab20-e69c422b57c6") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -132,17 +130,16 @@ public boolean equals(final Object obj) { *

Property description: *
null

*/ - @objid ("62db7e05-890f-45de-bd73-f2c7205715c3") + @objid ("e9c2114e-1511-4bc3-99a1-1c93a268b253") public String getCloudProviderName() { return this.elt.getTagValue(CloudCredentials.MdaTypes.CLOUDPROVIDERNAME_TAGTYPE_ELT); } /** - * Get the underlying {@link Class}. - * + * Get the underlying {@link Class}. * @return the Class represented by this proxy, never null. */ - @objid ("e9bac268-47cd-444e-832e-5f5288aa17f1") + @objid ("62a8bc04-b7ba-47d3-890f-fd5a0fb53449") @Override public Class getElement() { return (Class)super.getElement(); @@ -153,7 +150,7 @@ public Class getElement() { *

Property description: *
null

*/ - @objid ("b68270a8-9cef-4887-a6e3-a604267e8f08") + @objid ("1db0915c-a7de-46ae-af2e-6152ca791907") public String getPassword() { return this.elt.getTagValue(CloudCredentials.MdaTypes.PASSWORD_TAGTYPE_ELT); } @@ -163,7 +160,7 @@ public String getPassword() { *

Property description: *
null

*/ - @objid ("b5ca934e-8554-4c93-a413-bb17dbcc10d1") + @objid ("43d15a59-cdd1-499e-a0ec-98bd2fc439a2") public String getPrivateSSHKey() { return this.elt.getTagValue(CloudCredentials.MdaTypes.PRIVATESSHKEY_TAGTYPE_ELT); } @@ -173,7 +170,7 @@ public String getPrivateSSHKey() { *

Property description: *
null

*/ - @objid ("483933ca-affd-420f-a9b4-32bd0e8f8ba3") + @objid ("cf9e4f86-dba9-47cf-a1ed-d2e8db6e3a6a") public String getPublicSSHKey() { return this.elt.getTagValue(CloudCredentials.MdaTypes.PUBLICSSHKEY_TAGTYPE_ELT); } @@ -183,7 +180,7 @@ public String getPublicSSHKey() { *

Property description: *
null

*/ - @objid ("d10fb444-4796-4a1c-870e-90e184595287") + @objid ("01194107-85ae-4d3f-8127-78104e0ce02a") public String getSecurityGroup() { return this.elt.getTagValue(CloudCredentials.MdaTypes.SECURITYGROUP_TAGTYPE_ELT); } @@ -193,12 +190,12 @@ public String getSecurityGroup() { *

Property description: *
null

*/ - @objid ("46d2aa1d-3458-44c7-92a9-d1158a1619c7") + @objid ("98b14f29-5d3c-45d3-bf7b-0e54baefca77") public String getUsername() { return this.elt.getTagValue(CloudCredentials.MdaTypes.USERNAME_TAGTYPE_ELT); } - @objid ("7fda4067-120a-4a2a-a4c8-634be9524010") + @objid ("efc9cf38-d6f0-4376-98da-0cec43f4497b") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -209,7 +206,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("b749baa3-ab7c-4b7a-9919-8f67c93b8f94") + @objid ("f7e39abc-5ddc-4dbe-a7e2-e6a69f233a1b") public void setCloudProviderName(final String value) { this.elt.putTagValue(CloudCredentials.MdaTypes.CLOUDPROVIDERNAME_TAGTYPE_ELT, value); } @@ -219,7 +216,7 @@ public void setCloudProviderName(final String value) { *

Property description: *
null

*/ - @objid ("2a602221-30e6-4f13-b1e9-78ceadc943c9") + @objid ("52ff4517-4f57-41be-9986-26c7b45496b3") public void setPassword(final String value) { this.elt.putTagValue(CloudCredentials.MdaTypes.PASSWORD_TAGTYPE_ELT, value); } @@ -229,7 +226,7 @@ public void setPassword(final String value) { *

Property description: *
null

*/ - @objid ("b672fd48-5fa8-4bcf-aeef-0f5e9a4b91ac") + @objid ("a772f162-bd81-4dd7-aec3-ae72ab3e0a51") public void setPrivateSSHKey(final String value) { this.elt.putTagValue(CloudCredentials.MdaTypes.PRIVATESSHKEY_TAGTYPE_ELT, value); } @@ -239,7 +236,7 @@ public void setPrivateSSHKey(final String value) { *

Property description: *
null

*/ - @objid ("87a9d733-252b-4ae8-a62e-81e7ea41bf2c") + @objid ("ffebc871-8b2b-4e69-804a-3e72348195e7") public void setPublicSSHKey(final String value) { this.elt.putTagValue(CloudCredentials.MdaTypes.PUBLICSSHKEY_TAGTYPE_ELT, value); } @@ -249,7 +246,7 @@ public void setPublicSSHKey(final String value) { *

Property description: *
null

*/ - @objid ("72a62603-199c-4f3c-881f-fac4fd728093") + @objid ("5f36ca18-e193-435a-b52e-f3aff85448a5") public void setSecurityGroup(final String value) { this.elt.putTagValue(CloudCredentials.MdaTypes.SECURITYGROUP_TAGTYPE_ELT, value); } @@ -259,7 +256,7 @@ public void setSecurityGroup(final String value) { *

Property description: *
null

*/ - @objid ("98374f58-2bca-4ec0-821f-4750bbefae99") + @objid ("559bf431-5f30-4594-bd5f-220fe27ad9a2") public void setUsername(final String value) { this.elt.putTagValue(CloudCredentials.MdaTypes.USERNAME_TAGTYPE_ELT, value); } @@ -272,41 +269,41 @@ public List getChilds() { return result; } - @objid ("7bbe07a8-b084-45a8-8e27-333523280cdf") + @objid ("fa9a9d96-52b5-4d6d-9344-e88c9463e1b9") protected CloudCredentials(final Class elt) { super(elt); } @objid ("55def40b-2092-43e4-b2aa-463a47edd76b") public static final class MdaTypes { - @objid ("4bdbdef9-06aa-4f5f-9d50-51a326d5c685") + @objid ("be991885-2c1b-460d-8d31-0438aad6cb51") public static Stereotype STEREOTYPE_ELT; - @objid ("f0e9e490-1ffa-4446-b697-a9b861d1bdbf") + @objid ("9078ea93-8869-4db0-b174-1b5b09dc5238") public static TagType CLOUDPROVIDERNAME_TAGTYPE_ELT; - @objid ("728a4a39-9d12-4fb5-bf4f-e2a243676f11") + @objid ("d720aca9-b9f2-44e7-b8bf-5c253dd9bdb8") public static TagType SECURITYGROUP_TAGTYPE_ELT; - @objid ("da4e0988-c4a6-4378-a876-d08ac60d37aa") + @objid ("c3b736c5-556d-4bbf-848d-d8659fbed775") public static TagType PUBLICSSHKEY_TAGTYPE_ELT; - @objid ("0caec8e9-088c-44c1-92a5-49e585f1b69f") + @objid ("06e77593-661e-4ddb-a828-9a785cc4090a") public static TagType PRIVATESSHKEY_TAGTYPE_ELT; - @objid ("d990f40b-d577-43d8-9f0c-3fa419906aff") + @objid ("5d16ac06-5201-40ce-9d35-e76bb8f5a084") public static TagType USERNAME_TAGTYPE_ELT; - @objid ("1a1ab3b4-aebc-4df2-a67d-badcafa21459") + @objid ("6cae180d-1b1c-4456-a2d6-c3c9b8f0ec92") public static TagType PASSWORD_TAGTYPE_ELT; - @objid ("a5868cd7-a430-4c00-af71-186258e48164") + @objid ("e295bd46-d574-47c1-9699-8d9bb4d0200d") private static Stereotype MDAASSOCDEP; - @objid ("2cfbc4fd-6352-4357-bc79-bb5530061f7f") + @objid ("8a709e5a-9104-475c-8ecf-547893b524ec") private static TagType MDAASSOCDEP_ROLE; - @objid ("168152e0-3152-441c-9a4a-e6612070a41f") + @objid ("0ae896ea-387f-4f5e-9cd4-00dc0b233d61") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "1ac06bbb-e680-411d-9dd2-26838d4ec854"); CLOUDPROVIDERNAME_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "d30c4942-657d-4e40-b794-bcad379adfe3"); @@ -320,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/organisationmodel/standard/class_/CloudProvider.java b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/CloudProvider.java index 9dfe532e..46bdff5a 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.organisationmodel.standard.class_; @@ -35,19 +35,19 @@ */ @objid ("fb9d9a88-d4a0-4e3f-a3de-0a99ce0662d5") public class CloudProvider extends Organisation { - @objid ("2d31e2a8-de49-4a91-a91b-944d2d49e123") + @objid ("8f2c0b98-c9a9-481f-b88b-e31b4ad53eb6") public static final String STEREOTYPE_NAME = "CloudProvider"; - @objid ("b0f35522-980d-4983-a967-825c865714dc") + @objid ("a5005157-08b0-41c7-a07b-5607cc0941a1") public static final String IAAS_TAGTYPE = "IaaS"; - @objid ("437e4d3d-abd7-410a-b8de-15f0e25b0f7f") + @objid ("555b8284-5828-402c-a673-933068f8cead") public static final String PAAS_TAGTYPE = "PaaS"; - @objid ("ac7b6265-45d0-45b3-b881-934d1cc5d3fa") + @objid ("743761e3-ee02-4b85-9d5a-06a67b2dd46e") public static final String SAAS_TAGTYPE = "SaaS"; - @objid ("45ef464e-c6ee-42d2-a8af-a036f709f66e") + @objid ("6e576c91-336f-466f-a166-bc66085cc05b") public static final String PUBLIC_TAGTYPE = "public"; /** @@ -58,7 +58,7 @@ public class CloudProvider extends Organisation { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("57db8315-d142-4dfc-a98b-2be63938ced3") + @objid ("cf1250d0-e852-4183-9de3-41f20752369b") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, CloudProvider.STEREOTYPE_NAME)); } @@ -68,7 +68,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link CloudProvider} proxy on the created {@link Class}. */ - @objid ("e3fa5d48-8042-47d6-857f-1d9301d62d63") + @objid ("22f6e52e-9f0b-4c66-b088-2bf268a63867") public static CloudProvider create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, CloudProvider.STEREOTYPE_NAME); @@ -76,36 +76,34 @@ 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. */ - @objid ("4a0c2994-4d9d-4a36-b455-0b0f337b2949") + @objid ("ee199d2f-2091-4eee-8fc5-f349e7f990fa") public static CloudProvider instantiate(final Class obj) { return CloudProvider.canInstantiate(obj) ? new CloudProvider(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("09af4418-9b7a-4eb5-9198-0d3d4ae09409") + @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 ("1d45581a-6a13-45f4-9225-8859f2485e91") + @objid ("1bd4118e-235f-4345-9928-331ed958b9ad") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -122,17 +120,16 @@ 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 ("fac76303-dccc-40f8-bb44-7fb91e786dc8") + @objid ("de890f52-79db-475a-a48b-e557b43b406a") @Override public Class getElement() { return (Class)super.getElement(); } - @objid ("a36c9f6f-0f9d-49c2-8743-0662d1891f0e") + @objid ("79e8eaad-0b6d-4de3-87c8-ab7944679c9c") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -143,7 +140,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("2eac187a-473b-48d2-bf68-ae299f650c32") + @objid ("c796c4ba-2c5d-44b1-bb14-18ce79497bb1") public boolean isIaaS() { return this.elt.isTagged(CloudProvider.MdaTypes.IAAS_TAGTYPE_ELT); } @@ -153,7 +150,7 @@ public boolean isIaaS() { *

Property description: *
null

*/ - @objid ("03c99242-217c-4ccc-8810-135c523676b4") + @objid ("0f898c4c-e67c-4610-8ad7-8be935db414c") public boolean isPaaS() { return this.elt.isTagged(CloudProvider.MdaTypes.PAAS_TAGTYPE_ELT); } @@ -163,7 +160,7 @@ public boolean isPaaS() { *

Property description: *
null

*/ - @objid ("7cad4803-e13d-4533-89ec-e93e2895f93c") + @objid ("c0447dd6-c0b6-4781-98ac-1130c34739e3") public boolean isPublic() { return this.elt.isTagged(CloudProvider.MdaTypes.PUBLIC_TAGTYPE_ELT); } @@ -173,7 +170,7 @@ public boolean isPublic() { *

Property description: *
null

*/ - @objid ("08e7d5ce-3332-4f74-bf01-81d26a8b83ca") + @objid ("92d186d1-0307-4ae5-9ae2-0afc7d3320db") public boolean isSaaS() { return this.elt.isTagged(CloudProvider.MdaTypes.SAAS_TAGTYPE_ELT); } @@ -183,7 +180,7 @@ public boolean isSaaS() { *

Property description: *
null

*/ - @objid ("a3edfff1-d04c-4e12-a91f-505b077e400f") + @objid ("669ac250-65bd-44f8-bd0b-eedfa641e37e") public void setIaaS(final boolean value) { if (value) CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createTaggedValue(CloudProvider.MdaTypes.IAAS_TAGTYPE_ELT, this.elt); @@ -196,7 +193,7 @@ public void setIaaS(final boolean value) { *

Property description: *
null

*/ - @objid ("a88dda51-138d-4bfe-ab0a-de500a2bb158") + @objid ("5aeaaec8-94f8-42b0-904c-29bb627882d7") public void setPaaS(final boolean value) { if (value) CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createTaggedValue(CloudProvider.MdaTypes.PAAS_TAGTYPE_ELT, this.elt); @@ -209,7 +206,7 @@ public void setPaaS(final boolean value) { *

Property description: *
null

*/ - @objid ("b068383c-ce44-481f-9bf4-ab38bf649d32") + @objid ("ffb2c782-d6f2-4bb5-b7e3-eeb732cf8a8c") public void setPublic(final boolean value) { if (value) CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createTaggedValue(CloudProvider.MdaTypes.PUBLIC_TAGTYPE_ELT, this.elt); @@ -222,7 +219,7 @@ public void setPublic(final boolean value) { *

Property description: *
null

*/ - @objid ("9c4b8955-019c-4292-8992-4346c9e89320") + @objid ("2b8eebec-ef58-4479-b36b-e707d5bde39c") public void setSaaS(final boolean value) { if (value) CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createTaggedValue(CloudProvider.MdaTypes.SAAS_TAGTYPE_ELT, this.elt); @@ -238,35 +235,35 @@ public List getChilds() { return result; } - @objid ("8edcc75d-c16b-4a79-9a44-f3261ef22f86") + @objid ("0b64b3c9-2100-4573-9900-8e2db2fbff18") protected CloudProvider(final Class elt) { super(elt); } @objid ("3a9e1b7d-4edb-4361-aa5d-657d494731fb") public static final class MdaTypes { - @objid ("2b7e0254-2352-4c21-808c-82fd4f719d6a") + @objid ("69a2cff4-1e13-4ea6-b701-7f9d69402529") public static Stereotype STEREOTYPE_ELT; - @objid ("333fa506-99ff-460b-b0c3-ee9e7cd148e6") + @objid ("5c30a398-5307-4d5a-ac09-6a0ddda56617") public static TagType PUBLIC_TAGTYPE_ELT; - @objid ("ce43eb26-d51f-4392-ae20-d6b1855b38a4") + @objid ("0412f9ac-dce5-4462-92bf-ff4bd281c44d") public static TagType SAAS_TAGTYPE_ELT; - @objid ("49ad6f6f-39af-4f38-9b66-2f05b57ae0a1") + @objid ("51ec788a-62e5-4daf-b860-08c6c839be31") public static TagType PAAS_TAGTYPE_ELT; - @objid ("466a8475-5405-4ac8-afaa-99608fec9d55") + @objid ("6454a2da-e8ea-49bf-aa33-62d53f28d6ca") public static TagType IAAS_TAGTYPE_ELT; - @objid ("aefb1080-ada6-442f-8649-f31bf8333000") + @objid ("37236155-7c68-4ede-be9a-eee63daf9eee") private static Stereotype MDAASSOCDEP; - @objid ("a7c0e63e-4e26-48b8-baad-20eac55a359f") + @objid ("23e790ba-aee6-4a18-af95-9476a9fc47c0") private static TagType MDAASSOCDEP_ROLE; - @objid ("1428a8f8-dfd9-4a97-98d5-98ca3bbea7ec") + @objid ("b3a84ea1-2bb2-4726-8097-235f950a06fb") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "eb3e5683-72bd-4e46-8bda-1ea07af0c09e"); PUBLIC_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "a7b7a414-a54a-45b1-a53e-3126883211b8"); @@ -278,11 +275,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 6658841e..e940b540 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.organisationmodel.standard.class_; @@ -36,7 +36,7 @@ */ @objid ("bfb6184e-67cd-4b06-ab79-5393ce245f8e") public abstract class Credentials extends FeatureClass { - @objid ("1d2d52d3-7cd9-47cc-8124-c0aa182a40c7") + @objid ("f089af74-9f1a-48ab-81ff-32eee493d96c") public static final String STEREOTYPE_NAME = "Credentials"; /** @@ -47,12 +47,12 @@ public abstract class Credentials extends FeatureClass { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("73d5e82c-505f-4694-bba3-1fe75a9de700") + @objid ("ad0b8fe0-47d9-4657-a449-c1947d02f54b") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, Credentials.STEREOTYPE_NAME)); } - @objid ("54830361-fe07-46c8-973b-ab4e61ab670b") + @objid ("23b378b4-96c0-4ad9-8270-0cce94fc8a2c") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -69,17 +69,16 @@ 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 ("2ed53f64-6d0d-4a54-9c8b-6e839a18a3ad") + @objid ("1f78ef32-ec9a-4926-b18b-bafb831d27b6") @Override public Class getElement() { return (Class)super.getElement(); } - @objid ("c3fac1d6-c9c0-431b-842c-16742e8bc70d") + @objid ("b9b49ebd-b188-4e91-9400-36190b53949e") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -93,23 +92,23 @@ public List getChilds() { return result; } - @objid ("a43b455d-14b6-4a90-aa50-46b278895b4d") + @objid ("71b903b8-1dd2-4d9d-ae96-ac76775f5031") protected Credentials(final Class elt) { super(elt); } @objid ("3a369440-6a1a-4237-9f5b-26139695cb51") public static final class MdaTypes { - @objid ("55717b5e-416c-400b-acdf-d863603e3db2") + @objid ("b5ee8d56-7c05-4e7b-b7a6-2c01345463da") public static Stereotype STEREOTYPE_ELT; - @objid ("0f1637e0-ca17-4e90-be06-571358b2baa2") + @objid ("632fd0e2-8f5e-4af4-a0f9-2f36b1b878f2") private static Stereotype MDAASSOCDEP; - @objid ("bba46b0a-b4a7-466a-bb52-0ada137c9254") + @objid ("d59e2cdc-aa2b-4d8e-bcdc-5b4bb58655cb") private static TagType MDAASSOCDEP_ROLE; - @objid ("5bf0610f-06dc-441d-a303-0c91fd7ad485") + @objid ("18aeb5f3-a5fd-4ea1-a0f8-be15466084e9") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "ff07e549-20c1-4871-863d-c00d48790863"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -117,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/organisationmodel/standard/class_/DataResourceFilter.java b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/DataResourceFilter.java index 6be2c8f9..059304c6 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.organisationmodel.standard.class_; @@ -41,10 +41,10 @@ */ @objid ("791b2878-7c50-4215-a525-604369238537") public class DataResourceFilter extends ResourceFilter { - @objid ("5e111753-f87a-4bbb-a486-896c349e0c93") + @objid ("2a055a64-6f02-45dc-bec2-cb22daf6767e") public static final String STEREOTYPE_NAME = "DataResourceFilter"; - @objid ("542b2ad2-acae-4f38-880b-fcaf1749dd01") + @objid ("1fe0e2e8-3846-49f6-881d-2eda0055c6e3") public static final String EVERYDATA_TAGTYPE = "everyData"; /** @@ -55,7 +55,7 @@ public class DataResourceFilter extends ResourceFilter { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("183b82d9-fdde-4948-b42d-3f184cff43c5") + @objid ("b2a6ce4d-1423-402e-aca9-5df85b3354dd") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, DataResourceFilter.STEREOTYPE_NAME)); } @@ -65,7 +65,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link DataResourceFilter} proxy on the created {@link Class}. */ - @objid ("0f97dc54-6721-40d4-bbc8-687ab5a40d41") + @objid ("92bbc9b0-4da6-491e-bb13-0f60d88a8755") public static DataResourceFilter create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, DataResourceFilter.STEREOTYPE_NAME); @@ -73,41 +73,40 @@ 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. */ - @objid ("567e36ea-2e97-4330-a321-9c3ef06e8255") + @objid ("76c03ef4-2885-4e10-89d8-6f3c44a50e9d") public static DataResourceFilter instantiate(final Class obj) { return DataResourceFilter.canInstantiate(obj) ? new DataResourceFilter(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("dd43e0fa-5255-4df3-9c8d-07db73454a6d") + @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 ("d1cf0188-c716-438a-a03a-81e376013c7e") + @objid ("f6d5fc9d-3978-464f-862e-207e7f10c49d") public void addData(final Data obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -121,8 +120,9 @@ public void addData(final Data obj) { * Add a value to the 'dataInstances' role.

* Role description: * null + * */ - @objid ("9549a5c0-9d5e-4227-a2e4-532a644b8426") + @objid ("c259412b-7eb8-4fd7-b91d-530e13930b3c") public void addDataInstances(final DataInstance obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -136,8 +136,9 @@ public void addDataInstances(final DataInstance obj) { * Add a value to the 'locations' role.

* Role description: * null + * */ - @objid ("de428126-c2d5-478d-b272-9d1377f1e834") + @objid ("7c028f9d-804e-48c7-8108-3b92557293d2") public void addLocations(final Location obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -147,7 +148,7 @@ public void addLocations(final Location obj) { } } - @objid ("f52fa1cb-4a20-489d-bdc5-425616a34ee7") + @objid ("0f0f261f-c61f-4e69-99da-778ff2bcb44e") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -167,8 +168,9 @@ public boolean equals(final Object obj) { * Get the values of the 'data' role.

* Role description: * null + * */ - @objid ("9e8e5069-e9df-419c-ae8f-0a77eeafdebd") + @objid ("116c7437-3ef7-4280-b5c4-4c07a5fd4823") public List getData() { List results = new ArrayList<>(); for (Dependency d : this.elt.getDependsOnDependency()) { @@ -185,8 +187,9 @@ public List getData() { * Get the values of the 'dataInstances' role.

* Role description: * null + * */ - @objid ("94a9a557-d2e5-48bb-903a-705fbfec1f61") + @objid ("d5b95609-f083-48fa-9b42-a1ffa2335992") public List getDataInstances() { List results = new ArrayList<>(); for (Dependency d : this.elt.getDependsOnDependency()) { @@ -202,11 +205,10 @@ public List getDataInstances() { } /** - * Get the underlying {@link Class}. - * + * Get the underlying {@link Class}. * @return the Class represented by this proxy, never null. */ - @objid ("d7564d5c-26c7-4357-9555-afc35799badd") + @objid ("34bede00-995e-4f8c-bfb4-a1c6b2f0353f") @Override public Class getElement() { return (Class)super.getElement(); @@ -216,8 +218,9 @@ public Class getElement() { * Get the values of the 'locations' role.

* Role description: * null + * */ - @objid ("089c4747-d8e0-47c4-bb84-db64d1a171a2") + @objid ("e49736a7-fe28-4f18-a1db-0601a37549ea") public List getLocations() { List results = new ArrayList<>(); for (Dependency d : this.elt.getDependsOnDependency()) { @@ -232,7 +235,7 @@ public List getLocations() { return Collections.unmodifiableList(results); } - @objid ("eaf6340e-69a3-4311-ac9c-ec87c6383a7e") + @objid ("b2bf9f32-385c-4b13-bc04-0e0ad49b9650") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -243,7 +246,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("97e5c2dd-3557-44dd-b5de-1abe82ee04c5") + @objid ("cfb09a86-f719-4dd3-b5c2-2dfdc460ef31") public boolean isEveryData() { return this.elt.isTagged(DataResourceFilter.MdaTypes.EVERYDATA_TAGTYPE_ELT); } @@ -252,12 +255,13 @@ public boolean isEveryData() { * Remove a value from the 'data' role.

* Role description: * null + * */ - @objid ("8c621f28-bea3-4113-82da-ab738eb1b774") + @objid ("070d408d-ab28-4fd2-8063-0ae328bb2bc5") public boolean removeData(final Data obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getDependsOnDependency())) { - if (d.isStereotyped(DataResourceFilter.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(DataResourceFilter.MdaTypes.MDAASSOCDEP_ROLE), "")) + if (d.isStereotyped(DataResourceFilter.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(DataResourceFilter.MdaTypes.MDAASSOCDEP_ROLE), "data")) if (Objects.equals(d.getDependsOn(), obj.getElement())) { d.delete(); return true; @@ -271,12 +275,13 @@ public boolean removeData(final Data obj) { * Remove a value from the 'dataInstances' role.

* Role description: * null + * */ - @objid ("a8d97959-51ec-41d5-a15a-6ccfede9a246") + @objid ("cb7a61e9-4b51-42dd-82fa-406ab8bf5db9") public boolean removeDataInstances(final DataInstance obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getDependsOnDependency())) { - if (d.isStereotyped(DataResourceFilter.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(DataResourceFilter.MdaTypes.MDAASSOCDEP_ROLE), "")) + if (d.isStereotyped(DataResourceFilter.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(DataResourceFilter.MdaTypes.MDAASSOCDEP_ROLE), "dataInstances")) if (Objects.equals(d.getDependsOn(), obj.getElement())) { d.delete(); return true; @@ -290,12 +295,13 @@ public boolean removeDataInstances(final DataInstance obj) { * Remove a value from the 'locations' role.

* Role description: * null + * */ - @objid ("a0f3d924-d805-4613-973e-7e3bf8e09fe7") + @objid ("5578e754-d399-45e5-b59f-3a8dadc64238") public boolean removeLocations(final Location obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getDependsOnDependency())) { - if (d.isStereotyped(DataResourceFilter.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(DataResourceFilter.MdaTypes.MDAASSOCDEP_ROLE), "")) + if (d.isStereotyped(DataResourceFilter.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(DataResourceFilter.MdaTypes.MDAASSOCDEP_ROLE), "locations")) if (Objects.equals(d.getDependsOn(), obj.getElement())) { d.delete(); return true; @@ -310,7 +316,7 @@ public boolean removeLocations(final Location obj) { *

Property description: *
null

*/ - @objid ("0bf82ff1-46e0-431e-85d1-151f15e0d225") + @objid ("8f66973c-8714-4690-a6f7-ea0c9e300b2e") public void setEveryData(final boolean value) { if (value) CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createTaggedValue(DataResourceFilter.MdaTypes.EVERYDATA_TAGTYPE_ELT, this.elt); @@ -326,26 +332,26 @@ public List getChilds() { return result; } - @objid ("0eca6026-3a90-4a0e-a391-9c3f22911147") + @objid ("15d67183-ad90-42dc-ae57-b5db622324c5") protected DataResourceFilter(final Class elt) { super(elt); } @objid ("a60319da-e29b-4af0-b3aa-4b4d80f83f8b") public static final class MdaTypes { - @objid ("285bd80b-6a4a-4301-86d3-ce63d58efadd") + @objid ("1e5dccb6-51bc-4b4a-9251-27aa91774659") public static Stereotype STEREOTYPE_ELT; - @objid ("5aefb296-1f1b-44aa-90d6-bab24ead3d86") + @objid ("79b4cb82-689f-4088-bbf3-20d5e11337a7") public static TagType EVERYDATA_TAGTYPE_ELT; - @objid ("07b3cdee-928c-4d58-a539-353a65f8a563") + @objid ("202fbebd-f9b3-42bc-826b-de639ec7b1f3") private static Stereotype MDAASSOCDEP; - @objid ("ce59e24f-8d1d-43d0-bd72-0d9b7299ca5a") + @objid ("a5d2e9f8-0ea9-43d5-9ae0-93aba84ff8f1") private static TagType MDAASSOCDEP_ROLE; - @objid ("88ff5e76-9bd6-4e34-a88b-b5c6de5ad9c7") + @objid ("e8421531-6b79-44a9-98ef-b063488675d5") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "db53c8ff-ef9a-4bc2-bbfa-af051fcaa66d"); EVERYDATA_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "224a9d86-f0da-48c2-aee2-621dc2822fd3"); @@ -354,11 +360,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 6963a3bf..305e0d59 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.organisationmodel.standard.class_; @@ -36,7 +36,7 @@ */ @objid ("0ddd50cd-81bd-4d73-85c7-ab182d264a9c") public class Entity extends FeatureClass { - @objid ("1b17d123-5b1e-42b7-ba29-b659d510a8c1") + @objid ("4a2fd4d8-3409-4754-ad65-b3ef2a2653b5") public static final String STEREOTYPE_NAME = "Entity"; /** @@ -47,7 +47,7 @@ public class Entity extends FeatureClass { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("ec5a7d15-266e-4626-aef2-9daeac1b32ec") + @objid ("066fa4ad-5cc0-4beb-b38d-b306d972509a") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, Entity.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link Entity} proxy on the created {@link Class}. */ - @objid ("a80c73c5-e20f-4bca-88f8-9a3af7c245f4") + @objid ("60b84f78-f405-49af-b95f-ca6ec2c1b41b") public static Entity create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, Entity.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("c66cf58b-2e5c-41cb-a2d8-6676c3568c39") + @objid ("56bb43b4-ea3d-48c3-a2da-26eb4d3b537f") public static Entity instantiate(final Class obj) { return Entity.canInstantiate(obj) ? new Entity(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("4a890487-6761-4708-8cb7-7054b4ff12d0") + @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 ("cb83abb7-a25e-4d54-b787-c857c1395d88") + @objid ("0e3862b4-62d6-46db-9209-ad1ac3ae5928") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,17 +109,16 @@ 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 ("2abdd36f-d947-48d7-9180-4c9bd46b7fc5") + @objid ("f3496b23-3d16-48ed-8129-e6a26ab54fe4") @Override public Class getElement() { return (Class)super.getElement(); } - @objid ("7d59a419-5795-4093-b77a-e6b96a80d772") + @objid ("0f98c2e9-a296-4746-909f-23cf4247560f") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -135,23 +132,23 @@ public List getChilds() { return result; } - @objid ("dac3a43f-1bec-4cdb-869b-3d44a1485bb1") + @objid ("b39cfab5-eed1-4f8d-9986-e019a9548b79") protected Entity(final Class elt) { super(elt); } @objid ("261036c6-676a-487a-934e-2dea0ceb0b28") public static final class MdaTypes { - @objid ("4d083d71-ac1e-4737-ad75-d55a7ca17b7c") + @objid ("67eff1d7-cf30-442d-828c-f8fb7fe0c78b") public static Stereotype STEREOTYPE_ELT; - @objid ("173c0c7f-7105-46d3-bbdd-23264257ecaf") + @objid ("346db7f8-0d8b-4bfd-bf7a-b6aaaa159462") private static Stereotype MDAASSOCDEP; - @objid ("b0127fac-b4d6-48a3-9352-42dc554abf61") + @objid ("c1ed5d6a-da87-41bc-b809-6739c82674e3") private static TagType MDAASSOCDEP_ROLE; - @objid ("fc82d76f-a834-416d-8d24-4a068da07f75") + @objid ("b86dc29d-628f-45ca-af8b-42e9711c8f62") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "8edda027-b2f3-43bb-b101-0058aaa1550f"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -159,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/organisationmodel/standard/class_/ExternalIdentifier.java b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/ExternalIdentifier.java index 7d9136d8..50370c05 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.organisationmodel.standard.class_; @@ -36,10 +36,10 @@ */ @objid ("facd10dc-f6ab-44d0-b526-c83be089740a") public class ExternalIdentifier extends FeatureClass { - @objid ("a47c67ce-ab3a-4d0a-af4c-32f6d96f2d2a") + @objid ("640c06d2-93e5-49b7-a75f-fda0b9da5f20") public static final String STEREOTYPE_NAME = "ExternalIdentifier"; - @objid ("f7abeaad-4e5a-40f1-aae1-0d2b8dce6972") + @objid ("97861852-4fb4-405c-9fc0-b7daac5382a1") public static final String IDENTIFIER_TAGTYPE = "identifier"; /** @@ -50,7 +50,7 @@ public class ExternalIdentifier extends FeatureClass { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("5457ca98-7303-4bb3-a20a-6e7f004f78c4") + @objid ("2fa8c627-869a-4cd5-a7be-44b58bd76656") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, ExternalIdentifier.STEREOTYPE_NAME)); } @@ -60,7 +60,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link ExternalIdentifier} proxy on the created {@link Class}. */ - @objid ("76d1a74c-2de1-4689-96d8-91adaf530752") + @objid ("f0323e33-48a1-4456-b3eb-3e5d764fa723") public static ExternalIdentifier create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, ExternalIdentifier.STEREOTYPE_NAME); @@ -68,36 +68,34 @@ 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. */ - @objid ("20b2cd0b-b0ef-4a98-a91b-e3f26e1f0753") + @objid ("426510e4-9f44-4d39-83c8-07ed880c774a") public static ExternalIdentifier instantiate(final Class obj) { return ExternalIdentifier.canInstantiate(obj) ? new ExternalIdentifier(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("967af0c7-90ec-4be8-9e27-a404b2a13663") + @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 ("5306fb16-7fd6-413e-91e6-ce544ebec4b4") + @objid ("02d48c3d-2bd3-4de4-8f13-4d74eb4e08f7") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -114,11 +112,10 @@ 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 ("f2824711-8773-4adc-943b-29fc25f663a3") + @objid ("5e596891-a74a-4f25-b33b-7339a9d86465") @Override public Class getElement() { return (Class)super.getElement(); @@ -129,12 +126,12 @@ public Class getElement() { *

Property description: *
null

*/ - @objid ("195d1017-1124-4d91-9877-6c003b16cbab") + @objid ("2e6fbb14-432d-49c3-987a-8d90cceaf474") public String getIdentifier() { return this.elt.getTagValue(ExternalIdentifier.MdaTypes.IDENTIFIER_TAGTYPE_ELT); } - @objid ("e68a2d97-bf75-4214-b4af-ab8023b75594") + @objid ("7ba08ca4-d029-4485-86ff-87be6defc2de") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -145,7 +142,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("c87025b6-baa2-458d-a06b-60aef1af2693") + @objid ("b159bf1f-3938-4544-bf8f-0058e78fbec3") public void setIdentifier(final String value) { this.elt.putTagValue(ExternalIdentifier.MdaTypes.IDENTIFIER_TAGTYPE_ELT, value); } @@ -158,26 +155,26 @@ public List getChilds() { return result; } - @objid ("92a380e7-2c40-4c7b-b9d6-3ae8557a9bcf") + @objid ("a508d857-ab6f-4512-a7b6-758f6ad097a5") protected ExternalIdentifier(final Class elt) { super(elt); } @objid ("c29cec98-a116-4fff-9165-be962105e0ad") public static final class MdaTypes { - @objid ("7d3b1f79-bf22-4ff1-8515-b48019787a1b") + @objid ("ce0e8f05-b39c-4cd5-9ed4-e546e9b6acf2") public static Stereotype STEREOTYPE_ELT; - @objid ("db9c9c64-e014-4dad-9d07-67fbe4ec428a") + @objid ("5a774216-10c3-4287-a360-9ae3763f44b8") public static TagType IDENTIFIER_TAGTYPE_ELT; - @objid ("746a5178-d0e6-4044-b4c0-c7396ae6ff19") + @objid ("bba3121f-a573-4383-9cb5-dc95397e121f") private static Stereotype MDAASSOCDEP; - @objid ("1ef9cddf-73f5-4961-9aed-c7de4e2eb2b1") + @objid ("9126d154-3348-41e9-acbe-962fbaabe6e2") private static TagType MDAASSOCDEP_ROLE; - @objid ("b15c8628-7ad7-4aa5-8e62-75239f67133c") + @objid ("7d7c12ea-1044-4963-9314-aa69f2248566") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "9e9641f0-08c0-4453-a828-314b9d3e7682"); IDENTIFIER_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "79f66d2e-b870-4d06-81b9-8851077fb522"); @@ -186,11 +183,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 0e9ece8a..d57d121c 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.organisationmodel.standard.class_; @@ -35,13 +35,13 @@ */ @objid ("e21f0be0-3d22-47e8-a054-ec23ac4f1d3f") public class ModelResourceFilter extends ResourceFilter { - @objid ("5d401c0f-f024-4ea8-adba-31e33ca0aad4") + @objid ("29077d1d-f93e-49f3-ae17-96c9e38fadca") public static final String STEREOTYPE_NAME = "ModelResourceFilter"; - @objid ("69aa2257-a61b-430e-af76-22f49d973d47") + @objid ("358b5535-2ab1-4b08-832c-bf6845b147de") public static final String EVERYINFORMATIONRESOURCE_TAGTYPE = "everyInformationResource"; - @objid ("69b5959c-16bc-4c1c-9370-03b8ed8d1c71") + @objid ("403f3c55-d1e3-4f92-8d73-e92ea0be717a") public static final String INFORMATIONRESOURCEPATH_TAGTYPE = "informationResourcePath"; /** @@ -52,7 +52,7 @@ public class ModelResourceFilter extends ResourceFilter { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("8f28d2e5-c406-4e53-86d2-d4f946460e91") + @objid ("d3177117-6acd-457b-984f-86914c6e7029") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, ModelResourceFilter.STEREOTYPE_NAME)); } @@ -62,7 +62,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link ModelResourceFilter} proxy on the created {@link Class}. */ - @objid ("53bab721-87cb-4f26-8b30-0702b5305abd") + @objid ("39bfeb23-67de-477f-9445-be6d71cfde3f") public static ModelResourceFilter create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, ModelResourceFilter.STEREOTYPE_NAME); @@ -70,36 +70,34 @@ 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. */ - @objid ("f35fee65-e33f-4c0e-a6f4-67881fffa108") + @objid ("70aa3045-daed-4758-ba7b-9c84fbfaed03") public static ModelResourceFilter instantiate(final Class obj) { return ModelResourceFilter.canInstantiate(obj) ? new ModelResourceFilter(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("cec6ec0f-1afc-4808-ae4d-b4ab1d992c27") + @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 ("524f5dec-6ef4-4595-a3f8-8aa65484b110") + @objid ("5a7d64f1-53de-4ade-ad84-84d79da1547a") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -116,11 +114,10 @@ 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 ("7a16726d-6a47-43a3-919c-81bb21840624") + @objid ("c9521f64-5cd7-4e1e-80f2-b555f2bbfc87") @Override public Class getElement() { return (Class)super.getElement(); @@ -131,12 +128,12 @@ public Class getElement() { *

Property description: *
null

*/ - @objid ("99b3d460-9f7e-4724-8f10-07572f5d6ad8") + @objid ("519a2921-008f-40af-a8ea-e9289858cca8") public String getInformationResourcePath() { return this.elt.getTagValue(ModelResourceFilter.MdaTypes.INFORMATIONRESOURCEPATH_TAGTYPE_ELT); } - @objid ("d9b5e8f2-3a6b-44cd-b174-27a4775f8fa5") + @objid ("3e99be49-3e01-40cb-bf20-813680355546") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -147,7 +144,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("cc1712eb-9819-4b71-9f34-395468c72042") + @objid ("99e6962c-6939-4720-abe1-9f8c48328496") public boolean isEveryInformationResource() { return this.elt.isTagged(ModelResourceFilter.MdaTypes.EVERYINFORMATIONRESOURCE_TAGTYPE_ELT); } @@ -157,7 +154,7 @@ public boolean isEveryInformationResource() { *

Property description: *
null

*/ - @objid ("f975472a-04b7-4400-9eab-70eac0af37bd") + @objid ("452f23f1-fe43-49b7-8a6e-b20aa1910cfe") public void setEveryInformationResource(final boolean value) { if (value) CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createTaggedValue(ModelResourceFilter.MdaTypes.EVERYINFORMATIONRESOURCE_TAGTYPE_ELT, this.elt); @@ -170,7 +167,7 @@ public void setEveryInformationResource(final boolean value) { *

Property description: *
null

*/ - @objid ("572fd1ab-f356-4f99-8cc0-a6fc87c94f92") + @objid ("d4b7b8d8-edab-49b3-9aff-ad485a65cb4c") public void setInformationResourcePath(final String value) { this.elt.putTagValue(ModelResourceFilter.MdaTypes.INFORMATIONRESOURCEPATH_TAGTYPE_ELT, value); } @@ -183,29 +180,29 @@ public List getChilds() { return result; } - @objid ("eceb587a-d865-42ec-bf5b-0280c89ccddb") + @objid ("ae2541ab-015c-4df4-bbf4-7e912aceacba") protected ModelResourceFilter(final Class elt) { super(elt); } @objid ("bdba83c4-ef71-4797-8568-cbac9a6170f8") public static final class MdaTypes { - @objid ("50d36680-9041-4a51-aeb9-0f998be820b8") + @objid ("f5f6c0f0-686e-48a2-b04a-ddb2761e22ae") public static Stereotype STEREOTYPE_ELT; - @objid ("5e473db7-69d5-46fb-8d60-16a02e4a9c65") + @objid ("04ec8990-0fc8-460d-b375-2cf579ab1e3a") public static TagType INFORMATIONRESOURCEPATH_TAGTYPE_ELT; - @objid ("800d59f8-ae09-4dce-87a7-0e616de2f6fb") + @objid ("4a7b0976-22da-4c7a-9f3d-e98c7ab2b570") public static TagType EVERYINFORMATIONRESOURCE_TAGTYPE_ELT; - @objid ("81ed8a97-3fee-4ecc-9d4d-6290b2e0b530") + @objid ("4f213e25-370a-4b13-99a1-bea0f8e5e70c") private static Stereotype MDAASSOCDEP; - @objid ("cc3264e4-fbd6-49a5-b026-501dc948e62e") + @objid ("f36935c1-9d1a-4970-81fb-14a2de52029b") private static TagType MDAASSOCDEP_ROLE; - @objid ("174fd89c-7ee9-43e3-84cc-c81597cfacac") + @objid ("a7112f9d-7221-4cc2-b225-98a62821eb75") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "b2deaba4-8571-4400-b47d-f0a5b91b3149"); INFORMATIONRESOURCEPATH_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "cbea7d8d-42de-41a1-808c-4a3c6505d00f"); @@ -215,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/organisationmodel/standard/class_/Organisation.java b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/Organisation.java index 69524f9e..a7aa20ff 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.organisationmodel.standard.class_; @@ -14,6 +14,7 @@ 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; @@ -36,16 +37,16 @@ */ @objid ("eccd47db-19f1-4992-946f-1f943f3667d6") public class Organisation extends Entity { - @objid ("b3059974-f013-46cd-b2c2-a469112d51bd") + @objid ("8970b371-5f9c-4781-87f8-937a35febf22") public static final String STEREOTYPE_NAME = "Organisation"; - @objid ("34ba6aac-3494-4f83-8959-e0badd7abc61") + @objid ("b7ff7b09-bbd8-4f8c-bbb7-2c4b56591edd") public static final String EMAIL_TAGTYPE = "email"; - @objid ("d07069b4-ef11-494f-b7f5-ad63af672450") + @objid ("9fcf7ce8-d2a5-45ba-bdab-f92e825ae54b") public static final String POSTALADDRESS_TAGTYPE = "postalAddress"; - @objid ("834260af-b23e-4d0d-984b-ed2e3daa6f2a") + @objid ("2ae979a0-4ac3-4ee3-bb4f-870c96c5f6e9") public static final String WWW_TAGTYPE = "www"; /** @@ -56,7 +57,7 @@ public class Organisation extends Entity { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("86d2ac6a-51d4-4b4e-92f4-644881b1d210") + @objid ("ed80819b-8e30-4622-8601-3d69e37fc76b") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, Organisation.STEREOTYPE_NAME)); } @@ -66,7 +67,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link Organisation} proxy on the created {@link Class}. */ - @objid ("36d2925e-c6b5-4611-9074-188a80eaed55") + @objid ("92bebb78-7a58-4b92-909e-d6b7fb7f8870") public static Organisation create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, Organisation.STEREOTYPE_NAME); @@ -74,47 +75,46 @@ 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. */ - @objid ("05d0900a-4ab8-4a80-a36f-d777e9b4e0ab") + @objid ("c485becb-b70e-4d1a-9b93-473b04fc4997") public static Organisation instantiate(final Class obj) { return Organisation.canInstantiate(obj) ? new Organisation(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("bf4251fe-9e8e-4db7-8395-d8aa7af416fe") + @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 ("3957c68e-e258-4037-830a-cfe1534452bb") + @objid ("05d8fc13-a79b-425c-a785-92c587754436") public void addCloudCredentials(final CloudCredentials obj) { if (obj!=null) ((Class) this.elt).getOwnedElement().add(obj.getElement()); } - @objid ("75ecfcdf-5ebc-4212-9c7d-626d31cd3708") + @objid ("f7677323-7660-49ef-84eb-77bdb3efe22e") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -134,23 +134,23 @@ public boolean equals(final Object obj) { * Get the values of the 'cloudCredentials' role.

* Role description: * null + * */ - @objid ("213ebcbe-14b4-44b2-8ec9-158d4acda599") + @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 ("d045e95b-860e-4509-a873-fae21f0ffce6") + @objid ("f192cec7-c7ed-4bf6-aca7-92d4b27090c9") @Override public Class getElement() { return (Class)super.getElement(); @@ -161,7 +161,7 @@ public Class getElement() { *

Property description: *
null

*/ - @objid ("65b98e7e-dc48-416c-bf73-87323e27c6a6") + @objid ("04a66e6d-cdf8-42de-98ee-ddd217a00e49") public String getEmail() { return this.elt.getTagValue(Organisation.MdaTypes.EMAIL_TAGTYPE_ELT); } @@ -171,7 +171,7 @@ public String getEmail() { *

Property description: *
null

*/ - @objid ("4922b471-30a8-49ec-9872-4cc87aeec8d8") + @objid ("fdc9e310-6a04-41ab-ba63-5e4be6492e7e") public String getPostalAddress() { return this.elt.getTagValue(Organisation.MdaTypes.POSTALADDRESS_TAGTYPE_ELT); } @@ -181,12 +181,12 @@ public String getPostalAddress() { *

Property description: *
null

*/ - @objid ("2d706ecb-8e0c-4e12-ac89-6e8fd5e7b0bd") + @objid ("d124e360-dc43-42b1-8500-789faaf382f1") public String getWww() { return this.elt.getTagValue(Organisation.MdaTypes.WWW_TAGTYPE_ELT); } - @objid ("48e238d4-5ff9-440d-84ba-4820e4eabcd8") + @objid ("40551212-b64b-4ba4-94d3-b0569a889a2d") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -196,8 +196,9 @@ public int hashCode() { * Remove a value from the 'cloudCredentials' role.

* Role description: * null + * */ - @objid ("cb4a74a0-f100-495d-8823-57f74e3387c8") + @objid ("4ddd0101-62a9-46e9-aba2-3844a3ed8099") public boolean removeCloudCredentials(final CloudCredentials obj) { return (obj!=null)? ((Class) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -207,7 +208,7 @@ public boolean removeCloudCredentials(final CloudCredentials obj) { *

Property description: *
null

*/ - @objid ("a269175c-6b98-4e6a-8c6f-a9564d6b44bf") + @objid ("121d9074-14d7-48a7-b3d3-2400d3bef1cc") public void setEmail(final String value) { this.elt.putTagValue(Organisation.MdaTypes.EMAIL_TAGTYPE_ELT, value); } @@ -217,7 +218,7 @@ public void setEmail(final String value) { *

Property description: *
null

*/ - @objid ("afc55cfa-3b62-41a4-b745-a7372adf077d") + @objid ("210c285c-8a4a-42b1-a451-d37baf3a4838") public void setPostalAddress(final String value) { this.elt.putTagValue(Organisation.MdaTypes.POSTALADDRESS_TAGTYPE_ELT, value); } @@ -227,7 +228,7 @@ public void setPostalAddress(final String value) { *

Property description: *
null

*/ - @objid ("659b8437-e38b-4ba7-af12-6122cae2b16f") + @objid ("b9f36c3b-64dc-4a3a-8066-6f3b67f1fce3") public void setWww(final String value) { this.elt.putTagValue(Organisation.MdaTypes.WWW_TAGTYPE_ELT, value); } @@ -240,32 +241,32 @@ public List getChilds() { return result; } - @objid ("ffc3c6de-c4ef-4042-885c-cd787b77e274") + @objid ("57509ec8-c62a-4610-a97e-ea055da0b5fa") protected Organisation(final Class elt) { super(elt); } @objid ("09128454-19e1-48ce-821e-ed57aa740679") public static final class MdaTypes { - @objid ("32af3153-9b3c-46db-9908-890c8f847a01") + @objid ("a9b31e59-b185-423c-b9a5-8f6d441e5f93") public static Stereotype STEREOTYPE_ELT; - @objid ("8905c23d-61ee-4920-a615-87575e1394ca") + @objid ("fa5f4aff-1e4b-4db0-942c-19d81831fdc3") public static TagType WWW_TAGTYPE_ELT; - @objid ("16379554-4a80-4f27-a302-ca2ed8137481") + @objid ("d7f032e3-1372-40c8-aee0-385d658da9db") public static TagType POSTALADDRESS_TAGTYPE_ELT; - @objid ("8b8118cc-dbfe-4c4b-989c-7263badc996b") + @objid ("6f62d237-d2df-4579-99b1-15a9c723b27e") public static TagType EMAIL_TAGTYPE_ELT; - @objid ("a6d0f951-9364-4a5f-b5f2-bf49f149e4a9") + @objid ("1eb7af80-2be8-4b5d-b9f7-e29077867cf4") private static Stereotype MDAASSOCDEP; - @objid ("87c3401e-d6a1-4d14-abee-1415b7a0c472") + @objid ("a7bd06cc-2858-412d-97cb-4037550b6571") private static TagType MDAASSOCDEP_ROLE; - @objid ("caa7295c-7e52-49a3-858c-ad4a8a34271a") + @objid ("daa359fb-b242-4c28-b39f-a61e86749948") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "fa6ac57f-ab05-4b55-81ec-f129e360b94d"); WWW_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "79c63438-ac0f-42ea-aead-1ff7c9210f58"); @@ -276,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/organisationmodel/standard/class_/Permission.java b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/Permission.java index 5c5ac4f9..f1735cb8 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.organisationmodel.standard.class_; @@ -17,6 +17,8 @@ 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; @@ -40,16 +42,16 @@ */ @objid ("c4125da8-2af3-4f99-b5b9-17fc903ad9ce") public class Permission extends FeatureClass { - @objid ("3414b376-1477-416d-806e-c129f20e0619") + @objid ("00c3cded-2073-47be-a8d1-a6b800ff1b30") public static final String STEREOTYPE_NAME = "Permission"; - @objid ("46f25f64-df41-42bf-89a8-3afcadaa677e") + @objid ("e63ddb35-863d-40ba-a4bb-c758cf83cb98") public static final String ACTION_TAGTYPE = "action"; - @objid ("4d3bae6e-ff1b-421e-8271-ff15bc8ca80f") + @objid ("02a6b76e-7c18-4601-87f8-57fa67909676") public static final String ENDTIME_TAGTYPE = "endTime"; - @objid ("7ac0fab8-45e0-4930-ad72-17a9e5896cc6") + @objid ("a2dbb14d-a0e5-4541-8e47-487fd1754072") public static final String STARTTIME_TAGTYPE = "startTime"; /** @@ -60,7 +62,7 @@ public class Permission extends FeatureClass { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("d4361c56-45d9-4424-931c-b11d87d9baa1") + @objid ("79c6c809-63ea-4aba-8974-776cb4bf031d") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, Permission.STEREOTYPE_NAME)); } @@ -70,7 +72,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link Permission} proxy on the created {@link Class}. */ - @objid ("89e9ef4f-a040-41a7-b2d8-3957ce172776") + @objid ("b9b96ab3-ade6-4a5a-9a7f-bb8bf940baba") public static Permission create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, Permission.STEREOTYPE_NAME); @@ -78,36 +80,34 @@ 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. */ - @objid ("dc720630-f6d8-4974-9b2c-746a051dbf5e") + @objid ("e03561a7-21fa-40b1-ac65-38c0aa44a180") public static Permission instantiate(final Class obj) { return Permission.canInstantiate(obj) ? new Permission(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("2227e06e-87dd-4edc-8882-b45758f2b87d") + @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 ("65a707ac-ab76-46bb-a8df-0ec2b5139e1b") + @objid ("e7b83414-b9e0-4fa7-8156-11a54ed80d05") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -128,17 +128,16 @@ public boolean equals(final Object obj) { *

Property description: *
null

*/ - @objid ("3f05a708-3dfd-4634-af4b-fd36bd6029f4") + @objid ("3130275b-912c-4185-91cd-b5e7b4a73f32") public String getAction() { return this.elt.getTagValue(Permission.MdaTypes.ACTION_TAGTYPE_ELT); } /** - * Get the underlying {@link Class}. - * + * Get the underlying {@link Class}. * @return the Class represented by this proxy, never null. */ - @objid ("6f4c3ccc-e52a-44ab-b511-2a8d3c940615") + @objid ("e5dae3f6-759a-4311-8186-807dd99b5257") @Override public Class getElement() { return (Class)super.getElement(); @@ -149,7 +148,7 @@ public Class getElement() { *

Property description: *
null

*/ - @objid ("7ae8489e-ddbd-43a1-a2f8-eebcf022aee0") + @objid ("80af0ad1-0abb-4018-8050-e832b3f8fd34") public String getEndTime() { return this.elt.getTagValue(Permission.MdaTypes.ENDTIME_TAGTYPE_ELT); } @@ -158,8 +157,9 @@ public String getEndTime() { * Get the value of the 'resourceFilter' role.

* Role description: * null + * */ - @objid ("12dd2ef5-ecf7-450d-bcd6-b3f530dc6e51") + @objid ("5535e20a-ca56-4958-b753-a06341ad958d") public ResourceFilter getResourceFilter() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(Permission.MdaTypes.MDAASSOCDEP) @@ -181,8 +181,9 @@ public ResourceFilter getResourceFilter() { * Get the value of the 'role' role.

* Role description: * null + * */ - @objid ("4c38f5bd-bb9e-4c7f-b400-2cc2f3005096") + @objid ("1aed6b0b-1541-42d5-a8f1-2e25fb9f73f7") public Role getRole() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(Permission.MdaTypes.MDAASSOCDEP) @@ -199,12 +200,12 @@ public Role getRole() { *

Property description: *
null

*/ - @objid ("b7fa59f7-84ba-4d02-9345-7a0f0e4d3234") + @objid ("5cd02895-5239-4921-bbeb-544d1f4806f2") public String getStartTime() { return this.elt.getTagValue(Permission.MdaTypes.STARTTIME_TAGTYPE_ELT); } - @objid ("7117544f-561b-4923-b489-9471ac6ce02b") + @objid ("6b747e7e-a8aa-44e3-84dd-1bb00632c0aa") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -215,7 +216,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("7d5d43e1-d65d-4594-bf0e-43f8e0ebe848") + @objid ("f04489a9-fe91-4a1b-9699-5af863782c41") public void setAction(final String value) { this.elt.putTagValue(Permission.MdaTypes.ACTION_TAGTYPE_ELT, value); } @@ -225,7 +226,7 @@ public void setAction(final String value) { *

Property description: *
null

*/ - @objid ("b9407e90-2146-42f3-92c7-773c7155f5fd") + @objid ("3c3d56f6-d2e5-450f-b1a6-37ec05f274ed") public void setEndTime(final String value) { this.elt.putTagValue(Permission.MdaTypes.ENDTIME_TAGTYPE_ELT, value); } @@ -234,8 +235,9 @@ public void setEndTime(final String value) { * Set the value of the 'resourceFilter' role.

* Role description: * null + * */ - @objid ("c1ab0f95-a18e-47e8-ae28-54da71baf6e7") + @objid ("a4c9b180-a8bf-406a-b601-28190fdf3277") public void setResourceFilter(final ResourceFilter obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -259,8 +261,9 @@ public void setResourceFilter(final ResourceFilter obj) { * Set the value of the 'role' role.

* Role description: * null + * */ - @objid ("1b9803b1-5a57-4d8f-b058-93da9bd970e3") + @objid ("ac38888e-976e-45e3-ac5b-a368d19a8b9d") public void setRole(final Role obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -285,7 +288,7 @@ public void setRole(final Role obj) { *

Property description: *
null

*/ - @objid ("cf3368a3-de21-4043-b5fe-28f18aa89b5f") + @objid ("14d7c07e-4f93-4610-9e60-10a2fd74335a") public void setStartTime(final String value) { this.elt.putTagValue(Permission.MdaTypes.STARTTIME_TAGTYPE_ELT, value); } @@ -298,32 +301,32 @@ public List getChilds() { return result; } - @objid ("c0c1792a-3035-469d-93bd-0cc747c21c69") + @objid ("9a2c8f12-75f2-44ae-afb6-e6dcf925033c") protected Permission(final Class elt) { super(elt); } @objid ("fd62df34-464e-4836-920b-01cca4e1811a") public static final class MdaTypes { - @objid ("4d224f82-6d99-4169-bbba-5023adc15dee") + @objid ("40d1253d-775b-432d-b87d-6fdacc0ee9ae") public static Stereotype STEREOTYPE_ELT; - @objid ("a8638b02-a562-4d7a-be5a-6d24bda56c41") + @objid ("9ea5511e-2e10-4cfd-87af-3477da37cb6f") public static TagType STARTTIME_TAGTYPE_ELT; - @objid ("9fe3f575-c469-4dd0-9d5f-7bd0d5e5f898") + @objid ("80582dce-8705-4429-a526-38d1b0004e98") public static TagType ENDTIME_TAGTYPE_ELT; - @objid ("9d7e696b-4eae-4966-b7de-9c7d8cafc5ad") + @objid ("2b014e5d-a353-4a23-b164-797926867e21") public static TagType ACTION_TAGTYPE_ELT; - @objid ("6959bf21-428c-4ef2-80ab-d8687e943441") + @objid ("26286dbd-8338-4a89-9df3-7d27f300fc7a") private static Stereotype MDAASSOCDEP; - @objid ("ceebbdbd-7283-4e10-a0aa-2534b34daa47") + @objid ("187fc45a-135f-4421-99f9-77cc113633e0") private static TagType MDAASSOCDEP_ROLE; - @objid ("c473e883-bfe1-460e-88e2-1207a22bd244") + @objid ("a60d50da-79c2-4efe-876c-187c926f0902") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "6ae08256-a803-41d5-b777-25c632563818"); STARTTIME_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "1cd5d4cb-89a8-4de9-bb2b-b8c6c32eb886"); @@ -334,11 +337,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 e1e1b285..423d28c4 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.organisationmodel.standard.class_; @@ -35,10 +35,10 @@ */ @objid ("071d211c-2384-4a4a-8cac-c38f32bd4c25") public class PlatformCredentials extends Credentials { - @objid ("e97e79fa-37b3-4ff0-98d0-0f4008012b97") + @objid ("263990fb-14e8-4410-84f4-767e137ad37b") public static final String STEREOTYPE_NAME = "PlatformCredentials"; - @objid ("930308ca-a44b-42cd-8496-a665b9890122") + @objid ("ed6587dc-1c64-4256-b41c-4b18e1af7f1a") public static final String PASSWORD_TAGTYPE = "password"; /** @@ -49,7 +49,7 @@ public class PlatformCredentials extends Credentials { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("92e1d6e7-af72-483c-8cb8-79dc1bc9cd61") + @objid ("a59b69ec-3b29-4676-9e84-d3315e91faf5") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, PlatformCredentials.STEREOTYPE_NAME)); } @@ -59,7 +59,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link PlatformCredentials} proxy on the created {@link Class}. */ - @objid ("8bd31670-dcd3-423b-a635-826735ab066b") + @objid ("97c3587f-d454-456f-830d-5bcb79bed3ab") public static PlatformCredentials create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, PlatformCredentials.STEREOTYPE_NAME); @@ -67,36 +67,34 @@ 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. */ - @objid ("4d749a16-de93-434d-9128-738cc1441193") + @objid ("025e0a8e-67c8-40c4-9e5d-ac8d79a344c3") public static PlatformCredentials instantiate(final Class obj) { return PlatformCredentials.canInstantiate(obj) ? new PlatformCredentials(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("1aaf3fbc-dbcc-4c73-8bc5-75bc96363674") + @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 ("fd6a55e5-9701-41a7-93f8-7c3a2d4bc569") + @objid ("6b4b9e5e-2433-4d10-b943-68ac2f83bc14") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -113,11 +111,10 @@ 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 ("c8098d7f-b935-4656-a251-f4de65764329") + @objid ("43f0ed2c-ad69-4caa-87ce-c15b26f580e3") @Override public Class getElement() { return (Class)super.getElement(); @@ -128,12 +125,12 @@ public Class getElement() { *

Property description: *
null

*/ - @objid ("678e7627-c06b-41aa-8792-6a352172ced5") + @objid ("02cf8c1f-e1b9-4fed-915d-9e92fe55cbd6") public String getPassword() { return this.elt.getTagValue(PlatformCredentials.MdaTypes.PASSWORD_TAGTYPE_ELT); } - @objid ("1d402df5-0453-49ef-bb4c-3c9d79c467af") + @objid ("2ba61f0f-920f-4485-866b-c5e9825a9673") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -144,7 +141,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("2394c5d1-4cca-4661-987a-5a44901886dc") + @objid ("5695d130-a511-4de2-9e1f-b666e923eb57") public void setPassword(final String value) { this.elt.putTagValue(PlatformCredentials.MdaTypes.PASSWORD_TAGTYPE_ELT, value); } @@ -157,26 +154,26 @@ public List getChilds() { return result; } - @objid ("1c470a21-9ee0-4291-9374-19f6d524a81f") + @objid ("f8604c0d-b32d-4074-bcf3-14e3a8fd951a") protected PlatformCredentials(final Class elt) { super(elt); } @objid ("92fe8b7b-826a-496c-8b51-48154e382f82") public static final class MdaTypes { - @objid ("45a15148-7cb0-42aa-8bd6-ada8fc6a1b43") + @objid ("3896cde7-8965-4f6d-80af-e8b0e3efc77e") public static Stereotype STEREOTYPE_ELT; - @objid ("4e7fe92c-3e60-4d07-9920-3bf6129ce687") + @objid ("68116a21-6365-42f2-8095-5ba6335a24fa") public static TagType PASSWORD_TAGTYPE_ELT; - @objid ("fd8bfffd-50ed-47ba-83fb-f46a0e5ea71b") + @objid ("4faa91e6-dc75-47f1-b135-2d4d01187907") private static Stereotype MDAASSOCDEP; - @objid ("f7ba3d56-c557-4fdd-9c39-3c4207742baf") + @objid ("ac0b4504-68fc-49b2-9747-0b2a10b785f5") private static TagType MDAASSOCDEP_ROLE; - @objid ("72ea9eb9-2022-4b0c-983c-1307b115fabc") + @objid ("9fe5a0b0-1337-43f5-bc17-a00ea024c204") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "18028ade-34c8-4575-802c-163035bf0bb0"); PASSWORD_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "82175de9-34de-4e30-ba3e-d13cdf0653d1"); @@ -185,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/organisationmodel/standard/class_/ResourceFilter.java b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/ResourceFilter.java index c5b5d14a..6d9bf786 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.organisationmodel.standard.class_; @@ -36,10 +36,10 @@ */ @objid ("53eb9b5e-52a6-497a-9bde-4d9f38ed6449") public abstract class ResourceFilter extends FeatureClass { - @objid ("72f9532d-9b3e-4899-90a7-98ac34c1121c") + @objid ("64d61abc-b8bb-4e8f-915a-a28c174e6a98") public static final String STEREOTYPE_NAME = "ResourceFilter"; - @objid ("d02fda59-ca09-4dda-919f-adb4dbed0280") + @objid ("70aaf5a0-588c-4dc1-8427-e9ead06ad5a8") public static final String RESOURCEPATTERN_TAGTYPE = "resourcePattern"; /** @@ -50,12 +50,12 @@ public abstract class ResourceFilter extends FeatureClass { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("860db183-2f3c-4ae7-a814-71aaf8a3acb9") + @objid ("474aa94a-2f3a-45d7-a063-fdee2c2b2d4a") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, ResourceFilter.STEREOTYPE_NAME)); } - @objid ("ff3b5bc1-1248-495f-9862-cdb535b6037f") + @objid ("c96e838f-6a4c-4ae3-8303-ab729f9cbc12") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -72,11 +72,10 @@ 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 ("3d092520-445d-44c1-b24d-1b086d13a89b") + @objid ("9bed5e2b-02b7-47f1-a759-0fb6e74b7410") @Override public Class getElement() { return (Class)super.getElement(); @@ -87,12 +86,12 @@ public Class getElement() { *

Property description: *
null

*/ - @objid ("74f52db3-9b15-404e-9a8d-6f7b2ebc8c64") + @objid ("d1efa9e3-4363-4878-b2de-f3fda62e2b60") public String getResourcePattern() { return this.elt.getTagValue(ResourceFilter.MdaTypes.RESOURCEPATTERN_TAGTYPE_ELT); } - @objid ("da41f5e9-5b80-4b2f-aa03-485b56d7d775") + @objid ("03082496-14b7-45af-a8ca-6e080caef8e3") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -103,7 +102,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("1f460c74-b8b5-48e1-b625-2da283870416") + @objid ("208b41cb-9455-41e2-a0f4-4312c2a25466") public void setResourcePattern(final String value) { this.elt.putTagValue(ResourceFilter.MdaTypes.RESOURCEPATTERN_TAGTYPE_ELT, value); } @@ -116,26 +115,26 @@ public List getChilds() { return result; } - @objid ("56701370-90d0-42a4-9d50-b516852c276b") + @objid ("38b939bc-8855-44c3-82ec-ef5b62733c39") protected ResourceFilter(final Class elt) { super(elt); } @objid ("bd4f750f-80f9-4a53-854a-cfc985bd16a5") public static final class MdaTypes { - @objid ("adbfdcbb-92e1-4336-ab7a-2442763bd1da") + @objid ("530f9e52-009c-45ef-9d66-c2f41bc58782") public static Stereotype STEREOTYPE_ELT; - @objid ("0aa88e8a-1a6e-4ae0-b9a1-3c6d6b112055") + @objid ("4eb9a74d-5b96-4d29-baef-ddcbce559603") public static TagType RESOURCEPATTERN_TAGTYPE_ELT; - @objid ("87e0f937-a504-4334-a3c7-e73ee019134f") + @objid ("eb6e34eb-ab8b-4821-82e1-2eeb96f9ea69") private static Stereotype MDAASSOCDEP; - @objid ("c143b11e-0b6a-4f39-8de8-27f2255dcec6") + @objid ("de37e7d3-17fc-4c5a-864d-022e68155262") private static TagType MDAASSOCDEP_ROLE; - @objid ("97eeb85a-ae10-4f89-a50c-a88f57b2ad2e") + @objid ("31156be5-416c-4509-91b8-bf489980c063") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "ce775666-60ae-48ab-94dd-b9a12b9edf2f"); RESOURCEPATTERN_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "4a71ce8e-6fc5-476d-8f32-ccf11be3149c"); @@ -144,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/organisationmodel/standard/class_/Role.java b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/Role.java index 1908101f..e37e001c 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.organisationmodel.standard.class_; @@ -36,7 +36,7 @@ */ @objid ("5846bcfc-fc98-4f31-b691-21c72a9930b9") public class Role extends FeatureClass { - @objid ("ff3bab68-0352-4a50-a91c-269ecb770647") + @objid ("dc7deedc-b0d9-40b1-b738-628e4f4c1114") public static final String STEREOTYPE_NAME = "Role"; /** @@ -47,7 +47,7 @@ public class Role extends FeatureClass { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("22db6852-e7b9-43e4-b197-a354a59f1f5e") + @objid ("e82ae97d-6cb7-4911-a30f-22cc7322ee22") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, Role.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link Role} proxy on the created {@link Class}. */ - @objid ("dba95cc7-6500-4cc3-a67d-d30d11b0aaea") + @objid ("ac8db2b2-78b9-4709-903b-166003f6eecf") public static Role create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, Role.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("bbcb7f13-49f4-48b5-a2c5-56376e139884") + @objid ("4abaf81e-943a-4819-ba55-20a1fa07f696") public static Role instantiate(final Class obj) { return Role.canInstantiate(obj) ? new Role(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("4dcfe15d-1424-4550-ad19-6a0d9e0d2e6f") + @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 ("3a40a008-2852-41ce-af24-8bd8be98006b") + @objid ("2ffd2a7e-3f40-4722-a0db-0f61ba39689a") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,17 +109,16 @@ 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 ("1260eeba-45d0-42b6-87af-8321fb6961ff") + @objid ("497122a9-7edc-4275-b1e4-25c86ba05a8c") @Override public Class getElement() { return (Class)super.getElement(); } - @objid ("fd3edb8d-9311-4962-a5c8-23e954f91b66") + @objid ("2c3167a1-b84d-4614-8e0d-846901250e46") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -135,23 +132,23 @@ public List getChilds() { return result; } - @objid ("dfadee11-5723-47c3-99cc-b4d979661837") + @objid ("0bf55a7d-6acd-4572-93b2-c196e2708d32") protected Role(final Class elt) { super(elt); } @objid ("6984b739-246a-4151-a962-ff6ba842fc69") public static final class MdaTypes { - @objid ("695238ea-7b59-46f7-9a50-4208a9344b2c") + @objid ("7670e42a-ec1d-4edd-b085-cdd2d195df9b") public static Stereotype STEREOTYPE_ELT; - @objid ("c3dcaed5-3791-4e55-ba17-772e3e082c7e") + @objid ("04376a43-3597-46f5-a0e0-495aa9ac953c") private static Stereotype MDAASSOCDEP; - @objid ("a234213d-4d5c-4168-a68c-6ec733a7ebae") + @objid ("c20d616f-5afe-4262-ba1c-ab4a1e9242fb") private static TagType MDAASSOCDEP_ROLE; - @objid ("8d5b1b54-a1e5-4448-b785-a429fa851c32") + @objid ("2156075e-7abc-46b8-923f-e7b4f3633c2a") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "858f6212-589e-4b36-9150-2e764f0e91b5"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -159,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/organisationmodel/standard/class_/RoleAssignment.java b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/RoleAssignment.java index 40d60eee..0b3e4e39 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.organisationmodel.standard.class_; @@ -15,6 +15,9 @@ 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; @@ -36,16 +39,16 @@ */ @objid ("61cc6fd1-460e-4076-9418-4a79ca600092") public class RoleAssignment extends FeatureClass { - @objid ("c9ac2737-b218-487a-9a32-76e791d54617") + @objid ("42aa3919-3009-4828-95d4-b2ffa29ae43e") public static final String STEREOTYPE_NAME = "RoleAssignment"; - @objid ("7acced19-f1cf-4f09-b0a2-d432189d3b4e") + @objid ("cea2bf70-0d89-4bb3-8ce7-b9a1c483fdbe") public static final String ASSIGNMENTTIME_TAGTYPE = "assignmentTime"; - @objid ("7907685f-0a94-4d1c-b877-051c99ae600a") + @objid ("3f5373cd-2196-47d7-8818-8b38c502fb1c") public static final String ENDTIME_TAGTYPE = "endTime"; - @objid ("d1bee66c-8e72-4ca2-a72d-33a1874602ef") + @objid ("7d9e5820-ade4-44e7-9b3a-126250cbd0d4") public static final String STARTTIME_TAGTYPE = "startTime"; /** @@ -56,7 +59,7 @@ public class RoleAssignment extends FeatureClass { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("8d852551-5593-4587-8295-2532138f2775") + @objid ("0486b1b2-c676-4473-b3e1-9db331d1a063") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, RoleAssignment.STEREOTYPE_NAME)); } @@ -66,7 +69,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link RoleAssignment} proxy on the created {@link Class}. */ - @objid ("23a819c9-a010-4186-95b8-df5e2064df46") + @objid ("6e7d6969-1994-4d62-b92a-346cb4e26e75") public static RoleAssignment create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, RoleAssignment.STEREOTYPE_NAME); @@ -74,36 +77,34 @@ 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. */ - @objid ("aeaef435-56bb-40e7-9945-d63848b19357") + @objid ("a58a4878-5735-452f-9cb9-7310f234ffe2") public static RoleAssignment instantiate(final Class obj) { return RoleAssignment.canInstantiate(obj) ? new RoleAssignment(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("a542c80e-7cf5-4478-9aa0-457425d28ae8") + @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 ("0aa9acdc-f55f-412f-9d1a-181f2a76b392") + @objid ("8d7a7308-c451-4b61-8a31-a0f4ef412902") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -124,17 +125,16 @@ public boolean equals(final Object obj) { *

Property description: *
null

*/ - @objid ("673ac43c-1dfe-442b-b1d5-1ede9dde2ec4") + @objid ("15153371-ef49-4942-aeb3-dd801e0926ba") public String getAssignmentTime() { return this.elt.getTagValue(RoleAssignment.MdaTypes.ASSIGNMENTTIME_TAGTYPE_ELT); } /** - * Get the underlying {@link Class}. - * + * Get the underlying {@link Class}. * @return the Class represented by this proxy, never null. */ - @objid ("89f74441-ab76-4b69-96b2-dda3bafca6c9") + @objid ("e01c7e57-ac37-450f-bed0-60f50b52a9ef") @Override public Class getElement() { return (Class)super.getElement(); @@ -145,7 +145,7 @@ public Class getElement() { *

Property description: *
null

*/ - @objid ("a204947d-169a-4b23-b0e5-bfb12935f4da") + @objid ("f1c2f36f-a7d7-4d51-9bc2-7a4d1c4bf92e") public String getEndTime() { return this.elt.getTagValue(RoleAssignment.MdaTypes.ENDTIME_TAGTYPE_ELT); } @@ -154,8 +154,9 @@ public String getEndTime() { * Get the value of the 'role' role.

* Role description: * null + * */ - @objid ("70f2c434-aa92-402d-b281-62b6ea936068") + @objid ("cea09db5-0f4e-4e81-b3a4-95a8b45080ef") public Role getRole() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(RoleAssignment.MdaTypes.MDAASSOCDEP) @@ -172,7 +173,7 @@ public Role getRole() { *

Property description: *
null

*/ - @objid ("8b226263-3585-4ceb-a801-ebb1212f2f0a") + @objid ("e6ef2540-0d87-4158-9016-c2bfd24072d6") public String getStartTime() { return this.elt.getTagValue(RoleAssignment.MdaTypes.STARTTIME_TAGTYPE_ELT); } @@ -181,8 +182,9 @@ public String getStartTime() { * Get the value of the 'user' role.

* Role description: * null + * */ - @objid ("ad18174f-6d70-4a9c-8098-23571821ae25") + @objid ("b23fe89b-026c-4df8-87cf-6946472d3c45") public User getUser() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(RoleAssignment.MdaTypes.MDAASSOCDEP) @@ -198,8 +200,9 @@ public User getUser() { * Get the value of the 'userGroup' role.

* Role description: * null + * */ - @objid ("73733654-10dc-4f49-b960-3b1a7e33e648") + @objid ("875ce6c5-9a7c-4e0e-9c41-ab71dc699fe5") public UserGroup getUserGroup() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(RoleAssignment.MdaTypes.MDAASSOCDEP) @@ -211,7 +214,7 @@ public UserGroup getUserGroup() { return null; } - @objid ("dbea106c-9708-45e3-b5fb-fa38c8ecb8f8") + @objid ("ac6e470a-88e5-4995-a6a0-6a5107eb9f5c") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -222,7 +225,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("b68685c2-abfc-40d3-bb76-074768a39b1c") + @objid ("5d776c6f-1cf7-4bfa-9fbd-46323fdaea3a") public void setAssignmentTime(final String value) { this.elt.putTagValue(RoleAssignment.MdaTypes.ASSIGNMENTTIME_TAGTYPE_ELT, value); } @@ -232,7 +235,7 @@ public void setAssignmentTime(final String value) { *

Property description: *
null

*/ - @objid ("302e9b54-428b-4bf2-b6d0-acb26eca4798") + @objid ("540d046d-3399-4ff7-a955-7c8493680b02") public void setEndTime(final String value) { this.elt.putTagValue(RoleAssignment.MdaTypes.ENDTIME_TAGTYPE_ELT, value); } @@ -241,8 +244,9 @@ public void setEndTime(final String value) { * Set the value of the 'role' role.

* Role description: * null + * */ - @objid ("645420d8-a176-42e5-9d22-35472943b7af") + @objid ("8f28f6fc-8367-464e-92a9-2320626ec492") public void setRole(final Role obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -267,7 +271,7 @@ public void setRole(final Role obj) { *

Property description: *
null

*/ - @objid ("8da37dc6-d1dd-44c8-badf-215411aacc60") + @objid ("545d2c47-47d2-42e3-aa5a-0c3300fd71b1") public void setStartTime(final String value) { this.elt.putTagValue(RoleAssignment.MdaTypes.STARTTIME_TAGTYPE_ELT, value); } @@ -276,8 +280,9 @@ public void setStartTime(final String value) { * Set the value of the 'user' role.

* Role description: * null + * */ - @objid ("14705c42-3a15-40c7-b0a1-dd8c6daefab7") + @objid ("4bf6d5ba-b7a6-4b51-85ed-b7cfbd823e80") public void setUser(final User obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -301,8 +306,9 @@ public void setUser(final User obj) { * Set the value of the 'userGroup' role.

* Role description: * null + * */ - @objid ("a53c4dba-280d-4bd1-9ee5-309b64fd124c") + @objid ("4613320d-7c7a-4a3e-9783-c423434b2d9a") public void setUserGroup(final UserGroup obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -330,32 +336,32 @@ public List getChilds() { return result; } - @objid ("ed2760df-af7e-4824-89e8-7af9e4639cbc") + @objid ("c1443dfb-d18f-40b1-9196-42d59bbe874f") protected RoleAssignment(final Class elt) { super(elt); } @objid ("25797b38-26a8-436f-90d6-470cd2d7d27e") public static final class MdaTypes { - @objid ("a177cd89-f96d-44d0-abe7-be532cf5624b") + @objid ("61d8b146-2b5e-4cd4-8412-e5a7cc7f985f") public static Stereotype STEREOTYPE_ELT; - @objid ("6c207210-dcec-41fd-b14a-557f52464730") + @objid ("5d614d3b-00a8-4754-a460-601f23d63874") public static TagType STARTTIME_TAGTYPE_ELT; - @objid ("539951b3-e3b0-4592-b05e-7192b5e26d4c") + @objid ("9d5b0d11-825f-42e6-bffd-9b9399cda354") public static TagType ENDTIME_TAGTYPE_ELT; - @objid ("a1caf0cc-3de2-4d2d-b451-75a7cfeeee0c") + @objid ("0c2644ce-a84a-405f-a446-5c219de4c987") public static TagType ASSIGNMENTTIME_TAGTYPE_ELT; - @objid ("ec282182-b082-47c6-bae4-ebb05e9f2250") + @objid ("c763935d-6a21-425a-bf97-994a58b4b3c7") private static Stereotype MDAASSOCDEP; - @objid ("8ccfa09e-eb84-4688-ac98-8db6ed7991ba") + @objid ("35198185-3100-4b92-9657-01f801d3b142") private static TagType MDAASSOCDEP_ROLE; - @objid ("bfb498d0-ac7e-4153-b319-688cfee409b4") + @objid ("4a92b33a-c8b8-40ec-8385-d605361c7b24") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "25d04405-c94a-44a0-848d-8563ca51ba23"); STARTTIME_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "18d4111c-a2ed-4810-84d3-509d97db6890"); @@ -366,11 +372,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 91768414..4aaec851 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.organisationmodel.standard.class_; @@ -35,13 +35,13 @@ */ @objid ("e74e8963-d51d-4407-92a7-54bf8fb74b46") public class ServiceResourceFilter extends ResourceFilter { - @objid ("924b9484-02e8-4aa9-8eac-668773b0698a") + @objid ("e6810e66-f0ef-4535-91db-a5f12204df74") public static final String STEREOTYPE_NAME = "ServiceResourceFilter"; - @objid ("d63c739f-1847-49f1-bbbd-5b26d06bebaa") + @objid ("050c8421-34f8-4a2e-a668-84474aa2de1b") public static final String EVERYSERVICE_TAGTYPE = "everyService"; - @objid ("b8f45787-477b-4ab7-b82e-978148fcefc2") + @objid ("b9a0a207-4a0d-486d-9c7d-b8a689d88552") public static final String SERVICEURL_TAGTYPE = "serviceURL"; /** @@ -52,7 +52,7 @@ public class ServiceResourceFilter extends ResourceFilter { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("2a734594-e1ad-4dc0-9d2c-d58d0cd81a2b") + @objid ("350c59a4-1541-4b25-afc1-47d4c448f072") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, ServiceResourceFilter.STEREOTYPE_NAME)); } @@ -62,7 +62,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link ServiceResourceFilter} proxy on the created {@link Class}. */ - @objid ("c0f84846-5496-409e-8138-c8267ca9f098") + @objid ("209f878a-37f3-4dc0-9861-5cb04153ed36") public static ServiceResourceFilter create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, ServiceResourceFilter.STEREOTYPE_NAME); @@ -70,36 +70,34 @@ 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. */ - @objid ("66556a18-6b83-478c-a83d-f48d957ca7b1") + @objid ("ae360fcb-6e64-4071-ac83-ac92d9579833") public static ServiceResourceFilter instantiate(final Class obj) { return ServiceResourceFilter.canInstantiate(obj) ? new ServiceResourceFilter(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("e062a908-7dc4-41fe-9b5f-0c2d09aa9d51") + @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 ("01b4bd39-2311-449f-98d8-ae1f558c7e1c") + @objid ("c1554e09-afc8-4d86-8cae-6d24ffd282ce") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -116,11 +114,10 @@ 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 ("dfe0c3e2-ebb5-4a3b-9b58-b9f68b7eba81") + @objid ("ac40b125-b0da-439e-bc73-07b4d59000e8") @Override public Class getElement() { return (Class)super.getElement(); @@ -131,12 +128,12 @@ public Class getElement() { *

Property description: *
null

*/ - @objid ("addc6f39-d70a-4538-9227-4eeb2c262985") + @objid ("3edffc7c-b60f-40bf-bd9a-d155c8ac27fa") public String getServiceURL() { return this.elt.getTagValue(ServiceResourceFilter.MdaTypes.SERVICEURL_TAGTYPE_ELT); } - @objid ("d5fea122-0f60-4f3f-9111-c5f7d94ce1a4") + @objid ("0b2cb101-8554-4ac4-aeea-f497451664c7") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -147,7 +144,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("ffaef4d4-4835-43b7-b3f0-430f1041c7c3") + @objid ("d93c1e1b-bc85-4752-b3ad-53478e81da8a") public boolean isEveryService() { return this.elt.isTagged(ServiceResourceFilter.MdaTypes.EVERYSERVICE_TAGTYPE_ELT); } @@ -157,7 +154,7 @@ public boolean isEveryService() { *

Property description: *
null

*/ - @objid ("824ead33-7dff-4daa-8900-436a576355ec") + @objid ("115156da-de05-40b6-869c-dceb68ee930a") public void setEveryService(final boolean value) { if (value) CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createTaggedValue(ServiceResourceFilter.MdaTypes.EVERYSERVICE_TAGTYPE_ELT, this.elt); @@ -170,7 +167,7 @@ public void setEveryService(final boolean value) { *

Property description: *
null

*/ - @objid ("75564723-3441-4450-a7c3-c18ace78fc9f") + @objid ("a7d58151-daeb-455c-8e69-5a83531327b0") public void setServiceURL(final String value) { this.elt.putTagValue(ServiceResourceFilter.MdaTypes.SERVICEURL_TAGTYPE_ELT, value); } @@ -183,29 +180,29 @@ public List getChilds() { return result; } - @objid ("71ca1847-d4f2-4edb-a9e3-c2b5a328f28b") + @objid ("5a3b1868-c1b6-4f53-afe6-70c251276c3b") protected ServiceResourceFilter(final Class elt) { super(elt); } @objid ("6e1dac0f-8361-4302-8dc4-0b2938970e17") public static final class MdaTypes { - @objid ("92e98427-96df-48f2-93cd-5d578b331514") + @objid ("1ecbf201-48f6-48b9-9f81-fb822cdd1892") public static Stereotype STEREOTYPE_ELT; - @objid ("25163a9c-b3d1-4bf3-9506-a2375f9732d2") + @objid ("6fb044b1-c6ab-4d06-aaaf-2a879c4c9de4") public static TagType SERVICEURL_TAGTYPE_ELT; - @objid ("b29e1565-0d05-4642-93ae-ef8bd223eaab") + @objid ("11fcd67f-e5bd-499b-a728-12a3bacc3216") public static TagType EVERYSERVICE_TAGTYPE_ELT; - @objid ("0392847d-9226-4239-bd00-c384888b03c6") + @objid ("91cf3ee0-5a75-4052-8aa2-c0fc8e5d5ee0") private static Stereotype MDAASSOCDEP; - @objid ("d17a1ee7-9b1b-441a-b5e6-bf64712955b1") + @objid ("5591d033-242e-4665-bfa1-47f74327f21c") private static TagType MDAASSOCDEP_ROLE; - @objid ("524b97ff-dd73-4f44-bfc6-fddb4c16a04e") + @objid ("4faba7b0-5317-4023-aae4-c2341d30638a") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "0012ff53-c300-4f0c-bdce-8583f97e3236"); SERVICEURL_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "1b4c10c8-5621-4bb6-aa2e-3f00deea0d5e"); @@ -215,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/organisationmodel/standard/class_/SoftwareComponentResourceFilter.java b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/class_/SoftwareComponentResourceFilter.java index 528de52b..aad34c4e 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.organisationmodel.standard.class_; @@ -38,10 +38,10 @@ */ @objid ("729d862a-a2e3-4f6e-ae37-85020c924c77") public class SoftwareComponentResourceFilter extends ResourceFilter { - @objid ("52236e85-c62d-4b89-91e1-7b00dd05742c") + @objid ("912eb41a-ae43-4c9b-b502-3d0c6f1eb79d") public static final String STEREOTYPE_NAME = "SoftwareComponentResourceFilter"; - @objid ("b14a6a6c-efa1-4d85-84be-52560d783065") + @objid ("a445f606-59bd-46da-9f25-4105d3138bc1") public static final String EVERYCOMPONENT_TAGTYPE = "everyComponent"; /** @@ -52,7 +52,7 @@ public class SoftwareComponentResourceFilter extends ResourceFilter { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("65b81948-7ca3-41fa-a240-d5441cfcff10") + @objid ("bdbb0115-4c58-4c26-8eac-dc31984207ed") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, SoftwareComponentResourceFilter.STEREOTYPE_NAME)); } @@ -62,7 +62,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link SoftwareComponentResourceFilter} proxy on the created {@link Class}. */ - @objid ("4ba84994-6132-4e02-ba42-d43dd5b66f1e") + @objid ("0f3705a0-287b-47b8-b5ed-dd2276b511a4") public static SoftwareComponentResourceFilter create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, SoftwareComponentResourceFilter.STEREOTYPE_NAME); @@ -70,41 +70,40 @@ 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. */ - @objid ("3623806f-17b9-4b0a-8dcf-fdbe30619d6b") + @objid ("729826fd-e3c6-4621-8007-d46b179ae13c") public static SoftwareComponentResourceFilter instantiate(final Class obj) { return SoftwareComponentResourceFilter.canInstantiate(obj) ? new SoftwareComponentResourceFilter(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("e8ac2046-3c0a-459d-92ed-12243db298cd") + @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 ("55a9b2f5-c558-4c6c-823e-2a686ca457d1") + @objid ("7cdf5c68-7a27-468b-9bf6-64c04603ca99") public void addSoftwareComponents(final SoftwareComponent obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -114,7 +113,7 @@ public void addSoftwareComponents(final SoftwareComponent obj) { } } - @objid ("9915e849-aeae-498a-9b15-8341430c3828") + @objid ("26d39532-7985-451b-aa2b-9c222ac4db6d") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -134,8 +133,9 @@ public boolean equals(final Object obj) { * Get the value of the 'application' role.

* Role description: * null + * */ - @objid ("c9fbeffc-5cbc-429f-8e9b-1f61df9ea206") + @objid ("6cfdc9aa-fd5d-4542-ad7f-007d54a56ad1") public CamelModel getApplication() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(SoftwareComponentResourceFilter.MdaTypes.MDAASSOCDEP) @@ -148,11 +148,10 @@ public CamelModel getApplication() { } /** - * Get the underlying {@link Class}. - * + * Get the underlying {@link Class}. * @return the Class represented by this proxy, never null. */ - @objid ("e33cd24d-860d-44e1-9117-6ac2c6f27eeb") + @objid ("e241209d-8d4a-4a92-85d6-9b734a88b863") @Override public Class getElement() { return (Class)super.getElement(); @@ -162,8 +161,9 @@ public Class getElement() { * Get the values of the 'softwareComponents' role.

* Role description: * null + * */ - @objid ("7382cad4-b3f6-458b-a50e-f504d51171c8") + @objid ("46a2a2a5-9666-4773-9ea4-7739a2af0d60") public List getSoftwareComponents() { List results = new ArrayList<>(); for (Dependency d : this.elt.getDependsOnDependency()) { @@ -178,7 +178,7 @@ public List getSoftwareComponents() { return Collections.unmodifiableList(results); } - @objid ("b8758cae-abdf-45e0-a659-085632c66aa8") + @objid ("00f181aa-8466-4040-a8b5-70f2e0d97f64") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -189,7 +189,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("e1716c32-b17c-40c9-9c2c-8338d52498b5") + @objid ("63f5d45d-f1f6-47d7-b83f-9a6eb9f95ff6") public boolean isEveryComponent() { return this.elt.isTagged(SoftwareComponentResourceFilter.MdaTypes.EVERYCOMPONENT_TAGTYPE_ELT); } @@ -198,12 +198,13 @@ public boolean isEveryComponent() { * Remove a value from the 'softwareComponents' role.

* Role description: * null + * */ - @objid ("8b4e33b1-f08f-4760-b266-5c4e9a59ff3b") + @objid ("298fcac0-ee48-412f-8b61-0861166a11ba") public boolean removeSoftwareComponents(final SoftwareComponent obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getDependsOnDependency())) { - if (d.isStereotyped(SoftwareComponentResourceFilter.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(SoftwareComponentResourceFilter.MdaTypes.MDAASSOCDEP_ROLE), "")) + if (d.isStereotyped(SoftwareComponentResourceFilter.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(SoftwareComponentResourceFilter.MdaTypes.MDAASSOCDEP_ROLE), "softwareComponents")) if (Objects.equals(d.getDependsOn(), obj.getElement())) { d.delete(); return true; @@ -217,8 +218,9 @@ public boolean removeSoftwareComponents(final SoftwareComponent obj) { * Set the value of the 'application' role.

* Role description: * null + * */ - @objid ("436eaccb-fe8c-449a-bbea-7844caf24907") + @objid ("9d96aedc-9107-48e2-a287-059d16db6e35") public void setApplication(final CamelModel obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -243,7 +245,7 @@ public void setApplication(final CamelModel obj) { *

Property description: *
null

*/ - @objid ("41b394ef-3a65-4ac4-a377-c8ed387865e8") + @objid ("72514cab-553b-4c93-a214-f016055ed5fb") public void setEveryComponent(final boolean value) { if (value) CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createTaggedValue(SoftwareComponentResourceFilter.MdaTypes.EVERYCOMPONENT_TAGTYPE_ELT, this.elt); @@ -259,26 +261,26 @@ public List getChilds() { return result; } - @objid ("d2d216e0-d193-4e3d-9354-392e66198ea4") + @objid ("3da80bb2-f786-4c17-a595-75febaefd43a") protected SoftwareComponentResourceFilter(final Class elt) { super(elt); } @objid ("9797b51a-6b94-4caf-a495-9d34ae7b4370") public static final class MdaTypes { - @objid ("3358316a-1c86-4e6e-8be0-81c6d5279c99") + @objid ("e1c67c2f-66c5-4e2e-bf0c-6f509f8d6d4a") public static Stereotype STEREOTYPE_ELT; - @objid ("eb23cf09-6a66-4ece-ac20-9631b3df9b0e") + @objid ("527c6156-9515-4d1c-9524-f7af4e3d50b1") public static TagType EVERYCOMPONENT_TAGTYPE_ELT; - @objid ("c71aa305-5e3a-4552-b778-5af6e27b8f77") + @objid ("4848bb74-8201-4f69-9c14-1d245652cf29") private static Stereotype MDAASSOCDEP; - @objid ("77c3afbd-2229-441f-92c6-1c4cf5348b95") + @objid ("22b9dad7-078d-4f9c-ba2b-60a94840127d") private static TagType MDAASSOCDEP_ROLE; - @objid ("2facb8bc-7551-4fca-af4c-21e7264c03d4") + @objid ("9d289d53-380c-4697-97e2-2d72f302a810") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "d2a3f527-691b-4b04-a5c2-63f39b55c173"); EVERYCOMPONENT_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "726ba30c-05cc-4f4b-b31a-4c9238661a62"); @@ -287,11 +289,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 f0f25208..2ffe15ac 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.organisationmodel.standard.class_; @@ -20,6 +20,8 @@ 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; @@ -44,25 +46,25 @@ */ @objid ("27994015-90c9-40c1-8a60-3c9bc12fff11") public class User extends Entity { - @objid ("1cf0691d-f3b0-4cf9-b565-14182fa9aa79") + @objid ("fe6d4df2-27a2-4384-9a0d-c98e156e0d9b") public static final String STEREOTYPE_NAME = "User"; - @objid ("d388d2b3-3525-40c0-83c7-8a0275424c95") + @objid ("2020df63-a086-4e17-a1c7-95247d58d70f") public static final String EMAIL_TAGTYPE = "email"; - @objid ("2de34714-5183-4fcf-806c-31ed1f98d465") + @objid ("2cc0055d-eeb9-4b05-af99-42d2c08917dc") public static final String FIRSTNAME_TAGTYPE = "firstName"; - @objid ("7a10864f-0f5e-44c6-9720-fa7b7c6860d9") + @objid ("8b9e3066-0aa4-4a34-87e1-4a51e00a3935") public static final String LASTNAME_TAGTYPE = "lastName"; - @objid ("bbea0116-3de2-4325-8cee-20f53725aaab") + @objid ("bbcabce5-2220-4ac6-a525-17fc58084452") public static final String PLATFORMCREDENTIALNAME_TAGTYPE = "platformCredentialName"; - @objid ("cd9bea16-14be-4cc6-a68c-983637117c55") + @objid ("a8e129fb-ee31-4622-a127-9dfc28bed540") public static final String PLATFORMCREDENTIALPASSWORD_TAGTYPE = "platformCredentialPassword"; - @objid ("5f29b30c-2e3b-4402-b7c9-d9e28c004797") + @objid ("16650a0f-6e6a-4cb6-a8aa-2a3775e2f173") public static final String WWW_TAGTYPE = "www"; /** @@ -73,7 +75,7 @@ public class User extends Entity { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("6f0ca41a-8c64-4520-a9f1-008857419839") + @objid ("167ef238-7bcd-4905-83ec-3bda21569a6c") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, User.STEREOTYPE_NAME)); } @@ -83,7 +85,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link User} proxy on the created {@link Class}. */ - @objid ("31486b20-e038-4480-afd7-8ad322713fe5") + @objid ("b12285b1-2cd7-4e41-a9b0-1d437a153b56") public static User create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, User.STEREOTYPE_NAME); @@ -91,41 +93,40 @@ 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. */ - @objid ("ac335c94-ffca-49f7-bee3-b2e182c13d11") + @objid ("0a9dab1e-efb1-4777-8dac-833f59c5f6c6") public static User instantiate(final Class obj) { return User.canInstantiate(obj) ? new User(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("8c9fe597-1ee3-44ef-9ba2-4545eec4b701") + @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 ("47283f9a-3c42-47db-a5ad-43f5d5290d32") + @objid ("2ce26ddd-6f07-42b6-852f-ceedaf39908b") public void addDeploymentModels(final DeploymentModel obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -139,8 +140,9 @@ public void addDeploymentModels(final DeploymentModel obj) { * Add a value to the 'externalIdentifiers' role.

* Role description: * null + * */ - @objid ("e368fb2b-6abe-434a-9a97-13ff4b76e089") + @objid ("c877445c-b999-49fb-b569-93947cedc1f9") public void addExternalIdentifiers(final ExternalIdentifier obj) { if (obj!=null) ((Class) this.elt).getOwnedElement().add(obj.getElement()); @@ -150,8 +152,9 @@ public void addExternalIdentifiers(final ExternalIdentifier obj) { * Add a value to the 'metricModels' role.

* Role description: * null + * */ - @objid ("ead0108e-04e1-457e-8a23-8a8c8c17f738") + @objid ("ecfe3a75-5188-498c-ac92-0411f6b0a084") public void addMetricModels(final MetricModel obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -165,8 +168,9 @@ public void addMetricModels(final MetricModel obj) { * Add a value to the 'requirementModels' role.

* Role description: * null + * */ - @objid ("714c8ed2-373a-4a8a-93e0-a149fbd3b4d3") + @objid ("533e0538-12c0-488d-b181-d52999304a63") public void addRequirementModels(final RequirementModel obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -180,8 +184,9 @@ public void addRequirementModels(final RequirementModel obj) { * Add a value to the 'scalabilityModels' role.

* Role description: * null + * */ - @objid ("3ad46f37-e83d-4321-98e6-2d920848fb09") + @objid ("0766dd27-0608-4540-a4d6-388f84262f02") public void addScalabilityModels(final ScalabilityModel obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -191,7 +196,7 @@ public void addScalabilityModels(final ScalabilityModel obj) { } } - @objid ("e9117dda-7bf1-4b82-83bb-885ae98453c1") + @objid ("c9586d38-6ed1-4263-b9ed-78ced15375f2") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -211,8 +216,9 @@ public boolean equals(final Object obj) { * Get the values of the 'deploymentModels' role.

* Role description: * null + * */ - @objid ("18484ed2-7772-4b1e-aa78-229185cb0e61") + @objid ("9ede7478-9691-4074-9831-00c5dd228c38") public List getDeploymentModels() { List results = new ArrayList<>(); for (Dependency d : this.elt.getDependsOnDependency()) { @@ -228,11 +234,10 @@ public List getDeploymentModels() { } /** - * Get the underlying {@link Class}. - * + * Get the underlying {@link Class}. * @return the Class represented by this proxy, never null. */ - @objid ("6bd7d786-e59a-4157-9a7a-0d47450c3b7d") + @objid ("adca9042-d2ea-4323-ae5b-87ab04051805") @Override public Class getElement() { return (Class)super.getElement(); @@ -243,7 +248,7 @@ public Class getElement() { *

Property description: *
null

*/ - @objid ("f66d2e13-4478-47cf-8cea-dbaf28de7003") + @objid ("ad7c8e81-0fd5-4200-a660-aa77aecfe6d9") public String getEmail() { return this.elt.getTagValue(User.MdaTypes.EMAIL_TAGTYPE_ELT); } @@ -252,14 +257,15 @@ public String getEmail() { * Get the values of the 'externalIdentifiers' role.

* Role description: * null + * */ - @objid ("149c6fd5-0752-4c2a-9864-f023471dc22e") + @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); } @@ -268,7 +274,7 @@ public List getExternalIdentifiers() { *

Property description: *
null

*/ - @objid ("3bf68e59-f1ed-4c3a-9c2f-8d74775a63fc") + @objid ("cd37b42f-a62c-472d-8a52-1e1c4c9cd117") public String getFirstName() { return this.elt.getTagValue(User.MdaTypes.FIRSTNAME_TAGTYPE_ELT); } @@ -278,7 +284,7 @@ public String getFirstName() { *

Property description: *
null

*/ - @objid ("28c76db9-480c-4950-8526-c9ba5ac9f8ff") + @objid ("a3e1da9d-16bb-4d78-8044-4704681c3e3a") public String getLastName() { return this.elt.getTagValue(User.MdaTypes.LASTNAME_TAGTYPE_ELT); } @@ -287,8 +293,9 @@ public String getLastName() { * Get the values of the 'metricModels' role.

* Role description: * null + * */ - @objid ("656d9cb0-70d1-46ae-9197-b067d41e5f54") + @objid ("196f1536-2087-4c30-9bfb-2ef48a3381ab") public List getMetricModels() { List results = new ArrayList<>(); for (Dependency d : this.elt.getDependsOnDependency()) { @@ -308,7 +315,7 @@ public List getMetricModels() { *

Property description: *
null

*/ - @objid ("b6e65033-0134-449f-a22d-dd1942c53487") + @objid ("723e4625-eaf4-4ffd-aa78-b472a11adbe6") public String getPlatformCredentialName() { return this.elt.getTagValue(User.MdaTypes.PLATFORMCREDENTIALNAME_TAGTYPE_ELT); } @@ -318,7 +325,7 @@ public String getPlatformCredentialName() { *

Property description: *
null

*/ - @objid ("e75d74d8-edbd-44d4-abed-7a98816e7ccf") + @objid ("08e56953-0650-4ee0-8215-c3aa9d82c6f6") public String getPlatformCredentialPassword() { return this.elt.getTagValue(User.MdaTypes.PLATFORMCREDENTIALPASSWORD_TAGTYPE_ELT); } @@ -327,22 +334,24 @@ public String getPlatformCredentialPassword() { * Get the value to the 'platformCredentials' role.

* Role description: * null + * */ - @objid ("67e25bec-7a12-4ec3-a988-4b71e0ae7200") + @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 ("182d0852-7a4c-4dec-9add-6f814d2689a3") + @objid ("0e0e3544-44cf-4940-aa64-9c6c0a628387") public List getRequirementModels() { List results = new ArrayList<>(); for (Dependency d : this.elt.getDependsOnDependency()) { @@ -359,8 +368,9 @@ public List getRequirementModels() { * Get the values of the 'scalabilityModels' role.

* Role description: * null + * */ - @objid ("eb85f24d-56b1-45c3-b353-a72c07138545") + @objid ("55c6f744-3477-453a-a91f-0c0c51806506") public List getScalabilityModels() { List results = new ArrayList<>(); for (Dependency d : this.elt.getDependsOnDependency()) { @@ -378,12 +388,12 @@ public List getScalabilityModels() { *

Property description: *
null

*/ - @objid ("64f19a7e-7b1b-424c-ade6-cfab23b3db39") + @objid ("bef066a1-f151-42c2-a47e-f94103f166cc") public String getWww() { return this.elt.getTagValue(User.MdaTypes.WWW_TAGTYPE_ELT); } - @objid ("b4be7549-8f66-4089-b30a-1d7d6cfd85d5") + @objid ("2a5d8473-e8dc-4158-b0dd-09da455fe28d") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -393,12 +403,13 @@ public int hashCode() { * Remove a value from the 'deploymentModels' role.

* Role description: * null + * */ - @objid ("b58e37cd-6d56-4393-8e69-11ec5a5d0a77") + @objid ("33f33ae6-07fa-4a37-aa13-9992328db02b") public boolean removeDeploymentModels(final DeploymentModel obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getDependsOnDependency())) { - if (d.isStereotyped(User.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(User.MdaTypes.MDAASSOCDEP_ROLE), "")) + if (d.isStereotyped(User.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(User.MdaTypes.MDAASSOCDEP_ROLE), "deploymentModels")) if (Objects.equals(d.getDependsOn(), obj.getElement())) { d.delete(); return true; @@ -412,8 +423,9 @@ public boolean removeDeploymentModels(final DeploymentModel obj) { * Remove a value from the 'externalIdentifiers' role.

* Role description: * null + * */ - @objid ("fdcf59bb-05ab-4de9-be17-78997db155a3") + @objid ("3762e001-61c3-4103-8a43-e62aea40a87b") public boolean removeExternalIdentifiers(final ExternalIdentifier obj) { return (obj!=null)? ((Class) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -422,12 +434,13 @@ public boolean removeExternalIdentifiers(final ExternalIdentifier obj) { * Remove a value from the 'metricModels' role.

* Role description: * null + * */ - @objid ("459b4ca7-c273-4fad-9037-d4f2d67415a6") + @objid ("20926ee3-3b36-4770-9d20-16dd88dcbf7e") public boolean removeMetricModels(final MetricModel obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getDependsOnDependency())) { - if (d.isStereotyped(User.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(User.MdaTypes.MDAASSOCDEP_ROLE), "")) + if (d.isStereotyped(User.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(User.MdaTypes.MDAASSOCDEP_ROLE), "metricModels")) if (Objects.equals(d.getDependsOn(), obj.getElement())) { d.delete(); return true; @@ -441,12 +454,13 @@ public boolean removeMetricModels(final MetricModel obj) { * Remove a value from the 'requirementModels' role.

* Role description: * null + * */ - @objid ("bf5b9eaf-a984-422d-b0d1-e5dedddf8519") + @objid ("bcd0fbca-d8f0-4065-b7c6-70310456a8d9") public boolean removeRequirementModels(final RequirementModel obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getDependsOnDependency())) { - if (d.isStereotyped(User.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(User.MdaTypes.MDAASSOCDEP_ROLE), "")) + if (d.isStereotyped(User.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(User.MdaTypes.MDAASSOCDEP_ROLE), "requirementModels")) if (Objects.equals(d.getDependsOn(), obj.getElement())) { d.delete(); return true; @@ -460,12 +474,13 @@ public boolean removeRequirementModels(final RequirementModel obj) { * Remove a value from the 'scalabilityModels' role.

* Role description: * null + * */ - @objid ("7c594e20-b7c5-4acb-bf7f-fe2056a7fbb5") + @objid ("f9b2c754-b10a-4fb2-b162-8cde53d43422") public boolean removeScalabilityModels(final ScalabilityModel obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getDependsOnDependency())) { - if (d.isStereotyped(User.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(User.MdaTypes.MDAASSOCDEP_ROLE), "")) + if (d.isStereotyped(User.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(User.MdaTypes.MDAASSOCDEP_ROLE), "scalabilityModels")) if (Objects.equals(d.getDependsOn(), obj.getElement())) { d.delete(); return true; @@ -480,7 +495,7 @@ public boolean removeScalabilityModels(final ScalabilityModel obj) { *

Property description: *
null

*/ - @objid ("89705cae-a8a3-42ab-af1f-3e4ba71c03cd") + @objid ("991b7c6c-c741-434a-8d32-4160ede7df5d") public void setEmail(final String value) { this.elt.putTagValue(User.MdaTypes.EMAIL_TAGTYPE_ELT, value); } @@ -490,7 +505,7 @@ public void setEmail(final String value) { *

Property description: *
null

*/ - @objid ("74663584-f21f-4b05-99ed-0d7341c18400") + @objid ("d50bdbb3-1688-46c1-8d34-d1be4633ca34") public void setFirstName(final String value) { this.elt.putTagValue(User.MdaTypes.FIRSTNAME_TAGTYPE_ELT, value); } @@ -500,7 +515,7 @@ public void setFirstName(final String value) { *

Property description: *
null

*/ - @objid ("60b97ec4-765b-4d12-9495-e590c7795245") + @objid ("4a95fc2c-abde-468a-a567-51b73f482aa1") public void setLastName(final String value) { this.elt.putTagValue(User.MdaTypes.LASTNAME_TAGTYPE_ELT, value); } @@ -510,7 +525,7 @@ public void setLastName(final String value) { *

Property description: *
null

*/ - @objid ("0bfe0c09-c249-4998-b5df-9ff0e67b6fe4") + @objid ("75093700-bd56-4239-bf70-be91afdc3bf5") public void setPlatformCredentialName(final String value) { this.elt.putTagValue(User.MdaTypes.PLATFORMCREDENTIALNAME_TAGTYPE_ELT, value); } @@ -520,7 +535,7 @@ public void setPlatformCredentialName(final String value) { *

Property description: *
null

*/ - @objid ("c3fa6104-2335-4793-8a05-b27d02593bca") + @objid ("955dd0f8-2893-438b-9edf-b682dfb905cb") public void setPlatformCredentialPassword(final String value) { this.elt.putTagValue(User.MdaTypes.PLATFORMCREDENTIALPASSWORD_TAGTYPE_ELT, value); } @@ -529,8 +544,9 @@ public void setPlatformCredentialPassword(final String value) { * Set the value of the 'platformCredentials' role.

* Role description: * null + * */ - @objid ("a3e062ea-a093-4bcb-a303-14f410b4dfc2") + @objid ("71e80d7b-8a27-491d-b332-3827b2f87de7") public void setPlatformCredentials(final PlatformCredentials obj) { // Remove existing PlatformCredentialss for (Class e : ((Class) this.elt).getOwnedElement(Class.class)) { @@ -549,7 +565,7 @@ public void setPlatformCredentials(final PlatformCredentials obj) { *

Property description: *
null

*/ - @objid ("52dfe140-a89a-462a-9d4c-70e378936de3") + @objid ("cd11d339-2795-48d9-8e2e-c5bac49bf384") public void setWww(final String value) { this.elt.putTagValue(User.MdaTypes.WWW_TAGTYPE_ELT, value); } @@ -562,41 +578,41 @@ public List getChilds() { return result; } - @objid ("8d34659b-eafe-4de3-a57c-e45df96a332c") + @objid ("166b3198-472e-4883-b098-d7041bbbcffd") protected User(final Class elt) { super(elt); } @objid ("e7a907de-dc21-4d17-9104-6dae192d680b") public static final class MdaTypes { - @objid ("172ecaf2-6a26-4222-be69-f1cf0588a65c") + @objid ("e0a50421-62cc-41cf-ba59-8ffd9183cd74") public static Stereotype STEREOTYPE_ELT; - @objid ("6f21cd70-0e64-478c-b980-e2720d190fe5") + @objid ("3c2f0e75-fead-4aa2-baa1-d3f0fc23faaf") public static TagType EMAIL_TAGTYPE_ELT; - @objid ("9861dbc8-28e9-48ee-8f46-8ba5b8ba9f66") + @objid ("01412d06-3112-452f-824f-7ef9542c14c9") public static TagType FIRSTNAME_TAGTYPE_ELT; - @objid ("52b9a15a-b405-4993-b0eb-e89c9075ec5a") + @objid ("90fc4eb4-7429-4d1f-a9dd-5a03bb579710") public static TagType LASTNAME_TAGTYPE_ELT; - @objid ("4fd7ec05-a3b4-400f-a025-33b66bd6fc97") + @objid ("0d67dc13-46ba-468d-a85c-a2cfc0a0ac08") public static TagType WWW_TAGTYPE_ELT; - @objid ("9f1d3950-aa0f-4ff4-a053-1db7273781d1") + @objid ("2a61247c-6beb-4ecd-b27c-43415609ed51") public static TagType PLATFORMCREDENTIALNAME_TAGTYPE_ELT; - @objid ("c3bb4e5a-31d5-4b6a-be18-074ec5d1c0dc") + @objid ("ec99bd45-482d-45e5-b152-8404f3b5c572") public static TagType PLATFORMCREDENTIALPASSWORD_TAGTYPE_ELT; - @objid ("af36e567-8bf5-49e7-8947-01944cad25d8") + @objid ("6a3d0981-ed31-4ec0-8817-171bab0656aa") private static Stereotype MDAASSOCDEP; - @objid ("5f3c2e6d-825e-4f41-9d5a-798a31ba493e") + @objid ("85106c26-3de3-4f24-97c6-53a7a6ba39fb") private static TagType MDAASSOCDEP_ROLE; - @objid ("a11726f0-bb80-445f-ab94-1639e7333ec6") + @objid ("b65310e3-ed5a-46ee-826c-0e3bcde9edbd") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "a36b6005-fc91-4d36-bf4a-4b39194d892b"); EMAIL_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "23c8cc8c-ec83-45ef-aa8c-3089186d0437"); @@ -610,11 +626,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 6130402e..15891c31 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.organisationmodel.standard.class_; @@ -15,6 +15,7 @@ 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; @@ -36,7 +37,7 @@ */ @objid ("abad6f96-f2ec-4ca1-9fb0-a0beaa067a8f") public class UserGroup extends FeatureClass { - @objid ("f42fb24d-e611-4a52-997c-675b24b61492") + @objid ("9f8664a7-0e19-4a3d-94a5-dfde2acee324") public static final String STEREOTYPE_NAME = "UserGroup"; /** @@ -47,7 +48,7 @@ public class UserGroup extends FeatureClass { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("de05f48e-ac34-4247-9807-b85236b8c6b5") + @objid ("4934f35c-dc9d-4965-b5d1-fe6aaa7530be") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, UserGroup.STEREOTYPE_NAME)); } @@ -57,7 +58,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link UserGroup} proxy on the created {@link Class}. */ - @objid ("e3b58ae6-f559-4a36-a64c-4bdae2941eca") + @objid ("f026d1a1-b545-4990-90cd-8fa5ad9a0007") public static UserGroup create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, UserGroup.STEREOTYPE_NAME); @@ -65,41 +66,40 @@ 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. */ - @objid ("fa72d417-0ba3-433e-bc0f-04ad47c84217") + @objid ("25e61bb1-d8fe-44ef-a9d9-b93a5bd26b8c") public static UserGroup instantiate(final Class obj) { return UserGroup.canInstantiate(obj) ? new UserGroup(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("bdec0305-9a3c-4675-babd-680ddb8a6378") + @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 ("75cf682d-0d73-4171-918f-433a267289c9") + @objid ("52c27f10-0a15-4979-a122-9454b88eaf9f") public void addUsers(final User obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -109,7 +109,7 @@ public void addUsers(final User obj) { } } - @objid ("26f843e2-5602-4d28-bfad-790faa47d231") + @objid ("90cc4145-8e1b-4b89-834f-b67bab7be7f2") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -126,11 +126,10 @@ 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 ("77342d94-2ff3-46d8-9e64-a570e0fe5b7a") + @objid ("9349e71b-d948-493c-a115-9f036eb2626a") @Override public Class getElement() { return (Class)super.getElement(); @@ -140,8 +139,9 @@ public Class getElement() { * Get the values of the 'users' role.

* Role description: * null + * */ - @objid ("cc7d99df-4a1a-4d35-87da-417917040c9c") + @objid ("4c96966b-ba74-4a48-80aa-1f7a762559a5") public List getUsers() { List results = new ArrayList<>(); for (Dependency d : this.elt.getDependsOnDependency()) { @@ -154,7 +154,7 @@ public List getUsers() { return Collections.unmodifiableList(results); } - @objid ("7a6d59a1-ab16-4ad2-be61-24e62b2b3dcc") + @objid ("24adf7f6-3ef5-4ddb-95f8-0be35a7ac89b") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -164,12 +164,13 @@ public int hashCode() { * Remove a value from the 'users' role.

* Role description: * null + * */ - @objid ("5845bb34-fbc4-4322-96d4-12d3a39e7a4d") + @objid ("b82ea76f-b05f-45a0-b902-feebf40989b0") public boolean removeUsers(final User obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getDependsOnDependency())) { - if (d.isStereotyped(UserGroup.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(UserGroup.MdaTypes.MDAASSOCDEP_ROLE), "")) + if (d.isStereotyped(UserGroup.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(UserGroup.MdaTypes.MDAASSOCDEP_ROLE), "users")) if (Objects.equals(d.getDependsOn(), obj.getElement())) { d.delete(); return true; @@ -187,23 +188,23 @@ public List getChilds() { return result; } - @objid ("726cba2c-bc66-4881-bcdc-be7b85026723") + @objid ("faf014a3-78c1-402f-acf0-c3966aeb7a38") protected UserGroup(final Class elt) { super(elt); } @objid ("5c98c8d7-7e42-4650-94dd-2d4f9879ae9d") public static final class MdaTypes { - @objid ("85671e77-c573-4697-9da2-415ba88fa12a") + @objid ("a1a2171d-c171-4998-839c-54b328e26974") public static Stereotype STEREOTYPE_ELT; - @objid ("896f8132-77e6-4a6b-b7a2-86882e83579f") + @objid ("c2a1eaca-2d1b-41d0-9c1a-8dbfc8c5387f") private static Stereotype MDAASSOCDEP; - @objid ("5357852b-7e93-4653-a0e4-27f0c2fec139") + @objid ("4a077bf7-6885-4715-a1a8-4b66f91a4443") private static TagType MDAASSOCDEP_ROLE; - @objid ("4ae56a20-e9e2-4556-83fd-7c53156e9fe8") + @objid ("6c78920e-5ac8-40dc-bd8e-575cf49c0134") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "a69e85bc-a398-4ffb-a9d6-267bdf5cf5b2"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -211,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/organisationmodel/standard/package_/OrganisationModel.java b/src/main/java/fr/softeam/cameldesigner/api/organisationmodel/standard/package_/OrganisationModel.java index deea16eb..f07f8fbc 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.organisationmodel.standard.package_; @@ -51,19 +51,19 @@ */ @objid ("810daecb-641e-4da1-a7ce-19926a94c42e") public class OrganisationModel extends SubModel { - @objid ("74928215-8501-4090-9d80-6ac624c5e0fe") + @objid ("d1159ef4-fba1-4c18-9506-973640ff59e1") public static final String STEREOTYPE_NAME = "OrganisationModel"; - @objid ("f52208c7-0d48-4705-8de1-99798a81a5d7") + @objid ("0466d812-c90a-466c-b7bf-b2212a77f4e5") public static final String ORGANISATIONEMAIL_TAGTYPE = "organisationEmail"; - @objid ("7882fb7c-f79d-4301-8a74-8a583d1fb042") + @objid ("a69c3263-a758-4771-9955-4823765fc27f") public static final String ORGANISATIONNAME_TAGTYPE = "organisationName"; - @objid ("42af26f2-f9e0-4b93-a3da-2db834d7d033") + @objid ("aeeead41-80e7-4a91-bbff-66d22faaa3cb") public static final String ORGANISATIONWEBSITE_TAGTYPE = "organisationWebsite"; - @objid ("eded23d9-3ec2-4d8c-af55-4aa9ba90a5a0") + @objid ("96ca0522-1ef8-4963-b009-06bd2a73dc5c") public static final String SECURITYLEVEL_TAGTYPE = "securityLevel"; /** @@ -74,7 +74,7 @@ public class OrganisationModel extends SubModel { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("33b8fe7d-29ae-41db-aa47-7d462327a6e6") + @objid ("b1591607-f6fe-414b-bd32-7698753935d5") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Package) && ((Package) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, OrganisationModel.STEREOTYPE_NAME)); } @@ -84,7 +84,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link OrganisationModel} proxy on the created {@link Package}. */ - @objid ("57ef1c19-8b34-4d5e-9f17-0753f3486b18") + @objid ("e262cce1-87e5-4cb2-b2a4-eee384760701") public static OrganisationModel create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Package"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, OrganisationModel.STEREOTYPE_NAME); @@ -92,41 +92,40 @@ 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. */ - @objid ("16119a2a-1d12-4815-8410-30f0b95e2287") + @objid ("ce1151a3-89b4-4284-b86d-8e8f989488c0") public static OrganisationModel instantiate(final Package obj) { return OrganisationModel.canInstantiate(obj) ? new OrganisationModel(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("c51d7de9-54a8-4013-8ffd-3d857f2b2307") + @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 ("5960e247-984a-487e-9a4e-9e41d042af93") + @objid ("57a4b872-6c98-4bda-b400-6ffd60852d2b") public void addExternalIdentifiers(final ExternalIdentifier obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -136,8 +135,9 @@ public void addExternalIdentifiers(final ExternalIdentifier obj) { * Add a value to the 'permissions' role.

* Role description: * null + * */ - @objid ("dd478e39-e536-4990-aed5-526b39f05bfe") + @objid ("b1cd4c84-4b4f-44e2-9f9b-b5ea5afd20f1") public void addPermissions(final Permission obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -147,8 +147,9 @@ public void addPermissions(final Permission obj) { * Add a value to the 'resourceFilters' role.

* Role description: * null + * */ - @objid ("b9ef95d9-fb1a-49ab-aef9-34046ae4d0fb") + @objid ("dffc504a-07f6-4a66-9774-c25b520e13cd") public void addResourceFilters(final ResourceFilter obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -158,8 +159,9 @@ public void addResourceFilters(final ResourceFilter obj) { * Add a value to the 'roles' role.

* Role description: * null + * */ - @objid ("e11cc02d-8a1b-4bc5-9b74-228af73a9b17") + @objid ("75bc44c0-a10c-4e5e-ad5d-e5038d271866") public void addRoles(final Role obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -169,8 +171,9 @@ public void addRoles(final Role obj) { * Add a value to the 'rolesAssignements' role.

* Role description: * null + * */ - @objid ("d80b8d24-c626-4958-9592-cdb0f2905823") + @objid ("567a48c2-ca3b-41b6-b7e3-ae78023ada38") public void addRolesAssignements(final RoleAssignment obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -180,8 +183,9 @@ public void addRolesAssignements(final RoleAssignment obj) { * Add a value to the 'userGroups' role.

* Role description: * null + * */ - @objid ("8488b8fd-bd03-4a56-9eda-12900479f03a") + @objid ("a4812cbe-93b0-4f3c-934a-e43a3cd7b207") public void addUserGroups(final UserGroup obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -191,14 +195,15 @@ public void addUserGroups(final UserGroup obj) { * Add a value to the 'users' role.

* Role description: * null + * */ - @objid ("dfe655cd-154a-418d-a90c-84f68d082833") + @objid ("6cf93fc3-8d87-4e20-8c6b-b11233457081") public void addUsers(final User obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); } - @objid ("30150173-a386-4e9d-a8ee-d70b5c166dd6") + @objid ("13bef567-caab-4e07-a66b-ca3ac5ece2eb") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -218,18 +223,18 @@ public boolean equals(final Object obj) { * Get the value to the 'camelModel' role.

* Role description: * null + * */ - @objid ("9900566f-b726-4a92-b781-27761be5691e") + @objid ("a3660187-7360-41c0-a5e7-8e9416d5a576") public CamelModel getCamelModel() { return (CamelModel)CamelDesignerProxyFactory.instantiate(((Package) this.elt).getOwner(), CamelModel.STEREOTYPE_NAME); } /** - * Get the underlying {@link Package}. - * + * Get the underlying {@link Package}. * @return the Package represented by this proxy, never null. */ - @objid ("11b8c04d-6c12-42dd-a3a5-9622e6dcdaa5") + @objid ("ea44931c-d698-4ecd-95b5-676de1ce17cb") @Override public Package getElement() { return (Package)super.getElement(); @@ -239,14 +244,15 @@ public Package getElement() { * Get the values of the 'externalIdentifiers' role.

* Role description: * null + * */ - @objid ("5070f1d2-9f2a-4509-929e-6be0fad66adc") + @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); } @@ -254,14 +260,15 @@ public List getExternalIdentifiers() { * Get the value to the 'organisation' role.

* Role description: * null + * */ - @objid ("5cc5c72b-3a36-40ed-a6c9-8b25f6f321a1") + @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; } /** @@ -269,7 +276,7 @@ public Organisation getOrganisation() { *

Property description: *
null

*/ - @objid ("49734d5d-b4fa-4cb6-b740-82a47edb80ef") + @objid ("529fd9d9-5489-4a16-a08e-82eefdde367c") public String getOrganisationEmail() { return this.elt.getTagValue(OrganisationModel.MdaTypes.ORGANISATIONEMAIL_TAGTYPE_ELT); } @@ -279,7 +286,7 @@ public String getOrganisationEmail() { *

Property description: *
null

*/ - @objid ("85452947-45d9-4032-9eb4-64aee57e9f42") + @objid ("0efef2c7-dd9e-4722-9be0-060efd9b16c7") public String getOrganisationName() { return this.elt.getTagValue(OrganisationModel.MdaTypes.ORGANISATIONNAME_TAGTYPE_ELT); } @@ -289,7 +296,7 @@ public String getOrganisationName() { *

Property description: *
null

*/ - @objid ("0735d8b3-4fa8-4711-996e-08c314d2ff69") + @objid ("835de9c4-5f5f-49bd-9d1c-fb2e8b2e5fa9") public String getOrganisationWebsite() { return this.elt.getTagValue(OrganisationModel.MdaTypes.ORGANISATIONWEBSITE_TAGTYPE_ELT); } @@ -298,14 +305,15 @@ public String getOrganisationWebsite() { * Get the values of the 'permissions' role.

* Role description: * null + * */ - @objid ("c28e9f4b-2ecf-49f3-971e-8cf8a9037171") + @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); } @@ -313,20 +321,21 @@ public List getPermissions() { * Get the values of the 'resourceFilters' role.

* Role description: * null + * */ - @objid ("ef0c146d-2398-40de-a96d-cd64606f6005") + @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); } @@ -334,14 +343,15 @@ public List getResourceFilters() { * Get the values of the 'roles' role.

* Role description: * null + * */ - @objid ("26850b6e-126c-43ad-b149-6099b98d174b") + @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); } @@ -349,14 +359,15 @@ public List getRoles() { * Get the values of the 'rolesAssignements' role.

* Role description: * null + * */ - @objid ("57910d30-0089-4605-9f86-42f123b02dee") + @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); } @@ -365,7 +376,7 @@ public List getRolesAssignements() { *

Property description: *
null

*/ - @objid ("4bac376e-7f4d-4922-b6b0-7c15979d4ed4") + @objid ("e156848e-a90c-4f0e-96c6-adb109dbbe8b") public String getSecurityLevel() { return this.elt.getTagValue(OrganisationModel.MdaTypes.SECURITYLEVEL_TAGTYPE_ELT); } @@ -374,14 +385,15 @@ public String getSecurityLevel() { * Get the values of the 'userGroups' role.

* Role description: * null + * */ - @objid ("114e7612-9977-4757-bf6c-d2781c12153c") + @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); } @@ -389,18 +401,19 @@ public List getUserGroups() { * Get the values of the 'users' role.

* Role description: * null + * */ - @objid ("58004d13-b743-495f-b96d-8de1ca83a1e0") + @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); } - @objid ("858dfe83-19a4-4f85-bf5f-fc7f5a8762de") + @objid ("b10b7f17-0f97-4aad-bfdf-59cc98e4a89e") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -410,8 +423,9 @@ public int hashCode() { * Remove a value from the 'externalIdentifiers' role.

* Role description: * null + * */ - @objid ("349bded2-e940-4151-a5e6-4d49820af533") + @objid ("05bf7618-ab8d-4d6c-94ca-f30989b522ed") public boolean removeExternalIdentifiers(final ExternalIdentifier obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -420,8 +434,9 @@ public boolean removeExternalIdentifiers(final ExternalIdentifier obj) { * Remove a value from the 'permissions' role.

* Role description: * null + * */ - @objid ("729a6bc6-dda2-4621-a4fc-8552f5862290") + @objid ("9e927750-2783-4815-8ae5-7f632502ef3f") public boolean removePermissions(final Permission obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -430,8 +445,9 @@ public boolean removePermissions(final Permission obj) { * Remove a value from the 'resourceFilters' role.

* Role description: * null + * */ - @objid ("5a6b9d2f-d151-4049-9591-97969e64b10c") + @objid ("e9560073-be52-4a95-9774-2c2d319eff30") public boolean removeResourceFilters(final ResourceFilter obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -440,8 +456,9 @@ public boolean removeResourceFilters(final ResourceFilter obj) { * Remove a value from the 'roles' role.

* Role description: * null + * */ - @objid ("94cf030c-4647-4b7e-941e-93adb28ffa51") + @objid ("99758d7a-fcd1-4eb4-9961-ad1aebce8c32") public boolean removeRoles(final Role obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -450,8 +467,9 @@ public boolean removeRoles(final Role obj) { * Remove a value from the 'rolesAssignements' role.

* Role description: * null + * */ - @objid ("75ad0f84-4845-420f-a4bf-79be3d696298") + @objid ("1e7c74a5-dc43-4ba6-88b2-13910d28c567") public boolean removeRolesAssignements(final RoleAssignment obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -460,8 +478,9 @@ public boolean removeRolesAssignements(final RoleAssignment obj) { * Remove a value from the 'userGroups' role.

* Role description: * null + * */ - @objid ("97275e69-31ba-4590-a8c0-a6ed37d6b032") + @objid ("4affc6f1-67a1-413b-b60a-b3b42c2c0aa4") public boolean removeUserGroups(final UserGroup obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -470,8 +489,9 @@ public boolean removeUserGroups(final UserGroup obj) { * Remove a value from the 'users' role.

* Role description: * null + * */ - @objid ("dbb2cfca-39ec-45b8-ba3b-797012ab5f6f") + @objid ("197edc24-88bd-45fd-ab14-9c85610929d8") public boolean removeUsers(final User obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -480,8 +500,9 @@ public boolean removeUsers(final User obj) { * Set the value of the 'camelModel' role.

* Role description: * null + * */ - @objid ("aa98f33b-0ae6-496b-897d-3507f5af28a3") + @objid ("0173f0ce-6a1f-4004-ae0e-9479c57ab894") public void setCamelModel(final CamelModel obj) { ((Package) this.elt).setOwner((obj != null) ? obj.getElement() : null); } @@ -490,8 +511,9 @@ public void setCamelModel(final CamelModel obj) { * Set the value of the 'organisation' role.

* Role description: * null + * */ - @objid ("da2e2bec-a475-4903-b25b-232816958060") + @objid ("305993ea-4409-4703-bb22-c3d4023d6450") public void setOrganisation(final Organisation obj) { // Remove existing Organisations for (Class e : ((Package) this.elt).getOwnedElement(Class.class)) { @@ -510,7 +532,7 @@ public void setOrganisation(final Organisation obj) { *

Property description: *
null

*/ - @objid ("da3159d0-7341-46a0-8259-830e528aaa62") + @objid ("5c7b4aba-f15a-48d9-9ca3-7b304cb929da") public void setOrganisationEmail(final String value) { this.elt.putTagValue(OrganisationModel.MdaTypes.ORGANISATIONEMAIL_TAGTYPE_ELT, value); } @@ -520,7 +542,7 @@ public void setOrganisationEmail(final String value) { *

Property description: *
null

*/ - @objid ("4328405f-f639-46e2-80a6-6099f88c0c66") + @objid ("fe991374-652c-4f7b-a416-4489f4ecc336") public void setOrganisationName(final String value) { this.elt.putTagValue(OrganisationModel.MdaTypes.ORGANISATIONNAME_TAGTYPE_ELT, value); } @@ -530,7 +552,7 @@ public void setOrganisationName(final String value) { *

Property description: *
null

*/ - @objid ("01f8ac62-11c6-475e-a2e3-bcaec3192985") + @objid ("56a403ed-473e-4d0b-a4dd-637a172a4aa4") public void setOrganisationWebsite(final String value) { this.elt.putTagValue(OrganisationModel.MdaTypes.ORGANISATIONWEBSITE_TAGTYPE_ELT, value); } @@ -540,7 +562,7 @@ public void setOrganisationWebsite(final String value) { *

Property description: *
null

*/ - @objid ("0999084e-0230-4f5c-91a7-87005f620e50") + @objid ("76b36ff9-5857-4ef2-b5ac-aea48031ecce") public void setSecurityLevel(final String value) { this.elt.putTagValue(OrganisationModel.MdaTypes.SECURITYLEVEL_TAGTYPE_ELT, value); } @@ -553,35 +575,35 @@ public List getChilds() { return result; } - @objid ("23888a24-d989-4d36-b5e9-38cd62543029") + @objid ("f164ab10-e08c-4f97-b694-c709876c3a1b") protected OrganisationModel(final Package elt) { super(elt); } @objid ("eb1c285b-2873-4f8e-af1e-f7afc841bfe9") public static final class MdaTypes { - @objid ("a9d772bb-e257-4062-82b6-cdc8552d3175") + @objid ("96bb77a2-6766-4595-9e38-7b25813d01a5") public static Stereotype STEREOTYPE_ELT; - @objid ("4d7a392d-53a6-46f1-bb0d-327dbcff3733") + @objid ("80ecd87e-0e27-4a1f-9808-51177efc58d2") public static TagType ORGANISATIONNAME_TAGTYPE_ELT; - @objid ("4003e550-3bc6-4f8c-ab64-65f3da87f449") + @objid ("2638e390-c8c2-4b26-b08c-ed9156d07f4c") public static TagType ORGANISATIONEMAIL_TAGTYPE_ELT; - @objid ("f1881d08-5384-4a07-aaa3-2188bb9083b4") + @objid ("e62a6d53-2155-4e22-bbe7-61fb2568b19a") public static TagType ORGANISATIONWEBSITE_TAGTYPE_ELT; - @objid ("f325075d-0dae-4e3c-a656-d480e7a53a1d") + @objid ("7698ac28-7f7f-436b-827d-6008a2c8c12e") public static TagType SECURITYLEVEL_TAGTYPE_ELT; - @objid ("514e3de0-7bf6-4a8a-ac9b-8ac2d32263eb") + @objid ("8efad9f1-344c-4cfd-bfb0-80d16ba19fdf") private static Stereotype MDAASSOCDEP; - @objid ("6d137e4b-bde2-469a-87eb-a2a31b8b36e1") + @objid ("0758f0f1-7b9e-4031-a2dc-04470dcd6c12") private static TagType MDAASSOCDEP_ROLE; - @objid ("26352e96-2ce4-4d3d-95cf-5c09c42f93c7") + @objid ("b8d07656-5cb7-4132-b692-768cd7c0f073") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "e44c4759-0924-40bc-95d9-3cf51944eccf"); ORGANISATIONNAME_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "f8f457b3-49af-40e8-8af6-d2a7c8a961ae"); @@ -593,11 +615,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 9d4fe36c..bcaaf4f9 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.requirementmodel.standard.class_; @@ -36,13 +36,13 @@ */ @objid ("7499c817-68b2-4e38-ad40-e52b9b627761") public class HorizontalScaleRequirement extends ScaleRequirement { - @objid ("d81684c4-c485-41dc-9126-9833c13499be") + @objid ("3219af0b-81b3-48b9-a338-e1c41340944a") public static final String STEREOTYPE_NAME = "HorizontalScaleRequirement"; - @objid ("c13e2b68-c549-48cd-a32b-3446d1593195") + @objid ("98185a26-32bf-4a4e-8345-a6f60fe970c6") public static final String MAXINSTANCES_TAGTYPE = "maxInstances"; - @objid ("bce1d51f-9033-4e32-8153-96088c84141c") + @objid ("6a794cda-92ee-499b-b225-3521bebf5509") public static final String MININSTANCES_TAGTYPE = "minInstances"; /** @@ -53,7 +53,7 @@ public class HorizontalScaleRequirement extends ScaleRequirement { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("a2be2af3-322a-466e-b45b-36231fa0b185") + @objid ("11ecf773-7fde-4d4b-b2d3-58efa873390a") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, HorizontalScaleRequirement.STEREOTYPE_NAME)); } @@ -63,7 +63,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link HorizontalScaleRequirement} proxy on the created {@link Class}. */ - @objid ("9e77313d-a334-431f-97a7-b376e555c88d") + @objid ("ddd33eb7-e271-416d-97d4-9657d72387f9") public static HorizontalScaleRequirement create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, HorizontalScaleRequirement.STEREOTYPE_NAME); @@ -71,36 +71,34 @@ 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. */ - @objid ("098b0717-5209-4c76-8009-88ea39c03a01") + @objid ("a14bb277-0b7d-4bc7-a2d4-7608cbba5574") public static HorizontalScaleRequirement instantiate(final Class obj) { return HorizontalScaleRequirement.canInstantiate(obj) ? new HorizontalScaleRequirement(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("428cf4b6-1eaf-4175-b2a2-ff3b6d4c5b9e") + @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 ("654aecf9-4bb1-41e0-9eb6-52b7fe8ecfe7") + @objid ("4fe909bf-b87b-412e-9ff5-51402e231d0b") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -117,11 +115,10 @@ 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 ("6f928754-7e36-44a6-b34f-9a2a0489b749") + @objid ("fc9a7b3f-19f3-43f5-a934-bb4b6171a7f1") @Override public Class getElement() { return (Class)super.getElement(); @@ -132,7 +129,7 @@ public Class getElement() { *

Property description: *
null

*/ - @objid ("dd34c0f6-d1da-44f2-aa5f-6d11d86846da") + @objid ("8740a676-fc1d-4861-b1d0-ed6a159c0077") public String getMaxInstances() { return this.elt.getTagValue(HorizontalScaleRequirement.MdaTypes.MAXINSTANCES_TAGTYPE_ELT); } @@ -142,12 +139,12 @@ public String getMaxInstances() { *

Property description: *
null

*/ - @objid ("e9ba10e5-7c63-4794-b417-64bc22721bfa") + @objid ("9a331994-a803-4347-8044-87f057e8df5a") public String getMinInstances() { return this.elt.getTagValue(HorizontalScaleRequirement.MdaTypes.MININSTANCES_TAGTYPE_ELT); } - @objid ("9fdc728e-73ce-44c3-b0df-a1908fd525d2") + @objid ("f39a4381-80ba-4589-9ab9-87bcdf53a1ea") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -158,7 +155,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("95273564-5b8a-482e-8390-919a120ffa14") + @objid ("09a10404-1182-42d5-b927-6c0868e4f288") public void setMaxInstances(final String value) { this.elt.putTagValue(HorizontalScaleRequirement.MdaTypes.MAXINSTANCES_TAGTYPE_ELT, value); } @@ -168,7 +165,7 @@ public void setMaxInstances(final String value) { *

Property description: *
null

*/ - @objid ("5e44cce4-1b91-4714-88f1-9fc8bd89b517") + @objid ("716a750b-ece5-4ffe-a232-84ff692d225f") public void setMinInstances(final String value) { this.elt.putTagValue(HorizontalScaleRequirement.MdaTypes.MININSTANCES_TAGTYPE_ELT, value); } @@ -181,29 +178,29 @@ public List getChilds() { return result; } - @objid ("3571aa01-6694-4822-9cd2-1ff1acf40668") + @objid ("56d62e2e-9979-48e4-b806-3474671d7069") protected HorizontalScaleRequirement(final Class elt) { super(elt); } @objid ("d63fbe87-50ec-448d-8e36-aae6e8f56a3f") public static final class MdaTypes { - @objid ("0f4853e2-c7e1-409c-8be5-453c63120fe9") + @objid ("52bf99bd-45ad-4500-a1f7-fd3da8f5136b") public static Stereotype STEREOTYPE_ELT; - @objid ("3b484e8a-dd1c-4cd9-8ada-28fe15440553") + @objid ("78421594-f58b-44a2-ad47-cad95a242b71") public static TagType MININSTANCES_TAGTYPE_ELT; - @objid ("932c89f5-0ab6-4898-98f9-5fdce11b578a") + @objid ("8f9c3781-1117-4b3b-ba8b-5cdd83dcbb38") public static TagType MAXINSTANCES_TAGTYPE_ELT; - @objid ("f7954e44-b1e5-4758-a5e1-9012457f56d4") + @objid ("1267f4f1-14c1-498a-9e01-0563661ce86e") private static Stereotype MDAASSOCDEP; - @objid ("cc44b7e7-d460-4563-b694-9fce937256ea") + @objid ("ce89f9a9-bef4-4ab6-ba3d-7d58e4628a99") private static TagType MDAASSOCDEP_ROLE; - @objid ("6ff03938-a3d8-4cbf-ac5c-42f32d24f8cc") + @objid ("49506f12-9be0-4aa0-9271-c1c9a1ddc5cc") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "3f58cfed-b308-4059-99be-85d0b3e87e12"); MININSTANCES_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "c43f3c46-ad2f-4776-809a-94ad9affc593"); @@ -213,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/requirementmodel/standard/class_/LocationRequirement.java b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/LocationRequirement.java index 493ce173..e9418ea1 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.requirementmodel.standard.class_; @@ -39,10 +39,10 @@ */ @objid ("74a3ed13-52f1-4d74-b05d-c1717fddaad8") public class LocationRequirement extends HardRequirement { - @objid ("57fbc4d6-7305-44bf-975d-01dc0c9d52fb") + @objid ("1ef42d24-8666-48a9-a508-cf263f8cf1f8") public static final String STEREOTYPE_NAME = "LocationRequirement"; - @objid ("5eccfec8-03e1-4f7c-9bf1-009987e79d37") + @objid ("4eca8728-16c5-4685-ba32-f9fa89a4c2dc") public static final String ALLREQUIRED_TAGTYPE = "allRequired"; /** @@ -53,7 +53,7 @@ public class LocationRequirement extends HardRequirement { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("a4397450-82f6-40cc-86e2-d9e4c903c76f") + @objid ("f1767882-c802-4d2c-a1f0-df0b1f71c6d2") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, LocationRequirement.STEREOTYPE_NAME)); } @@ -63,7 +63,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link LocationRequirement} proxy on the created {@link Class}. */ - @objid ("4a351095-912c-449e-8ef3-4b6925a8d3d2") + @objid ("3e41c61f-d577-4bb7-9a44-3ce3c08f478e") public static LocationRequirement create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, LocationRequirement.STEREOTYPE_NAME); @@ -71,41 +71,40 @@ 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. */ - @objid ("e7f83659-e563-4406-8c9e-4d111c2838fe") + @objid ("19775447-9efa-455d-90fd-e90e27bc65e3") public static LocationRequirement instantiate(final Class obj) { return LocationRequirement.canInstantiate(obj) ? new LocationRequirement(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("8a31e7a7-b279-4d34-aa74-8827a4a33e48") + @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 ("4558ce86-05e2-4f71-bc21-f5699431f534") + @objid ("2d36917e-e49b-4545-a226-f3fde1bfa2bc") public void addLocations(final Location obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -115,7 +114,7 @@ public void addLocations(final Location obj) { } } - @objid ("85ec8708-2ba9-40b9-9a41-17df39f87dfe") + @objid ("a2efc36b-b36e-4b8d-8f72-fbbe45b5f35b") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -132,11 +131,10 @@ 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 ("fac4db50-4110-46aa-aaed-ef08fbfcc1f2") + @objid ("f4e93185-69fd-4fde-8618-b38d47270e42") @Override public Class getElement() { return (Class)super.getElement(); @@ -146,8 +144,9 @@ public Class getElement() { * Get the values of the 'locations' role.

* Role description: * null + * */ - @objid ("69e37626-dd1b-4933-a547-8a49a1c92bdf") + @objid ("cc24a9ba-a26a-4bac-86e7-0d31955570af") public List getLocations() { List results = new ArrayList<>(); for (Dependency d : this.elt.getDependsOnDependency()) { @@ -162,7 +161,7 @@ public List getLocations() { return Collections.unmodifiableList(results); } - @objid ("9768d555-1d6a-4817-b0d1-783c88ebe1db") + @objid ("e2f2f1cd-1547-42f9-aaeb-8d211f070ece") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -173,7 +172,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("7cfdb8db-6d88-433f-b608-97985076baa8") + @objid ("8d7b901c-3338-4ba0-ad51-4acd3ee9aaa1") public boolean isAllRequired() { return this.elt.isTagged(LocationRequirement.MdaTypes.ALLREQUIRED_TAGTYPE_ELT); } @@ -182,12 +181,13 @@ public boolean isAllRequired() { * Remove a value from the 'locations' role.

* Role description: * null + * */ - @objid ("0956e2d9-7d1a-4ac4-94ef-8f47d879e469") + @objid ("48ba23c7-eb32-459c-a05f-a7e83ac1fc12") public boolean removeLocations(final Location obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getDependsOnDependency())) { - if (d.isStereotyped(LocationRequirement.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(LocationRequirement.MdaTypes.MDAASSOCDEP_ROLE), "")) + if (d.isStereotyped(LocationRequirement.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(LocationRequirement.MdaTypes.MDAASSOCDEP_ROLE), "locations")) if (Objects.equals(d.getDependsOn(), obj.getElement())) { d.delete(); return true; @@ -202,7 +202,7 @@ public boolean removeLocations(final Location obj) { *

Property description: *
null

*/ - @objid ("c6168b5a-c486-4cbd-9b74-704f30253e3b") + @objid ("be2dd450-9cb0-41e3-91a1-bb74abcd3edb") public void setAllRequired(final boolean value) { if (value) CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createTaggedValue(LocationRequirement.MdaTypes.ALLREQUIRED_TAGTYPE_ELT, this.elt); @@ -218,26 +218,26 @@ public List getChilds() { return result; } - @objid ("e599f229-8911-4625-af86-0449ee166859") + @objid ("5da7c3bb-147b-44e1-a635-c23cf4289d09") protected LocationRequirement(final Class elt) { super(elt); } @objid ("6baddae1-dc4f-440f-a708-5529c6ec0aa5") public static final class MdaTypes { - @objid ("65d1e19d-79da-4a6f-a717-5359f23f7161") + @objid ("5a2af7a7-25bf-44ab-93f4-f9f47bc80e3b") public static Stereotype STEREOTYPE_ELT; - @objid ("4864cfe7-da3f-4577-b334-9e9df7d990b2") + @objid ("f0fdac9b-2725-4605-8461-9364b8dac875") public static TagType ALLREQUIRED_TAGTYPE_ELT; - @objid ("c7966f30-919b-4e73-b279-435ccb1ad06e") + @objid ("3bfe8026-2178-42d0-83f7-1fd54f8a769f") private static Stereotype MDAASSOCDEP; - @objid ("42b132c2-1e76-4f1c-aff3-5cba1bc87729") + @objid ("763f9986-93af-4fda-a715-21e2ca8f3fdc") private static TagType MDAASSOCDEP_ROLE; - @objid ("8ed7f5f9-005c-4673-be9e-6a64ad6c51c0") + @objid ("daf2733d-24af-4af9-a807-836dbd012e2b") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "72da0f17-5434-4558-b50f-7be0430c3f2b"); ALLREQUIRED_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "3af4908e-00c9-4466-8e0c-d74baa35afe1"); @@ -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 240f58e4..807db1aa 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.requirementmodel.standard.class_; @@ -36,13 +36,13 @@ */ @objid ("cfd6a586-d35c-49a8-9f96-d97400dd7a8d") public class OSRequirement extends HardRequirement { - @objid ("6e5b3212-872c-4f26-aa55-987d5899540f") + @objid ("8467e9de-d110-4671-a649-53876b9c2f9d") public static final String STEREOTYPE_NAME = "OSRequirement"; - @objid ("6b86912c-0755-458b-a3f5-cf4f2bd2fee4") + @objid ("7a0b0505-1e3b-4a29-9c97-86ae8e0bcad0") public static final String IS64OS_TAGTYPE = "is64os"; - @objid ("67a82673-eabe-4e42-8dbf-7cd582a4f0b5") + @objid ("3b669973-dd8b-4d6c-a4c1-1d500082f5bd") public static final String OS_TAGTYPE = "os"; /** @@ -53,7 +53,7 @@ public class OSRequirement extends HardRequirement { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("62cea523-5a20-4a2a-9600-a10d2f70a6a5") + @objid ("8cb436df-d15c-4c52-9d51-439619bc8be7") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, OSRequirement.STEREOTYPE_NAME)); } @@ -63,7 +63,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link OSRequirement} proxy on the created {@link Class}. */ - @objid ("ab6dbd85-b194-4007-9b5b-7484b0075165") + @objid ("af895c1d-8691-43d5-9daf-edc7f76bf886") public static OSRequirement create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, OSRequirement.STEREOTYPE_NAME); @@ -71,36 +71,34 @@ 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. */ - @objid ("b36bd8c8-f1af-4e34-9ff3-dc66bf795c5d") + @objid ("65f8ae32-5d0b-4d02-8ec3-33fc7a674d8a") public static OSRequirement instantiate(final Class obj) { return OSRequirement.canInstantiate(obj) ? new OSRequirement(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("1912ba36-dd7d-4ebc-a067-556ec01b1136") + @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 ("5620d7cc-4db2-4206-b588-351a9e0c2cbd") + @objid ("eed7e73d-9300-413b-b9a8-e64d00d38e43") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -117,11 +115,10 @@ 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 ("9e797cbc-f3c1-42e2-bd6f-4cc363fbf214") + @objid ("175765cc-9337-464a-bf7b-f485615f8ab9") @Override public Class getElement() { return (Class)super.getElement(); @@ -132,12 +129,12 @@ public Class getElement() { *

Property description: *
null

*/ - @objid ("c82bd31b-576a-4226-8bae-77e57de591de") + @objid ("279dc9af-5e86-4e74-84c1-7dcc266f9802") public String getOs() { return this.elt.getTagValue(OSRequirement.MdaTypes.OS_TAGTYPE_ELT); } - @objid ("92f3029e-b8ff-4981-a315-97ab3b4891a0") + @objid ("2dc66a64-38af-43d2-996f-c8bd5ed70c9a") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -148,7 +145,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("8c86b33c-8968-43df-8cb1-61c535460165") + @objid ("a8c0fef4-7e1d-4caa-adb4-4e85e92f4ecd") public boolean isIs64os() { return this.elt.isTagged(OSRequirement.MdaTypes.IS64OS_TAGTYPE_ELT); } @@ -158,7 +155,7 @@ public boolean isIs64os() { *

Property description: *
null

*/ - @objid ("8ac513b0-7ce6-413a-b768-f5f84d82178a") + @objid ("0fe87ac8-f676-4f28-898e-6f1bdab5a88f") public void setIs64os(final boolean value) { if (value) CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createTaggedValue(OSRequirement.MdaTypes.IS64OS_TAGTYPE_ELT, this.elt); @@ -171,7 +168,7 @@ public void setIs64os(final boolean value) { *

Property description: *
null

*/ - @objid ("f609940c-cf07-4279-a8cc-61d2b5e9d081") + @objid ("9b2500d5-5022-47bd-ac00-8e65156da897") public void setOs(final String value) { this.elt.putTagValue(OSRequirement.MdaTypes.OS_TAGTYPE_ELT, value); } @@ -184,29 +181,29 @@ public List getChilds() { return result; } - @objid ("13838d0c-ae6c-4fd2-b42f-14e4d43277ca") + @objid ("b271faa2-548e-45f9-8e10-32b2591ce52b") protected OSRequirement(final Class elt) { super(elt); } @objid ("77ca2415-0693-4930-9e87-96b53b1278f7") public static final class MdaTypes { - @objid ("aecd6625-554e-48bc-93c4-7e9fc4bc83b2") + @objid ("0cbe2061-0e1c-4905-9c1d-999cb455a796") public static Stereotype STEREOTYPE_ELT; - @objid ("47974ad1-cfae-4f15-a385-76699fc1b1fb") + @objid ("52298b98-04ce-4aab-b52c-0372a42ed308") public static TagType OS_TAGTYPE_ELT; - @objid ("c3dee28f-1d07-4102-b605-1aaf76018c63") + @objid ("475fbfbf-659d-4c2d-9f1f-8bff33ad4c1b") public static TagType IS64OS_TAGTYPE_ELT; - @objid ("f7fd356a-90a6-4e0d-b1a8-c3dbccb3de20") + @objid ("446b0d9f-b1cc-4c93-b3ee-2ecc2d0a7dfe") private static Stereotype MDAASSOCDEP; - @objid ("15a107fb-ae55-4ea2-bf10-f926ae786f8d") + @objid ("f265d183-5d2c-4cb3-badf-1e73500e82f4") private static TagType MDAASSOCDEP_ROLE; - @objid ("35ffa450-b4c5-40cc-bac9-fe7efbcc735d") + @objid ("969351a9-d6ed-4685-9978-cf326098d668") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "64f95ec3-043c-4955-bfcb-9aabe91d54fe"); OS_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "49d0562e-ffa2-4b4a-868d-9912389113a8"); @@ -216,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_/OptimisationRequirement.java b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/OptimisationRequirement.java index 2da36c5e..a73ff6e0 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.requirementmodel.standard.class_; @@ -40,10 +40,10 @@ */ @objid ("49b9e421-351d-46a3-bbb6-78228aca457c") public class OptimisationRequirement extends SoftRequirement { - @objid ("256e1e8d-7473-485c-879e-65336728533c") + @objid ("20b711c9-f52d-4f0d-bb7f-2357d6d19e96") public static final String STEREOTYPE_NAME = "OptimisationRequirement"; - @objid ("398d6c71-8ad9-4e88-9d41-746f380ad605") + @objid ("d440e116-2047-4046-8d8b-0fbbfd9b9241") public static final String MINIMISE_TAGTYPE = "minimise"; /** @@ -54,7 +54,7 @@ public class OptimisationRequirement extends SoftRequirement { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("ce0e17fd-fadc-44ac-a353-a131601df2ae") + @objid ("02764716-c318-408a-8306-14bf8fccf154") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, OptimisationRequirement.STEREOTYPE_NAME)); } @@ -64,7 +64,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link OptimisationRequirement} proxy on the created {@link Class}. */ - @objid ("e17083b8-6992-4e2e-94b3-584dfc96b87b") + @objid ("c31eab3e-a728-4055-9e76-7546667ecd4d") public static OptimisationRequirement create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, OptimisationRequirement.STEREOTYPE_NAME); @@ -72,36 +72,34 @@ 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. */ - @objid ("c3f0f069-920a-48b7-b51c-48d3bc3ed64a") + @objid ("287f9a62-a7e5-4e90-a338-e7c8c84e500d") public static OptimisationRequirement instantiate(final Class obj) { return OptimisationRequirement.canInstantiate(obj) ? new OptimisationRequirement(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("3bf72c37-d0b4-489c-875c-f5b91de41e5a") + @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 ("ed410e0e-0a58-49e8-9c58-b571ac085ab5") + @objid ("51945e9e-9f87-419b-8e6c-6f49be96e110") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -118,11 +116,10 @@ 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 ("d5482230-7a2e-40e9-9219-4726c4b55dc9") + @objid ("ec74b14f-04a1-4dd7-a3be-144f82ef0598") @Override public Class getElement() { return (Class)super.getElement(); @@ -132,8 +129,9 @@ public Class getElement() { * Get the value of the 'metricContext' role.

* Role description: * null + * */ - @objid ("05f85345-3b58-4bd4-a32a-f65246070b41") + @objid ("0d3ef2a4-22e9-481c-8cff-a0a99f3e8835") public MetricContext getMetricContext() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(OptimisationRequirement.MdaTypes.MDAASSOCDEP) @@ -151,8 +149,9 @@ public MetricContext getMetricContext() { * Get the value of the 'metricVariable' role.

* Role description: * null + * */ - @objid ("cda7219b-c5f5-4777-9529-435ae67915e5") + @objid ("f2028fc8-8cc7-4490-9bb1-75f0810541dc") public MetricVariable getMetricVariable() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(OptimisationRequirement.MdaTypes.MDAASSOCDEP) @@ -164,7 +163,7 @@ public MetricVariable getMetricVariable() { return null; } - @objid ("2ea2487d-9dd0-4666-bfc2-70260b3400d9") + @objid ("40214647-29ff-49d2-a4bd-edc92a83d614") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -175,7 +174,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("29800fe0-5f84-44f4-8e8b-c9707a3033da") + @objid ("8acedf73-e728-40e5-941f-8fc81b02faa0") public boolean isMinimise() { return this.elt.isTagged(OptimisationRequirement.MdaTypes.MINIMISE_TAGTYPE_ELT); } @@ -184,8 +183,9 @@ public boolean isMinimise() { * Set the value of the 'metricContext' role.

* Role description: * null + * */ - @objid ("095b683a-e5ca-4200-9cf2-5003f0cb9236") + @objid ("eb734306-0fa1-4d39-bf50-54975b63056c") public void setMetricContext(final MetricContext obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -209,8 +209,9 @@ public void setMetricContext(final MetricContext obj) { * Set the value of the 'metricVariable' role.

* Role description: * null + * */ - @objid ("5b733351-fbfa-40c0-bfd9-0cc37930078b") + @objid ("41d27050-236c-4804-9267-2ba7dcbc3200") public void setMetricVariable(final MetricVariable obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -235,7 +236,7 @@ public void setMetricVariable(final MetricVariable obj) { *

Property description: *
null

*/ - @objid ("2eaa2301-29ca-4285-b86d-543e1c8c2e8f") + @objid ("a3db7744-632d-460b-a3de-e89ae81a806a") public void setMinimise(final boolean value) { if (value) CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createTaggedValue(OptimisationRequirement.MdaTypes.MINIMISE_TAGTYPE_ELT, this.elt); @@ -251,26 +252,26 @@ public List getChilds() { return result; } - @objid ("6a520364-9095-476c-ac64-267c7c8ab6e6") + @objid ("8fa577bb-9025-47a5-9755-76b7525c8f42") protected OptimisationRequirement(final Class elt) { super(elt); } @objid ("1977922d-e804-46aa-9701-85d9dc5c7714") public static final class MdaTypes { - @objid ("0a303381-8550-41ed-8024-51712132d030") + @objid ("119760a9-cc7d-44d5-9786-bf75724e1ab9") public static Stereotype STEREOTYPE_ELT; - @objid ("2216d22c-66a4-4b5c-82b8-a968bf21ee6f") + @objid ("9a1cce4d-b36d-4eab-8c42-3e1879617fb0") public static TagType MINIMISE_TAGTYPE_ELT; - @objid ("02e8f7dd-f7c9-4ff2-9fa9-7a5008a8c2e3") + @objid ("24e37bc8-6e10-4396-9d01-f28d808c2daa") private static Stereotype MDAASSOCDEP; - @objid ("315bb1d6-7a5d-48c4-8eea-19c678579d6a") + @objid ("59f043eb-13df-4699-9f36-83831154dd1d") private static TagType MDAASSOCDEP_ROLE; - @objid ("7cee483d-b578-4223-a1ac-d02b77766e89") + @objid ("fe422f34-7f58-4464-ab6c-9bf561f99cdd") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "5032b63e-764b-4afb-8636-29fe5cee73f0"); MINIMISE_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "bc674ab8-644b-456a-875e-c51eb68d068f"); @@ -279,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/requirementmodel/standard/class_/PaaSRequirement.java b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/PaaSRequirement.java index af1d6f1d..5c65c85c 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.requirementmodel.standard.class_; @@ -36,7 +36,7 @@ */ @objid ("f5103c3d-e058-41f9-b48b-a3555f8f176c") public class PaaSRequirement extends HardRequirement { - @objid ("ed7d633c-3150-4445-80be-cffaa7ee23a5") + @objid ("519ecc21-e299-49c7-b4fe-d3f76174eaf2") public static final String STEREOTYPE_NAME = "PaaSRequirement"; /** @@ -47,7 +47,7 @@ public class PaaSRequirement extends HardRequirement { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("22d0a051-c0c3-4276-ac1b-e59425746c83") + @objid ("7e0c5eac-7855-46d7-8e83-d98ebce37278") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, PaaSRequirement.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link PaaSRequirement} proxy on the created {@link Class}. */ - @objid ("46960ed0-1ab2-4e44-a25f-b6e80b5db723") + @objid ("d825ef77-47b8-49ad-920e-1354d1d43e3a") public static PaaSRequirement create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, PaaSRequirement.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("482a731c-3657-48cc-9a47-eb11eb151c85") + @objid ("d4de66c8-2bb6-44c1-8196-835e84a8c4f6") public static PaaSRequirement instantiate(final Class obj) { return PaaSRequirement.canInstantiate(obj) ? new PaaSRequirement(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("077c7293-f3a5-4e71-9140-14a7971f24af") + @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 ("7f5a172f-2757-433d-b0bb-98a8c6977bda") + @objid ("7d43fcb4-1d16-43a0-909c-4cc053d47c46") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,17 +109,16 @@ 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 ("ff30cd75-5b1a-4a99-9c56-5cb0dd827277") + @objid ("5e8cd5fe-9166-4d9e-bc75-2e93189372e6") @Override public Class getElement() { return (Class)super.getElement(); } - @objid ("e2bce0fe-21aa-4995-95cc-44b23ce4818b") + @objid ("1646e3b1-8855-4a96-b52c-b68a14736477") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -135,23 +132,23 @@ public List getChilds() { return result; } - @objid ("e13215a4-7479-40be-a7aa-57f02f81eb38") + @objid ("62b9d85a-8ecc-412a-9b47-9b9822b5a6f2") protected PaaSRequirement(final Class elt) { super(elt); } @objid ("f1ab105f-3a9a-4d24-8c32-5dd406174ad0") public static final class MdaTypes { - @objid ("77c9a9a4-ea64-41cc-8486-4f4cb172ef7c") + @objid ("35ba26b3-624a-476b-bd06-5f07a3fc6b19") public static Stereotype STEREOTYPE_ELT; - @objid ("bd3e3c02-d2f2-49fa-8bc9-9959590ad271") + @objid ("eeb45b8f-483c-4806-8381-1619271fb6ec") private static Stereotype MDAASSOCDEP; - @objid ("38b2bac1-92a8-4228-8b59-3096a1b3e21d") + @objid ("487f3542-f3d1-418c-8ccb-3fd4ff88e068") private static TagType MDAASSOCDEP_ROLE; - @objid ("c052ea19-380f-439a-ac11-cb4e2848bb56") + @objid ("fbd986a7-dd29-47bf-9667-27df045a7ca5") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "1b4b9489-ad62-4a1b-be52-900e21e7f441"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -159,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/requirementmodel/standard/class_/ProviderRequirement.java b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/ProviderRequirement.java index e59a84fb..d9e62586 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.requirementmodel.standard.class_; @@ -36,13 +36,13 @@ */ @objid ("82acfd5d-6977-4081-8c3d-eddebe8238e8") public class ProviderRequirement extends HardRequirement { - @objid ("8a4abc87-0856-46f7-a7af-ed5f4830d9ce") + @objid ("5acb0029-41e7-4b07-afce-8ddaff467d93") public static final String STEREOTYPE_NAME = "ProviderRequirement"; - @objid ("64071609-8ea7-4074-959f-fb194207b9ff") + @objid ("6ae6bdb1-ea3d-4dae-8859-c54b9030f8cb") public static final String CLOUDTYPE_TAGTYPE = "cloudType"; - @objid ("d3b11104-5861-4484-9a37-15a6cf4e0226") + @objid ("c9ffd5ef-bdf2-4802-ae7f-17bfda1ed863") public static final String PROVIDERNAMES_TAGTYPE = "providerNames"; /** @@ -53,7 +53,7 @@ public class ProviderRequirement extends HardRequirement { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("ed1c598c-10b0-411d-a284-253c484e9ac9") + @objid ("f5ccfaee-053c-449f-82a6-9c45a131f36c") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, ProviderRequirement.STEREOTYPE_NAME)); } @@ -63,7 +63,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link ProviderRequirement} proxy on the created {@link Class}. */ - @objid ("55987623-3e56-4f37-8206-082a8e576f65") + @objid ("a6a6a50d-389e-420c-a5cb-7b530ede6cd5") public static ProviderRequirement create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, ProviderRequirement.STEREOTYPE_NAME); @@ -71,36 +71,34 @@ 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. */ - @objid ("f9d96827-a342-4b9e-9216-b2c1c7eca65b") + @objid ("9d9fa96f-4781-476c-acdf-b647398e9771") public static ProviderRequirement instantiate(final Class obj) { return ProviderRequirement.canInstantiate(obj) ? new ProviderRequirement(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("0d466bef-746d-433b-b8fe-f66f99f4bbb0") + @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 ("0ca4f5a4-be54-4d1c-8451-62e4f5646a05") + @objid ("5e2ba2be-1d70-42bc-84fd-2e568d83d85a") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -121,17 +119,16 @@ public boolean equals(final Object obj) { *

Property description: *
null

*/ - @objid ("1e877473-0bdb-43c6-8fe2-b6704d6b0f54") + @objid ("caf52541-d338-4812-b2a3-5aacf5ebb7b0") public String getCloudType() { return this.elt.getTagValue(ProviderRequirement.MdaTypes.CLOUDTYPE_TAGTYPE_ELT); } /** - * Get the underlying {@link Class}. - * + * Get the underlying {@link Class}. * @return the Class represented by this proxy, never null. */ - @objid ("5c56f6ee-f99a-401c-a754-7a5ebf00035b") + @objid ("e2579083-f86b-4377-a42a-17b1378859b5") @Override public Class getElement() { return (Class)super.getElement(); @@ -142,12 +139,12 @@ public Class getElement() { *

Property description:
* null

*/ - @objid ("467f2c15-c697-44c6-8f70-ac9bc8d1eebf") + @objid ("1c2f9720-ebe0-4c9f-8e13-0a6ff8ad4884") public List getProviderNames() { return this.elt.getTagValues(ProviderRequirement.MdaTypes.PROVIDERNAMES_TAGTYPE_ELT); } - @objid ("a5b866f3-dd4e-4f3f-afa3-b40b111eb24f") + @objid ("760438e6-62e3-4fc5-bf67-9d42033747f7") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -158,7 +155,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("629b88f5-8567-46a2-ae4b-2d51bd2ed648") + @objid ("09247926-38f9-477c-84a3-478e7ce12af1") public void setCloudType(final String value) { this.elt.putTagValue(ProviderRequirement.MdaTypes.CLOUDTYPE_TAGTYPE_ELT, value); } @@ -168,7 +165,7 @@ public void setCloudType(final String value) { *

Property description: *
null

*/ - @objid ("7ce227c3-852a-48ec-9279-53a62999ab49") + @objid ("f03114ec-af9c-46cc-94de-7fa16dca033e") public void setProviderNames(final List values) { this.elt.putTagValues(ProviderRequirement.MdaTypes.PROVIDERNAMES_TAGTYPE_ELT, values); } @@ -181,29 +178,29 @@ public List getChilds() { return result; } - @objid ("454661e8-531d-4c16-ac9d-48f810dee657") + @objid ("9b4d21b8-6d73-4461-b587-9e7dfbe12338") protected ProviderRequirement(final Class elt) { super(elt); } @objid ("562f3532-fd37-4432-a9ac-219453fb6332") public static final class MdaTypes { - @objid ("3d091709-cafd-496e-85b4-951a61cb823e") + @objid ("3186fde5-fe9d-4bfc-a9d4-822505862361") public static Stereotype STEREOTYPE_ELT; - @objid ("ace20376-ef06-483f-be06-8dff6be23bfb") + @objid ("dbbf211f-5042-471f-89ca-5e858a3718ac") public static TagType PROVIDERNAMES_TAGTYPE_ELT; - @objid ("da0cd75e-919b-42f1-b606-0140015ed13d") + @objid ("9f833171-75e0-4fc9-8530-d524332f3ed3") public static TagType CLOUDTYPE_TAGTYPE_ELT; - @objid ("918add55-84da-4c0e-ba0c-848282e13ab4") + @objid ("a1148766-7dd5-45cc-90f3-e02a5135b32e") private static Stereotype MDAASSOCDEP; - @objid ("74f2da0a-5438-4f7a-bff3-b0239be306fa") + @objid ("e5577366-6863-4bd5-bd7a-f143741d2308") private static TagType MDAASSOCDEP_ROLE; - @objid ("9667dec9-e836-4773-9fcf-5eb4763d2803") + @objid ("ca52527b-c5bb-4621-8053-b3213880e173") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "3889bd5f-decc-4b65-b4f4-e9f2db4b8446"); PROVIDERNAMES_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "3ba7ca0d-40ed-45d4-b49f-4c7abf286fd0"); @@ -213,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/requirementmodel/standard/class_/ResourceRequirement.java b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/ResourceRequirement.java index 2608299a..f9ff80bf 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.requirementmodel.standard.class_; @@ -36,7 +36,7 @@ */ @objid ("a2fe5307-a14d-44f3-b715-fa81339f2064") public class ResourceRequirement extends HardRequirement { - @objid ("8b151158-d057-4c08-a6b1-9d256bb3f088") + @objid ("d1839fce-d3b2-4666-ac10-effad3c72b0e") public static final String STEREOTYPE_NAME = "ResourceRequirement"; /** @@ -47,7 +47,7 @@ public class ResourceRequirement extends HardRequirement { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("3494ebcc-48d8-4377-8f8f-4888fbbf2f79") + @objid ("badc7b10-5323-479c-b836-fa124705427d") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, ResourceRequirement.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link ResourceRequirement} proxy on the created {@link Class}. */ - @objid ("8c49edfe-11c2-4ab9-9b4c-20d9c8bf5e14") + @objid ("1c192bca-cba2-4c29-8243-3ce03fc9776b") public static ResourceRequirement create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, ResourceRequirement.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("1ec53ce7-6fc4-457c-9167-13453f6c1f62") + @objid ("3ce98606-bcbd-444d-8340-8d23d7184c62") public static ResourceRequirement instantiate(final Class obj) { return ResourceRequirement.canInstantiate(obj) ? new ResourceRequirement(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("66827d8d-c558-4b66-8b5f-0ae19671fa0e") + @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 ("a635e1ed-7b5f-46ea-abc0-9796bd5573a9") + @objid ("d9e94329-f8d2-4af8-852c-c4bb747f4088") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,17 +109,16 @@ 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 ("7099fdca-ba9d-4a81-b977-8f245e4573a8") + @objid ("9bfebb93-79ee-4082-b090-0dd1f419b942") @Override public Class getElement() { return (Class)super.getElement(); } - @objid ("36355b12-24a2-4fb6-a1dd-ee995927d007") + @objid ("b62d034f-ae0a-47ca-8928-6d522d808e2a") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -135,23 +132,23 @@ public List getChilds() { return result; } - @objid ("810e6512-db56-4a27-9818-acc8e093a232") + @objid ("d2aaf971-8ab0-4a0b-932f-3d3e64850698") protected ResourceRequirement(final Class elt) { super(elt); } @objid ("c4f4ed2f-02b0-404f-90a5-c2cd9dcca0a9") public static final class MdaTypes { - @objid ("8ff01a4d-8bfb-453f-bc45-2f63f495234a") + @objid ("09c227c4-bb82-4afe-9607-ea2b7ced60bf") public static Stereotype STEREOTYPE_ELT; - @objid ("34f99b77-3560-4dca-b42a-59a279c2dfcc") + @objid ("d108f4d4-35b6-443c-98ff-39acbc12ea2b") private static Stereotype MDAASSOCDEP; - @objid ("87c1a3c0-0ec4-4fa9-acf3-54dec835921b") + @objid ("5b7c4454-d5bc-4a9e-81ce-b8a23aaaa060") private static TagType MDAASSOCDEP_ROLE; - @objid ("e6060e76-f100-4ead-b089-8bc3ef3ae86a") + @objid ("75c5291a-48ba-4579-8713-2afd7f685378") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "4e76597a-e007-4596-abfe-591ce920815d"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -159,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/requirementmodel/standard/class_/SecurityRequirement.java b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/SecurityRequirement.java index 6140ffd3..4c1ee939 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.requirementmodel.standard.class_; @@ -37,7 +37,7 @@ */ @objid ("6b8aa5ee-f997-4cf1-b7ce-1eb33e152b7e") public class SecurityRequirement extends HardRequirement { - @objid ("af8c99ee-7ca8-496a-b61d-ea3520edca6d") + @objid ("4d7c4fd0-cf3c-4ea0-b091-76b087653b2b") public static final String STEREOTYPE_NAME = "SecurityRequirement"; /** @@ -48,7 +48,7 @@ public class SecurityRequirement extends HardRequirement { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("9a66b0fc-8793-4ce5-8f22-1ff906c221d8") + @objid ("8a4c579a-142d-4f3f-b003-19c52d87bea7") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, SecurityRequirement.STEREOTYPE_NAME)); } @@ -58,7 +58,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link SecurityRequirement} proxy on the created {@link Class}. */ - @objid ("f95db3e2-55d8-418b-a7b7-797a23de5e46") + @objid ("5ca3701e-fc87-43e0-9590-0e40b3f155db") public static SecurityRequirement create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, SecurityRequirement.STEREOTYPE_NAME); @@ -66,41 +66,40 @@ 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. */ - @objid ("75c15a4c-c2b9-4992-9809-6a9f98b554ac") + @objid ("d12f67d9-092c-4a62-bb94-1053da16aad1") public static SecurityRequirement instantiate(final Class obj) { return SecurityRequirement.canInstantiate(obj) ? new SecurityRequirement(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("f4309342-d7e0-4332-9406-17decaa46b84") + @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 ("e46720a1-4061-40fb-9a8a-60aa99e3b373") + @objid ("f1f65e0d-d0c1-4b3d-86fa-2628e6119e11") public void addSecurityControls(final SecurityControl obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -110,7 +109,7 @@ public void addSecurityControls(final SecurityControl obj) { } } - @objid ("411fd360-d967-476c-aca7-12d8030c95ce") + @objid ("2330b5ed-3e8a-4b71-8e48-d45faf8607a6") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -127,11 +126,10 @@ 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 ("69a7cf71-670e-43cb-9a6b-08d58769e631") + @objid ("c515ce6e-1fd5-45e3-a062-3ab2086d58c9") @Override public Class getElement() { return (Class)super.getElement(); @@ -141,8 +139,9 @@ public Class getElement() { * Get the values of the 'securityControls' role.

* Role description: * null + * */ - @objid ("8891c813-5f16-4463-b2c3-e15cc3fb7c77") + @objid ("cfa95e30-1194-4a4d-91ba-a7d004b57693") public List getSecurityControls() { List results = new ArrayList<>(); for (Dependency d : this.elt.getDependsOnDependency()) { @@ -155,7 +154,7 @@ public List getSecurityControls() { return Collections.unmodifiableList(results); } - @objid ("53c894a5-c502-453d-af62-4d35892de922") + @objid ("cc0fae95-e544-4882-9a6e-b28e0b3e2ddd") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -165,12 +164,13 @@ public int hashCode() { * Remove a value from the 'securityControls' role.

* Role description: * null + * */ - @objid ("158e7bfb-9658-40da-a630-b2b3b21264d6") + @objid ("973b938b-2180-475e-9285-404b6a2054eb") public boolean removeSecurityControls(final SecurityControl obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getDependsOnDependency())) { - if (d.isStereotyped(SecurityRequirement.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(SecurityRequirement.MdaTypes.MDAASSOCDEP_ROLE), "")) + if (d.isStereotyped(SecurityRequirement.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(SecurityRequirement.MdaTypes.MDAASSOCDEP_ROLE), "securityControls")) if (Objects.equals(d.getDependsOn(), obj.getElement())) { d.delete(); return true; @@ -188,23 +188,23 @@ public List getChilds() { return result; } - @objid ("71983519-e720-47da-9b86-111912f4a6a9") + @objid ("2c1eb274-da4b-496c-9ff5-f327fdb97969") protected SecurityRequirement(final Class elt) { super(elt); } @objid ("9b57abca-226e-4023-b549-3dc9186ae82b") public static final class MdaTypes { - @objid ("9b8dbef2-cead-4ac4-9ba9-6c6bc0cd25aa") + @objid ("bc31bfee-3aa2-4f92-bcb6-116721b5a545") public static Stereotype STEREOTYPE_ELT; - @objid ("2e75d350-1756-45ac-a319-8bb7bee7a2b0") + @objid ("03d8a111-4eff-4fd9-8dd3-a900853af50e") private static Stereotype MDAASSOCDEP; - @objid ("f15de3fb-0015-4993-9193-ee069ef9e620") + @objid ("63897074-6626-4328-883e-5cbcdd498cf2") private static TagType MDAASSOCDEP_ROLE; - @objid ("82485244-83df-4059-ad52-0ab4cf5d7fe7") + @objid ("d8b889bd-7414-4e6d-a3dd-8af10653eb35") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "c104b35e-2578-4138-94df-ff26daad8dc7"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -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 2f65f88f..afe2a776 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.requirementmodel.standard.class_; @@ -47,7 +47,7 @@ */ @objid ("c1a7b9fb-e797-4f38-a956-d25268a52f8d") public class ServiceLevelObjective extends HardRequirement { - @objid ("69573253-2416-4be3-a19b-a81639e58460") + @objid ("e1fef4d0-f368-45d6-bc14-aa28d666d6ee") public static final String STEREOTYPE_NAME = "ServiceLevelObjective"; /** @@ -58,7 +58,7 @@ public class ServiceLevelObjective extends HardRequirement { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("bf10163d-ab8a-418f-b58b-ef6535e31250") + @objid ("2794df2e-5fef-40c7-9409-a2f73782dd3d") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, ServiceLevelObjective.STEREOTYPE_NAME)); } @@ -68,7 +68,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link ServiceLevelObjective} proxy on the created {@link Class}. */ - @objid ("e8491738-8a67-43ea-84a5-3a100b012fe5") + @objid ("ef6a8acb-9a9e-43f0-b04f-e5ef83193c88") public static ServiceLevelObjective create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, ServiceLevelObjective.STEREOTYPE_NAME); @@ -76,36 +76,34 @@ 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. */ - @objid ("8276a87f-c7ea-4d45-b294-547d56c7881d") + @objid ("f734089e-99f5-4019-bf6a-596a2be1fa9c") public static ServiceLevelObjective instantiate(final Class obj) { return ServiceLevelObjective.canInstantiate(obj) ? new ServiceLevelObjective(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("7066eeea-64d2-4b9e-9fbf-dba8528eca77") + @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 ("3a1f7371-4583-4bad-b036-e9f11c145b87") + @objid ("849346ef-dd3e-4be9-98fa-e2ef341918d8") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -125,8 +123,9 @@ public boolean equals(final Object obj) { * Get the value of the 'constraint' role.

* Role description: * null + * */ - @objid ("3a812c7e-7c84-4999-bd24-9eb38fc8e067") + @objid ("e7bad791-3a65-4154-a8ec-40c8fd0772ef") public CamelConstraint getConstraint() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(ServiceLevelObjective.MdaTypes.MDAASSOCDEP) @@ -147,11 +146,10 @@ public CamelConstraint getConstraint() { } /** - * Get the underlying {@link Class}. - * + * Get the underlying {@link Class}. * @return the Class represented by this proxy, never null. */ - @objid ("52e27e7c-2580-4084-8c1a-1506f669c329") + @objid ("6eb93bba-d8b7-4a2d-bc22-0fdecf07e002") @Override public Class getElement() { return (Class)super.getElement(); @@ -161,8 +159,9 @@ public Class getElement() { * Get the value of the 'violationEvent' role.

* Role description: * null + * */ - @objid ("ebb00f46-3fed-4118-b5b9-b59fa4a387a0") + @objid ("00443517-f30b-4b5e-8bd9-6f91cb3efd05") public Event getViolationEvent() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(ServiceLevelObjective.MdaTypes.MDAASSOCDEP) @@ -180,7 +179,7 @@ public Event getViolationEvent() { return null; } - @objid ("7d6d05ad-f298-468c-abd3-eaa85f4c63e8") + @objid ("59224cde-bd36-4c02-8b23-ad649f43e92e") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -190,8 +189,9 @@ public int hashCode() { * Set the value of the 'constraint' role.

* Role description: * null + * */ - @objid ("76b18da3-4f42-4eb4-8da3-706ce25181f4") + @objid ("5b1cc775-4990-4755-9e3b-6d7624e2aede") public void setConstraint(final CamelConstraint obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -215,8 +215,9 @@ public void setConstraint(final CamelConstraint obj) { * Set the value of the 'violationEvent' role.

* Role description: * null + * */ - @objid ("d7e607d3-2fed-41a8-9895-5d4dd8721b97") + @objid ("1dfbdcf0-cbb1-412d-b792-43513858f014") public void setViolationEvent(final Event obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -244,23 +245,23 @@ public List getChilds() { return result; } - @objid ("5d2ff56c-4d23-458f-ad8c-6f8b642bdc1c") + @objid ("9504706b-331e-4736-a408-a5a922995cde") protected ServiceLevelObjective(final Class elt) { super(elt); } @objid ("798dc94a-b673-4408-9cfc-a760eac81e13") public static final class MdaTypes { - @objid ("3cb07b20-05b5-4c4d-988a-d32300bc7adc") + @objid ("440847bb-2ce4-4994-a37e-519898ff9296") public static Stereotype STEREOTYPE_ELT; - @objid ("834048a7-4258-4de1-85a3-decbb2767ba0") + @objid ("a2efa23e-0dcf-451d-af86-d1606a622242") private static Stereotype MDAASSOCDEP; - @objid ("cf5e85a1-0e80-4bde-bbdf-043c3ecb3cc1") + @objid ("d14385c2-8c08-42ec-8ec0-4942bbfc7998") private static TagType MDAASSOCDEP_ROLE; - @objid ("01874f15-f24f-43b7-988f-b46da17480ed") + @objid ("26767be5-2fc3-4a06-8c67-e62297b65fa6") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "72de5d29-7d68-48f4-a3ac-eace289da2c6"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -268,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/requirementmodel/standard/class_/VerticalScaleRequirement.java b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/class_/VerticalScaleRequirement.java index f0f0ee32..19293439 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.requirementmodel.standard.class_; @@ -36,7 +36,7 @@ */ @objid ("b293b21a-97ae-47e2-95a3-32cbf8990a9b") public class VerticalScaleRequirement extends ScaleRequirement { - @objid ("44cb27a7-f477-43fb-acb3-fcf66cf184dc") + @objid ("6a2745ae-b090-4e6f-bf81-193035f01c22") public static final String STEREOTYPE_NAME = "VerticalScaleRequirement"; /** @@ -47,7 +47,7 @@ public class VerticalScaleRequirement extends ScaleRequirement { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("2714be95-631d-4d17-a90b-b2cfecae761a") + @objid ("9822f986-325b-4876-930e-42fe4db0ac62") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, VerticalScaleRequirement.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link VerticalScaleRequirement} proxy on the created {@link Class}. */ - @objid ("a5299b6a-30e1-4554-9da6-b7635769dffb") + @objid ("af1b9255-b739-40e0-8d8d-c97d406ab007") public static VerticalScaleRequirement create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, VerticalScaleRequirement.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("76585cd2-24e4-407e-b784-f1b2cbe6f209") + @objid ("b1c7a2ef-4ceb-4602-b803-89e004c019e9") public static VerticalScaleRequirement instantiate(final Class obj) { return VerticalScaleRequirement.canInstantiate(obj) ? new VerticalScaleRequirement(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("9ba72cd5-05e5-45c6-88e7-269ae273722e") + @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 ("cc745fb2-5723-4902-a392-adc166b60a8a") + @objid ("8fb9241c-48f8-439d-bc62-9773e8cc50db") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,17 +109,16 @@ 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 ("5a93c06d-7470-4ada-a386-544d59ef74e4") + @objid ("dc58243a-8002-4ee0-94f8-00a36aa655c3") @Override public Class getElement() { return (Class)super.getElement(); } - @objid ("3d9cd4df-61e0-48d6-9f4e-6c36bc1d7acd") + @objid ("8dca08ff-dbe5-4be0-bb8b-db500fdab5c3") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -135,23 +132,23 @@ public List getChilds() { return result; } - @objid ("f61c0c92-e28f-4133-aed2-62bbb1b86364") + @objid ("2d6afe58-c283-4c87-8603-cc1e73abb179") protected VerticalScaleRequirement(final Class elt) { super(elt); } @objid ("b9142a65-96fb-46c9-ae04-0835babb830d") public static final class MdaTypes { - @objid ("d56ddc36-4462-419a-9991-3a97ead102be") + @objid ("f97aa7aa-9984-4172-8e88-6bddfc216886") public static Stereotype STEREOTYPE_ELT; - @objid ("b1c2ef43-99e8-4915-b5d1-3ee542ceb682") + @objid ("eee9edaa-ac37-44c1-9155-3177f1b1c885") private static Stereotype MDAASSOCDEP; - @objid ("528adca3-4937-498f-a281-9f01248bb541") + @objid ("8d810f5d-47df-4454-8ba9-17e61c13033f") private static TagType MDAASSOCDEP_ROLE; - @objid ("04f6df4a-5edd-4404-aea3-9138636eaeab") + @objid ("5640c599-01d7-42a8-b9e5-cf6a240c49d2") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "1090f8fc-a713-4641-89db-bd23c8a82ab1"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -159,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/requirementmodel/standard/enumeration/ImageRequirement.java b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/enumeration/ImageRequirement.java index 679149be..9dc2b881 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.requirementmodel.standard.enumeration; @@ -36,10 +36,10 @@ */ @objid ("c80e5eab-6c61-4c19-bf8f-86c5aa2a419d") public class ImageRequirement extends HardRequirement { - @objid ("64cac9e8-41e1-4332-8717-99ff5a87e02a") + @objid ("5e944ada-5d03-476a-bc40-657817bbc482") public static final String STEREOTYPE_NAME = "ImageRequirement"; - @objid ("1f640467-5942-476a-b683-615690efacd8") + @objid ("fb6c6ece-d7f0-472e-aa8e-524b740f55e7") public static final String IMAGES_TAGTYPE = "images"; /** @@ -50,7 +50,7 @@ public class ImageRequirement extends HardRequirement { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("8d163761-4735-41ec-9084-8cbaa86eff68") + @objid ("8ba13730-cdb0-437b-ab1a-b21062969383") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Enumeration) && ((Enumeration) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, ImageRequirement.STEREOTYPE_NAME)); } @@ -60,7 +60,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link ImageRequirement} proxy on the created {@link Enumeration}. */ - @objid ("ce187978-0d9b-403d-b49a-b8eeae00f1e7") + @objid ("fd0efd45-367c-48d4-9f24-c30c64e8b79c") public static ImageRequirement create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Enumeration"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, ImageRequirement.STEREOTYPE_NAME); @@ -68,36 +68,34 @@ 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. */ - @objid ("c8b6ef61-44b5-459f-b689-eaa6c788d326") + @objid ("0e7d0786-63e2-4d45-9005-7aeef0a9ec8f") public static ImageRequirement instantiate(final Enumeration obj) { return ImageRequirement.canInstantiate(obj) ? new ImageRequirement(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("96c336be-9eb8-4eef-adb1-399e770dfd55") + @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 ("d6c599ac-79fb-49c2-9014-d5828219a909") + @objid ("7eef459b-8982-489f-81e6-f91be2ee05d9") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -114,11 +112,10 @@ 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 ("b3ba106b-a4c8-44a3-8212-14e107eafd06") + @objid ("fcb99de4-9505-472f-90ce-d92681cb438a") @Override public Enumeration getElement() { return (Enumeration)super.getElement(); @@ -129,12 +126,12 @@ public Enumeration getElement() { *

Property description:
* null

*/ - @objid ("b2665352-706d-4a51-bd50-3fc6e59e8dee") + @objid ("79b5daa5-4963-40f3-afa6-da941f07040d") public List getImages() { return this.elt.getTagValues(ImageRequirement.MdaTypes.IMAGES_TAGTYPE_ELT); } - @objid ("d423022d-68ba-48d7-af44-f45c500662a6") + @objid ("db652953-2c77-4462-9ba1-1bca3ca414c1") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -145,7 +142,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("b55ac614-4196-4043-8c80-64e510a83779") + @objid ("d8e882f8-8802-40e9-83b9-5417dae6d753") public void setImages(final List values) { this.elt.putTagValues(ImageRequirement.MdaTypes.IMAGES_TAGTYPE_ELT, values); } @@ -158,26 +155,26 @@ public List getChilds() { return result; } - @objid ("74725faa-06df-430c-bac9-4dcc37408c7d") + @objid ("91c706e7-5aee-43ed-90bc-7776b23b9e9c") protected ImageRequirement(final Enumeration elt) { super(elt); } @objid ("092ec222-61cf-4d33-995e-dfa1dcd4853f") public static final class MdaTypes { - @objid ("49ad9072-b08e-4d09-8293-d71f8e57e800") + @objid ("efe0c00a-3cab-4320-8264-7a275cc5eff8") public static Stereotype STEREOTYPE_ELT; - @objid ("43815984-b0c4-496a-a7ec-a1884444ec02") + @objid ("bdf59ab1-a10d-4a02-8300-784931b98062") public static TagType IMAGES_TAGTYPE_ELT; - @objid ("2262cc89-9716-42bf-a175-e83818888420") + @objid ("9fd1bba4-8019-4f79-b03d-0882e7a9b9b3") private static Stereotype MDAASSOCDEP; - @objid ("7c013edc-579f-44ab-b86f-732095a0397f") + @objid ("60211d7f-c404-4236-8585-632667551e21") private static TagType MDAASSOCDEP_ROLE; - @objid ("ad905552-57cb-4aa7-97b2-e2b21f4d1b07") + @objid ("2506432e-7e54-4da0-9221-b73929a7f763") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "aed9a95b-2f53-42b5-ad97-3a39f0ee4d60"); IMAGES_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "15d9a370-393a-428c-8331-c15664b99f13"); @@ -186,11 +183,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 494776b4..b93500f0 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.requirementmodel.standard.generalclass; @@ -35,7 +35,7 @@ */ @objid ("892ed9c7-a02c-433e-a591-388ee6839707") public abstract class HardRequirement extends Requirement { - @objid ("477e5490-2588-4ed8-a082-573ff12b1030") + @objid ("73c74014-6b38-40a6-8d6f-743fb66a2589") public static final String STEREOTYPE_NAME = "HardRequirement"; /** @@ -46,12 +46,12 @@ public abstract class HardRequirement extends Requirement { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("076ac4dc-ecc3-4de6-8716-63db8d888ded") + @objid ("8a3b2109-10c7-4594-b584-472a499376ce") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof GeneralClass) && ((GeneralClass) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, HardRequirement.STEREOTYPE_NAME)); } - @objid ("8ca84ca0-d2be-4f5a-8998-3ccbceb9553f") + @objid ("358e5738-45cb-40a4-845d-bfba873d6256") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -68,17 +68,16 @@ 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 ("ff9e2414-8a67-4085-a724-a96dd7f65a20") + @objid ("a8851f14-57f1-47fb-be87-9724236daa10") @Override public GeneralClass getElement() { return (GeneralClass)super.getElement(); } - @objid ("09541526-0ae9-48ec-8a36-e830b346b24c") + @objid ("7c1a63c1-e326-4877-a315-d85dfeeaeeb9") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -92,23 +91,23 @@ public List getChilds() { return result; } - @objid ("8349d99e-06fb-4c12-a1c9-65ad5b8e9fb0") + @objid ("ed5d0740-65cc-4c7f-89e3-184b24c23683") protected HardRequirement(final GeneralClass elt) { super(elt); } @objid ("024b0a43-76f9-4df6-8a5c-e5e800794153") public static final class MdaTypes { - @objid ("b37957e2-a8da-40c3-9eaa-3c7c87c02612") + @objid ("9875afcf-f7d0-44f0-bfe6-8367f6c5a677") public static Stereotype STEREOTYPE_ELT; - @objid ("704b8661-af47-4996-bf85-a141c4b6ec1d") + @objid ("cf52b539-edc6-416a-8429-86e8d4b6b401") private static Stereotype MDAASSOCDEP; - @objid ("8e07630b-418a-4062-81ec-defcecc6d6b4") + @objid ("5c2d2856-f118-40a6-9e7c-0b45b1d91b20") private static TagType MDAASSOCDEP_ROLE; - @objid ("53bcc5cb-2f3c-410e-945f-c916efde7a50") + @objid ("853cc2aa-5ef5-46bf-ab68-5309af592fc6") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "2955347c-7823-427d-af9e-c725897bba1c"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -116,11 +115,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 4d981ad8..b99a34fa 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.requirementmodel.standard.generalclass; @@ -36,7 +36,7 @@ */ @objid ("cd14264b-97fa-49a6-bb0d-db04d8c66386") public abstract class Requirement extends FeatureClassifier { - @objid ("668397a0-0154-4ae3-a214-a746425e9905") + @objid ("1904f762-4146-4f35-8869-a153ba71716e") public static final String STEREOTYPE_NAME = "Requirement"; /** @@ -47,12 +47,12 @@ public abstract class Requirement extends FeatureClassifier { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("4c01e974-2000-4fdd-a4ca-b21e3f35eab6") + @objid ("b1bbf1fa-eda0-4938-acee-1895fe350fa7") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof GeneralClass) && ((GeneralClass) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, Requirement.STEREOTYPE_NAME)); } - @objid ("ac8fb5a0-4813-4c75-906c-5a341cb0c4c3") + @objid ("692a9525-c9df-4c26-bda7-357db29cb220") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -69,17 +69,16 @@ 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 ("bcca514e-0822-46b7-808f-9d048fe73b57") + @objid ("db137d7f-dee5-4999-97f1-1d5780b806c1") @Override public GeneralClass getElement() { return (GeneralClass)super.getElement(); } - @objid ("b6005291-ff9a-428e-9134-1ea4d8033d08") + @objid ("c53b5012-25ae-45fa-b76e-c6cd8cd23c33") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -93,23 +92,23 @@ public List getChilds() { return result; } - @objid ("c31ce7f2-ed1f-4ba7-ac31-11675c7a604f") + @objid ("1cee9148-6fe0-45e8-a63e-70bbf11252bc") protected Requirement(final GeneralClass elt) { super(elt); } @objid ("d168a813-2ca0-4031-921a-6b0cec2ba4ee") public static final class MdaTypes { - @objid ("7cbd740b-b07a-4351-b6d6-b84883221840") + @objid ("d75ea9c2-2c39-4f2d-826b-b27e06a7e00c") public static Stereotype STEREOTYPE_ELT; - @objid ("bdfd2148-8ed9-4680-a4d8-ea3c4c585bdc") + @objid ("a263ebaf-fc33-45ac-b843-d7a1bf057e21") private static Stereotype MDAASSOCDEP; - @objid ("0e539702-cfed-4479-848b-9f9e3b11fff8") + @objid ("0cb2f8bc-cc14-40f0-85f3-017dd190d81e") private static TagType MDAASSOCDEP_ROLE; - @objid ("b7917897-3809-41c7-9553-9e94956d4149") + @objid ("c8f6eb57-ab5f-4a2f-be15-76f600e2e5fa") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "f14398cc-a1c7-4953-9874-f7819f1ec4f7"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -117,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/ScaleRequirement.java b/src/main/java/fr/softeam/cameldesigner/api/requirementmodel/standard/generalclass/ScaleRequirement.java index 9a70a027..d98861b4 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.requirementmodel.standard.generalclass; @@ -35,7 +35,7 @@ */ @objid ("2e2e4b39-28e1-4131-aec8-59bd318e7b00") public abstract class ScaleRequirement extends HardRequirement { - @objid ("6d4fd0f9-e879-422d-b1c4-efe856f87639") + @objid ("edef55e4-ef64-4867-b499-10a1618c886c") public static final String STEREOTYPE_NAME = "ScaleRequirement"; /** @@ -46,12 +46,12 @@ public abstract class ScaleRequirement extends HardRequirement { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("cb379048-747a-499f-8408-2fc58a5d97ef") + @objid ("9370adcf-7f30-4d41-9ce1-ce156cda46ad") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof GeneralClass) && ((GeneralClass) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, ScaleRequirement.STEREOTYPE_NAME)); } - @objid ("1b5f57e2-f59a-4c15-bf17-0aaab7427839") + @objid ("c822140b-ff7a-46e6-9e29-5be52b6b9107") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -68,17 +68,16 @@ 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 ("14ff9bef-74ae-43f2-a880-60daf0488acf") + @objid ("4cac3943-63af-4768-9883-e864ff00a8b7") @Override public GeneralClass getElement() { return (GeneralClass)super.getElement(); } - @objid ("24c30a65-5dc9-455c-a66f-50e96ab41db2") + @objid ("4bf845bb-69aa-428c-9b61-f381327c7ec1") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -92,23 +91,23 @@ public List getChilds() { return result; } - @objid ("65761813-2bfa-49bb-bce8-59833253bd66") + @objid ("48fcc2a7-6295-4923-9238-9932eaf1b764") protected ScaleRequirement(final GeneralClass elt) { super(elt); } @objid ("d2c43198-3b6c-4edb-b389-c4724bf797a0") public static final class MdaTypes { - @objid ("3caf32ee-68cf-405b-bf10-4465ac7f8a48") + @objid ("12f1f1b8-6d9c-4450-9d32-d79d991b1f8e") public static Stereotype STEREOTYPE_ELT; - @objid ("b52b79f2-2244-40d0-9632-7e2404b64bf7") + @objid ("9ec20381-4580-4f3c-85a4-c8793f00ead1") private static Stereotype MDAASSOCDEP; - @objid ("fb9e5dad-a2fe-4bc6-bf33-8044e3c3e2d5") + @objid ("cf3987cc-534b-4441-9dca-32a87464add6") private static TagType MDAASSOCDEP_ROLE; - @objid ("eb1c8557-d139-4807-92bf-95d8c92067a8") + @objid ("c9a3347f-76ef-401d-bbf2-04f950e1b486") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "92dc2d3d-2985-4da0-bc0e-3a4f5e00e269"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -116,11 +115,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 70cee5b7..32203621 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.requirementmodel.standard.generalclass; @@ -35,10 +35,10 @@ */ @objid ("539e2a12-8c48-42f5-9783-5248ca11085c") public abstract class SoftRequirement extends Requirement { - @objid ("b43be6d8-af1b-44f8-8f82-4219cabbdf69") + @objid ("9b090e62-cf56-42f6-a2e0-f452dc70dbdb") public static final String STEREOTYPE_NAME = "SoftRequirement"; - @objid ("24788461-6a07-43bb-b63f-8c9e8800a224") + @objid ("3982abf8-ad18-4955-aecd-3f6b1329c6a1") public static final String PRIORITY_TAGTYPE = "priority"; /** @@ -49,12 +49,12 @@ public abstract class SoftRequirement extends Requirement { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("9bdd2afe-77c6-452b-9c9a-7056aeb90654") + @objid ("e9b553cd-19b5-473e-acff-f68ef82aefcf") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof GeneralClass) && ((GeneralClass) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, SoftRequirement.STEREOTYPE_NAME)); } - @objid ("f8bfe52f-635d-4bf7-9ede-5d46b9bc89e5") + @objid ("cd5f932f-093d-4527-9cd5-a727078876d4") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -71,11 +71,10 @@ 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 ("cb2f3a69-5891-491c-b97f-c10d6fd98ab1") + @objid ("9c7c6a36-7a45-4c81-8deb-c489b3ea1021") @Override public GeneralClass getElement() { return (GeneralClass)super.getElement(); @@ -86,12 +85,12 @@ public GeneralClass getElement() { *

Property description: *
null

*/ - @objid ("e42873fc-6e44-4697-9689-49eecc90e40a") + @objid ("90c42bdc-47ff-4089-88ce-6ac72bc8d76a") public String getPriority() { return this.elt.getTagValue(SoftRequirement.MdaTypes.PRIORITY_TAGTYPE_ELT); } - @objid ("90020117-ed71-4831-9c6e-8c4d72bb3cb0") + @objid ("184a7664-2fde-41bc-8dea-738355070419") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -102,7 +101,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("5382ddca-1987-4ecb-8441-8f84bef0d57e") + @objid ("eed5a321-9713-42e4-b453-8df46b315827") public void setPriority(final String value) { this.elt.putTagValue(SoftRequirement.MdaTypes.PRIORITY_TAGTYPE_ELT, value); } @@ -115,26 +114,26 @@ public List getChilds() { return result; } - @objid ("2cf57745-a538-4f46-8372-f9470c457945") + @objid ("021ad608-3edb-41fa-9e19-8bbfb29a9b54") protected SoftRequirement(final GeneralClass elt) { super(elt); } @objid ("e11f1b31-a2cb-4b0a-a55c-c134d2473491") public static final class MdaTypes { - @objid ("b4fa144d-a32c-4c39-8454-a76120a9e741") + @objid ("fca778a1-782e-47f1-ac0a-0aa7eb16f2b4") public static Stereotype STEREOTYPE_ELT; - @objid ("1fd63c27-4846-4883-9b87-5858473cf1f3") + @objid ("3a2e12f9-8067-4ec9-9c87-a3489831fbd4") public static TagType PRIORITY_TAGTYPE_ELT; - @objid ("1e3e1947-603f-4d5c-8b48-40d59906a458") + @objid ("dd3dfe7b-53d8-4bd4-9bcd-6677387601a3") private static Stereotype MDAASSOCDEP; - @objid ("9a6ebce1-8549-45e5-91ca-9df086d621c9") + @objid ("f286f109-bd91-4c6b-8afd-30281f12fc59") private static TagType MDAASSOCDEP_ROLE; - @objid ("16a3021a-01ab-4437-a18c-eda9b5d4ddad") + @objid ("5a063300-b56b-43d4-8656-672c6ef6bcd1") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "fc1abdeb-e2fa-4a04-9253-4e15a223bce2"); PRIORITY_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "1f38e006-1584-4036-8ddc-f39a5b607306"); @@ -143,11 +142,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 3e9b4a50..e4d1d201 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.requirementmodel.standard.package_; @@ -54,7 +54,7 @@ */ @objid ("12da9c0b-7f68-4c3c-abc2-84b8c9b97aaa") public class RequirementModel extends SubModel { - @objid ("9127c2ec-ca06-4d47-9eb1-f37490cc978d") + @objid ("ba69ad74-fc32-4bce-9c82-ec8767278c0e") public static final String STEREOTYPE_NAME = "RequirementModel"; /** @@ -65,7 +65,7 @@ public class RequirementModel extends SubModel { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("5ac507d3-47d8-485b-a8ea-d81c1d2f0792") + @objid ("162dd412-baac-4067-94c4-f7c6e6fb71cd") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Package) && ((Package) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, RequirementModel.STEREOTYPE_NAME)); } @@ -75,7 +75,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link RequirementModel} proxy on the created {@link Package}. */ - @objid ("b33ab76c-2e9d-4b89-bc04-114aea582275") + @objid ("2308a5b3-6394-4dbc-9918-0b079eb2af35") public static RequirementModel create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Package"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, RequirementModel.STEREOTYPE_NAME); @@ -83,47 +83,46 @@ 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. */ - @objid ("f4623bf3-becb-4eef-8e22-deff7d35cd43") + @objid ("b307044e-ee72-4a07-bbd3-42e763fdc96c") public static RequirementModel instantiate(final Package obj) { return RequirementModel.canInstantiate(obj) ? new RequirementModel(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("2a29b38c-c87c-4d85-9a2d-b6ae7bc08bc9") + @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 ("300b21ea-4d06-4bbf-8805-a3c5ee3f7bfb") + @objid ("02994a90-0cf5-4893-b377-01d0c2f4b0e0") public void addRequirements(final Requirement obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); } - @objid ("b593360d-0a21-4d76-8796-103094b7eb81") + @objid ("905bb942-bb51-43f4-aa41-0571d2c4158c") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -143,18 +142,18 @@ public boolean equals(final Object obj) { * Get the value to the 'camelModel' role.

* Role description: * null + * */ - @objid ("332d4233-c419-4bd5-b581-793ad7c61604") + @objid ("1c098574-642f-4c00-b9f1-92fe9f302b6d") public CamelModel getCamelModel() { return (CamelModel)CamelDesignerProxyFactory.instantiate(((Package) this.elt).getOwner(), CamelModel.STEREOTYPE_NAME); } /** - * Get the underlying {@link Package}. - * + * Get the underlying {@link Package}. * @return the Package represented by this proxy, never null. */ - @objid ("3bc6dc68-81de-4a49-a444-c693019c8438") + @objid ("ec99cb41-f0bf-46be-9ab4-2b5a9af86f1a") @Override public Package getElement() { return (Package)super.getElement(); @@ -164,40 +163,41 @@ public Package getElement() { * Get the values of the 'requirements' role.

* Role description: * null + * */ - @objid ("455b1960-8ad2-48d5-b0ee-3c1ea88d26fa") + @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); } - @objid ("0b34a6e6-1eac-44dc-bb26-afa9aa2184ea") + @objid ("bf1add86-c6bd-4ad8-8827-808e3815a1c5") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -207,8 +207,9 @@ public int hashCode() { * Remove a value from the 'requirements' role.

* Role description: * null + * */ - @objid ("029eaf90-bb5b-43b2-a7b3-a5b02e4991eb") + @objid ("8cbcc953-4165-48d1-9823-4135fa86b94e") public boolean removeRequirements(final Requirement obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -217,8 +218,9 @@ public boolean removeRequirements(final Requirement obj) { * Set the value of the 'camelModel' role.

* Role description: * null + * */ - @objid ("431de232-810d-49d9-970d-a6c8b9f6a44f") + @objid ("c7c92d65-bc4d-42ab-bc6c-307dae1e97cf") public void setCamelModel(final CamelModel obj) { ((Package) this.elt).setOwner((obj != null) ? obj.getElement() : null); } @@ -301,23 +303,23 @@ public Collection getSLOs() { return Collections.unmodifiableList(results); } - @objid ("296448e7-79e9-46fa-9f64-996ce9848e07") + @objid ("6a46fc88-1a8a-4044-85d1-a3f49df9fdc4") protected RequirementModel(final Package elt) { super(elt); } @objid ("cda79ab4-0c73-48f6-9745-469f013ec194") public static final class MdaTypes { - @objid ("584024a2-a7f8-4477-8f20-b5efbf47629e") + @objid ("a6fbe868-4813-4e11-a1bf-2f6e02cd2cd5") public static Stereotype STEREOTYPE_ELT; - @objid ("114d32bd-6934-4c25-85fe-fce4876b22c2") + @objid ("04ad509d-cdf8-45b3-b4de-7c900f72786d") private static Stereotype MDAASSOCDEP; - @objid ("0c7dde12-fc3c-414a-9f95-8058096e8d6f") + @objid ("c858762b-5450-42a6-b238-e4da38485f73") private static TagType MDAASSOCDEP_ROLE; - @objid ("b826f253-d435-4352-8103-087458c7c1cb") + @objid ("c3ca3d55-24aa-4978-afcc-c4d65f1e4a0f") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "a6bb7236-ef3d-41b8-a879-26c642be9cb8"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -325,11 +327,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 e639fddd..8f3f8d2b 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_; @@ -14,6 +14,7 @@ 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; @@ -38,16 +39,16 @@ */ @objid ("ad7c68b1-eb50-4553-a484-26d3118af425") public class BinaryEventPattern extends EventPattern { - @objid ("406793b3-a367-49a9-a864-26ecab89a6ca") + @objid ("1d8c348c-12ea-4504-90a6-d22f4e3465c3") public static final String STEREOTYPE_NAME = "BinaryEventPattern"; - @objid ("a5ac4a50-e71c-407e-a971-52194fdadbd5") + @objid ("c066c211-b741-4917-9a54-1efbec926e36") public static final String LOWEROCCURRENCEBOUND_TAGTYPE = "lowerOccurrenceBound"; - @objid ("b3b0c461-3223-4611-bb38-59cf649c73eb") + @objid ("4dea5c22-b861-4062-8058-f388ca70da45") public static final String OPERATOR_TAGTYPE = "operator"; - @objid ("bce5c6c3-536e-4367-ab00-270704271917") + @objid ("bc95d854-ac6a-47c7-a590-d6365cdfdd0e") public static final String UPPEROCCURRENCEBOUND_TAGTYPE = "upperOccurrenceBound"; /** @@ -58,7 +59,7 @@ public class BinaryEventPattern extends EventPattern { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("6e6429de-8386-4ca9-9052-2d229b4f9967") + @objid ("8d4a55b1-e78b-44d1-b4d0-06cec7d01e57") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, BinaryEventPattern.STEREOTYPE_NAME)); } @@ -68,7 +69,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link BinaryEventPattern} proxy on the created {@link Class}. */ - @objid ("7d2a05cc-c276-4b0b-9c72-b59e7d4d229c") + @objid ("60dbbcf4-ff2c-4f13-ac6d-3f6077ac97f6") public static BinaryEventPattern create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, BinaryEventPattern.STEREOTYPE_NAME); @@ -76,36 +77,34 @@ 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. */ - @objid ("baec7059-2b3f-4284-bb16-b3932d451fca") + @objid ("05e91b80-21ca-4ffa-b621-00a46a387bd4") public static BinaryEventPattern instantiate(final Class obj) { return BinaryEventPattern.canInstantiate(obj) ? new BinaryEventPattern(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("97b74239-1392-461f-bab1-e67ea49e6374") + @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 ("3cc2fbaf-7ef2-48b2-aa5a-4133b2a13b9e") + @objid ("8142d492-a757-4428-b21b-7914c54928d0") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -122,11 +121,10 @@ 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 ("8995aaec-1e39-47a2-a976-8f4729b55dce") + @objid ("2be7c7cc-565d-455d-a080-e6bb102d495b") @Override public Class getElement() { return (Class)super.getElement(); @@ -136,8 +134,9 @@ public Class getElement() { * Get the value of the 'leftEvent' role.

* Role description: * null + * */ - @objid ("0ac97dc7-09d7-493d-8f85-b5c57fdb8c5a") + @objid ("1ced70c0-047b-471e-adab-af61272db93a") public Event getLeftEvent() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(BinaryEventPattern.MdaTypes.MDAASSOCDEP) @@ -160,7 +159,7 @@ public Event getLeftEvent() { *

Property description: *
null

*/ - @objid ("a2fad2da-1569-41bb-a814-373eef94135d") + @objid ("27461ac0-add2-4bbc-82b0-d7de7ace3662") public String getLowerOccurrenceBound() { return this.elt.getTagValue(BinaryEventPattern.MdaTypes.LOWEROCCURRENCEBOUND_TAGTYPE_ELT); } @@ -170,7 +169,7 @@ public String getLowerOccurrenceBound() { *

Property description: *
null

*/ - @objid ("2517c888-c27d-4b73-be34-d3d8af0b0838") + @objid ("7b1f5d11-37d0-4466-9591-00e52a0c2d88") public String getOperator() { return this.elt.getTagValue(BinaryEventPattern.MdaTypes.OPERATOR_TAGTYPE_ELT); } @@ -179,8 +178,9 @@ public String getOperator() { * Get the value of the 'rightEvent' role.

* Role description: * null + * */ - @objid ("21a899cc-7f8d-4eba-b5a3-584ab2e0352c") + @objid ("b815a9cc-6bb2-48e5-8ba5-c3f19e420a40") public Event getRightEvent() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(BinaryEventPattern.MdaTypes.MDAASSOCDEP) @@ -203,12 +203,12 @@ public Event getRightEvent() { *

Property description: *
null

*/ - @objid ("03ce2b0f-c012-4dc0-8c04-50445bad6ca8") + @objid ("950774b4-4d6e-48c0-929e-657629ec8e4a") public String getUpperOccurrenceBound() { return this.elt.getTagValue(BinaryEventPattern.MdaTypes.UPPEROCCURRENCEBOUND_TAGTYPE_ELT); } - @objid ("e9ec75ea-fb6f-478e-a68e-a13e78a6298a") + @objid ("52107540-3a0c-44f6-a20e-51ada9530de2") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -218,8 +218,9 @@ public int hashCode() { * Set the value of the 'leftEvent' role.

* Role description: * null + * */ - @objid ("3d9a5fa9-3a05-44c5-a479-5758e4950741") + @objid ("e336336b-e1ba-46eb-8b67-ef2fee77655d") public void setLeftEvent(final Event obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -244,7 +245,7 @@ public void setLeftEvent(final Event obj) { *

Property description: *
null

*/ - @objid ("a566949b-bc86-46be-9295-6ff4dff7ca6a") + @objid ("9302b60c-0b35-4827-8a73-5753193465a7") public void setLowerOccurrenceBound(final String value) { this.elt.putTagValue(BinaryEventPattern.MdaTypes.LOWEROCCURRENCEBOUND_TAGTYPE_ELT, value); } @@ -254,7 +255,7 @@ public void setLowerOccurrenceBound(final String value) { *

Property description: *
null

*/ - @objid ("741c6bee-71be-4240-8714-7a49b1e25414") + @objid ("f9170b28-9fd5-4e16-886a-b35d10fd3935") public void setOperator(final String value) { this.elt.putTagValue(BinaryEventPattern.MdaTypes.OPERATOR_TAGTYPE_ELT, value); } @@ -263,8 +264,9 @@ public void setOperator(final String value) { * Set the value of the 'rightEvent' role.

* Role description: * null + * */ - @objid ("311a69ec-eb16-4999-b53a-c33936095f01") + @objid ("d2c73bb2-82b0-4a70-9b84-caf407b8d129") public void setRightEvent(final Event obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -289,7 +291,7 @@ public void setRightEvent(final Event obj) { *

Property description: *
null

*/ - @objid ("53aee280-4b4c-4334-95a2-6ef038e87803") + @objid ("3298cc08-eba9-4a0f-bfaa-a05182e22162") public void setUpperOccurrenceBound(final String value) { this.elt.putTagValue(BinaryEventPattern.MdaTypes.UPPEROCCURRENCEBOUND_TAGTYPE_ELT, value); } @@ -302,32 +304,32 @@ public List getChilds() { return result; } - @objid ("9040ba83-a84e-46e7-b10a-ab835eae4404") + @objid ("32580780-51eb-43ff-8cc0-070fe316ccec") protected BinaryEventPattern(final Class elt) { super(elt); } @objid ("557dc2d3-3a32-40be-a1c9-31aad96680de") public static final class MdaTypes { - @objid ("b096e20f-c0ed-4ee4-b44a-9a265944751b") + @objid ("ed5a54df-f96d-4871-86a8-0535b287e2e7") public static Stereotype STEREOTYPE_ELT; - @objid ("a7131fec-6f18-43dc-80fa-a03ff59f151d") + @objid ("a1c0fd57-0101-469a-b2ab-f524bf413a5d") public static TagType LOWEROCCURRENCEBOUND_TAGTYPE_ELT; - @objid ("2dc1cf55-7c4e-45b8-a9b3-bfc1df573950") + @objid ("a92403ff-3393-4922-be53-d99741311ea4") public static TagType UPPEROCCURRENCEBOUND_TAGTYPE_ELT; - @objid ("b88d1d17-5797-46ae-b407-89a1e586a48f") + @objid ("8f63973e-5d10-4fb1-b4c2-6893cb0a17a7") public static TagType OPERATOR_TAGTYPE_ELT; - @objid ("2ef508f2-b99d-4abd-8dc4-02dd9ee0b93b") + @objid ("876d37be-40ec-4506-8282-a2277e92fb86") private static Stereotype MDAASSOCDEP; - @objid ("a04bec80-238c-40d4-babb-b686a1313c13") + @objid ("b64f8fdd-c248-412f-8a30-2821df6e52ab") private static TagType MDAASSOCDEP_ROLE; - @objid ("27604ac6-10eb-40b4-b379-b2ee48ce6bb0") + @objid ("a5a39999-982d-4a85-91d7-d404863022e5") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "af833114-4bf1-4889-8ad0-621bb63e44c6"); LOWEROCCURRENCEBOUND_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "93e3f728-14c6-4561-9b94-3abf79c5863c"); @@ -338,11 +340,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 c669eb49..d756b1d7 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_; @@ -36,7 +36,7 @@ */ @objid ("9aee4d48-70c9-49d9-bc02-2f8e30c209d9") public abstract class Event extends FeatureClass { - @objid ("70ec6cc0-c11c-4972-9917-471d4c6611c8") + @objid ("8728dcdd-6c1b-46ab-8f98-39a953a10c9b") public static final String STEREOTYPE_NAME = "Event"; /** @@ -47,12 +47,12 @@ public abstract class Event extends FeatureClass { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("7b82ed0a-f4f7-48ae-9cc9-a4fe362dfdd9") + @objid ("b91a173d-0601-4451-ae50-0f6e8b061bdf") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, Event.STEREOTYPE_NAME)); } - @objid ("11b31fe0-1f3f-4145-afe5-c5141a106f37") + @objid ("ae3b98a5-315b-4431-81b4-6de9f6019c1f") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -69,17 +69,16 @@ 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 ("73865444-08be-4606-a0b2-2d7c05059305") + @objid ("7374298b-7e3e-4437-8c9c-d4eb9038caf6") @Override public Class getElement() { return (Class)super.getElement(); } - @objid ("e2cfd5f7-0b3b-42d3-8622-8141959f5b07") + @objid ("9270f68b-042b-426f-b20d-f7173ef62739") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -93,23 +92,23 @@ public List getChilds() { return result; } - @objid ("da2654c7-b953-4857-a865-c17dd230766b") + @objid ("bd29b3a8-adbd-47cb-abf9-1798f6bd98b7") protected Event(final Class elt) { super(elt); } @objid ("ddf59bec-eaaf-437c-b222-29836ad692ea") public static final class MdaTypes { - @objid ("39c0f628-78ef-439d-99e2-bdc2f253047b") + @objid ("40362954-2a3b-4b28-b140-49b103b13e97") public static Stereotype STEREOTYPE_ELT; - @objid ("caf45a1a-6eec-4b45-bc89-2987f4288808") + @objid ("7e90b445-2691-4784-8366-3fdebf1b5142") private static Stereotype MDAASSOCDEP; - @objid ("e5e50171-1083-4c06-99b9-446b10affed9") + @objid ("46391278-6e44-4a0c-b7f3-4f8519234c7a") private static TagType MDAASSOCDEP_ROLE; - @objid ("0ea7fc2c-5af5-4f07-9a75-1ee9c9357da1") + @objid ("3c71b7ca-da79-427a-b08a-867727232afd") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "79c08ab1-4e04-44ee-b88e-ddc638947bfd"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -117,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_/EventPattern.java b/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/EventPattern.java index 2e98a0a8..652b9d12 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_; @@ -14,6 +14,7 @@ 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; @@ -35,7 +36,7 @@ */ @objid ("1376376d-c30d-492b-b270-8ae507dd5d21") public abstract class EventPattern extends Event { - @objid ("1e59106a-8402-4862-ac55-2372e861911b") + @objid ("3ff2cdd8-1ef3-43be-bd34-fbab76ef3f1c") public static final String STEREOTYPE_NAME = "EventPattern"; /** @@ -46,12 +47,12 @@ public abstract class EventPattern extends Event { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("efbf8c8f-d74f-453f-9030-8c868fe3ea3f") + @objid ("9ab8e12a-c3e4-44d4-b08f-955c4c3f966d") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, EventPattern.STEREOTYPE_NAME)); } - @objid ("9712f2d6-0d10-49c0-acb9-4cafa835c09b") + @objid ("00e4dacb-c42d-4c7c-9679-7e96e45ec21b") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -68,11 +69,10 @@ 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 ("d1257097-e533-4953-8a7b-92e29c5df032") + @objid ("9631b680-37f3-4b05-8385-15d3b84fe77d") @Override public Class getElement() { return (Class)super.getElement(); @@ -82,8 +82,9 @@ public Class getElement() { * Get the value of the 'timer' role.

* Role description: * null + * */ - @objid ("0a256353-62a4-48c3-a915-c79cef366a74") + @objid ("a5390f06-3ba1-4f66-8b4c-853889c4a23e") public Timer getTimer() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(EventPattern.MdaTypes.MDAASSOCDEP) @@ -95,7 +96,7 @@ public Timer getTimer() { return null; } - @objid ("50c89978-f368-4282-917e-aad75e0ae7a8") + @objid ("930c0534-11c1-4378-abf4-24972e291718") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -105,8 +106,9 @@ public int hashCode() { * Set the value of the 'timer' role.

* Role description: * null + * */ - @objid ("f0bb5c59-18f0-45dd-94d0-a92eaf3ee762") + @objid ("88ecc94e-9bcd-4998-a9e2-356807bc2549") public void setTimer(final Timer obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -134,23 +136,23 @@ public List getChilds() { return result; } - @objid ("3fabe3d9-d32a-48da-9536-d31bf829e1ac") + @objid ("97433570-b859-4b22-8503-4e3200a3a774") protected EventPattern(final Class elt) { super(elt); } @objid ("dd1011e3-255f-4c6a-a51e-162a33438d4c") public static final class MdaTypes { - @objid ("e9185d8b-c87c-4964-948f-7b2543b152b7") + @objid ("eb806d68-9503-466e-bde4-4097e8ec20bf") public static Stereotype STEREOTYPE_ELT; - @objid ("dd532004-4e4c-44fd-905c-0d64c97d06a0") + @objid ("a9e0ab7d-27f4-48ba-adc2-81e28ae83d50") private static Stereotype MDAASSOCDEP; - @objid ("acb0352a-8243-4f5a-90a6-688e04871d20") + @objid ("8f6552dc-5798-4a59-9d08-df7688ff77d7") private static TagType MDAASSOCDEP_ROLE; - @objid ("a6d6f115-a640-47ea-b2d1-52bd7c4be72a") + @objid ("22c02866-c8b2-45d9-bd30-80f34aa6985e") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "46e221ca-8a8f-458b-8018-009a273cc009"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -158,11 +160,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 8de7b94a..cbc68db9 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_; @@ -50,7 +50,7 @@ */ @objid ("6506e3fc-10e0-4ba7-b4b6-3bccd0b9a073") public class FunctionalEvent extends SingleEvent { - @objid ("6410932a-546b-43f9-a4e0-1410b2266054") + @objid ("9c230ae9-091e-45ed-ba52-1e23e7afa989") public static final String STEREOTYPE_NAME = "FunctionalEvent"; /** @@ -61,7 +61,7 @@ public class FunctionalEvent extends SingleEvent { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("a73497c2-b2bf-40a9-a2ed-42e85f8ec175") + @objid ("3f2040d2-aad8-4585-89f5-ddbf0c01a26e") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, FunctionalEvent.STEREOTYPE_NAME)); } @@ -71,7 +71,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link FunctionalEvent} proxy on the created {@link Class}. */ - @objid ("a25322ba-d723-4749-befc-9aaeca4efea2") + @objid ("7c724f02-9c35-4020-b312-22cdc4410d08") public static FunctionalEvent create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, FunctionalEvent.STEREOTYPE_NAME); @@ -79,36 +79,34 @@ 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. */ - @objid ("784fc7ef-2c67-455d-8113-509b76d6c14e") + @objid ("171edef7-b6fb-4f6c-b62b-eceb8bb34d50") public static FunctionalEvent instantiate(final Class obj) { return FunctionalEvent.canInstantiate(obj) ? new FunctionalEvent(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("b7020237-d8ed-43e4-9add-f3618d2c8397") + @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 ("7bb542cf-8654-4fd3-a999-881d6c51b37a") + @objid ("7f0e0d9b-6589-4b30-a7c7-67bf1d790a4a") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -128,8 +126,9 @@ public boolean equals(final Object obj) { * Get the value of the 'component' role.

* Role description: * + * */ - @objid ("4d7dd756-90e9-465b-875c-d8577d675950") + @objid ("893ba6a8-7ead-4189-aad9-d4752ce68351") public CamelComponent getComponent() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(FunctionalEvent.MdaTypes.MDAASSOCDEP) @@ -150,11 +149,10 @@ public CamelComponent getComponent() { } /** - * Get the underlying {@link Class}. - * + * Get the underlying {@link Class}. * @return the Class represented by this proxy, never null. */ - @objid ("2d2a197d-dab9-4b17-bf62-00616e0d9372") + @objid ("da9348ae-b8ad-4bee-b1e3-cfa9bd084b46") @Override public Class getElement() { return (Class)super.getElement(); @@ -164,8 +162,9 @@ public Class getElement() { * Get the value of the 'functionalType' role.

* Role description: * + * */ - @objid ("6894c87c-03eb-4e36-babf-7918e27ff58a") + @objid ("8fdf1850-4650-45f2-bf36-c31832586a28") public CamelAttribute getFunctionalType() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(FunctionalEvent.MdaTypes.MDAASSOCDEP) @@ -191,7 +190,7 @@ public CamelAttribute getFunctionalType() { return null; } - @objid ("cd77fb3d-bf06-40c3-b0bc-93607f4cd927") + @objid ("92499533-17f1-4484-9039-c4c9679fc195") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -201,8 +200,9 @@ public int hashCode() { * Set the value of the 'component' role.

* Role description: * + * */ - @objid ("532b3c73-f938-49b4-a44d-b5175a94471f") + @objid ("dbf7b87a-3510-4283-8a1e-f88b9358d5a9") public void setComponent(final CamelComponent obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -226,8 +226,9 @@ public void setComponent(final CamelComponent obj) { * Set the value of the 'functionalType' role.

* Role description: * + * */ - @objid ("c7cdedad-60d3-4038-9e43-ea2430599e8e") + @objid ("a633901a-622c-46d1-9de5-82a21dc7a95d") public void setFunctionalType(final CamelAttribute obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -255,23 +256,23 @@ public List getChilds() { return result; } - @objid ("8be6cb0b-7b43-4a59-9dc3-bdac15a60140") + @objid ("cd69efc6-8ced-4aa6-904a-3766a6e32079") protected FunctionalEvent(final Class elt) { super(elt); } @objid ("1a266afd-186e-43cc-a4d6-d8eda707e81a") public static final class MdaTypes { - @objid ("82775600-618b-4e9e-b16c-89f64bcdd633") + @objid ("3658ec85-fa05-4729-84eb-896365ef2d2e") public static Stereotype STEREOTYPE_ELT; - @objid ("38f946a5-e988-40bc-b161-8e20be540e2d") + @objid ("76ea2cda-1abc-4712-9701-92c0b7fda359") private static Stereotype MDAASSOCDEP; - @objid ("21cec574-4daa-4f90-98da-ea96ed7bef3d") + @objid ("6dd70a4e-30ca-4a41-9363-2f8b6977e422") private static TagType MDAASSOCDEP_ROLE; - @objid ("5dad7f07-ce6d-41fb-87ca-541dfda52bea") + @objid ("9cc1b1e2-71ff-42af-9653-a13a13fb399f") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "8d4865c6-d973-416b-ba6e-62311853e410"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -279,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/scalabilitymodel/standard/class_/HorizontalScalingAction.java b/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/HorizontalScalingAction.java index 3c7bd348..20c871f0 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_; @@ -36,10 +36,10 @@ */ @objid ("9043ebaf-e900-49af-8abc-87dbea13b475") public class HorizontalScalingAction extends ScalingAction { - @objid ("570ef070-b550-42c4-b6ff-c89d10002929") + @objid ("289d87b5-f4cb-4b62-b60e-8af6e5c343d4") public static final String STEREOTYPE_NAME = "HorizontalScalingAction"; - @objid ("99baf365-bbf1-4712-931f-9e246146c5d9") + @objid ("0837c3e7-a589-4b98-aaeb-7536888cb89a") public static final String COUNT_TAGTYPE = "count"; /** @@ -50,7 +50,7 @@ public class HorizontalScalingAction extends ScalingAction { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("f2b66780-90d3-4c68-869c-6031bc549104") + @objid ("2f048d70-c3f0-4567-a3b4-cdd2232b466b") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, HorizontalScalingAction.STEREOTYPE_NAME)); } @@ -60,7 +60,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link HorizontalScalingAction} proxy on the created {@link Class}. */ - @objid ("a14399a4-fd14-4d65-bb90-a1914f49efbd") + @objid ("f0dc00bc-4818-4242-867c-25f1e3e7ced1") public static HorizontalScalingAction create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, HorizontalScalingAction.STEREOTYPE_NAME); @@ -68,36 +68,34 @@ 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. */ - @objid ("06de6c81-7cb0-43cc-ad37-a28bf31c3dd1") + @objid ("93f02a46-bb84-4b6f-bd79-1e3bb0005b8c") public static HorizontalScalingAction instantiate(final Class obj) { return HorizontalScalingAction.canInstantiate(obj) ? new HorizontalScalingAction(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("fd24e91b-add7-4869-a03d-d8318cfb710d") + @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 ("a073902f-0e15-44cd-bee0-f361842179b2") + @objid ("14746e4f-52dc-4bfd-8e57-e16360ee7793") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -118,23 +116,22 @@ public boolean equals(final Object obj) { *

Property description: *
null

*/ - @objid ("8518a107-a3cf-4561-a7c6-9169a8c5b9ac") + @objid ("adfad690-092d-411f-945d-5588ab160236") public String getCount() { return this.elt.getTagValue(HorizontalScalingAction.MdaTypes.COUNT_TAGTYPE_ELT); } /** - * Get the underlying {@link Class}. - * + * Get the underlying {@link Class}. * @return the Class represented by this proxy, never null. */ - @objid ("a6ab2414-febd-4d08-bcac-154d02e73b06") + @objid ("4416b0c8-6df9-4add-92e1-203f4b0e553c") @Override public Class getElement() { return (Class)super.getElement(); } - @objid ("7c8d7954-0f98-497d-babc-6bd50734cb14") + @objid ("4a242609-c7a3-4a4d-a378-0ff3bff9bc98") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -145,7 +142,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("056347b9-0262-4539-8d51-b69188595d50") + @objid ("382c3863-d403-4a1b-b3f6-f0559e999f36") public void setCount(final String value) { this.elt.putTagValue(HorizontalScalingAction.MdaTypes.COUNT_TAGTYPE_ELT, value); } @@ -158,26 +155,26 @@ public List getChilds() { return result; } - @objid ("0a898869-5e74-4df8-b6f7-8b00df06ceb2") + @objid ("9139feda-0a66-4a6c-b26d-b0ce3a0a2a1f") protected HorizontalScalingAction(final Class elt) { super(elt); } @objid ("903e4b65-68e5-46fa-8af6-f2905c82423f") public static final class MdaTypes { - @objid ("b4b1213e-7a78-40aa-b460-8711d25bf58a") + @objid ("ac3fad09-424a-4863-88fc-cc5a21b1921a") public static Stereotype STEREOTYPE_ELT; - @objid ("99662de6-9302-4524-a2d7-6b5995e40f0f") + @objid ("1608517f-6eee-478d-8478-02ec7c1f2b84") public static TagType COUNT_TAGTYPE_ELT; - @objid ("5123f255-1a5a-4f11-80c1-ae3b3478d66b") + @objid ("0aa6ff68-36ac-4ea7-a060-03defdd4da39") private static Stereotype MDAASSOCDEP; - @objid ("60f305a0-5c82-4bb0-9fa4-070ccc216212") + @objid ("0904b293-68bd-4403-bf73-0b0f43a6303e") private static TagType MDAASSOCDEP_ROLE; - @objid ("80326062-c16e-4709-b972-c1d86fb5bb3b") + @objid ("330f0998-aa16-4363-b602-9f3db382a4dc") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "99008d6c-2622-4467-8283-6059df42c240"); COUNT_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "d52b6541-1841-4607-96a8-591ad329e65f"); @@ -186,11 +183,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 fe9e71d7..7c8af89e 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_; @@ -36,10 +36,10 @@ */ @objid ("91c5901d-2f7a-441c-aea0-ec0a3019dafd") public class NonFunctionalEvent extends SingleEvent { - @objid ("c376d339-619a-49c1-8917-e7e917546d6e") + @objid ("aca016a4-08e4-42ec-9939-de2879afa3bb") public static final String STEREOTYPE_NAME = "NonFunctionalEvent"; - @objid ("57b76f2e-2fc7-4b10-b42c-870537af85e8") + @objid ("a97a9ab3-fc00-4809-ba13-844f221f63b5") public static final String ISVIOLATION_TAGTYPE = "isViolation"; /** @@ -50,7 +50,7 @@ public class NonFunctionalEvent extends SingleEvent { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("e36dfcd7-790c-44d3-978b-483d83a7cfea") + @objid ("2b0a07eb-f418-48c3-8b63-5968d64a9ef6") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, NonFunctionalEvent.STEREOTYPE_NAME)); } @@ -60,7 +60,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link NonFunctionalEvent} proxy on the created {@link Class}. */ - @objid ("bd184a6d-1fb8-482b-bd8b-2b30d9d8bb49") + @objid ("7df17a90-9881-4fec-8b34-e880c318f3ca") public static NonFunctionalEvent create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, NonFunctionalEvent.STEREOTYPE_NAME); @@ -68,36 +68,34 @@ 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. */ - @objid ("3fd13bb4-7aa8-498e-a7a1-e7afe13512de") + @objid ("8bed1fac-1f69-4035-b3cc-b9baa6391cf4") public static NonFunctionalEvent instantiate(final Class obj) { return NonFunctionalEvent.canInstantiate(obj) ? new NonFunctionalEvent(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("4ca38420-65e0-4553-8985-78c708dfb41a") + @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 ("d1f8d4f6-9be5-4d2e-8af8-0c4b3e14d398") + @objid ("10770085-b021-4095-887b-413b38f12396") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -114,11 +112,10 @@ 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 ("79e88203-1e3f-4de0-a4e1-c9696bb70a5d") + @objid ("ec3a6e45-6e62-4ef2-ac65-618f02391f75") @Override public Class getElement() { return (Class)super.getElement(); @@ -128,8 +125,9 @@ public Class getElement() { * Get the value of the 'metricConstraint' role.

* Role description: * null + * */ - @objid ("2c415069-c2df-4504-9f42-8426278261a3") + @objid ("8475b6cb-7642-4e3b-973f-f6ffb1459813") public MetricConstraint getMetricConstraint() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(NonFunctionalEvent.MdaTypes.MDAASSOCDEP) @@ -141,7 +139,7 @@ public MetricConstraint getMetricConstraint() { return null; } - @objid ("d05ad61b-b790-4703-bc45-0884056fd494") + @objid ("a83341b0-f531-44f4-9881-1a6864f2c917") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -152,7 +150,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("0b61febb-f608-4623-8b35-9d5bda3c0728") + @objid ("6c0417ff-953d-45f0-94e8-5b099e2a187e") public boolean isIsViolation() { return this.elt.isTagged(NonFunctionalEvent.MdaTypes.ISVIOLATION_TAGTYPE_ELT); } @@ -162,7 +160,7 @@ public boolean isIsViolation() { *

Property description: *
null

*/ - @objid ("014763d6-c92a-463e-87f8-46e4ff517ab5") + @objid ("75c996b8-3309-4867-9b8f-37753728ee35") public void setIsViolation(final boolean value) { if (value) CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createTaggedValue(NonFunctionalEvent.MdaTypes.ISVIOLATION_TAGTYPE_ELT, this.elt); @@ -174,8 +172,9 @@ public void setIsViolation(final boolean value) { * Set the value of the 'metricConstraint' role.

* Role description: * null + * */ - @objid ("e14627c4-7a1b-4348-999f-f579786c59fb") + @objid ("07105cd1-acf5-43ea-af48-f1a8e06bade0") public void setMetricConstraint(final MetricConstraint obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -203,26 +202,26 @@ public List getChilds() { return result; } - @objid ("27ae8f79-c1d5-4bf0-9baf-104f664dccb4") + @objid ("6f1fce57-6541-4aa7-930f-f7aaa1343d99") protected NonFunctionalEvent(final Class elt) { super(elt); } @objid ("49bec042-33dd-4ad1-9b09-4dcfbe3512b3") public static final class MdaTypes { - @objid ("0b3ffaa9-a0e6-467a-83b2-fac558c737fc") + @objid ("bf45c2f5-da2b-44f5-8d46-b5a7ff426d88") public static Stereotype STEREOTYPE_ELT; - @objid ("995385f4-b4da-48f3-a55a-7296723c2e70") + @objid ("cecef89a-60cd-4d86-846c-0cd6dc947b5c") public static TagType ISVIOLATION_TAGTYPE_ELT; - @objid ("113838b1-c36d-4e8d-b2db-d573cb41ba85") + @objid ("77f1905f-3f2c-4f3f-9259-2c65c7b64066") private static Stereotype MDAASSOCDEP; - @objid ("1c7ab9cc-08d6-4b54-83c8-cc180aabccc7") + @objid ("e68481d5-840a-450f-a9d3-371a8ae5a0fc") private static TagType MDAASSOCDEP_ROLE; - @objid ("9de3004c-8256-41b3-9c9c-190834517579") + @objid ("9ed9199c-6d96-49a4-a945-595d6a4e0447") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "af2fc032-7f83-4251-9a0c-8ef45959bb71"); ISVIOLATION_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "7adb963c-c7f7-4e56-9770-80f01813f2b5"); @@ -231,11 +230,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 e68e3e71..624cb221 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_; @@ -17,6 +17,7 @@ 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; @@ -43,7 +44,7 @@ */ @objid ("8af1d7c2-a602-48ad-a7fe-b5775f92342e") public class ScalabilityRule extends FeatureClass { - @objid ("ded41b2c-7775-4eca-8003-7bf4cb294262") + @objid ("8e8a56aa-cf9b-4f4a-b300-bff8a88817da") public static final String STEREOTYPE_NAME = "ScalabilityRule"; /** @@ -54,7 +55,7 @@ public class ScalabilityRule extends FeatureClass { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("3b7dc924-c514-4ea4-aa52-db1d7438184f") + @objid ("bdc225da-f283-417f-9ee0-8da25f849cb8") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, ScalabilityRule.STEREOTYPE_NAME)); } @@ -64,7 +65,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link ScalabilityRule} proxy on the created {@link Class}. */ - @objid ("f21d6212-dd4a-41ba-91cc-321840ed6ce5") + @objid ("558d2183-ea3e-4d1a-8b80-c71334b0967f") public static ScalabilityRule create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, ScalabilityRule.STEREOTYPE_NAME); @@ -72,41 +73,40 @@ 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. */ - @objid ("6ad7c0f9-1176-49cd-880f-0ea41b90fa03") + @objid ("4d1ffb58-5f8c-4501-83b6-4c35a2a0d4d0") public static ScalabilityRule instantiate(final Class obj) { return ScalabilityRule.canInstantiate(obj) ? new ScalabilityRule(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("c38fcc45-495b-4637-868e-963f329b8fc1") + @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 ("df214615-bc16-408b-ba97-0a9f6d127463") + @objid ("82a7a7d4-022e-451a-9d62-fee177fc878c") public void addActions(final Action obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -116,7 +116,7 @@ public void addActions(final Action obj) { } } - @objid ("2feb8b99-2926-4d31-a244-29560cab7940") + @objid ("6ecd0984-e396-40d6-997e-a213ec1bef3e") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -136,8 +136,9 @@ public boolean equals(final Object obj) { * Get the values of the 'actions' role.

* Role description: * null + * */ - @objid ("ec594c0e-9315-424d-82bd-584be8e7ea35") + @objid ("b876d081-2a90-4186-a95d-df5936bf448f") public List getActions() { List results = new ArrayList<>(); for (Dependency d : this.elt.getDependsOnDependency()) { @@ -153,11 +154,10 @@ public List getActions() { } /** - * Get the underlying {@link Class}. - * + * Get the underlying {@link Class}. * @return the Class represented by this proxy, never null. */ - @objid ("c59b3140-e4ee-4598-9a09-9a44a6f9b1f8") + @objid ("67e6ded2-df83-4808-95f7-75dbba91deda") @Override public Class getElement() { return (Class)super.getElement(); @@ -167,8 +167,9 @@ public Class getElement() { * Get the value of the 'event' role.

* Role description: * null + * */ - @objid ("1f7ee83a-9bf3-4ba1-b3d7-d847fa2ee869") + @objid ("d3eb7eee-8ace-4571-ab2d-7c834520fbe2") public Event getEvent() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(ScalabilityRule.MdaTypes.MDAASSOCDEP) @@ -186,7 +187,7 @@ public Event getEvent() { return null; } - @objid ("1dde4905-7b7c-401b-80bc-ec4d376f5eb4") + @objid ("b6c9c80e-cc57-4c11-b489-58e362562252") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -196,12 +197,13 @@ public int hashCode() { * Remove a value from the 'actions' role.

* Role description: * null + * */ - @objid ("c1401119-3a5f-4aae-a0ad-51a8aaabd0ed") + @objid ("a9761c0d-1d9c-4234-a8b0-7f855b5511fc") public boolean removeActions(final Action obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getDependsOnDependency())) { - if (d.isStereotyped(ScalabilityRule.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(ScalabilityRule.MdaTypes.MDAASSOCDEP_ROLE), "")) + if (d.isStereotyped(ScalabilityRule.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(ScalabilityRule.MdaTypes.MDAASSOCDEP_ROLE), "actions")) if (Objects.equals(d.getDependsOn(), obj.getElement())) { d.delete(); return true; @@ -215,8 +217,9 @@ public boolean removeActions(final Action obj) { * Set the value of the 'event' role.

* Role description: * null + * */ - @objid ("4e2f3411-8c16-474e-965b-b145a21fb53b") + @objid ("79fa1e3f-ec40-4132-b616-143b0cef249f") public void setEvent(final Event obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -244,23 +247,23 @@ public List getChilds() { return result; } - @objid ("a263c8ab-0e50-4047-9c41-d4d61c100f22") + @objid ("8f42cbf5-eefc-497b-bf8b-0c33fb525d78") protected ScalabilityRule(final Class elt) { super(elt); } @objid ("d6312fb9-a345-484c-b4fc-57f81b6fe120") public static final class MdaTypes { - @objid ("bdeb1120-7794-4592-8b56-62a58667859b") + @objid ("5f59b8c2-17f7-47b8-8c2f-44b8269533c8") public static Stereotype STEREOTYPE_ELT; - @objid ("203729df-ef94-44fb-9782-73f1fd4021cc") + @objid ("498d9058-ba80-4410-b60c-3565dfd1e41b") private static Stereotype MDAASSOCDEP; - @objid ("23ceb847-d8c0-4319-a060-6fd6880cc14d") + @objid ("796581b7-fc53-4064-840f-a939ca2f77db") private static TagType MDAASSOCDEP_ROLE; - @objid ("6bcba21d-a5af-4f80-9427-48721ee9d921") + @objid ("86f25198-393b-4156-9104-caa614f2dfd9") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "cf2a4cc5-0c2d-4f57-9f3e-35cf455ef4cb"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -268,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/scalabilitymodel/standard/class_/SingleEvent.java b/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/class_/SingleEvent.java index 84028356..c98ac84d 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_; @@ -35,7 +35,7 @@ */ @objid ("b740d58f-0acd-4aba-bdc8-6394a8467e6c") public abstract class SingleEvent extends Event { - @objid ("22f8c7c3-b24b-4468-9668-89128817b156") + @objid ("11b855aa-43e2-4294-a98a-5deaa23cac1e") public static final String STEREOTYPE_NAME = "SingleEvent"; /** @@ -46,12 +46,12 @@ public abstract class SingleEvent extends Event { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("af476bc6-9216-41c7-be1d-3099ac30e52a") + @objid ("2a217055-d33e-4c33-a620-9277ba982128") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, SingleEvent.STEREOTYPE_NAME)); } - @objid ("0b918b2d-37b1-4c12-a4ae-9ad4c0e0e0c3") + @objid ("aea809e0-338c-4c47-a665-76221655b377") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -68,17 +68,16 @@ 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 ("b1995b4f-7ad8-4e0e-af11-ff32bb136deb") + @objid ("31ea8313-e4a2-42c8-ae92-3fc50f890639") @Override public Class getElement() { return (Class)super.getElement(); } - @objid ("fd3cca4b-b1b2-4379-a12f-0e544139460d") + @objid ("a68acdc1-5b1c-44cf-8202-28e05bd8ce1b") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -92,23 +91,23 @@ public List getChilds() { return result; } - @objid ("65eaa3ef-3051-4b79-96d7-e2d1b484576c") + @objid ("70738cd9-e6b2-40d0-92b2-4c94820fab4e") protected SingleEvent(final Class elt) { super(elt); } @objid ("4e5c23d4-7cb6-45fd-804e-c2745676a29b") public static final class MdaTypes { - @objid ("d8cf284d-40f9-480e-93e2-88eb44d0e96a") + @objid ("fca0a173-7386-48ad-a27e-7046e3518846") public static Stereotype STEREOTYPE_ELT; - @objid ("419a3a1b-7cfb-478f-95cd-0d1a10541e0b") + @objid ("6c3c6fc8-e540-49e4-af31-cfa3d855294d") private static Stereotype MDAASSOCDEP; - @objid ("7e5dbf6c-bd04-4956-ad91-e0f951debe05") + @objid ("cca7f795-9386-4f6b-9703-fcbfb79094c9") private static TagType MDAASSOCDEP_ROLE; - @objid ("ba697d88-5dcc-48eb-8b23-fbe5d4b192d1") + @objid ("e5adbe09-c56e-4fa3-b52a-4c84db70a88d") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "40acd9bb-daad-41f6-96cd-d9267430eabf"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -116,11 +115,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 6620f5c4..ec513575 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_; @@ -40,16 +40,16 @@ */ @objid ("8cafa6ee-69cd-4fb1-a69e-ae3b71f7dd61") public class Timer extends FeatureClass { - @objid ("93e23af7-5ce4-4bff-ae66-d6aba648a2d9") + @objid ("441720d9-04f3-45db-8c1e-6e4fe29a76e7") public static final String STEREOTYPE_NAME = "Timer"; - @objid ("1d6a7e0a-1c2a-4539-a19d-b2fc825076a4") + @objid ("c1244c0a-a0f3-4593-b62a-83a5cf3ee7f4") public static final String MAXOCCURRENCENUM_TAGTYPE = "maxOccurrenceNum"; - @objid ("db2eea84-4f59-4ea9-83fc-92b0f88ec682") + @objid ("5ae1d1d8-b05e-4dfa-afcc-82c0c4496156") public static final String TIMEVALUE_TAGTYPE = "timeValue"; - @objid ("01af9bcc-be26-4945-8c96-1bf6814d25d3") + @objid ("d42e61a9-99e1-4cc7-84a2-3733881de0b9") public static final String TYPE_TAGTYPE = "type"; /** @@ -60,7 +60,7 @@ public class Timer extends FeatureClass { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("7e0ebf0f-839d-4704-81de-2fd3fc80bb6f") + @objid ("8ef06656-f3a1-463a-a122-2208bac96aea") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, Timer.STEREOTYPE_NAME)); } @@ -70,7 +70,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link Timer} proxy on the created {@link Class}. */ - @objid ("fc0a6041-f198-4b9d-ade0-11516ea22c4e") + @objid ("01858505-4921-4c51-a1ca-1bb975dbf58f") public static Timer create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, Timer.STEREOTYPE_NAME); @@ -78,36 +78,34 @@ 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. */ - @objid ("13cd6fa0-e33d-4bd0-8a3d-3fc2dd5abc1a") + @objid ("2c15a26e-7052-4738-b995-771cc516deb6") public static Timer instantiate(final Class obj) { return Timer.canInstantiate(obj) ? new Timer(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("59ceda6a-a7ea-48dd-87f0-a9da33fea8a4") + @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 ("0f08e334-da07-425e-a99f-107292234e65") + @objid ("160318e8-8192-475d-87e4-c2a1782ef381") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -124,11 +122,10 @@ 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 ("a3db92e2-9111-4d02-bc38-c57e49eda9d4") + @objid ("7d5c5563-5935-4138-96cb-84a2c9ffe5a9") @Override public Class getElement() { return (Class)super.getElement(); @@ -139,7 +136,7 @@ public Class getElement() { *

Property description: *
null

*/ - @objid ("43de389f-c847-4ae6-918f-84f86f7c9afc") + @objid ("0f01df8e-5b25-4454-b25c-3036ff907ce4") public String getMaxOccurrenceNum() { return this.elt.getTagValue(Timer.MdaTypes.MAXOCCURRENCENUM_TAGTYPE_ELT); } @@ -149,7 +146,7 @@ public String getMaxOccurrenceNum() { *

Property description: *
null

*/ - @objid ("568da6e0-4837-44a9-a5cf-8312aff61052") + @objid ("c0cde02d-1717-4c04-9c59-099ef43059f5") public String getTimeValue() { return this.elt.getTagValue(Timer.MdaTypes.TIMEVALUE_TAGTYPE_ELT); } @@ -159,7 +156,7 @@ public String getTimeValue() { *

Property description: *
null

*/ - @objid ("281760e3-c4a0-43c9-882d-97cfce1fc6ca") + @objid ("fb1791cd-70f4-4b52-8832-76e471b6b4bf") public String getType() { return this.elt.getTagValue(Timer.MdaTypes.TYPE_TAGTYPE_ELT); } @@ -168,8 +165,9 @@ public String getType() { * Get the value of the 'unit' role.

* Role description: * null + * */ - @objid ("9de703b7-4ae1-48cf-ab53-3d1a47fb03c0") + @objid ("20fcb0e0-96f7-4359-ae0a-93a1d0771a72") public Unit getUnit() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(Timer.MdaTypes.MDAASSOCDEP) @@ -185,7 +183,7 @@ public Unit getUnit() { return null; } - @objid ("6b62255f-74e0-47d5-b237-950848a0f88d") + @objid ("0cec73f0-93fc-46d2-8f96-c9715fedc864") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -196,7 +194,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("7495cc9b-3c07-44b3-90a4-f4a49a84aa38") + @objid ("1e9b2b6a-7f24-40ce-9a61-6d5d90659123") public void setMaxOccurrenceNum(final String value) { this.elt.putTagValue(Timer.MdaTypes.MAXOCCURRENCENUM_TAGTYPE_ELT, value); } @@ -206,7 +204,7 @@ public void setMaxOccurrenceNum(final String value) { *

Property description: *
null

*/ - @objid ("c8bafd0a-fadb-4efd-92b5-7d096bf58fca") + @objid ("e4a4f895-63eb-40a6-8463-3801c2dd5dfb") public void setTimeValue(final String value) { this.elt.putTagValue(Timer.MdaTypes.TIMEVALUE_TAGTYPE_ELT, value); } @@ -216,7 +214,7 @@ public void setTimeValue(final String value) { *

Property description: *
null

*/ - @objid ("d377cc2d-5f47-4c23-862f-44b997f28e4d") + @objid ("ae8a26d2-590e-4fec-8909-886e214ab2aa") public void setType(final String value) { this.elt.putTagValue(Timer.MdaTypes.TYPE_TAGTYPE_ELT, value); } @@ -225,8 +223,9 @@ public void setType(final String value) { * Set the value of the 'unit' role.

* Role description: * null + * */ - @objid ("1884cbe6-74ad-42fa-a792-a432f52415df") + @objid ("a1476385-c72c-456b-9068-b3ac14c7dbfb") public void setUnit(final Unit obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -254,32 +253,32 @@ public List getChilds() { return result; } - @objid ("d7cf51f0-68d7-4935-be73-c3f713878326") + @objid ("d9aeb582-4445-4c69-8d56-ef1116aa16b2") protected Timer(final Class elt) { super(elt); } @objid ("93fa2506-690b-41f3-a6df-8e0ad6afab5e") public static final class MdaTypes { - @objid ("f2dc9015-a3f6-40d8-97ff-ad6969af2fd4") + @objid ("e3803f05-8eac-49e2-8b8c-5a26b9848081") public static Stereotype STEREOTYPE_ELT; - @objid ("1669d2b3-01cd-498b-be13-bafb37e4432c") + @objid ("118d3aba-4b08-479b-b1cc-9b367ef2f8ee") public static TagType TYPE_TAGTYPE_ELT; - @objid ("b3a348c0-58be-4ad0-ab0d-807f4ae8688c") + @objid ("bf85ab09-dc7b-4cea-9d8d-0afe32b5db86") public static TagType TIMEVALUE_TAGTYPE_ELT; - @objid ("f65d78c7-a496-41d9-87bb-e4497dbd489f") + @objid ("99310a9b-2a41-4d59-83d2-7317bdc1e7b1") public static TagType MAXOCCURRENCENUM_TAGTYPE_ELT; - @objid ("340ff22d-9107-4e1b-a25c-737660b0a49b") + @objid ("464ab878-a13c-4757-be61-4f0beccd9b6a") private static Stereotype MDAASSOCDEP; - @objid ("c57f01b0-127f-487f-805c-25ed92482638") + @objid ("7f377190-98af-4150-9d76-8be439db8baf") private static TagType MDAASSOCDEP_ROLE; - @objid ("45eb94b6-8a72-4c9e-bc63-c3951695a566") + @objid ("8620e07d-0d5e-4036-94a6-c3c236b2b309") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "ee279c12-3256-430d-b3f9-146318d3e947"); TYPE_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "1442a037-e5a4-4248-bc4d-20d6cc5568e0"); @@ -290,11 +289,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 a0a43d0a..3417959c 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_; @@ -15,6 +15,7 @@ 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; @@ -38,13 +39,13 @@ */ @objid ("3d40f3a0-05f1-449c-8c3b-670598c18421") public class UnaryEventPattern extends EventPattern { - @objid ("0851cfd1-4d3d-436e-b1f2-e827e093646f") + @objid ("0e169d2b-d134-4a2a-929d-c289481eac35") public static final String STEREOTYPE_NAME = "UnaryEventPattern"; - @objid ("eac4f0db-4511-4f32-a464-d449640fca73") + @objid ("ab831239-f178-4dde-9445-37ed95069a8d") public static final String OCCURRENCENUM_TAGTYPE = "occurrenceNum"; - @objid ("e8799752-a5b4-48d4-99b4-54e12daac3e5") + @objid ("cdf616a6-edcf-4027-a07b-8289355dc6d6") public static final String OPERATOR_TAGTYPE = "operator"; /** @@ -55,7 +56,7 @@ public class UnaryEventPattern extends EventPattern { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("c96d9be7-647a-4af4-993e-c2a0f2a28ec5") + @objid ("90de1f6c-254a-49d1-90ee-07b271ff0c8f") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, UnaryEventPattern.STEREOTYPE_NAME)); } @@ -65,7 +66,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link UnaryEventPattern} proxy on the created {@link Class}. */ - @objid ("f2b33db8-1ce2-4495-bb79-512490721602") + @objid ("f965884e-5774-4f69-8dd2-879f1d177bf0") public static UnaryEventPattern create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, UnaryEventPattern.STEREOTYPE_NAME); @@ -73,36 +74,34 @@ 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. */ - @objid ("5e79fc58-87c0-46ae-8bf0-3a02db341795") + @objid ("bfeecc3c-dd5b-4914-a182-98f801c6c66c") public static UnaryEventPattern instantiate(final Class obj) { return UnaryEventPattern.canInstantiate(obj) ? new UnaryEventPattern(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("48bd54de-9879-4e53-9a84-6cbb4fd32ec0") + @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 ("9aa894ac-e3d2-4119-8b8c-319e690e0a16") + @objid ("c1cf348e-38df-4ffa-b29a-bbc327fa0cd5") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -119,11 +118,10 @@ 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 ("ed619201-1a63-47e3-95db-d5d665fb939d") + @objid ("f8801f21-4ada-48ef-a8a9-2c277359c10c") @Override public Class getElement() { return (Class)super.getElement(); @@ -133,8 +131,9 @@ public Class getElement() { * Get the value of the 'event' role.

* Role description: * null + * */ - @objid ("49cf5e67-acfd-4295-bcee-1a26861a6a07") + @objid ("b7d1726f-a2a9-49fe-8dc8-c03cc15236f8") public Event getEvent() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(UnaryEventPattern.MdaTypes.MDAASSOCDEP) @@ -157,7 +156,7 @@ public Event getEvent() { *

Property description: *
null

*/ - @objid ("0b5dead9-faff-4f1f-95f3-d0518d2d5a86") + @objid ("728aaa95-7646-463e-914b-ea9bbddf3962") public String getOccurrenceNum() { return this.elt.getTagValue(UnaryEventPattern.MdaTypes.OCCURRENCENUM_TAGTYPE_ELT); } @@ -167,12 +166,12 @@ public String getOccurrenceNum() { *

Property description: *
null

*/ - @objid ("ece3da1a-4d83-48b0-9ce3-1f87ffca6f65") + @objid ("7339a7d6-a9c2-49bf-b34c-ddeae4a4088a") public String getOperator() { return this.elt.getTagValue(UnaryEventPattern.MdaTypes.OPERATOR_TAGTYPE_ELT); } - @objid ("cd7f1918-23e4-4163-bd4e-85c4eb244e2a") + @objid ("d9231e51-30f9-40a2-ad27-7641691f136a") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -182,8 +181,9 @@ public int hashCode() { * Set the value of the 'event' role.

* Role description: * null + * */ - @objid ("020db08a-fefa-43bb-8182-c13f0a2b655d") + @objid ("b0b73576-c772-4005-89dc-0c9e526ae5b5") public void setEvent(final Event obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -208,7 +208,7 @@ public void setEvent(final Event obj) { *

Property description: *
null

*/ - @objid ("5d3a82ae-cb4b-4376-85e0-555c06872fcb") + @objid ("e46ef9da-ffe0-4105-9101-7e24ed98e084") public void setOccurrenceNum(final String value) { this.elt.putTagValue(UnaryEventPattern.MdaTypes.OCCURRENCENUM_TAGTYPE_ELT, value); } @@ -218,7 +218,7 @@ public void setOccurrenceNum(final String value) { *

Property description: *
null

*/ - @objid ("45dffc6a-16db-4aef-8c96-42cc6696d715") + @objid ("865f37e4-d508-4754-ba45-df9c7c8ee941") public void setOperator(final String value) { this.elt.putTagValue(UnaryEventPattern.MdaTypes.OPERATOR_TAGTYPE_ELT, value); } @@ -231,29 +231,29 @@ public List getChilds() { return result; } - @objid ("b5658fe5-6a22-4d59-b358-b68f5bae44cf") + @objid ("ca8543b4-893b-4547-9980-e7e09a9ad846") protected UnaryEventPattern(final Class elt) { super(elt); } @objid ("a301d6fd-1e9f-4328-a7ee-80b97952f165") public static final class MdaTypes { - @objid ("11ce464e-7970-4488-ba7d-eb23fd87e52c") + @objid ("7fd5c33b-1d62-49a4-916b-0bf03ef36e70") public static Stereotype STEREOTYPE_ELT; - @objid ("981c2b25-7b1a-45e7-bd7e-d465c8926e8a") + @objid ("c12b4611-166c-4ac7-8b0f-20069685189c") public static TagType OCCURRENCENUM_TAGTYPE_ELT; - @objid ("d150ed8f-00b6-415a-813d-885dee3bf291") + @objid ("2a0e7b59-c2c3-4ced-b6eb-8becd3ca0965") public static TagType OPERATOR_TAGTYPE_ELT; - @objid ("1fd4979e-fa5f-4994-8b82-5c3796960674") + @objid ("714d20bc-8728-4612-8684-e5bf702f30d6") private static Stereotype MDAASSOCDEP; - @objid ("0cce86e5-d1f4-4aad-955e-f01ee26c015a") + @objid ("75cc492d-1645-446a-b627-baa57ce2e57b") private static TagType MDAASSOCDEP_ROLE; - @objid ("80cafc8b-9f46-4030-a78f-fc82292dccac") + @objid ("5224f9ed-24d6-42a8-8dcb-435d7044ba6b") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "3956e53e-cf9e-4b4c-9b9c-16e18a3c53d6"); OCCURRENCENUM_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "bd5fbe3f-41f7-445c-99e7-d6dc54c00545"); @@ -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 164d2085..994a274f 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_; @@ -36,7 +36,7 @@ */ @objid ("4b6ca116-e08c-4a63-a9f4-e79ab6d83774") public class VerticalScalingAction extends ScalingAction { - @objid ("638bcf7f-64f2-4760-b99d-c0a96da4488c") + @objid ("5d1da01f-06cf-4e23-816f-f054c1ba1d65") public static final String STEREOTYPE_NAME = "VerticalScalingAction"; /** @@ -47,7 +47,7 @@ public class VerticalScalingAction extends ScalingAction { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("42da1ff1-513e-4247-9e10-df36dbdd8528") + @objid ("3acda22d-2bff-4eaf-af23-e777d0ebf244") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, VerticalScalingAction.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link VerticalScalingAction} proxy on the created {@link Class}. */ - @objid ("2f0c08f1-c83a-4700-8e2b-4c15b7360ff2") + @objid ("d6de2e4b-dacd-472c-ae17-9bf41837af28") public static VerticalScalingAction create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, VerticalScalingAction.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("0a9fcc2a-a1a1-4fcb-89b6-0c51a993d230") + @objid ("5100d647-bb9d-44c7-a226-847d8d8f34be") public static VerticalScalingAction instantiate(final Class obj) { return VerticalScalingAction.canInstantiate(obj) ? new VerticalScalingAction(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("2b070df4-68dc-45f0-8596-e1279d1d0b8b") + @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 ("b027b96c-0025-4556-958b-d8ddb29d5be9") + @objid ("51cc7fdc-cef4-4beb-8751-0bba935f2baf") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,17 +109,16 @@ 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 ("5ad4a94d-ec2d-4c64-b01a-a9f6776396c8") + @objid ("04651872-4000-4b2d-a693-f70bffd3379e") @Override public Class getElement() { return (Class)super.getElement(); } - @objid ("55580778-2759-498c-81d4-d33e92fe8280") + @objid ("3b90c51b-c1ce-4cc3-af94-50d4a9d67a55") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -135,23 +132,23 @@ public List getChilds() { return result; } - @objid ("99fe8e81-439d-4551-95b8-3de1e6652567") + @objid ("e06f4356-5913-4666-8ade-12b9294e7fbd") protected VerticalScalingAction(final Class elt) { super(elt); } @objid ("9d977d3c-b012-4964-81d8-a352196858d6") public static final class MdaTypes { - @objid ("57ff4337-af5e-415c-9e1e-e5a2ddcdcf20") + @objid ("ad6502d9-12c9-4d93-90b6-363564d94e64") public static Stereotype STEREOTYPE_ELT; - @objid ("4cad075e-2b22-4b22-9e5d-8b82c8c2d842") + @objid ("3b1abfec-0597-477a-ac70-19c38c9e83df") private static Stereotype MDAASSOCDEP; - @objid ("97dd4601-0b81-4fe0-9a64-74bb207aa322") + @objid ("92218b3c-7b78-44f8-8a89-f5676c215e2f") private static TagType MDAASSOCDEP_ROLE; - @objid ("e2be8709-9208-4c2b-a890-169894eac3e5") + @objid ("dab95f3f-3c03-4d88-b77f-1b298e06e683") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "725de5f4-a090-41c9-b326-f573c1d3b15d"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -159,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/scalabilitymodel/standard/instance/EventInstance.java b/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/instance/EventInstance.java index ccbd56f1..37d52aee 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.scalabilitymodel.standard.instance; @@ -37,13 +37,13 @@ */ @objid ("73801d4a-bc99-45e4-9e2d-04f8cfc021bf") public abstract class EventInstance extends FeatureInstance { - @objid ("acd01b55-9f35-4ea9-95d8-db225c81567d") + @objid ("8b38ec54-fdbe-40a2-9281-b8cb9acb7d47") public static final String STEREOTYPE_NAME = "EventInstance"; - @objid ("aa3d82a0-0698-4c9b-916c-35d280be40b0") + @objid ("84515c6c-773d-4074-8c60-a5804669dc17") public static final String LAYER_TAGTYPE = "layer"; - @objid ("a580789e-fc0d-42f7-a068-8f1f62e74996") + @objid ("b0f2e57b-b3ff-49dd-82f9-ffceba2318b4") public static final String STATUS_TAGTYPE = "status"; /** @@ -54,12 +54,12 @@ public abstract class EventInstance extends FeatureInstance { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("4304d33e-7266-4e62-ab75-2bd7a26ff78f") + @objid ("a0afc6cf-342b-47bb-99a3-5b9c9165df4a") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Instance) && ((Instance) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, EventInstance.STEREOTYPE_NAME)); } - @objid ("560f4eff-4f4d-495b-84ae-f67311130bc5") + @objid ("850d388b-d3fe-49a2-9bba-be21a96bfb5f") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -76,11 +76,10 @@ 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 ("7bcf99fb-43a9-47a3-bdf9-3e894d9bf02f") + @objid ("61af20ea-cdee-4a6e-90df-3369fe9c80f1") @Override public Instance getElement() { return (Instance)super.getElement(); @@ -91,7 +90,7 @@ public Instance getElement() { *

Property description: *
null

*/ - @objid ("1ef0f91c-3fdc-4e9d-9604-5e786560cda7") + @objid ("29abfd30-caf6-48a4-8a33-91d2d88260a8") public String getLayer() { return this.elt.getTagValue(EventInstance.MdaTypes.LAYER_TAGTYPE_ELT); } @@ -101,7 +100,7 @@ public String getLayer() { *

Property description: *
null

*/ - @objid ("e3f763f3-99c5-4cfa-b74f-83dc356d1e44") + @objid ("360e15f1-cff4-46dd-b263-a21463d983da") public String getStatus() { return this.elt.getTagValue(EventInstance.MdaTypes.STATUS_TAGTYPE_ELT); } @@ -110,13 +109,14 @@ public String getStatus() { * Get the value to the 'type' role.

* Role description: * null + * */ - @objid ("70d745cf-5bda-48b4-84ec-e4d3083d6408") + @objid ("431f3493-f550-4464-9ed3-0543f75a3219") public Event getType() { return (Event)CamelDesignerProxyFactory.instantiate(((Instance) this.elt).getBase(), Event.STEREOTYPE_NAME); } - @objid ("e42de752-5fa9-4423-a41d-af6bcff7ef2d") + @objid ("a4a1f172-21fd-48f4-ace7-db852beab836") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -127,7 +127,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("6ec22024-c7a6-401c-9f5e-9a89de5413ad") + @objid ("6f1a4809-df44-4dfe-92df-6574de92c275") public void setLayer(final String value) { this.elt.putTagValue(EventInstance.MdaTypes.LAYER_TAGTYPE_ELT, value); } @@ -137,7 +137,7 @@ public void setLayer(final String value) { *

Property description: *
null

*/ - @objid ("6ca56999-4dc0-4652-bb34-5dcaf6343d01") + @objid ("6cccff8d-9d44-4c0b-96b7-179ae8e32920") public void setStatus(final String value) { this.elt.putTagValue(EventInstance.MdaTypes.STATUS_TAGTYPE_ELT, value); } @@ -146,8 +146,9 @@ public void setStatus(final String value) { * Set the value of the 'type' role.

* Role description: * null + * */ - @objid ("301399b2-9593-4b5f-9c79-2e162b4f31ff") + @objid ("f5b4360a-be50-4435-9a63-75949fd704fb") public void setType(final Event obj) { ((Instance) this.elt).setBase((obj != null) ? obj.getElement() : null); } @@ -160,29 +161,29 @@ public List getChilds() { return result; } - @objid ("9766f008-bf4e-4e3d-9fd9-361df822b6b1") + @objid ("69bb9ce9-c768-4a80-bd01-ffcec061f76a") protected EventInstance(final Instance elt) { super(elt); } @objid ("98e63d06-3db8-4a94-99e6-5c82f0f8ac06") public static final class MdaTypes { - @objid ("e99c777e-d4fa-4938-8d48-a6fda0e26692") + @objid ("7a2b4104-8c6a-41f1-b362-3358c69afe04") public static Stereotype STEREOTYPE_ELT; - @objid ("b1104a58-b807-4154-8298-65de34b5443f") + @objid ("db1c7d2e-aa86-4eb1-a830-2e23f7fc00d5") public static TagType STATUS_TAGTYPE_ELT; - @objid ("ea0b93f9-f63f-40b8-bad6-7b80327d8aca") + @objid ("04fd0c8a-4bac-4785-8d7e-9ec84d330284") public static TagType LAYER_TAGTYPE_ELT; - @objid ("3910ed17-de13-40b6-81a5-b806e57c2b20") + @objid ("2782887d-a7c3-4223-a1b8-def15b7b9ff6") private static Stereotype MDAASSOCDEP; - @objid ("449c7e5e-ec64-48a2-9cef-0b7c91bb12e8") + @objid ("d7163d71-9e1a-4393-899d-c0e3030fc7df") private static TagType MDAASSOCDEP_ROLE; - @objid ("a4ab5de9-534f-473b-9642-809f7c98ccb6") + @objid ("20847777-3dcd-45ef-88a6-aa1956a19fb2") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "7cddc4dd-ed72-4a04-85c5-54fe85e4ef38"); STATUS_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "4747fc7f-ba00-4b26-b582-d03b1ba48082"); @@ -192,11 +193,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 30d60408..cba5a716 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.scalabilitymodel.standard.instance; @@ -40,7 +40,7 @@ */ @objid ("a687c29e-c0ac-4bea-a2ad-2522f0f19aa9") public class FunctionalEventInstance extends EventInstance { - @objid ("f1681aa1-fc5e-4d76-aa1a-c4f9c6e72fee") + @objid ("c1471000-4d34-4647-83f3-8ca6a04beeb8") public static final String STEREOTYPE_NAME = "FunctionalEventInstance"; /** @@ -51,7 +51,7 @@ public class FunctionalEventInstance extends EventInstance { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("7622ec5a-c0ee-4483-97c8-3b3bbd7fcba8") + @objid ("ec9f5461-7e4b-499f-8464-e37690093c2d") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Instance) && ((Instance) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, FunctionalEventInstance.STEREOTYPE_NAME)); } @@ -61,7 +61,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link FunctionalEventInstance} proxy on the created {@link Instance}. */ - @objid ("4a7d300e-4eb7-408c-9575-8d890d2f3785") + @objid ("491d9eea-8fb0-4d51-b193-201f6f5ce2a2") public static FunctionalEventInstance create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Instance"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, FunctionalEventInstance.STEREOTYPE_NAME); @@ -69,36 +69,34 @@ 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. */ - @objid ("1698d127-8b05-4054-adac-1643d8a4b10d") + @objid ("bd3745fa-dfca-41cf-b894-d0dab5649364") public static FunctionalEventInstance instantiate(final Instance obj) { return FunctionalEventInstance.canInstantiate(obj) ? new FunctionalEventInstance(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("dd13603e-a82c-4596-a690-b3fcf45a1e4b") + @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 ("b99b13cc-4591-4bb9-b2a6-cbbba852ce77") + @objid ("f5afed4f-63e8-4065-882f-ac4f996878db") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -118,8 +116,9 @@ public boolean equals(final Object obj) { * Get the value of the 'componentInstance' role.

* Role description: * null + * */ - @objid ("1ff3d620-e970-4819-a94a-2e7008a62a30") + @objid ("73b4bbc4-b8a3-4562-bf68-a170b598a0ee") public ComponentInstance getComponentInstance() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(FunctionalEventInstance.MdaTypes.MDAASSOCDEP) @@ -138,17 +137,16 @@ public ComponentInstance getComponentInstance() { } /** - * Get the underlying {@link Instance}. - * + * Get the underlying {@link Instance}. * @return the Instance represented by this proxy, never null. */ - @objid ("9c8e32b3-78e7-47f7-a09b-cdad29a4ca84") + @objid ("f634ab0c-9e07-483e-a53a-b96404f85cd1") @Override public Instance getElement() { return (Instance)super.getElement(); } - @objid ("fd84ad31-a108-4cfc-b04c-e8b9eccba789") + @objid ("46d41dc3-b97a-4e5e-9bcd-e9e5944636ff") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -158,8 +156,9 @@ public int hashCode() { * Set the value of the 'componentInstance' role.

* Role description: * null + * */ - @objid ("8edc51c9-bf24-480b-9ad5-fd791ead213e") + @objid ("343df868-14cf-4531-a70b-6e09c353d7bb") public void setComponentInstance(final ComponentInstance obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -187,23 +186,23 @@ public List getChilds() { return result; } - @objid ("1ba49809-f414-4a24-aca0-4df2fecc2e12") + @objid ("a35ad0bf-e272-4d97-aabd-64da1b2523e9") protected FunctionalEventInstance(final Instance elt) { super(elt); } @objid ("ed13a09f-140c-4c2f-ac85-a6622bc8ebf8") public static final class MdaTypes { - @objid ("010c6d97-6636-4fc7-b02a-d08135524037") + @objid ("d7cc68a8-893a-4c5f-890a-ce5259647107") public static Stereotype STEREOTYPE_ELT; - @objid ("62a20809-df48-46f1-8885-645255c740a1") + @objid ("da90e430-d09d-41b5-a79b-e972114096df") private static Stereotype MDAASSOCDEP; - @objid ("b6c8bf2e-aa53-4adf-a217-5ed318dfa74d") + @objid ("50ceb7de-b5d5-4d8e-8179-dbaa3fd76409") private static TagType MDAASSOCDEP_ROLE; - @objid ("48e9701e-a2d2-4592-89a1-218a4dbcb2f1") + @objid ("f9930090-a9b9-4f22-9bae-a0af7eaf0417") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "b88afca5-ed15-48f1-a81b-29da4a453701"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -211,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/scalabilitymodel/standard/instance/NonFunctionalEventInstance.java b/src/main/java/fr/softeam/cameldesigner/api/scalabilitymodel/standard/instance/NonFunctionalEventInstance.java index c2bbcda3..12983f81 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.scalabilitymodel.standard.instance; @@ -37,7 +37,7 @@ */ @objid ("cb340abc-2e6f-40f5-b96e-5f3764d6d408") public class NonFunctionalEventInstance extends EventInstance { - @objid ("fe504180-b434-4c2e-91c0-13dd804a3662") + @objid ("72d822c0-4b7e-4e02-962a-a5fb677ada10") public static final String STEREOTYPE_NAME = "NonFunctionalEventInstance"; /** @@ -48,7 +48,7 @@ public class NonFunctionalEventInstance extends EventInstance { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("e81fdd2b-aeae-45b9-997e-018e6b855f32") + @objid ("8ecb13c6-7910-490e-a3dc-a7ae8976bb21") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Instance) && ((Instance) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, NonFunctionalEventInstance.STEREOTYPE_NAME)); } @@ -58,7 +58,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link NonFunctionalEventInstance} proxy on the created {@link Instance}. */ - @objid ("7b8e500a-c781-4c08-bc8c-626c8c4b46b4") + @objid ("1137b553-4de1-4faf-b30e-412d99d30311") public static NonFunctionalEventInstance create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Instance"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, NonFunctionalEventInstance.STEREOTYPE_NAME); @@ -66,36 +66,34 @@ 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. */ - @objid ("4aa55e98-78dd-442f-8787-3fe266ca4540") + @objid ("45a878f3-3807-43fa-8b23-824e756cbc08") public static NonFunctionalEventInstance instantiate(final Instance obj) { return NonFunctionalEventInstance.canInstantiate(obj) ? new NonFunctionalEventInstance(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("bb11b0f3-f1de-46bb-835d-39eb3ec26992") + @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 ("4a020d3b-4781-433c-b5a9-62c2c9725a7f") + @objid ("50ef9ff3-f7e8-4ad3-b951-78bdbda4e684") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -112,11 +110,10 @@ 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 ("94cd818f-7420-42b5-a9a4-76d14a226fda") + @objid ("cdbd546d-feab-4a1e-b6ae-02db0a51154f") @Override public Instance getElement() { return (Instance)super.getElement(); @@ -126,8 +123,9 @@ public Instance getElement() { * Get the value of the 'metricInstance' role.

* Role description: * null + * */ - @objid ("46b98bd6-752d-425f-a79c-ba30146f3dc6") + @objid ("5751c7b2-3093-480f-9546-cee9e00b4ce6") public MetricInstance getMetricInstance() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(NonFunctionalEventInstance.MdaTypes.MDAASSOCDEP) @@ -141,7 +139,7 @@ public MetricInstance getMetricInstance() { return null; } - @objid ("e6b922b6-982f-4fc6-8e41-e348188e3cee") + @objid ("0f3a2367-bc79-4eaa-8202-ec62d810862f") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -151,8 +149,9 @@ public int hashCode() { * Set the value of the 'metricInstance' role.

* Role description: * null + * */ - @objid ("7118d610-5fdc-4f87-8932-cc89f79c97bd") + @objid ("52f66025-bba9-4116-a82a-5f3d58e2d795") public void setMetricInstance(final MetricInstance obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -180,23 +179,23 @@ public List getChilds() { return result; } - @objid ("328614a8-56b5-489e-9d51-be62170bf4b7") + @objid ("3cde4e33-123e-414b-93ee-5e4de7d2990d") protected NonFunctionalEventInstance(final Instance elt) { super(elt); } @objid ("115de52d-fac8-49f5-8245-053320b852b9") public static final class MdaTypes { - @objid ("396fee1e-be66-471e-93bf-e880aa1a5c15") + @objid ("0c642ed1-dcdc-4dba-bf7a-f6a0ba692f79") public static Stereotype STEREOTYPE_ELT; - @objid ("034a2680-5652-43b9-94af-95b21233f887") + @objid ("cb5a3d03-1662-44c2-b154-2768ddb8e393") private static Stereotype MDAASSOCDEP; - @objid ("975f6599-357b-4f64-a6f6-106af4978bb0") + @objid ("3c68d597-55cc-4eb0-883d-db68b0cacb36") private static TagType MDAASSOCDEP_ROLE; - @objid ("5faeb0c1-1ddf-4f7f-9e51-e6aaa685b4c6") + @objid ("ec74040f-7e7c-40b6-adcf-a020119d488d") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "d6b986dc-6dc7-40b3-b2a3-c0fe9f6add0e"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -204,11 +203,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 041aff2a..f9c3104b 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.scalabilitymodel.standard.namespace; @@ -38,7 +38,7 @@ */ @objid ("8486585a-5685-4f6e-9bb4-9334f5924b9f") public abstract class ScalingAction extends Action { - @objid ("123e9659-44f4-44db-ba9d-b801da365339") + @objid ("93c82aca-9eef-49c8-ba38-d85a8a67db9c") public static final String STEREOTYPE_NAME = "ScalingAction"; /** @@ -49,12 +49,12 @@ public abstract class ScalingAction extends Action { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("0df00a92-0efe-44f5-9168-7180f3d59685") + @objid ("0ef865c4-2da2-4a83-b823-55a9299a57cb") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof NameSpace) && ((NameSpace) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, ScalingAction.STEREOTYPE_NAME)); } - @objid ("ee2fdba4-ae6b-4e97-b084-d9700b0a1c07") + @objid ("2071041d-eea3-4beb-ba8d-6b2410712299") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -71,11 +71,10 @@ 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 ("37bf5e20-a58a-49f6-a363-c1dbd67a08df") + @objid ("9c4848f0-4776-4eec-91c6-f46130e6f2bd") @Override public NameSpace getElement() { return (NameSpace)super.getElement(); @@ -85,8 +84,9 @@ public NameSpace getElement() { * Get the value of the 'softwareComponent' role.

* Role description: * null + * */ - @objid ("a8a4ef6a-19ac-4d9c-9f81-5e7cef7557a3") + @objid ("0f6fcc6c-0549-49d8-b10b-bb983d47406f") public SoftwareComponent getSoftwareComponent() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(ScalingAction.MdaTypes.MDAASSOCDEP) @@ -100,7 +100,7 @@ public SoftwareComponent getSoftwareComponent() { return null; } - @objid ("59a81781-a444-41c6-9545-d3361ac514dc") + @objid ("5f84ff31-852e-4257-a1b4-6c9981113626") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -110,8 +110,9 @@ public int hashCode() { * Set the value of the 'softwareComponent' role.

* Role description: * null + * */ - @objid ("518f6cdc-d437-4994-873f-a98b59de134b") + @objid ("a0cf0009-c534-4525-927d-8ef1205b365f") public void setSoftwareComponent(final SoftwareComponent obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -139,23 +140,23 @@ public List getChilds() { return result; } - @objid ("348a5bd4-b747-4975-88db-85ca7298270b") + @objid ("aaa401a9-584d-4247-9e8b-b3f880392c55") protected ScalingAction(final NameSpace elt) { super(elt); } @objid ("8b410711-e57b-4938-903b-9dc7cc45b117") public static final class MdaTypes { - @objid ("3deb812f-8e8c-409c-b27e-eedec14f64b5") + @objid ("e8691f07-16f0-4305-8fc8-d7323daf4c17") public static Stereotype STEREOTYPE_ELT; - @objid ("177a6e78-fc1b-4c3b-a596-26f1a6bfc9bf") + @objid ("ef551909-e5d5-4e71-8235-0fce2fa5e194") private static Stereotype MDAASSOCDEP; - @objid ("74558dc8-700f-49fc-8357-3137ee4c2a3f") + @objid ("4963817f-5393-41e2-b79d-6b34aaa1f819") private static TagType MDAASSOCDEP_ROLE; - @objid ("bad0aaa5-8301-4090-a636-7a4778829d1c") + @objid ("dcaf91e6-4c21-497c-a611-5704deddd824") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "25bf81ac-b13e-4716-b766-42a9b7e05150"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -163,11 +164,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 d4428c6a..20d3eb1d 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.scalabilitymodel.standard.package_; @@ -53,7 +53,7 @@ */ @objid ("aa6941bf-42c8-468d-869b-0d991fac6251") public class ScalabilityModel extends SubModel { - @objid ("5a5a6896-f569-46cf-b431-8f345c09ae90") + @objid ("47cd3351-5e46-48be-affb-7000a898e762") public static final String STEREOTYPE_NAME = "ScalabilityModel"; /** @@ -64,7 +64,7 @@ public class ScalabilityModel extends SubModel { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("85736ff2-bb79-4e85-b01f-95280651a91f") + @objid ("aaeea1db-6099-43c0-8a71-a97b3bd47567") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Package) && ((Package) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, ScalabilityModel.STEREOTYPE_NAME)); } @@ -74,7 +74,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link ScalabilityModel} proxy on the created {@link Package}. */ - @objid ("3ce8891f-bb66-41a2-983f-f67f4c574198") + @objid ("10d62b2e-f54e-4d3c-9857-1853a3b56f32") public static ScalabilityModel create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Package"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, ScalabilityModel.STEREOTYPE_NAME); @@ -82,41 +82,40 @@ 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. */ - @objid ("1d41e9a4-5b29-45dd-b203-fd089fe508e5") + @objid ("0ac1f17f-8d87-49fa-9523-76eeb28df7f4") public static ScalabilityModel instantiate(final Package obj) { return ScalabilityModel.canInstantiate(obj) ? new ScalabilityModel(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("81745233-c763-4352-8b0c-565b9ab56942") + @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 ("80b2caec-861f-46e2-9747-1773b047b6e4") + @objid ("46dc6d41-dff5-49b7-82d9-7666df69b402") public void addActions(final ScalingAction obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -126,8 +125,9 @@ public void addActions(final ScalingAction obj) { * Add a value to the 'eventInstances' role.

* Role description: * null + * */ - @objid ("24e42777-3434-40ea-8bfc-bc3e41d8c0d3") + @objid ("d4d41efb-9663-4f40-8018-6093ec7cbd48") public void addEventInstances(final EventInstance obj) { if (obj!=null) ((Package) this.elt).getDeclared().add(obj.getElement()); @@ -137,8 +137,9 @@ public void addEventInstances(final EventInstance obj) { * Add a value to the 'events' role.

* Role description: * null + * */ - @objid ("2131fdda-c042-4971-8469-6695f1c9c266") + @objid ("c2013f96-c98b-4f50-a905-72a3ca5d5bf2") public void addEvents(final SingleEvent obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -148,8 +149,9 @@ public void addEvents(final SingleEvent obj) { * Add a value to the 'patterns' role.

* Role description: * null + * */ - @objid ("f8e50755-1b94-4179-b85e-ef9d08a44fa3") + @objid ("a8e8fd39-1cf5-44d8-892c-ed51173aa42b") public void addPatterns(final EventPattern obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -159,8 +161,9 @@ public void addPatterns(final EventPattern obj) { * Add a value to the 'rules' role.

* Role description: * null + * */ - @objid ("c8c1b679-47a1-4abe-b5e3-0eefe248a0d9") + @objid ("8c919cef-fa0d-4dcd-893e-d0d91e4688ec") public void addRules(final ScalabilityRule obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -170,14 +173,15 @@ public void addRules(final ScalabilityRule obj) { * Add a value to the 'timers' role.

* Role description: * null + * */ - @objid ("982be382-c5d3-46cc-a435-175e0c66dea5") + @objid ("9e50d765-3d6e-4548-8159-47de6c8adbf8") public void addTimers(final Timer obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); } - @objid ("6a143188-1e53-4840-8fc7-df511cfce9d8") + @objid ("698ac3c1-52e6-45c4-847e-7ca6c8353a12") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -197,16 +201,17 @@ public boolean equals(final Object obj) { * Get the values of the 'actions' role.

* Role description: * null + * */ - @objid ("c3cbcc40-d094-4e2a-8cbc-0d7c5692d075") + @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); } @@ -214,18 +219,18 @@ public List getActions() { * Get the value to the 'camelModel' role.

* Role description: * null + * */ - @objid ("9120cb87-500b-4a0e-8b0c-6ae0e4a2f4f1") + @objid ("3a273cd0-5b7f-4f70-bbaa-b64e655515ff") public CamelModel getCamelModel() { return (CamelModel)CamelDesignerProxyFactory.instantiate(((Package) this.elt).getOwner(), CamelModel.STEREOTYPE_NAME); } /** - * Get the underlying {@link Package}. - * + * Get the underlying {@link Package}. * @return the Package represented by this proxy, never null. */ - @objid ("09fc0c59-fa9c-4553-8b1a-8e1a59eadd9d") + @objid ("c7b9a76b-d20d-44d5-b3a0-0a457ca60d2e") @Override public Package getElement() { return (Package)super.getElement(); @@ -235,16 +240,17 @@ public Package getElement() { * Get the values of the 'eventInstances' role.

* Role description: * null + * */ - @objid ("002b4d0c-db4c-4282-ac65-98cfc4443ac0") + @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); } @@ -252,16 +258,17 @@ public List getEventInstances() { * Get the values of the 'events' role.

* Role description: * null + * */ - @objid ("43035ec9-f629-4fe6-b656-365cc7db8ebc") + @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); } @@ -269,16 +276,17 @@ public List getEvents() { * Get the values of the 'patterns' role.

* Role description: * null + * */ - @objid ("d7ce1e24-dc5c-49b8-9355-b96ca773f88d") + @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); } @@ -286,14 +294,15 @@ public List getPatterns() { * Get the values of the 'rules' role.

* Role description: * null + * */ - @objid ("6431ff77-4e74-4168-8e35-c436b25095da") + @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); } @@ -301,18 +310,19 @@ public List getRules() { * Get the values of the 'timers' role.

* Role description: * null + * */ - @objid ("af6644cf-2826-4e8c-8104-3d30204e12fb") + @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); } - @objid ("f54cb80b-fcf8-41ab-86a7-448916a36746") + @objid ("08010b44-b4a9-423a-86df-0077995a5204") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -322,8 +332,9 @@ public int hashCode() { * Remove a value from the 'actions' role.

* Role description: * null + * */ - @objid ("9379f1d8-5901-4aef-a825-cacf5def1df3") + @objid ("dd41bf5f-b327-4ec8-a02d-7109e2c4f53a") public boolean removeActions(final ScalingAction obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -332,8 +343,9 @@ public boolean removeActions(final ScalingAction obj) { * Remove a value from the 'eventInstances' role.

* Role description: * null + * */ - @objid ("30f4c319-05a7-4761-b82f-1304f054706c") + @objid ("90b2a994-30d4-4791-8cbe-8b1d484a59d6") public boolean removeEventInstances(final EventInstance obj) { return (obj!=null)? ((Package) this.elt).getDeclared().remove(obj.getElement()) : false; } @@ -342,8 +354,9 @@ public boolean removeEventInstances(final EventInstance obj) { * Remove a value from the 'events' role.

* Role description: * null + * */ - @objid ("6f730c79-747d-4996-ba83-1438b990019f") + @objid ("ca40d1ae-91a5-44dd-91c2-5ca4ba52df26") public boolean removeEvents(final SingleEvent obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -352,8 +365,9 @@ public boolean removeEvents(final SingleEvent obj) { * Remove a value from the 'patterns' role.

* Role description: * null + * */ - @objid ("cdd32509-bd00-4d56-aeec-e563ae8c5eeb") + @objid ("778d589e-bca2-487e-b396-768a0a79b290") public boolean removePatterns(final EventPattern obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -362,8 +376,9 @@ public boolean removePatterns(final EventPattern obj) { * Remove a value from the 'rules' role.

* Role description: * null + * */ - @objid ("e386f656-27d6-41a5-83e2-bf254f4282bb") + @objid ("3089382a-a260-4b46-85d5-cfb61eaf03e3") public boolean removeRules(final ScalabilityRule obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -372,8 +387,9 @@ public boolean removeRules(final ScalabilityRule obj) { * Remove a value from the 'timers' role.

* Role description: * null + * */ - @objid ("0b432d1c-3402-400c-bf89-c302d7c65871") + @objid ("8080fc79-1829-443f-a5da-20160b9b5d24") public boolean removeTimers(final Timer obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -382,8 +398,9 @@ public boolean removeTimers(final Timer obj) { * Set the value of the 'camelModel' role.

* Role description: * null + * */ - @objid ("a994773d-868d-456a-a416-5c0f809612d3") + @objid ("c5aa0e2b-cfcb-4731-8bd9-b1f505783585") public void setCamelModel(final CamelModel obj) { ((Package) this.elt).setOwner((obj != null) ? obj.getElement() : null); } @@ -396,23 +413,23 @@ public List getChilds() { return result; } - @objid ("98e67486-a7a8-43cc-baff-9bed7ca7e082") + @objid ("291d0321-d812-4552-975a-3ec2859f570b") protected ScalabilityModel(final Package elt) { super(elt); } @objid ("c8089b03-881d-4197-88c6-c19a2044ecb8") public static final class MdaTypes { - @objid ("62d0e8ed-098e-457e-a0ee-1a3d4e24c176") + @objid ("4a7689a5-e175-4e04-8d80-2c653fa9d85b") public static Stereotype STEREOTYPE_ELT; - @objid ("ed9840b5-4261-4d44-8ff4-774a9449497c") + @objid ("4f1c6c12-57f0-4402-a06d-5c6e98b27427") private static Stereotype MDAASSOCDEP; - @objid ("5678b677-4e47-48fe-b453-3a0831629f76") + @objid ("2ffdcea0-bd57-43a7-94e5-f91fe4726db1") private static TagType MDAASSOCDEP_ROLE; - @objid ("ffc9f2f6-6128-49f2-a0a6-b59a20dbd34a") + @objid ("d1a39fdc-6a83-4ba1-9593-060230a08f65") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "0e1f4eeb-63ca-467d-b99c-92a54f34fcb5"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -420,11 +437,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 e713d48b..3e6fed25 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.securitymodel.standard.class_; @@ -35,7 +35,7 @@ */ @objid ("5a184b7e-9e85-4c9f-a879-89cb31cbcc76") public class Certifiable extends SecurityAttribute { - @objid ("e1dcf048-a866-447e-b236-b8acf84a52e4") + @objid ("50c45fef-dbed-4cec-aa99-8fc5c4860b50") public static final String STEREOTYPE_NAME = "Certifiable"; /** @@ -46,7 +46,7 @@ public class Certifiable extends SecurityAttribute { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("1e4ca282-7600-4d2d-b611-6f3b9c47d646") + @objid ("a90a3194-e2bf-4150-ac43-7a40e2d968e7") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, Certifiable.STEREOTYPE_NAME)); } @@ -56,7 +56,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link Certifiable} proxy on the created {@link Class}. */ - @objid ("a30c37ac-31b1-43bc-9b0d-f3a318562404") + @objid ("d9f3a8b9-b9fa-4271-85ec-01589c77bfde") public static Certifiable create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, Certifiable.STEREOTYPE_NAME); @@ -64,36 +64,34 @@ 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. */ - @objid ("63fa4314-0b92-4462-9996-e8659ab89d10") + @objid ("c51e5590-7c9f-4cd6-8fea-28ba1442962d") public static Certifiable instantiate(final Class obj) { return Certifiable.canInstantiate(obj) ? new Certifiable(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("359dec1a-aaa2-4c8d-98bf-ff776256b3bd") + @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 ("6e620e7f-627a-48ae-89e0-b53c920af8fe") + @objid ("2efc482b-98f3-4428-8d57-67187e3d078b") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -110,17 +108,16 @@ 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 ("c9a1f58b-a88f-4208-8602-561b5a761014") + @objid ("0454ea7a-3181-42e7-b3cd-03248d7e26dd") @Override public Class getElement() { return (Class)super.getElement(); } - @objid ("673678ef-fa9b-4dac-9a48-fdb5876f4af7") + @objid ("bb07409b-1bd4-4323-a84a-26977937040a") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -134,23 +131,23 @@ public List getChilds() { return result; } - @objid ("c149856d-ef44-48ac-9d91-3e09c51718b3") + @objid ("3df99023-be7d-4aeb-bd8b-68d1a8cc28f1") protected Certifiable(final Class elt) { super(elt); } @objid ("aee63aa1-1b38-46c1-b417-2240fa886307") public static final class MdaTypes { - @objid ("7ebe0698-10af-4806-8ec6-ee44da9e9ef1") + @objid ("dc13833d-ad86-4e72-a199-6c8d9998e47f") public static Stereotype STEREOTYPE_ELT; - @objid ("c2b27f12-cada-4c03-bd70-bf8b090ea477") + @objid ("5a5bef0b-cfc6-4cbc-ab79-f7b69d69bfd3") private static Stereotype MDAASSOCDEP; - @objid ("f24ab822-e17c-4c6f-81ea-4cabe694633d") + @objid ("c4f62f2e-1382-49f7-bc2f-d2a21349a444") private static TagType MDAASSOCDEP_ROLE; - @objid ("9c04285c-8da3-4fcd-8a6d-8bdf4635be42") + @objid ("8dfc7fe9-b7ca-4e15-8189-abb47aaaba42") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "2ded821f-dd6d-4a25-82d8-46091a835fa0"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -158,11 +155,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 5ae4571e..ca443eb1 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.securitymodel.standard.class_; @@ -15,6 +15,7 @@ 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; @@ -36,7 +37,7 @@ */ @objid ("1f0a6163-1b92-4d1e-9b82-465f58ed0d66") public class CompositeSecurityMetric extends CompositeMetric { - @objid ("17aff3c7-52ed-41c6-a36d-384782797fee") + @objid ("ca6ababd-b763-45ad-9a6d-54715b5c5824") public static final String STEREOTYPE_NAME = "CompositeSecurityMetric"; /** @@ -47,7 +48,7 @@ public class CompositeSecurityMetric extends CompositeMetric { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("b9ef1136-cffa-4f71-8f41-a24ba1ff01fe") + @objid ("32e75014-b11e-4407-8f6c-1684f818c197") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, CompositeSecurityMetric.STEREOTYPE_NAME)); } @@ -57,7 +58,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link CompositeSecurityMetric} proxy on the created {@link Class}. */ - @objid ("1f3ba9bb-e30e-457a-98c9-6f89e63a31ba") + @objid ("aa88957a-e517-4707-9e6a-466de0b31d59") public static CompositeSecurityMetric create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, CompositeSecurityMetric.STEREOTYPE_NAME); @@ -65,36 +66,34 @@ 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. */ - @objid ("46668ca3-c586-4197-b32f-caeac079fafd") + @objid ("2fa9689e-0660-4d42-b9a2-3633232c7686") public static CompositeSecurityMetric instantiate(final Class obj) { return CompositeSecurityMetric.canInstantiate(obj) ? new CompositeSecurityMetric(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("da77d6c6-3228-4a24-bd8d-c66421beebc6") + @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 ("a006b00f-248a-46de-a436-281a381ce062") + @objid ("0cf5f6fa-ffa6-490b-aae9-29855a5c5736") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -114,8 +113,9 @@ public boolean equals(final Object obj) { * Get the value of the 'domain' role.

* Role description: * null + * */ - @objid ("ff32e590-3a9d-4dcb-9603-7a5c7c793549") + @objid ("e3a9b619-df16-4cf1-a66e-86de666b49da") public SecurityDomain getDomain() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(CompositeSecurityMetric.MdaTypes.MDAASSOCDEP) @@ -128,17 +128,16 @@ public SecurityDomain getDomain() { } /** - * Get the underlying {@link Class}. - * + * Get the underlying {@link Class}. * @return the Class represented by this proxy, never null. */ - @objid ("e7175d58-561c-4875-8082-467fba3cfd04") + @objid ("757331d8-cf9c-4c31-8155-0910f84a163f") @Override public Class getElement() { return (Class)super.getElement(); } - @objid ("3b18c504-b5f5-4781-aedd-56a2e4f2dad0") + @objid ("fbbef080-6060-47d2-a3a4-98c0a76d0fa1") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -148,8 +147,9 @@ public int hashCode() { * Set the value of the 'domain' role.

* Role description: * null + * */ - @objid ("7426029e-205c-49a9-ba72-1542b128a17e") + @objid ("cf33eccd-d7ca-463c-b8b3-82e969883bba") public void setDomain(final SecurityDomain obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -177,23 +177,23 @@ public List getChilds() { return result; } - @objid ("dd86f69b-de77-43ef-83f1-056c6e377b60") + @objid ("4c993fad-1c5e-459d-8568-84082a8f745e") protected CompositeSecurityMetric(final Class elt) { super(elt); } @objid ("fe4cd5da-e95c-488c-a4aa-bd4e00428eda") public static final class MdaTypes { - @objid ("65bebb12-6b89-4644-9379-f09ba053e35b") + @objid ("3dda5b22-ebf2-42ab-96ab-8d7fad1b4519") public static Stereotype STEREOTYPE_ELT; - @objid ("f541e643-c549-43a4-9dd3-e9db94d602e9") + @objid ("6e6044e8-05cc-47e7-9db4-fb85478ce790") private static Stereotype MDAASSOCDEP; - @objid ("f22b11e5-1272-40a1-8788-eec17898364a") + @objid ("2d7f9151-08eb-4814-903f-9e59cd5fe6bc") private static TagType MDAASSOCDEP_ROLE; - @objid ("33d7f266-4580-47f0-9783-51b617fc9691") + @objid ("e5e08d60-89d9-47c9-8732-005034d57d03") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "49dfe43f-0fa8-476b-a6ba-03b62463e361"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -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 90a665dc..baf25ed1 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.securitymodel.standard.class_; @@ -15,6 +15,7 @@ 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; @@ -36,7 +37,7 @@ */ @objid ("9c9c3717-d929-40e5-883e-acf25d0cc102") public class RawSecurityMetric extends RawMetric { - @objid ("f5ab7553-32ba-4e27-8de0-0aefa1c26d80") + @objid ("8b70c997-ac8e-42bf-aebf-ef4b4ebf3068") public static final String STEREOTYPE_NAME = "RawSecurityMetric"; /** @@ -47,7 +48,7 @@ public class RawSecurityMetric extends RawMetric { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("eedb3d91-e1c2-4265-ba1f-1139d4f18168") + @objid ("dc28d4fe-edbd-4082-9a3b-6f924d62f26a") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, RawSecurityMetric.STEREOTYPE_NAME)); } @@ -57,7 +58,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link RawSecurityMetric} proxy on the created {@link Class}. */ - @objid ("f11594ac-33bc-41b3-9066-e618798664ed") + @objid ("bdfae1af-f516-42de-8a29-f5127776c8be") public static RawSecurityMetric create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, RawSecurityMetric.STEREOTYPE_NAME); @@ -65,36 +66,34 @@ 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. */ - @objid ("ef77c91d-bc60-457d-90f6-fa16e7c932d5") + @objid ("4ed13d43-d624-452b-b05e-1d3140e48cd4") public static RawSecurityMetric instantiate(final Class obj) { return RawSecurityMetric.canInstantiate(obj) ? new RawSecurityMetric(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("74b82406-f2cf-4b06-84b8-ac149402ef5e") + @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 ("707bd2de-3721-4afb-9b94-cdfe616178ce") + @objid ("98401846-3223-4748-94af-d33699b4dafa") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -114,8 +113,9 @@ public boolean equals(final Object obj) { * Get the value of the 'domain' role.

* Role description: * null + * */ - @objid ("279f5706-41c3-4a73-ac61-c3b817c24a2d") + @objid ("0acb3f2c-6ce8-4ed7-b937-b57396d78aee") public SecurityDomain getDomain() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(RawSecurityMetric.MdaTypes.MDAASSOCDEP) @@ -128,17 +128,16 @@ public SecurityDomain getDomain() { } /** - * Get the underlying {@link Class}. - * + * Get the underlying {@link Class}. * @return the Class represented by this proxy, never null. */ - @objid ("e307bc2a-3647-42e3-a95c-cdf2a6ce3adc") + @objid ("52ca3a04-dce1-4170-b182-6571cf704358") @Override public Class getElement() { return (Class)super.getElement(); } - @objid ("b49130c4-da9c-4458-b714-feb4c633cb07") + @objid ("48b789bf-b024-469d-9679-0caa20075ff6") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -148,8 +147,9 @@ public int hashCode() { * Set the value of the 'domain' role.

* Role description: * null + * */ - @objid ("d0c4b4fc-c7e9-454c-b024-a8a74926d480") + @objid ("6a51ab97-a010-4076-a538-7990049e6e88") public void setDomain(final SecurityDomain obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -177,23 +177,23 @@ public List getChilds() { return result; } - @objid ("27949b5e-54de-48a2-85a1-a07782a57ce0") + @objid ("f3632c96-9613-440c-8178-650b71b89113") protected RawSecurityMetric(final Class elt) { super(elt); } @objid ("e07ed229-3645-4f01-84db-5816474f36ad") public static final class MdaTypes { - @objid ("1ebcbd19-cb55-499a-8d91-e81353eb6aae") + @objid ("68304057-c398-45e5-8024-ba45f8da909d") public static Stereotype STEREOTYPE_ELT; - @objid ("bf0b8a46-70b1-4a4d-8520-d38310a52fb9") + @objid ("532feded-508c-4519-89b6-a151aa5626a1") private static Stereotype MDAASSOCDEP; - @objid ("3a647093-8698-4142-83a3-db5f565b7341") + @objid ("fa573bef-f9fc-4eb1-a350-ec5d378b7f12") private static TagType MDAASSOCDEP_ROLE; - @objid ("d52ef307-4dfe-41dd-ad17-a20d31d01eef") + @objid ("2344d477-2d6f-4c02-b1c4-7d428aee45cb") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "01bb4068-95c3-463c-bfc3-5e98fbd8bf98"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -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 63c4a6d6..9d9d32e2 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.securitymodel.standard.class_; @@ -15,6 +15,7 @@ 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; @@ -36,7 +37,7 @@ */ @objid ("dcfdf889-b55e-406d-8583-1ecbb8c17322") public class SecurityAttribute extends QualityAttributeClass { - @objid ("b4777069-2d18-40ca-9d06-e59135629109") + @objid ("d5343aa4-2abe-4ee6-90d8-f004471f4b87") public static final String STEREOTYPE_NAME = "SecurityAttribute"; /** @@ -47,7 +48,7 @@ public class SecurityAttribute extends QualityAttributeClass { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("c7a320a3-a7ed-485a-9589-c702d6bf9813") + @objid ("54cef389-10c4-4b06-825c-8606776341f5") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, SecurityAttribute.STEREOTYPE_NAME)); } @@ -57,7 +58,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link SecurityAttribute} proxy on the created {@link Class}. */ - @objid ("236b4261-16a7-4994-97d5-7b6623349cd1") + @objid ("e950014a-4463-441b-bf3b-4325124a6dc7") public static SecurityAttribute create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, SecurityAttribute.STEREOTYPE_NAME); @@ -65,36 +66,34 @@ 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. */ - @objid ("15d78d1f-28d4-4d83-a13a-de14af8d6dba") + @objid ("56caba2f-e8f8-4f86-8dd3-508402991323") public static SecurityAttribute instantiate(final Class obj) { return SecurityAttribute.canInstantiate(obj) ? new SecurityAttribute(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("401efe37-0caa-4f40-a58f-a7d7f9fbefa3") + @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 ("ac85393a-5a33-4295-8b0f-710b6ce71588") + @objid ("7f4b1e24-b266-4ea7-8480-6124a39db0a1") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -114,8 +113,9 @@ public boolean equals(final Object obj) { * Get the value of the 'domain' role.

* Role description: * null + * */ - @objid ("fa9d6e4b-742c-420e-8c11-e0b7647d48fb") + @objid ("bc3304a0-817d-423e-becc-c09b511e1785") public SecurityDomain getDomain() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(SecurityAttribute.MdaTypes.MDAASSOCDEP) @@ -128,17 +128,16 @@ public SecurityDomain getDomain() { } /** - * Get the underlying {@link Class}. - * + * Get the underlying {@link Class}. * @return the Class represented by this proxy, never null. */ - @objid ("0ca34f4d-b0c2-44fe-9941-4dbe752d9614") + @objid ("56baa593-ad5b-42c7-8bc0-4a40b60e9ea9") @Override public Class getElement() { return (Class)super.getElement(); } - @objid ("5a1dab8a-023a-4580-ae04-28a5e754b885") + @objid ("701f46de-46dc-4605-9767-c3acd7ccccc2") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -148,8 +147,9 @@ public int hashCode() { * Set the value of the 'domain' role.

* Role description: * null + * */ - @objid ("d439ecbe-c642-4a2e-b5d1-8c172f20ea9d") + @objid ("c06f51b2-44b7-4385-9454-b6ee395b9529") public void setDomain(final SecurityDomain obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -177,23 +177,23 @@ public List getChilds() { return result; } - @objid ("75ab1a55-b9db-4a0b-9c0d-02c5e0ae6e4d") + @objid ("45d1bb7b-7193-4d06-bc12-94bb264ecb7c") protected SecurityAttribute(final Class elt) { super(elt); } @objid ("6ae49d7c-2a2e-413e-af68-3326e7b2351a") public static final class MdaTypes { - @objid ("f017dfd9-e5cc-4bfd-8e69-94c58fad6639") + @objid ("2fab10aa-bed6-4b88-bfa7-a061970404c1") public static Stereotype STEREOTYPE_ELT; - @objid ("53303f15-8d70-4abd-a6b5-21639f3c752c") + @objid ("1280727c-a753-438c-8d4f-5b8515ae42bf") private static Stereotype MDAASSOCDEP; - @objid ("d1383710-423e-44ea-a82c-0a59505f724f") + @objid ("d123f458-2e9e-40de-81a6-31e1007ac5d7") private static TagType MDAASSOCDEP_ROLE; - @objid ("55f41559-ced0-4e12-97c2-33475a0402b1") + @objid ("7aca709a-bb80-403c-bc1c-75dfb73565e2") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "59943cbd-62e2-4183-8973-e15130bcb7d3"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -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 3db91a02..4fe94634 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.securitymodel.standard.class_; @@ -16,6 +16,10 @@ 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; @@ -37,13 +41,13 @@ */ @objid ("d61a388a-d45a-42f2-ba0d-ab77ccfcec55") public class SecurityControl extends FeatureClass { - @objid ("014c3c29-b5bb-40a3-8fd1-aa95449ee8fc") + @objid ("7e5d622d-9e32-47fd-8945-920f3d15dd9a") public static final String STEREOTYPE_NAME = "SecurityControl"; - @objid ("6cdbd27b-0d83-4684-b427-10856a410948") + @objid ("5e96b175-2b2c-4193-a15e-33dfc692d7cd") public static final String ID_TAGTYPE = "id"; - @objid ("f633b1b3-1b9b-4686-bdd1-90ab5dbc9f1d") + @objid ("92965483-b367-45bd-9431-fdc355c5c739") public static final String SPECIFICATION_TAGTYPE = "specification"; /** @@ -54,7 +58,7 @@ public class SecurityControl extends FeatureClass { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("9042a327-99bd-401e-8e05-baf8d1ffb0f7") + @objid ("943f9959-0b29-4b68-8b00-c68f44e51bdd") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, SecurityControl.STEREOTYPE_NAME)); } @@ -64,7 +68,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link SecurityControl} proxy on the created {@link Class}. */ - @objid ("80814e5f-20f3-4ec8-a8c3-6eeab406cd18") + @objid ("f9442f47-41a7-4718-b8fc-e6ffc61a3b56") public static SecurityControl create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, SecurityControl.STEREOTYPE_NAME); @@ -72,41 +76,40 @@ 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. */ - @objid ("2ed44cc2-65bc-467e-9635-1484a8c664dc") + @objid ("fc1c2cd1-894f-4bf7-95f5-ef38239c81ee") public static SecurityControl instantiate(final Class obj) { return SecurityControl.canInstantiate(obj) ? new SecurityControl(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("da695192-84fe-4498-a723-9a6fd61f04d3") + @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 ("fa425708-645f-4739-a010-f5b2c78e6024") + @objid ("1e1377e9-2c60-4a4c-b74e-a21e9c236d11") public void addCompositeSecurityMetrics(final CompositeSecurityMetric obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -120,8 +123,9 @@ public void addCompositeSecurityMetrics(final CompositeSecurityMetric obj) { * Add a value to the 'rawSecurityMetrics' role.

* Role description: * null + * */ - @objid ("4c543372-5b60-4caa-9074-fa76cdbeb895") + @objid ("4aa97517-031a-4f8f-b1c7-d47cf260a777") public void addRawSecurityMetrics(final RawSecurityMetric obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -135,8 +139,9 @@ public void addRawSecurityMetrics(final RawSecurityMetric obj) { * Add a value to the 'securityProperties' role.

* Role description: * null + * */ - @objid ("0def79f4-97f5-4f1c-a891-ae9f9cc673f2") + @objid ("6144f64c-1e9e-4668-a166-2858596471cf") public void addSecurityProperties(final SecurityAttribute obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -146,7 +151,7 @@ public void addSecurityProperties(final SecurityAttribute obj) { } } - @objid ("6beb59aa-b76d-47fc-8926-8bd0e44f0245") + @objid ("dc334cbb-9c78-418a-aaf5-e5344a7f9243") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -166,8 +171,9 @@ public boolean equals(final Object obj) { * Get the values of the 'compositeSecurityMetrics' role.

* Role description: * null + * */ - @objid ("208a70c6-d430-4673-91bc-112a309936a7") + @objid ("681976ea-d9fe-4372-af32-031616a6639e") public List getCompositeSecurityMetrics() { List results = new ArrayList<>(); for (Dependency d : this.elt.getDependsOnDependency()) { @@ -184,8 +190,9 @@ public List getCompositeSecurityMetrics() { * Get the value of the 'domain' role.

* Role description: * null + * */ - @objid ("f9ae6e03-d64f-4add-b630-758660ee3cbe") + @objid ("ddc717c2-993e-4034-848e-132d02551ee3") public SecurityDomain getDomain() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(SecurityControl.MdaTypes.MDAASSOCDEP) @@ -198,11 +205,10 @@ public SecurityDomain getDomain() { } /** - * Get the underlying {@link Class}. - * + * Get the underlying {@link Class}. * @return the Class represented by this proxy, never null. */ - @objid ("39831a8b-bfad-4bff-a1c5-8e5e62ff6058") + @objid ("df88c443-a049-47f1-9816-01036c1370f0") @Override public Class getElement() { return (Class)super.getElement(); @@ -213,7 +219,7 @@ public Class getElement() { *

Property description: *
null

*/ - @objid ("6f89c958-6fb1-4bbc-8f2c-2f00f13b5714") + @objid ("6ce62ee6-df03-4d59-88e5-919f8c8ae65c") public String getId() { return this.elt.getTagValue(SecurityControl.MdaTypes.ID_TAGTYPE_ELT); } @@ -222,8 +228,9 @@ public String getId() { * Get the values of the 'rawSecurityMetrics' role.

* Role description: * null + * */ - @objid ("41a90e04-54dd-4ec6-8b41-70079d41c138") + @objid ("b70161b0-89ba-4715-87ae-fce544249280") public List getRawSecurityMetrics() { List results = new ArrayList<>(); for (Dependency d : this.elt.getDependsOnDependency()) { @@ -240,8 +247,9 @@ public List getRawSecurityMetrics() { * Get the values of the 'securityProperties' role.

* Role description: * null + * */ - @objid ("2de0cf19-c849-45fa-a32f-16c991803887") + @objid ("0d6fdbed-1167-41bb-b249-53e1b3f86d2d") public List getSecurityProperties() { List results = new ArrayList<>(); for (Dependency d : this.elt.getDependsOnDependency()) { @@ -261,7 +269,7 @@ public List getSecurityProperties() { *

Property description: *
null

*/ - @objid ("07f9fcce-dcc0-441a-abad-7801ea6c8f50") + @objid ("8e6c5db4-56cc-47b4-9a78-98a87dfc610b") public String getSpecification() { return this.elt.getTagValue(SecurityControl.MdaTypes.SPECIFICATION_TAGTYPE_ELT); } @@ -270,8 +278,9 @@ public String getSpecification() { * Get the value of the 'subDomain' role.

* Role description: * null + * */ - @objid ("45555159-98ff-4089-8212-ea61e911417c") + @objid ("4c4f40c0-1dc3-4c85-802a-628be382399d") public SecurityDomain getSubDomain() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(SecurityControl.MdaTypes.MDAASSOCDEP) @@ -283,7 +292,7 @@ public SecurityDomain getSubDomain() { return null; } - @objid ("a4401f53-2bd8-4993-aa6d-fc38be851a54") + @objid ("851ed28a-3781-48b2-86dc-6e2c65c89726") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -293,12 +302,13 @@ public int hashCode() { * Remove a value from the 'compositeSecurityMetrics' role.

* Role description: * null + * */ - @objid ("588abedb-16b1-4b1a-9fe6-d9e160b08294") + @objid ("fac6a47e-eea9-4b6b-be8f-d837d1b16a67") public boolean removeCompositeSecurityMetrics(final CompositeSecurityMetric obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getDependsOnDependency())) { - if (d.isStereotyped(SecurityControl.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(SecurityControl.MdaTypes.MDAASSOCDEP_ROLE), "")) + if (d.isStereotyped(SecurityControl.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(SecurityControl.MdaTypes.MDAASSOCDEP_ROLE), "compositeSecurityMetrics")) if (Objects.equals(d.getDependsOn(), obj.getElement())) { d.delete(); return true; @@ -312,12 +322,13 @@ public boolean removeCompositeSecurityMetrics(final CompositeSecurityMetric obj) * Remove a value from the 'rawSecurityMetrics' role.

* Role description: * null + * */ - @objid ("8a82e14c-913a-4ee6-b29d-0ad56e6024e2") + @objid ("a3039df4-b0b7-4fc6-bb77-4951de161f18") public boolean removeRawSecurityMetrics(final RawSecurityMetric obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getDependsOnDependency())) { - if (d.isStereotyped(SecurityControl.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(SecurityControl.MdaTypes.MDAASSOCDEP_ROLE), "")) + if (d.isStereotyped(SecurityControl.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(SecurityControl.MdaTypes.MDAASSOCDEP_ROLE), "rawSecurityMetrics")) if (Objects.equals(d.getDependsOn(), obj.getElement())) { d.delete(); return true; @@ -331,12 +342,13 @@ public boolean removeRawSecurityMetrics(final RawSecurityMetric obj) { * Remove a value from the 'securityProperties' role.

* Role description: * null + * */ - @objid ("80a3ae24-4483-4bd9-aa30-27cdb0592f64") + @objid ("323e6d6e-9458-46be-a5b9-eca37624d253") public boolean removeSecurityProperties(final SecurityAttribute obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getDependsOnDependency())) { - if (d.isStereotyped(SecurityControl.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(SecurityControl.MdaTypes.MDAASSOCDEP_ROLE), "")) + if (d.isStereotyped(SecurityControl.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(SecurityControl.MdaTypes.MDAASSOCDEP_ROLE), "securityProperties")) if (Objects.equals(d.getDependsOn(), obj.getElement())) { d.delete(); return true; @@ -350,8 +362,9 @@ public boolean removeSecurityProperties(final SecurityAttribute obj) { * Set the value of the 'domain' role.

* Role description: * null + * */ - @objid ("d115e285-fa9d-4509-9d17-0aa1d1870342") + @objid ("836d33fc-4af4-40f3-a580-9a40d0998359") public void setDomain(final SecurityDomain obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -376,7 +389,7 @@ public void setDomain(final SecurityDomain obj) { *

Property description: *
null

*/ - @objid ("064ae49e-1d3a-4000-a696-c1fcfd51c77f") + @objid ("f34bf2e9-ade1-4594-979e-eb1c61e75af2") public void setId(final String value) { this.elt.putTagValue(SecurityControl.MdaTypes.ID_TAGTYPE_ELT, value); } @@ -386,7 +399,7 @@ public void setId(final String value) { *

Property description: *
null

*/ - @objid ("05b7f71e-5fd4-4f99-a132-6381cad7943e") + @objid ("a44ea3fe-52a7-4019-a63e-dadc0094734c") public void setSpecification(final String value) { this.elt.putTagValue(SecurityControl.MdaTypes.SPECIFICATION_TAGTYPE_ELT, value); } @@ -395,8 +408,9 @@ public void setSpecification(final String value) { * Set the value of the 'subDomain' role.

* Role description: * null + * */ - @objid ("44741efd-4e98-41d0-bfe2-04b83cd46e7e") + @objid ("68b45cbd-934a-49d0-b917-42bac24ef91c") public void setSubDomain(final SecurityDomain obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -424,29 +438,29 @@ public List getChilds() { return result; } - @objid ("1c77fd24-93e2-4a63-aef4-32fef98c8e31") + @objid ("e50ec79a-05b8-4e2b-8789-eba2afbbdc37") protected SecurityControl(final Class elt) { super(elt); } @objid ("38164d2f-917e-4f65-a67d-254038d33f9e") public static final class MdaTypes { - @objid ("f6b249c2-aa1b-4fd4-9299-296f7cbd7e22") + @objid ("f7b9919e-d177-4c7e-b7a0-9d4956b86e94") public static Stereotype STEREOTYPE_ELT; - @objid ("9e5f80b0-0ff7-4200-bb13-944ddce565ef") + @objid ("a1cdc388-e162-47dc-999a-ca331647f769") public static TagType ID_TAGTYPE_ELT; - @objid ("c810114a-5557-4836-b247-842c1b584ee1") + @objid ("693b161e-cd16-4695-9f08-92e9c7d172c4") public static TagType SPECIFICATION_TAGTYPE_ELT; - @objid ("0fc4cdc5-f31b-4724-9e3e-696174bb20c6") + @objid ("ff586db0-29cf-41b6-bd58-29181d275f06") private static Stereotype MDAASSOCDEP; - @objid ("654afb6c-e0eb-499f-849e-06c4d289bfc1") + @objid ("928cc87a-4afd-460d-b558-e4bf5591f64f") private static TagType MDAASSOCDEP_ROLE; - @objid ("3236ccbf-9371-42fd-945b-9e6c0f2acc02") + @objid ("7e876d19-8d81-484c-be92-5744f47bc222") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "0cf7fb23-2fb5-4c33-8d52-c3db4e05bb34"); ID_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "d0865d90-2ead-4a1b-825d-1611f8206fcb"); @@ -456,11 +470,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 3b4389e1..a14a555b 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.securitymodel.standard.class_; @@ -36,10 +36,10 @@ */ @objid ("fddf4bb7-1f25-43d5-818c-d7ac3e4418a7") public class SecurityDomain extends FeatureClass { - @objid ("90e24743-b3ba-4db5-9e35-028ae2d02aed") + @objid ("f3ed47af-ffeb-4467-876c-922c3a5ac29a") public static final String STEREOTYPE_NAME = "SecurityDomain"; - @objid ("1b2eb9f4-34fb-4963-b92e-62d595c4e6fb") + @objid ("3a6c3451-e1b6-4a7b-aca0-bd1aa6219ce9") public static final String ID_TAGTYPE = "id"; /** @@ -50,7 +50,7 @@ public class SecurityDomain extends FeatureClass { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("42da6099-a574-46d8-b956-8e73b627ef34") + @objid ("bceed1f9-f947-4eec-a172-c3aa4f00a5a5") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, SecurityDomain.STEREOTYPE_NAME)); } @@ -60,7 +60,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link SecurityDomain} proxy on the created {@link Class}. */ - @objid ("e6d25a59-1505-423f-90f4-5f767ae3cf8d") + @objid ("c02e4389-dba0-43e7-a125-bb0d6adfd1a9") public static SecurityDomain create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, SecurityDomain.STEREOTYPE_NAME); @@ -68,41 +68,40 @@ 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. */ - @objid ("4a57143e-5483-488c-ac39-09e6b1ba8dbc") + @objid ("a6480ba5-b70a-42c3-8f3a-de54bec5cbf1") public static SecurityDomain instantiate(final Class obj) { return SecurityDomain.canInstantiate(obj) ? new SecurityDomain(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("161a66a7-8714-47d2-b94c-33e387ec3ffe") + @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 ("046b112b-410d-4db3-b76b-d9d8fc05b877") + @objid ("52b29911-fd65-4918-8e88-42c33925d69a") public void addSubDomains(final SecurityDomain obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -112,7 +111,7 @@ public void addSubDomains(final SecurityDomain obj) { } } - @objid ("302dccb2-781f-4cc1-8df4-5f1fc1ebadf4") + @objid ("82cee329-de6d-4d5c-8889-d15775dbacc7") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -129,11 +128,10 @@ 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 ("cac0df7f-9140-4a8d-afb6-8cbf568a97d0") + @objid ("cfcc984e-db56-4eed-b21e-31f329e5780a") @Override public Class getElement() { return (Class)super.getElement(); @@ -144,7 +142,7 @@ public Class getElement() { *

Property description: *
null

*/ - @objid ("32e0cf6f-ccf2-48e0-a8fb-9ecd22e644e3") + @objid ("8609e7a1-f8aa-4a18-81dc-c10f5090f6a2") public String getId() { return this.elt.getTagValue(SecurityDomain.MdaTypes.ID_TAGTYPE_ELT); } @@ -153,8 +151,9 @@ public String getId() { * Get the values of the 'subDomains' role.

* Role description: * null + * */ - @objid ("f21e54d6-faae-40f3-babb-e0ec408f478f") + @objid ("57a4d1eb-e71f-45e6-93a6-e22d851b6e02") public List getSubDomains() { List results = new ArrayList<>(); for (Dependency d : this.elt.getImpactedDependency()) { @@ -167,7 +166,7 @@ public List getSubDomains() { return Collections.unmodifiableList(results); } - @objid ("98e229ce-5e2e-4a45-bb1a-6acb8ebc003d") + @objid ("2f987ce9-b7a1-48d1-a791-72f507d0c633") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -177,8 +176,9 @@ public int hashCode() { * Remove a value from 'subDomains' role.

* Role description: * null + * */ - @objid ("f6d335d8-e3d6-4cb5-8edd-a88ef8f3f689") + @objid ("1965b806-1086-44ae-ba72-e6835f6e26f9") public boolean removeSubDomains(final SecurityDomain obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getImpactedDependency())) { @@ -197,7 +197,7 @@ public boolean removeSubDomains(final SecurityDomain obj) { *

Property description: *
null

*/ - @objid ("bd8be840-9d84-44f8-b270-bd6fdb44b8b7") + @objid ("a9ff5e48-b2e4-4026-96c0-b912151c617e") public void setId(final String value) { this.elt.putTagValue(SecurityDomain.MdaTypes.ID_TAGTYPE_ELT, value); } @@ -210,26 +210,26 @@ public List getChilds() { return result; } - @objid ("aa239182-6e6f-4bd9-97b4-bb30a7f2aed7") + @objid ("38675813-5cf1-4a07-8108-099ca0f095e2") protected SecurityDomain(final Class elt) { super(elt); } @objid ("7f4f621d-eb07-4bdf-a3ff-518d7382ce87") public static final class MdaTypes { - @objid ("9ca40a35-95d0-4f87-9fab-a72cb124be64") + @objid ("2588d8cc-5540-4f06-8ff6-ad10c8c7c1a3") public static Stereotype STEREOTYPE_ELT; - @objid ("edb09c83-b2f5-41f0-abaf-a620e6eab7ad") + @objid ("92955ec8-337f-48d7-acf3-8ae9f94afe67") public static TagType ID_TAGTYPE_ELT; - @objid ("bd6e2083-ecc9-4347-801f-c6b7c6766459") + @objid ("7414fb72-5d9a-4f3d-b232-849a7bddfbbc") private static Stereotype MDAASSOCDEP; - @objid ("e810f19f-26de-4cba-8cf2-01e5273c0dbb") + @objid ("9cd5d796-0ec0-497d-a2cc-8641ca45ba63") private static TagType MDAASSOCDEP_ROLE; - @objid ("4dc058b5-b643-4ce9-a669-d7e684fdf3aa") + @objid ("c183dc9c-0779-4334-9c0a-d4c62f7e308c") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "1487e8d9-e360-40e9-85a2-46b131aa86ef"); ID_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "c7e2415a-e07a-4b88-8369-3496216f8174"); @@ -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 85de1d40..6a7c15ba 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.securitymodel.standard.class_; @@ -36,7 +36,7 @@ */ @objid ("14701eb6-66e6-421f-bc02-e050f9e15799") public class SecuritySLO extends ServiceLevelObjective { - @objid ("31b58769-116c-475d-9d0d-c8d3e27b40d0") + @objid ("e969eea1-6197-4b5f-a54c-efc5eea40450") public static final String STEREOTYPE_NAME = "SecuritySLO"; /** @@ -47,7 +47,7 @@ public class SecuritySLO extends ServiceLevelObjective { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("1eb0ebe1-11b9-48f6-8ce8-2cc07adac651") + @objid ("602567ee-4fb8-4eb1-88ec-7853c6f16ad2") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, SecuritySLO.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link SecuritySLO} proxy on the created {@link Class}. */ - @objid ("fbde96de-37aa-4d26-8976-d40f0977688d") + @objid ("0c3616b0-434e-4a56-b97f-8d756ab0a892") public static SecuritySLO create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, SecuritySLO.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("79bb3775-5e2a-4341-8f73-d249ec653649") + @objid ("daac1e41-763c-4c47-ad93-b14973b51dfe") public static SecuritySLO instantiate(final Class obj) { return SecuritySLO.canInstantiate(obj) ? new SecuritySLO(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("e11f8c3f-590a-4312-a0b4-4be23e4e4950") + @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 ("e52e27b0-ea57-46e0-9f05-711b9ce994bd") + @objid ("a83fcd55-e06e-49c0-8a20-8a19f5644db0") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,17 +109,16 @@ 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 ("58a651da-efae-4b24-99b9-7c1097c9d1ed") + @objid ("3f34b02e-4ae5-467a-aecf-bccec51e3473") @Override public Class getElement() { return (Class)super.getElement(); } - @objid ("2271343c-a090-41be-8364-7b44e35552a3") + @objid ("bb655cfc-e5fd-4f7f-98b8-77549f95398f") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -135,23 +132,23 @@ public List getChilds() { return result; } - @objid ("b64c6cbb-a5d9-4416-9034-a5d075cdd88a") + @objid ("9c35fd9c-5f78-4f9c-a0e0-888e12c85891") protected SecuritySLO(final Class elt) { super(elt); } @objid ("617e4bcc-2615-4bc6-b9f6-51075bd242b2") public static final class MdaTypes { - @objid ("becbb700-d17c-4da9-b1be-f18497d61c47") + @objid ("3161db5d-0f87-4828-8436-074610d79fc4") public static Stereotype STEREOTYPE_ELT; - @objid ("835b4e25-1901-4cd5-b3e0-b7f6539f5da7") + @objid ("69e3ed0a-a628-499b-9791-7e63afbce6e0") private static Stereotype MDAASSOCDEP; - @objid ("c73c48e9-d15e-4517-bd23-f19bc1ff08b2") + @objid ("93f15487-fcf7-46b3-ac1a-9000892a1f83") private static TagType MDAASSOCDEP_ROLE; - @objid ("ee28ae54-06f2-4fca-ba9a-91435eabd671") + @objid ("4b8ea6fe-b62a-4c0d-badc-92d0e4288721") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "8fcb0a39-47f5-4d53-9540-bede515f2431"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -159,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/securitymodel/standard/instance/SecurityMetricInstance.java b/src/main/java/fr/softeam/cameldesigner/api/securitymodel/standard/instance/SecurityMetricInstance.java index 106f4f9d..060dffda 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.securitymodel.standard.instance; @@ -36,7 +36,7 @@ */ @objid ("db549854-9aae-4283-9b11-2038f1326191") public class SecurityMetricInstance extends MetricInstance { - @objid ("c14dea73-9100-4aa4-b2f2-1543f5e37936") + @objid ("01e3660a-30f4-4cda-b443-262d0f59f1d0") public static final String STEREOTYPE_NAME = "SecurityMetricInstance"; /** @@ -47,7 +47,7 @@ public class SecurityMetricInstance extends MetricInstance { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("4cfc8f80-5296-4ebe-aba4-9d114496f1d4") + @objid ("51074eee-5a72-49c1-abe2-2f322a6f424f") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Instance) && ((Instance) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, SecurityMetricInstance.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link SecurityMetricInstance} proxy on the created {@link Instance}. */ - @objid ("468e72aa-be50-4b1f-b592-e7cf5536e1e9") + @objid ("4326c1bd-9deb-46ca-8800-b0e288668fd5") public static SecurityMetricInstance create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Instance"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, SecurityMetricInstance.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("6cca31d1-d529-4bca-a5d1-4483a157c4cc") + @objid ("6405daae-089d-4cce-bc9f-59489f62355c") public static SecurityMetricInstance instantiate(final Instance obj) { return SecurityMetricInstance.canInstantiate(obj) ? new SecurityMetricInstance(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("1b57a690-63a3-49db-b6da-66fa35bc0ec3") + @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 ("6b989249-4157-4e22-b8a2-2c6691bfdb09") + @objid ("8993b7fc-9e91-4728-9733-eca1c35aeb99") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,17 +109,16 @@ 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 ("0d1db1e6-2e5b-4bc9-8690-d898a65dccb3") + @objid ("985d605a-c6f9-4a29-ac54-eea5b5b0ced3") @Override public Instance getElement() { return (Instance)super.getElement(); } - @objid ("da116366-df44-4702-8ebc-f43e87305b44") + @objid ("408ab52e-6bb4-4bdf-8c29-edbb9bf669c5") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -135,23 +132,23 @@ public List getChilds() { return result; } - @objid ("fbd1f3b5-d073-4250-bb11-a75fbb5d79a2") + @objid ("ffdc1d26-b6f1-4ae2-a498-7eeb165780c6") protected SecurityMetricInstance(final Instance elt) { super(elt); } @objid ("91cf5d57-7dbc-49f4-b2a7-30e61c6807c9") public static final class MdaTypes { - @objid ("089ce990-ed7d-4250-9538-4938f687c230") + @objid ("26f55ad5-c78f-41df-9e34-64d2a3822a82") public static Stereotype STEREOTYPE_ELT; - @objid ("55f5a0cd-3294-43cf-9579-7ca6e1e68e69") + @objid ("0f9333d1-e90d-4f85-bc71-1f8f13905103") private static Stereotype MDAASSOCDEP; - @objid ("2bdf1521-c246-4456-9bae-a173f145d30d") + @objid ("8a591256-da1d-4491-a59c-f868dd054167") private static TagType MDAASSOCDEP_ROLE; - @objid ("aa9351e9-a38c-4470-af53-ad947e65050d") + @objid ("ec1beab5-30b4-493b-8962-4f501dff8606") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "4cb7cfa4-64dc-42a4-9178-af3560cfcf40"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -159,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/securitymodel/standard/package_/SecurityModel.java b/src/main/java/fr/softeam/cameldesigner/api/securitymodel/standard/package_/SecurityModel.java index cb3929e2..97337748 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 @@ -1,14 +1,15 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.securitymodel.standard.package_; import java.util.ArrayList; import java.util.Collections; import java.util.List; +import java.util.Objects; import com.modeliosoft.modelio.javadesigner.annotations.objid; import fr.softeam.cameldesigner.api.CamelDesignerProxyFactory; import fr.softeam.cameldesigner.api.ICamelDesignerPeerModule; @@ -25,11 +26,17 @@ import fr.softeam.cameldesigner.api.securitymodel.standard.class_.SecuritySLO; import fr.softeam.cameldesigner.api.securitymodel.standard.instance.SecurityMetricInstance; import fr.softeam.cameldesigner.impl.CamelDesignerModule; +import org.modelio.api.modelio.model.IModelingSession; +import org.modelio.api.modelio.model.PropertyConverter; import org.modelio.api.module.context.IModuleContext; +import org.modelio.metamodel.mmextensions.infrastructure.ExtensionNotFoundException; +import org.modelio.metamodel.uml.infrastructure.Dependency; 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.infrastructure.properties.PropertyDefinition; +import org.modelio.metamodel.uml.infrastructure.properties.PropertyTableDefinition; import org.modelio.metamodel.uml.statik.Instance; import org.modelio.metamodel.uml.statik.Package; import org.modelio.vcore.smkernel.mapi.MObject; @@ -41,7 +48,7 @@ */ @objid ("558acef6-15e9-4032-97b3-66eea7c497d6") public class SecurityModel extends SubModel { - @objid ("25b87e2c-03ff-4c76-acf2-7a2a931c8a15") + @objid ("191dcea9-4ce2-4e79-aa99-5caf10d0759d") public static final String STEREOTYPE_NAME = "SecurityModel"; /** @@ -52,7 +59,7 @@ public class SecurityModel extends SubModel { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("508a794a-7130-4486-90ca-ca9d6fba1da0") + @objid ("a0de2f76-f48d-4995-963a-0a0f5c3542ac") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Package) && ((Package) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, SecurityModel.STEREOTYPE_NAME)); } @@ -62,7 +69,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link SecurityModel} proxy on the created {@link Package}. */ - @objid ("f430ba8a-c6ad-41d6-bf66-6750ee76d178") + @objid ("0b8f973a-a201-4c44-a5f9-b01e20868059") public static SecurityModel create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Package"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, SecurityModel.STEREOTYPE_NAME); @@ -70,41 +77,40 @@ 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. */ - @objid ("b8fb0fa1-8bb2-49f7-9379-aa17bc6b6c89") + @objid ("3a1fa0e0-f19f-4551-82c1-cd6acc61064e") public static SecurityModel instantiate(final Package obj) { return SecurityModel.canInstantiate(obj) ? new SecurityModel(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("d082d1ba-75cd-4691-bb28-ccbdf0e8c35e") + @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 ("8b9a1d1b-7761-4d7e-add6-8a2d8b31274a") + @objid ("b7ab98ec-7128-4e33-aca2-07b36864d3a9") public void addCompositeSecurityInstances(final CompositeSecurityMetric obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -114,8 +120,9 @@ public void addCompositeSecurityInstances(final CompositeSecurityMetric obj) { * Add a value to the 'rawSecurityMetrics' role.

* Role description: * null + * */ - @objid ("ed87b55d-de99-4a10-a4ef-c4fba1664be7") + @objid ("52340c4e-2100-45e1-bb60-a790de733b27") public void addRawSecurityMetrics(final RawSecurityMetric obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -125,8 +132,9 @@ public void addRawSecurityMetrics(final RawSecurityMetric obj) { * Add a value to the 'securityAttributes' role.

* Role description: * null + * */ - @objid ("b360c5b8-dde8-45b2-931a-7ffa86185bd4") + @objid ("fa506e2b-950a-48c8-ac87-86d9d525f63e") public void addSecurityAttributes(final SecurityAttribute obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -136,8 +144,9 @@ public void addSecurityAttributes(final SecurityAttribute obj) { * Add a value to the 'securityControls' role.

* Role description: * null + * */ - @objid ("9766a027-74ae-4de8-bf0d-ed79b4ed8478") + @objid ("1f175996-46c2-4ad0-88d5-55833180f546") public void addSecurityControls(final SecurityControl obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -147,8 +156,9 @@ public void addSecurityControls(final SecurityControl obj) { * Add a value to the 'securityDomains' role.

* Role description: * null + * */ - @objid ("f0a5763d-cb67-4ec8-9932-745770c5ba25") + @objid ("f6f1eb33-df33-419f-92a7-6f7b000c25a9") public void addSecurityDomains(final SecurityDomain obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -158,8 +168,9 @@ public void addSecurityDomains(final SecurityDomain obj) { * Add a value to the 'securityMetricInstances' role.

* Role description: * null + * */ - @objid ("e5fe75b3-f7a0-4859-8e0b-12fd33c05caa") + @objid ("b801f888-5cf5-4885-be52-eec8102acda4") public void addSecurityMetricInstances(final SecurityMetricInstance obj) { if (obj!=null) ((Package) this.elt).getDeclared().add(obj.getElement()); @@ -169,8 +180,9 @@ public void addSecurityMetricInstances(final SecurityMetricInstance obj) { * Add a value to the 'securityRequirements' role.

* Role description: * null + * */ - @objid ("fa44f35d-ef13-4970-b174-6d10c5b67b93") + @objid ("ee39e700-2a7e-4ae8-b63f-7a976f936efd") public void addSecurityRequirements(final SecurityRequirement obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -180,14 +192,15 @@ public void addSecurityRequirements(final SecurityRequirement obj) { * Add a value to the 'securitySLOs' role.

* Role description: * null + * */ - @objid ("fb5cd900-c93f-4694-bcfa-89b28952a59a") + @objid ("311f1de9-f0bc-415f-8bfe-6b31cefc7586") public void addSecuritySLOs(final SecuritySLO obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); } - @objid ("fb515abc-4f5e-40ce-85d5-503e7bd6fe3f") + @objid ("aca7c1c6-2f90-4b73-b0df-eee3a1ec2417") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -207,8 +220,9 @@ public boolean equals(final Object obj) { * Get the value to the 'camelModel' role.

* Role description: * null + * */ - @objid ("67809fb9-ddeb-4617-8797-c0f014d25b25") + @objid ("58bd0cb3-aa23-4a3c-8f4f-300f28bfb1aa") public CamelModel getCamelModel() { return (CamelModel)CamelDesignerProxyFactory.instantiate(((Package) this.elt).getOwner(), CamelModel.STEREOTYPE_NAME); } @@ -217,23 +231,23 @@ public CamelModel getCamelModel() { * Get the values of the 'compositeSecurityInstances' role.

* Role description: * null + * */ - @objid ("fe517735-bbb3-475d-8b41-beb24b53599e") + @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 ("e298fc77-6242-4642-b8f0-4a59d494f022") + @objid ("f602ee22-8dfa-4469-91a8-758ea5724533") @Override public Package getElement() { return (Package)super.getElement(); @@ -243,14 +257,15 @@ public Package getElement() { * Get the values of the 'rawSecurityMetrics' role.

* Role description: * null + * */ - @objid ("9d99a2f4-ebfc-40c4-9c83-f12fd70dfaab") + @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); } @@ -258,16 +273,17 @@ public List getRawSecurityMetrics() { * Get the values of the 'securityAttributes' role.

* Role description: * null + * */ - @objid ("971034ac-9a67-4278-8d94-b5cbb3dcf84e") + @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); } @@ -275,14 +291,15 @@ public List getSecurityAttributes() { * Get the values of the 'securityControls' role.

* Role description: * null + * */ - @objid ("1fd97841-1f2e-4f70-a916-3ea4ea65490e") + @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); } @@ -290,14 +307,15 @@ public List getSecurityControls() { * Get the values of the 'securityDomains' role.

* Role description: * null + * */ - @objid ("af72f8c6-aee6-4fbd-b941-ba6d3d076c59") + @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); } @@ -305,14 +323,15 @@ public List getSecurityDomains() { * Get the values of the 'securityMetricInstances' role.

* Role description: * null + * */ - @objid ("6ad88aad-7257-42a2-895d-985f77c396aa") + @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); } @@ -320,14 +339,15 @@ public List getSecurityMetricInstances() { * Get the values of the 'securityRequirements' role.

* Role description: * null + * */ - @objid ("e6875c27-beb6-4328-a1ea-91ad7a286993") + @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); } @@ -335,18 +355,19 @@ public List getSecurityRequirements() { * Get the values of the 'securitySLOs' role.

* Role description: * null + * */ - @objid ("65156e96-4944-425a-a82c-35046d7c7e33") + @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); } - @objid ("c634836f-fb59-4406-8c10-2b58fdfd9da6") + @objid ("8627a33b-522f-4932-a89d-642ca2d694f7") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -356,8 +377,9 @@ public int hashCode() { * Remove a value from the 'compositeSecurityInstances' role.

* Role description: * null + * */ - @objid ("240db7d9-eb6a-41e8-9962-baef1eb2f5c5") + @objid ("06c397b7-eb54-4580-8608-2ada324c547d") public boolean removeCompositeSecurityInstances(final CompositeSecurityMetric obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -366,8 +388,9 @@ public boolean removeCompositeSecurityInstances(final CompositeSecurityMetric ob * Remove a value from the 'rawSecurityMetrics' role.

* Role description: * null + * */ - @objid ("054cda32-59a1-460b-be6c-443de3bd1dff") + @objid ("db66802b-dbd3-4764-9d0f-37ae86ff0cc0") public boolean removeRawSecurityMetrics(final RawSecurityMetric obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -376,8 +399,9 @@ public boolean removeRawSecurityMetrics(final RawSecurityMetric obj) { * Remove a value from the 'securityAttributes' role.

* Role description: * null + * */ - @objid ("da421485-03d7-4a77-9eb2-e9423decb4bf") + @objid ("2ac724ec-e868-4467-ac5c-a5882f0f2112") public boolean removeSecurityAttributes(final SecurityAttribute obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -386,8 +410,9 @@ public boolean removeSecurityAttributes(final SecurityAttribute obj) { * Remove a value from the 'securityControls' role.

* Role description: * null + * */ - @objid ("7902d0ff-8e56-485c-ae36-0b278e59c1b5") + @objid ("b01b8eb3-47d4-4b33-96ce-efc4b96a43af") public boolean removeSecurityControls(final SecurityControl obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -396,8 +421,9 @@ public boolean removeSecurityControls(final SecurityControl obj) { * Remove a value from the 'securityDomains' role.

* Role description: * null + * */ - @objid ("a5facb49-bbd1-4ed4-9a88-5df03f30ea30") + @objid ("f9378e76-6f81-4127-99c1-8cc35041c80f") public boolean removeSecurityDomains(final SecurityDomain obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -406,8 +432,9 @@ public boolean removeSecurityDomains(final SecurityDomain obj) { * Remove a value from the 'securityMetricInstances' role.

* Role description: * null + * */ - @objid ("503ad549-59c3-4b78-9f97-a4285e96e6dc") + @objid ("111e65ce-f8e2-4c4e-b4df-5ae1b16f00f5") public boolean removeSecurityMetricInstances(final SecurityMetricInstance obj) { return (obj!=null)? ((Package) this.elt).getDeclared().remove(obj.getElement()) : false; } @@ -416,8 +443,9 @@ public boolean removeSecurityMetricInstances(final SecurityMetricInstance obj) { * Remove a value from the 'securityRequirements' role.

* Role description: * null + * */ - @objid ("0cf87855-7384-4c87-bbc2-b7e0701f63ad") + @objid ("31db9d60-319f-4ad7-8781-b2d2583b495e") public boolean removeSecurityRequirements(final SecurityRequirement obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -426,8 +454,9 @@ public boolean removeSecurityRequirements(final SecurityRequirement obj) { * Remove a value from the 'securitySLOs' role.

* Role description: * null + * */ - @objid ("9a8b64cd-3569-473b-8771-a68f6dc20f5f") + @objid ("363a9a5f-eb04-46a2-928f-184bc3f5f62b") public boolean removeSecuritySLOs(final SecuritySLO obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -436,8 +465,9 @@ public boolean removeSecuritySLOs(final SecuritySLO obj) { * Set the value of the 'camelModel' role.

* Role description: * null + * */ - @objid ("367febed-3ce4-4398-a10b-1c791ca14558") + @objid ("5f682f2e-7895-4fae-a4a6-dadada73637c") public void setCamelModel(final CamelModel obj) { ((Package) this.elt).setOwner((obj != null) ? obj.getElement() : null); } @@ -458,23 +488,23 @@ public List getChilds() { return result; } - @objid ("11fd141d-49d4-4d34-8e88-15ced1f55a1e") + @objid ("1914d8e3-ccdc-4d9e-bcd0-58cd889f6805") protected SecurityModel(final Package elt) { super(elt); } @objid ("2405f496-8209-4c75-b1e1-0df64f112617") public static final class MdaTypes { - @objid ("5e02bd0a-ff45-4a70-b21b-2c4c2a65baeb") + @objid ("20db0553-3c51-400a-8fbc-b9a3200bef5f") public static Stereotype STEREOTYPE_ELT; - @objid ("c7036e2f-a5c2-4526-b3fb-c4c804c65529") + @objid ("528a0e95-fb57-41e1-a3b5-cafc60a556f5") private static Stereotype MDAASSOCDEP; - @objid ("e0009524-c4cb-42bd-b6a5-57276571ec17") + @objid ("506f818c-4eee-4694-8aca-67d3682bde28") private static TagType MDAASSOCDEP_ROLE; - @objid ("18b4ead0-9ffa-4bb9-bb27-aa5afa4b43da") + @objid ("f01f542d-34e1-444a-accf-e0f39c098a8b") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "61f4f16b-0ac0-4a06-a279-b5b28dc86d01"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -482,11 +512,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 70ee33bd..96836ea8 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.typemodel.standard.class_; @@ -33,10 +33,10 @@ */ @objid ("189044d4-f590-4d4b-94d6-f2503fd76c82") public class BooleanValue extends Value { - @objid ("70f90d5b-f76b-4c30-899b-90a31b4898c4") + @objid ("f06d9bfa-36e4-4085-aa00-c062dec1d2f4") public static final String STEREOTYPE_NAME = "BooleanValue"; - @objid ("bbe29092-8ed1-4c2a-a0ca-cd722681f5a9") + @objid ("46c9f4a6-52d5-4434-bf12-75362e1acdc6") public static final String VALUE_TAGTYPE = "value"; /** @@ -47,7 +47,7 @@ public class BooleanValue extends Value { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("c7f1d09e-9a82-46bf-806c-67db483e1ef2") + @objid ("57cb2274-7708-4151-8106-d765b2a0e7d0") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, BooleanValue.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link BooleanValue} proxy on the created {@link Class}. */ - @objid ("3ab74370-2876-405b-8ee9-c22e67ed45e8") + @objid ("54f2338e-1489-407c-a90d-b1799776b869") public static BooleanValue create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, BooleanValue.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("bcde8257-8fdc-4a7a-82d1-3211effb9f10") + @objid ("26eebab3-7b6d-4387-9acf-a73bd3704f33") public static BooleanValue instantiate(final Class obj) { return BooleanValue.canInstantiate(obj) ? new BooleanValue(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("9fdd52fd-fb21-42d1-bb76-e33acb06f57d") + @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 ("daab9a41-8892-4165-8280-862bcc7a520c") + @objid ("c8abba04-0a18-46c6-a913-3d33106f4cfb") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,17 +109,16 @@ 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 ("4421d703-10d3-46c1-824e-beef401862d1") + @objid ("94cb6415-b805-4499-9c37-f937858a45f6") @Override public Class getElement() { return (Class)super.getElement(); } - @objid ("72f4db62-d066-45f2-a4b8-e791c6dce580") + @objid ("089c5919-e68d-45a3-bbb2-4a5eb80e7e14") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -132,7 +129,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("08e78599-377c-4259-8508-ca084fd5fe6a") + @objid ("03e90ea7-0eb6-493b-9323-8ef5d339d8e3") public boolean isValue() { return this.elt.isTagged(BooleanValue.MdaTypes.VALUE_TAGTYPE_ELT); } @@ -142,7 +139,7 @@ public boolean isValue() { *

Property description: *
null

*/ - @objid ("9a5808e0-f4cc-4195-b096-7fea7d346ac0") + @objid ("d925bfef-6a86-4ff9-a798-1d870efd4dfd") public void setValue(final boolean value) { if (value) CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createTaggedValue(BooleanValue.MdaTypes.VALUE_TAGTYPE_ELT, this.elt); @@ -150,26 +147,26 @@ public void setValue(final boolean value) { this.elt.removeTags(BooleanValue.MdaTypes.VALUE_TAGTYPE_ELT); } - @objid ("d7866782-e632-457b-883f-4f4b3762abd4") + @objid ("cb94ab3f-313a-4a02-a1f8-4010836903f8") protected BooleanValue(final Class elt) { super(elt); } @objid ("2d228821-481c-49eb-a387-abae42f72daf") public static final class MdaTypes { - @objid ("61ddac33-0219-4dc1-afa1-819de00e0aaa") + @objid ("f04498ad-c3e3-42b4-8440-cb3fd812d2c5") public static Stereotype STEREOTYPE_ELT; - @objid ("a91a313f-7155-4b89-8fb0-fc4a988cac61") + @objid ("ab4b3ee9-3d5b-4b53-ac81-9025f1067e33") public static TagType VALUE_TAGTYPE_ELT; - @objid ("3629b47d-1ab5-4971-9548-6bfcb8b44205") + @objid ("a6982e80-4528-4a69-844a-9b33ea2b6894") private static Stereotype MDAASSOCDEP; - @objid ("5d4db8f9-dec2-429d-a2cc-e93e29b7e174") + @objid ("21a5ba9d-7a9d-4fc1-9405-bc79b570a5de") private static TagType MDAASSOCDEP_ROLE; - @objid ("98acafa4-7d3f-4092-ab29-23d30a8f315c") + @objid ("f575ef14-fd1b-4bd2-81c0-444074d832d5") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "b4355a7e-9eca-4a9e-8c4c-d49344a0c9a5"); VALUE_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "2fabd851-ad25-472c-927a-770ef9217dd9"); @@ -178,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_/DoubleValue.java b/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/class_/DoubleValue.java index 67486f35..3f2107ff 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.typemodel.standard.class_; @@ -33,10 +33,10 @@ */ @objid ("cc20daad-6f47-4d3a-babd-121eb172a4cb") public class DoubleValue extends NumericValue { - @objid ("ba8b3ad4-d860-4d60-a8e5-d5f8c1b305ba") + @objid ("42092378-2c01-4567-aa3e-45d814c8ddeb") public static final String STEREOTYPE_NAME = "DoubleValue"; - @objid ("7f7f6803-cde2-4e99-a284-61edd9e4afd4") + @objid ("a68ffb57-9fe9-4af3-b5d9-93a884b357bf") public static final String VALUE_TAGTYPE = "value"; /** @@ -47,7 +47,7 @@ public class DoubleValue extends NumericValue { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("9608febf-c551-4494-8c6b-422704a3be10") + @objid ("aa8b51e3-e3a7-412c-8754-72a36ff6c2a6") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, DoubleValue.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link DoubleValue} proxy on the created {@link Class}. */ - @objid ("5c1b0609-012a-4168-a76d-cd9a11a20b1e") + @objid ("80db1fe2-4758-48f9-8278-5c30fffe2066") public static DoubleValue create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, DoubleValue.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("b414db9f-d411-4e12-92dc-6b1ec66ded2d") + @objid ("a4db0978-2162-46a0-b8a4-1157788df767") public static DoubleValue instantiate(final Class obj) { return DoubleValue.canInstantiate(obj) ? new DoubleValue(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("34569fa7-3505-44cf-bca2-ab0dd2a5c03f") + @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 ("b6463eb0-6489-493c-9043-fc668b392560") + @objid ("8175ef82-94ce-4c00-bb0b-e73e471d6801") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,11 +109,10 @@ 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 ("484b3b93-9ad5-4176-b699-b581e52cee44") + @objid ("450e60b7-bd6c-4888-b547-daa38197175b") @Override public Class getElement() { return (Class)super.getElement(); @@ -126,12 +123,12 @@ public Class getElement() { *

Property description: *
null

*/ - @objid ("66ae074e-39fa-4f42-91fe-96a4351fc146") + @objid ("6e2a07f2-1391-4512-954d-1d11eb3aa0fd") public String getValue() { return this.elt.getTagValue(DoubleValue.MdaTypes.VALUE_TAGTYPE_ELT); } - @objid ("8855c35a-8418-408d-8929-4947d5acc9f4") + @objid ("8bdd89ec-f200-47d6-933f-8b2efd8d23fd") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -142,31 +139,31 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("6f9b964b-183e-4b84-9280-6106c51dd57c") + @objid ("eebf8e3f-7d52-4e31-a5bb-d7511cbdde83") public void setValue(final String value) { this.elt.putTagValue(DoubleValue.MdaTypes.VALUE_TAGTYPE_ELT, value); } - @objid ("fa3d4353-ac40-4804-a67c-0a395968c9bf") + @objid ("ff1e4c73-99eb-4dce-8229-558e87f80312") protected DoubleValue(final Class elt) { super(elt); } @objid ("0478aee9-2727-4d68-be3a-307572bc0a9f") public static final class MdaTypes { - @objid ("6e5ba767-866c-4c52-9fd2-a2b260501fe7") + @objid ("56c83fc5-d727-4eae-9d28-e856ac93ec4b") public static Stereotype STEREOTYPE_ELT; - @objid ("b37240d8-fc54-4f73-a5c2-e22884314b1a") + @objid ("9bdd335f-bf27-4bab-8db0-da5ad7594e3f") public static TagType VALUE_TAGTYPE_ELT; - @objid ("6bab7652-22b2-4d9c-82b2-2c7bd9933bec") + @objid ("ac96a09f-4ca1-49d4-8205-6a4610a694bb") private static Stereotype MDAASSOCDEP; - @objid ("46732ede-9fa8-4941-b29c-17b447c05039") + @objid ("fdd5ea4f-37cf-4c55-a765-be00cd57a998") private static TagType MDAASSOCDEP_ROLE; - @objid ("3050bdad-4385-437f-9dbc-cf89eb3f52d4") + @objid ("6384e0e7-3342-467d-8de3-3dab71aaa512") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "6f7f3c3b-3812-4284-9665-7696d52500f2"); VALUE_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "8e0fd000-262b-4aa6-9b35-fea753d10683"); @@ -175,11 +172,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 af791a9b..3f49b8c9 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.typemodel.standard.class_; @@ -33,10 +33,10 @@ */ @objid ("c564a192-5f95-43db-852f-76f717dcdaa6") public class FloatValue extends NumericValue { - @objid ("f91e021d-314b-4d7f-89d0-495bf742ed40") + @objid ("f8090c0b-23f8-4269-8d8e-0debc4c4a950") public static final String STEREOTYPE_NAME = "FloatValue"; - @objid ("e2d79099-5e46-4009-be04-012f94ef1faf") + @objid ("bedee757-ef43-4bc8-ae5e-f34211dacc3c") public static final String VALUE_TAGTYPE = "value"; /** @@ -47,7 +47,7 @@ public class FloatValue extends NumericValue { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("bcd7fba3-45da-4c4b-ace9-4fe7267dd1ed") + @objid ("731a680c-3219-4208-83d1-efc88ee78c70") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, FloatValue.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link FloatValue} proxy on the created {@link Class}. */ - @objid ("63a666f0-593f-4c55-b473-cc1323a667df") + @objid ("c5df5b1a-034f-4bd4-afcb-4df5b68dc5f4") public static FloatValue create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, FloatValue.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("614a4602-1c29-43aa-9378-b72c6061ac2f") + @objid ("49d8b11c-d765-4fa6-8ce0-5102f4605155") public static FloatValue instantiate(final Class obj) { return FloatValue.canInstantiate(obj) ? new FloatValue(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("2a3c1bc6-1e4a-4769-994c-c3a2941ce4c1") + @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 ("a06f6012-6658-4420-a3f3-173ff32cc073") + @objid ("4f975dac-4e91-4cd2-a4b3-81a8472ce949") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,11 +109,10 @@ 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 ("a3b27d1b-d6fb-49c6-bd47-c391e2d39027") + @objid ("dba7e90b-8974-4c53-b0dc-c9aad2b5a686") @Override public Class getElement() { return (Class)super.getElement(); @@ -126,12 +123,12 @@ public Class getElement() { *

Property description: *
null

*/ - @objid ("a8126aa8-bf91-4c6b-b6fb-9e891eaa4708") + @objid ("8ea6b598-986e-4403-9174-fe6ee5137fc8") public String getValue() { return this.elt.getTagValue(FloatValue.MdaTypes.VALUE_TAGTYPE_ELT); } - @objid ("5d58d725-787d-4acf-a0f3-d40f00c1ee50") + @objid ("28870ed7-8f5a-4362-9141-08698807865d") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -142,31 +139,31 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("61a409e4-a2b0-485f-9ef4-c1efd61553e8") + @objid ("f795e756-deff-493d-9268-067399243b94") public void setValue(final String value) { this.elt.putTagValue(FloatValue.MdaTypes.VALUE_TAGTYPE_ELT, value); } - @objid ("08d9fe32-7478-4bcf-a8f6-74df5444733d") + @objid ("a7922f49-4df3-429e-ac08-598169fe5272") protected FloatValue(final Class elt) { super(elt); } @objid ("95a225c8-f353-4ac6-a77b-c22f2f7d009e") public static final class MdaTypes { - @objid ("cfbd4f79-7833-421f-bcdf-7c2e13abd5cd") + @objid ("b46f35fc-9282-4718-9c80-4a3e792b4fd6") public static Stereotype STEREOTYPE_ELT; - @objid ("f288e2ef-c484-4e31-8070-996865fba51a") + @objid ("92674483-045c-4446-938b-55e073304f7e") public static TagType VALUE_TAGTYPE_ELT; - @objid ("4897901d-6a0a-4846-aadd-ec82ad2dd78d") + @objid ("986951f6-3146-4cc1-b908-b4e6516924e5") private static Stereotype MDAASSOCDEP; - @objid ("1ffd23e9-1635-4b5c-b6e8-6ff2d9a04e1b") + @objid ("71471517-64c4-4199-89e5-153059884883") private static TagType MDAASSOCDEP_ROLE; - @objid ("539e7ce3-62a8-4891-b30d-7995a2b7ebf5") + @objid ("75f4be14-1191-425d-8084-2b695f7a1b2e") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "b1f1ce0e-5329-4ea6-ad29-efcecf0e3fd3"); VALUE_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "39512df5-0c85-431c-a6e2-bda678216414"); @@ -175,11 +172,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 260bb77a..9b9b3307 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.typemodel.standard.class_; @@ -33,10 +33,10 @@ */ @objid ("55226fdb-80c7-4d63-9159-946742bab14b") public class IntValue extends NumericValue { - @objid ("8c6e0eb3-97b1-46f1-bd6e-507cbab5633c") + @objid ("625fab0f-fa75-436f-a449-0ff48dc6b2a2") public static final String STEREOTYPE_NAME = "IntValue"; - @objid ("2508fd32-a673-43db-afb2-65636c7d2b70") + @objid ("bcc2ebaf-aa9e-42f5-a884-c465309c1a62") public static final String VALUE_TAGTYPE = "value"; /** @@ -47,7 +47,7 @@ public class IntValue extends NumericValue { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("4e6b9d64-ded5-43be-8988-65ef990f041d") + @objid ("735940da-bc8f-4cef-82cf-b217832508e1") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, IntValue.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link IntValue} proxy on the created {@link Class}. */ - @objid ("bc17ea25-f7d6-4c91-8502-24b35655032f") + @objid ("a6be265b-5dde-4b0c-8fae-789dc2e3c88c") public static IntValue create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, IntValue.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("732fece7-c93a-4004-9171-c2e48f388a13") + @objid ("da40a8a2-eee1-4363-bf08-8650431171e7") public static IntValue instantiate(final Class obj) { return IntValue.canInstantiate(obj) ? new IntValue(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("934c2394-e4ea-4e0d-b752-3fce314f682f") + @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 ("f9e216a6-39e8-4b2d-85db-0d3dbe48068c") + @objid ("16f30429-5fe0-4c6a-8e37-6c5dc395d2ad") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,11 +109,10 @@ 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 ("9b13d657-e54c-41b5-b29b-2714658d4fcd") + @objid ("3cd341ec-beef-4e5f-81ec-d12c0edef183") @Override public Class getElement() { return (Class)super.getElement(); @@ -126,12 +123,12 @@ public Class getElement() { *

Property description: *
null

*/ - @objid ("ff4b37f7-18c1-4d0d-81b1-6a79d06a8fea") + @objid ("492a75bf-ce6e-4fe4-9bd9-577e5ec8718c") public String getValue() { return this.elt.getTagValue(IntValue.MdaTypes.VALUE_TAGTYPE_ELT); } - @objid ("7b5ad9f9-360c-46e2-b997-eaf7469f382a") + @objid ("5a1769bf-2a5e-45cd-88a3-31da10b12946") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -142,31 +139,31 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("79d6ba15-d263-4aad-88da-1df60cd09540") + @objid ("0aba7c7d-b996-4a36-b3f3-667b6f23ef8b") public void setValue(final String value) { this.elt.putTagValue(IntValue.MdaTypes.VALUE_TAGTYPE_ELT, value); } - @objid ("2d77ad0f-8a18-42d5-b81e-b51001156227") + @objid ("9a82bc59-74b0-4cd7-beb6-5e18d0f488fd") protected IntValue(final Class elt) { super(elt); } @objid ("86784b93-598c-48c0-99d5-5e6867c51898") public static final class MdaTypes { - @objid ("be6f93ed-29f7-4530-8900-50e3a65c7190") + @objid ("5263e2dc-b448-4749-9c58-748dea5ade27") public static Stereotype STEREOTYPE_ELT; - @objid ("c0c618ec-412e-413b-8662-9ff9e69d2f52") + @objid ("8a308846-749f-46d6-9c50-527ab987a907") public static TagType VALUE_TAGTYPE_ELT; - @objid ("9f9644b4-600a-4a54-8c8c-27abc110a214") + @objid ("c92745d6-0541-4a56-ae77-ae990a79ef98") private static Stereotype MDAASSOCDEP; - @objid ("1bb8fe1d-b427-48d8-bb46-161b0fdee8f8") + @objid ("0f718038-f6ac-42ac-a573-9f66e8454732") private static TagType MDAASSOCDEP_ROLE; - @objid ("b4feb5e4-b22e-4936-bf04-9549bcd177a7") + @objid ("d296d162-6a5d-49d7-ab28-d1d7749bfd28") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "84b646d6-4b3e-4375-b9e3-8e6d650114b3"); VALUE_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "8c63edd5-c470-41cc-a9bf-8eb948e832ba"); @@ -175,11 +172,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 5b382e17..b1823e31 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.typemodel.standard.class_; @@ -33,19 +33,19 @@ */ @objid ("2a6827af-e370-4823-ae3a-3c11ff9acb3c") public class Limit { - @objid ("442476c1-0aad-442a-82a6-b5c4eddea349") + @objid ("f53c5436-7575-44fe-9a1d-1e825a09211c") public static final String STEREOTYPE_NAME = "Limit"; - @objid ("b7208f1c-8cab-49ea-8196-65580df05980") + @objid ("7ac9dfca-90d7-4bf0-9003-31683410274a") public static final String INCLUDED_TAGTYPE = "included"; - @objid ("100e5572-fb18-49ba-96ac-a96b648a4b74") + @objid ("f02844aa-5b80-4216-85d8-c944da152e59") public static final String VALUE_TAGTYPE = "value"; /** * The underlying {@link Class} represented by this proxy, never null. */ - @objid ("f181de6b-7e2e-4bff-83f9-534cd3056147") + @objid ("2c524cb9-83c6-4126-87c2-54aea600f060") protected final Class elt; /** @@ -56,7 +56,7 @@ public class Limit { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("4ab10496-f20a-4114-9f86-bd149c853985") + @objid ("e2ed28b7-3876-4c90-ab7f-3a6f17488cb3") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, Limit.STEREOTYPE_NAME)); } @@ -66,7 +66,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link Limit} proxy on the created {@link Class}. */ - @objid ("87be6bf7-c4ed-4010-9fd2-e700a86a1ec1") + @objid ("2b7cfc2c-8724-44ed-8dd7-28164fcd4bce") public static Limit create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, Limit.STEREOTYPE_NAME); @@ -74,36 +74,34 @@ 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. */ - @objid ("5aef92aa-db4b-4e7e-89ba-653e71361ae4") + @objid ("8c0c7f21-475e-47b9-be42-bdd4ec3d9a20") public static Limit instantiate(final Class obj) { return Limit.canInstantiate(obj) ? new Limit(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("3d4f88fb-20fd-45ae-9a46-d4c74b4bea0b") + @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 ("520161f7-2f76-483d-80ff-56a1c253b92c") + @objid ("67891e87-8cf6-45d0-9802-0e2e6dc3e6a4") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -120,11 +118,10 @@ 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 ("7d92e0a3-e263-4193-b87c-c0eb61b68770") + @objid ("4a6b9b83-7b3b-47fe-99c7-0352be0fe695") public Class getElement() { return this.elt; } @@ -134,12 +131,12 @@ public Class getElement() { *

Property description: *
null

*/ - @objid ("935d85ca-2e31-4040-b3df-79bfa7e83d1a") + @objid ("efebee84-3177-44b3-b6fc-c7dc6103310c") public String getValue() { return this.elt.getTagValue(Limit.MdaTypes.VALUE_TAGTYPE_ELT); } - @objid ("b05216da-4f7c-4a24-94bb-713875a058c4") + @objid ("cc0c1808-7623-4589-8883-c6172e26b7b5") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -150,7 +147,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("d2a2c5a8-208b-498b-b1b1-25b5aabe11cc") + @objid ("165aa4ff-62f3-40a1-9221-37d4ea3c7267") public boolean isIncluded() { return this.elt.isTagged(Limit.MdaTypes.INCLUDED_TAGTYPE_ELT); } @@ -160,7 +157,7 @@ public boolean isIncluded() { *

Property description: *
null

*/ - @objid ("e5491ad1-4fee-430e-bbc4-2d11cde9b874") + @objid ("7fd90bd8-2144-4efa-a2fa-3ce532769a1a") public void setIncluded(final boolean value) { if (value) CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createTaggedValue(Limit.MdaTypes.INCLUDED_TAGTYPE_ELT, this.elt); @@ -173,34 +170,34 @@ public void setIncluded(final boolean value) { *

Property description: *
null

*/ - @objid ("697ad120-d4b3-4b8f-8e76-d739e4b613c9") + @objid ("b42683df-a449-4dee-b043-9131a8e5c5df") public void setValue(final String value) { this.elt.putTagValue(Limit.MdaTypes.VALUE_TAGTYPE_ELT, value); } - @objid ("abbc10ef-8c59-4c4d-98e1-835bc1cc3bb2") + @objid ("e954f365-fa00-48d7-b63a-da4b81c1c3cf") protected Limit(final Class elt) { this.elt = elt; } @objid ("c9d6905c-c70f-42d9-b241-d1855860ebde") public static final class MdaTypes { - @objid ("ce49bde9-8ced-4362-a067-8aae3265e75e") + @objid ("31a37824-467d-4620-a8c1-3f7a4cc1229f") public static Stereotype STEREOTYPE_ELT; - @objid ("d8fa2778-290c-4cc2-855e-312ca96138ac") + @objid ("8926c83e-c786-4f84-9be3-63088d3725c0") public static TagType INCLUDED_TAGTYPE_ELT; - @objid ("03d79cbd-b5b0-4b83-96dd-080b7d47c87e") + @objid ("ce1add2d-be2c-4fab-8a19-884b33cf39ca") public static TagType VALUE_TAGTYPE_ELT; - @objid ("f9805641-0eb3-454d-aef1-93b566168e82") + @objid ("744519f5-be9a-4a1f-88dd-d5eeb1b825ba") private static Stereotype MDAASSOCDEP; - @objid ("11e2664c-46fc-443a-b24e-d3a38660a718") + @objid ("557f70ad-2f6a-42d6-bc85-d7c2bfd80d48") private static TagType MDAASSOCDEP_ROLE; - @objid ("b3f7d981-2014-4001-ba81-2a983d85d555") + @objid ("7cb9c452-272e-4976-9900-b6ef792f0d07") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "bf1d744a-e1f0-4ace-be02-64e9edfbbba2"); INCLUDED_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "74608d88-801b-4173-8a41-35e922bd8144"); @@ -210,11 +207,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 b729a313..cfe523ab 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.typemodel.standard.class_; @@ -33,7 +33,7 @@ */ @objid ("3ba92fa8-b783-47f9-9069-045fba14f562") public abstract class NumericValue extends Value { - @objid ("d9769383-e05a-4b29-b18b-fe3c5d7553ce") + @objid ("361f23ca-2c1e-4a56-bef2-1f1e19a5ac29") public static final String STEREOTYPE_NAME = "NumericValue"; /** @@ -44,12 +44,12 @@ public abstract class NumericValue extends Value { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("9d0526d4-6cfb-4516-98c1-4026548b0a2d") + @objid ("0f9eba46-c32e-4278-937a-dd0305b643e4") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, NumericValue.STEREOTYPE_NAME)); } - @objid ("ab93af60-0c75-4f19-b95b-7a903b5f6ded") + @objid ("f5dfe6ff-8b8a-4c13-a521-ecc27e662f11") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -66,39 +66,38 @@ 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 ("74f20166-3533-4b93-86aa-350c2e6f33ce") + @objid ("12eb4e5e-9e90-4897-91cf-fd66cbc662a6") @Override public Class getElement() { return (Class)super.getElement(); } - @objid ("283fe3e6-48f6-4325-8587-2784c30d1d8f") + @objid ("5ea515a3-cf97-439d-b670-18c455c5645c") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); } - @objid ("129a47ce-6263-40d4-892b-64acdd776060") + @objid ("93ce5c43-72e2-4871-bddc-cc1ee5ae96d7") protected NumericValue(final Class elt) { super(elt); } @objid ("06397469-0f26-401c-adeb-30da7a165128") public static final class MdaTypes { - @objid ("8a2e53ad-e004-43d0-8aaa-7bedb0f5dba7") + @objid ("d7408905-66fc-4221-82cf-091d4c4deb4c") public static Stereotype STEREOTYPE_ELT; - @objid ("3c2481d5-2954-40a8-beed-ae6baf884df5") + @objid ("d500bfa6-c13f-4d20-b53c-ce5d8f43439b") private static Stereotype MDAASSOCDEP; - @objid ("a2828e4d-b491-4e47-b9b3-09dfb64dd5a6") + @objid ("15f9cc8d-90d8-4008-a381-a38129f31fc6") private static TagType MDAASSOCDEP_ROLE; - @objid ("d66c50ef-72e0-4162-a4b7-3570b48bc3ee") + @objid ("e7d1df52-f39a-4630-9ff9-6a494379ff5c") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "a8d40881-b0b9-4426-a68a-cba902a74a5e"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -106,11 +105,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 b28c6ed0..89512fae 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.typemodel.standard.class_; @@ -33,10 +33,10 @@ */ @objid ("108ceff7-c9cf-4dcb-8e30-e9a6e0322996") public class StringValue extends Value { - @objid ("965fbe25-5a97-438d-9f77-e0757e0ed269") + @objid ("f5799202-6a28-456b-a151-becc339443fe") public static final String STEREOTYPE_NAME = "StringValue"; - @objid ("c51c4383-6d42-49ec-b526-5d0abf8d0338") + @objid ("5348ce1f-3b61-4bfa-88ec-56930439ed43") public static final String VALUE_TAGTYPE = "value"; /** @@ -47,7 +47,7 @@ public class StringValue extends Value { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("304ce26f-1910-4c10-a46a-c529810102d0") + @objid ("fba24bd6-a3f0-4940-8d31-e520c8916c31") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, StringValue.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link StringValue} proxy on the created {@link Class}. */ - @objid ("c2279d0e-ebb9-4d76-ae29-ffc62e701cd1") + @objid ("f7766080-2a0b-434f-b43b-cabd80af5541") public static StringValue create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, StringValue.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("65ad98f7-61c5-433a-9c9f-0b34d9b4fa08") + @objid ("2d75e8f4-8469-4ee6-b1be-c57d3d38dfd5") public static StringValue instantiate(final Class obj) { return StringValue.canInstantiate(obj) ? new StringValue(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("a6742c98-d9f4-45e1-b9af-648caac7ed2f") + @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 ("8982c140-8486-4218-97a1-8205047df35c") + @objid ("4889ecef-603c-4001-a1b1-4aae752cff47") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,11 +109,10 @@ 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 ("abbe6880-61fe-42ea-8d04-70b036a975da") + @objid ("bd32f3d1-ef18-45ba-9ee5-5f7ff6fb76a7") @Override public Class getElement() { return (Class)super.getElement(); @@ -126,12 +123,12 @@ public Class getElement() { *

Property description: *
null

*/ - @objid ("cee6b8bd-18b7-4143-91ba-1371de66f41f") + @objid ("87726a7e-634e-4364-a4a1-e3b0ad10cc73") public String getValue() { return this.elt.getTagValue(StringValue.MdaTypes.VALUE_TAGTYPE_ELT); } - @objid ("d51923f1-5f4f-4da9-ba69-4b7bb3768f0a") + @objid ("221041d6-ac81-4a7c-9295-54b95a3a7c9c") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -142,31 +139,31 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("e48aeb31-b74f-4091-ba48-33dec4f83160") + @objid ("14d2ad62-3cce-4815-9c4d-8af961e3c48b") public void setValue(final String value) { this.elt.putTagValue(StringValue.MdaTypes.VALUE_TAGTYPE_ELT, value); } - @objid ("b3aae238-6bf8-4b6e-bedc-da1b4fb045b5") + @objid ("44602f50-b4c9-466e-9f6e-524bcbd22bfc") protected StringValue(final Class elt) { super(elt); } @objid ("9399a459-61a5-4415-942d-4d13e631e29a") public static final class MdaTypes { - @objid ("55319eb6-e643-4530-b668-a129ce693466") + @objid ("7f23f53c-1ca4-4be2-8310-92b4dfdeb7a1") public static Stereotype STEREOTYPE_ELT; - @objid ("38253d8e-936c-4553-baaa-06e5aa3f8f3b") + @objid ("a609a74a-fe0c-42a6-8908-9d6450d57409") public static TagType VALUE_TAGTYPE_ELT; - @objid ("c4d8e96d-ad53-400c-9653-61510508acd9") + @objid ("cff8a0e3-03f4-4e6a-b72e-ff38e5f0f22b") private static Stereotype MDAASSOCDEP; - @objid ("cb3a9960-3371-4be1-8745-dad23750d1b9") + @objid ("4220f676-7ed9-41b5-914b-c73da7593eda") private static TagType MDAASSOCDEP_ROLE; - @objid ("370a1757-f66a-4f06-b5c2-76fa02a201b4") + @objid ("d221a6dc-8cfc-4a41-b5d3-7b98c1b38876") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "6150e77e-8a8a-40f6-9270-79aa182fc926"); VALUE_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "dc99a44c-debc-43d9-a8f2-cf3b62a7138f"); @@ -175,11 +172,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 ec8f6049..450c8a01 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.typemodel.standard.class_; @@ -33,13 +33,13 @@ */ @objid ("b2107801-5ebd-4fed-a10f-94070aefa145") public abstract class Value { - @objid ("82147c29-d7cb-4d4f-bd10-d8b0ed7a313c") + @objid ("c7cb34f2-edcc-402d-ace3-e535321f8af4") public static final String STEREOTYPE_NAME = "Value"; /** * The underlying {@link Class} represented by this proxy, never null. */ - @objid ("d2a6b271-8642-4f3a-a741-f35e4c72f8d5") + @objid ("03910b62-ec4b-467a-94e5-2f71c25b75f9") protected final Class elt; /** @@ -50,12 +50,12 @@ public abstract class Value { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("b940d67f-9c52-49f6-8999-1ebcc0f0aeee") + @objid ("578037a0-0a7f-4b64-aa87-2b0bc1f3b6ab") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Class) && ((Class) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, Value.STEREOTYPE_NAME)); } - @objid ("f28d84bd-fe12-4ac0-b421-25ae42591632") + @objid ("bd6b9bed-fd6b-4528-bfe4-ddff4afe4fee") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -72,38 +72,37 @@ 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 ("a0138c55-2bf9-44df-b1ae-f0ed210cac7d") + @objid ("ed2193c3-cca4-49ee-b044-0f61c8422808") public Class getElement() { return this.elt; } - @objid ("8c1a47d4-d2ec-466a-a82c-9cce6b41590f") + @objid ("9490bd93-4b71-44f1-9c41-7bb1d40bc1f0") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); } - @objid ("a110ab01-d52b-4ff4-9073-4d86c5110cda") + @objid ("619445d1-7209-4ff5-8f50-673bb74a598a") protected Value(final Class elt) { this.elt = elt; } @objid ("98e6e882-3baf-4b4c-b3c1-9b995cb33b84") public static final class MdaTypes { - @objid ("c3f0d5bb-bd63-446e-90c1-75392b70d1c5") + @objid ("95ed9b22-9d9d-4ca1-aa9a-761b70168746") public static Stereotype STEREOTYPE_ELT; - @objid ("040b7938-ea4f-4486-95c3-245736653c9c") + @objid ("00e4908d-314e-4741-816f-5c7838e54bcd") private static Stereotype MDAASSOCDEP; - @objid ("0249b657-f334-4858-91da-ff8c749c3fc2") + @objid ("90d36b77-dfa7-4706-95dc-11614cdc0829") private static TagType MDAASSOCDEP_ROLE; - @objid ("e1a1f0a0-a297-4c7b-9245-10cc14973d09") + @objid ("83d8eb7b-e681-4945-aaaa-b0e85371f19e") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "b7cec495-c026-4fde-b42d-496bbcda924b"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -111,11 +110,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 a7adb190..4ee41b21 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.typemodel.standard.datatype; @@ -35,7 +35,7 @@ */ @objid ("a2b62642-fe21-4f7c-a8c8-129bb3a99fab") public class BooleanValueType extends ValueType { - @objid ("30c3ce3b-e315-4c23-a53b-1eac4753da2a") + @objid ("865d2536-88f9-40fb-a269-ad503d2444a5") public static final String STEREOTYPE_NAME = "BooleanValueType"; /** @@ -46,7 +46,7 @@ public class BooleanValueType extends ValueType { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("541a9087-0cbe-4122-b32a-d60b1b1c21b2") + @objid ("d3382a09-61aa-4ad1-87ce-79fe30aaa1de") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof DataType) && ((DataType) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, BooleanValueType.STEREOTYPE_NAME)); } @@ -56,7 +56,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link BooleanValueType} proxy on the created {@link DataType}. */ - @objid ("cf0da71c-acd8-416b-8cc7-b9460f797dfe") + @objid ("9709e614-e5cf-4251-a6b2-1ceaec0387e3") public static BooleanValueType create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.DataType"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, BooleanValueType.STEREOTYPE_NAME); @@ -64,36 +64,34 @@ 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. */ - @objid ("4b45f0c0-1689-42f0-82c5-06e576e23173") + @objid ("9078d6d2-77ba-4588-8a66-0255f7aa4948") public static BooleanValueType instantiate(final DataType obj) { return BooleanValueType.canInstantiate(obj) ? new BooleanValueType(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("fa82e1b5-a828-4c0b-9af5-bd1817e72f1b") + @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 ("2e79026d-03b4-4afd-8367-84c6034c27f8") + @objid ("29b01c46-eb5c-49bd-b89c-bd725f12dfdb") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -110,17 +108,16 @@ 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 ("f9b8a212-62e4-47db-aa67-eb14019cf5d9") + @objid ("12f9e489-b3fd-490b-aebf-5a3149135aed") @Override public DataType getElement() { return (DataType)super.getElement(); } - @objid ("3b61054e-fcd6-4692-b61d-1db53344e316") + @objid ("b2985080-674b-4a38-b9d2-9e268b687900") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -134,23 +131,23 @@ public List getChilds() { return result; } - @objid ("fb80e287-fb64-424e-84e6-e569f5fd225b") + @objid ("5542f341-1998-478d-a467-08a4b7f18d44") protected BooleanValueType(final DataType elt) { super(elt); } @objid ("df669cbd-dad5-4a9c-8f92-4f6b6714af23") public static final class MdaTypes { - @objid ("88946cfc-affa-4c8f-a6af-b166c9eef366") + @objid ("383b6761-b06e-448f-b141-57b71be9c3e6") public static Stereotype STEREOTYPE_ELT; - @objid ("b6a63978-e2dd-4b66-9cb0-52774b42060e") + @objid ("3362b87d-698f-41d4-bcb5-69b20f3bc992") private static Stereotype MDAASSOCDEP; - @objid ("3331c8bb-ab40-421b-895d-81bbef375844") + @objid ("2e197b86-748f-4981-8b6c-938cab001e24") private static TagType MDAASSOCDEP_ROLE; - @objid ("b80092c3-713a-48e8-a8ad-b8652b1defcf") + @objid ("df605ae7-7f25-449c-b463-6734234ecd39") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "34356c14-6f57-4377-8b6d-5f7e5d8b4929"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -158,11 +155,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 20068969..194765eb 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.typemodel.standard.datatype; @@ -34,7 +34,7 @@ */ @objid ("74dc4c59-0c01-4785-91ec-67fd63d087d4") public class CamelList extends ValueType { - @objid ("88195c94-dcf2-4aaa-a270-ddc89b4087b1") + @objid ("9089a8eb-0edf-48ac-8675-aed21c9d7c0b") public static final String STEREOTYPE_NAME = "CamelList"; /** @@ -45,7 +45,7 @@ public class CamelList extends ValueType { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("4b60f616-1411-4804-b2dc-622972879217") + @objid ("abff1fc2-dd06-4604-a7b7-4eb5ca64c8e4") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof DataType) && ((DataType) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, CamelList.STEREOTYPE_NAME)); } @@ -55,7 +55,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link CamelList} proxy on the created {@link DataType}. */ - @objid ("6ee88d68-d230-4134-9571-918e254531ce") + @objid ("2f690d6f-73b6-4afb-89ed-8ae0c92288ea") public static CamelList create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.DataType"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, CamelList.STEREOTYPE_NAME); @@ -63,36 +63,34 @@ 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. */ - @objid ("2db88fb3-ac23-4289-a0d2-bfb35d518413") + @objid ("3bd0d3bd-54b8-4a98-bd47-6ad9559bef28") public static CamelList instantiate(final DataType obj) { return CamelList.canInstantiate(obj) ? new CamelList(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("08bbf5a5-3445-48ef-93b2-99169a7d478a") + @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 ("8f98b609-6a69-41c3-9247-84b59ca3dc86") + @objid ("b9d73f16-a518-4ef1-bf0a-da68e8e7c1d1") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -109,17 +107,16 @@ 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 ("c88e0dfa-5e64-4b1c-a271-3aba8ea10e05") + @objid ("4da763d5-1515-4348-a457-7ef830132158") @Override public DataType getElement() { return (DataType)super.getElement(); } - @objid ("46af15d6-463b-4377-b74d-b0fa2a5ee149") + @objid ("d2ac9116-e96e-494b-8690-5425deafb64f") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -133,23 +130,23 @@ public java.util.List getChilds() { return result; } - @objid ("647940b2-86e2-4b6d-814e-444d7ed40fdb") + @objid ("d53834b5-62b2-4393-9125-f15550d60777") protected CamelList(final DataType elt) { super(elt); } @objid ("93dc7140-11bf-49e8-a555-177609936c7a") public static final class MdaTypes { - @objid ("8c3b2e46-2a6e-465c-9ad4-98cf6af9450c") + @objid ("107007e6-4aad-44e5-8ee1-14cca2479147") public static Stereotype STEREOTYPE_ELT; - @objid ("294aeef0-3c4e-4cbf-91c4-a96bc3ce3f0a") + @objid ("fcebd80b-f0ed-492f-a6a1-377c6d2ee8ac") private static Stereotype MDAASSOCDEP; - @objid ("49f7341e-55c7-43e9-813a-399e957967e3") + @objid ("71a4ccf7-7c82-4df0-961d-ca45ae9b14e2") private static TagType MDAASSOCDEP_ROLE; - @objid ("8ec13d5b-e53e-4e74-a22e-6f60caf19412") + @objid ("4f01b25e-c628-4cc8-a2da-f8742d572a43") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "789c3b87-cb58-4659-a04c-7f948aae0e2e"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -157,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/datatype/Range.java b/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/datatype/Range.java index 8a1aa3fa..8b6b17ed 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.typemodel.standard.datatype; @@ -35,13 +35,13 @@ */ @objid ("b6624bb7-0982-4bff-af96-a190c5237803") public class Range extends ValueType { - @objid ("5cbe6c19-b222-449f-80c8-4faf8bebd014") + @objid ("c2e472b7-cb04-4fc7-a0c8-8e1060654b3b") public static final String STEREOTYPE_NAME = "Range"; - @objid ("ec668501-531e-43ed-b0a7-988a388ce5a0") + @objid ("1540acbd-26fc-430e-837c-9aca3d15b728") public static final String LOWERLIMIT_TAGTYPE = "lowerLimit"; - @objid ("9ebe5fc8-3a56-47b0-80f6-32a54fed2841") + @objid ("d6661edb-ec9b-4914-95e5-bce27d4e959d") public static final String UPPERLIMIT_TAGTYPE = "upperLimit"; /** @@ -52,7 +52,7 @@ public class Range extends ValueType { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("724d520f-56a8-4cb2-8d07-9995ac3a15ac") + @objid ("62a942e3-b303-4bbf-9e32-12730d5435cb") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof DataType) && ((DataType) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, Range.STEREOTYPE_NAME)); } @@ -62,7 +62,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link Range} proxy on the created {@link DataType}. */ - @objid ("d727d24c-f89f-4e02-b60f-fc8d55f34f53") + @objid ("4691d5c7-2ea6-4edd-901b-9c2fcb926972") public static Range create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.DataType"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, Range.STEREOTYPE_NAME); @@ -70,36 +70,34 @@ 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. */ - @objid ("0630d9e4-217f-46ed-be12-8714fbef9ad0") + @objid ("f9c22edf-6f05-4dc1-94e7-546a1b4ee479") public static Range instantiate(final DataType obj) { return Range.canInstantiate(obj) ? new Range(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("71297450-0020-46aa-aaf0-7d0211e23695") + @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 ("358c8a46-ec65-4c0d-af15-0c3f8eb3f95d") + @objid ("39068c2d-d24d-4247-b697-83aba6773423") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -116,11 +114,10 @@ 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 ("904faf0b-dfa6-4986-916f-339768b0542b") + @objid ("03b22553-7255-4508-bb37-ef4fcb2f4d19") @Override public DataType getElement() { return (DataType)super.getElement(); @@ -131,7 +128,7 @@ public DataType getElement() { *

Property description: *
null

*/ - @objid ("fdf4711b-3863-4663-9906-45f1aa7e896e") + @objid ("640de42c-a964-42ae-9830-0706d5cd047a") public String getLowerLimit() { return this.elt.getTagValue(Range.MdaTypes.LOWERLIMIT_TAGTYPE_ELT); } @@ -141,12 +138,12 @@ public String getLowerLimit() { *

Property description: *
null

*/ - @objid ("490eaf56-e9b6-410f-8969-5ca2049c18ef") + @objid ("6a11f73c-3e26-4478-bde3-19e2c0cb67e8") public String getUpperLimit() { return this.elt.getTagValue(Range.MdaTypes.UPPERLIMIT_TAGTYPE_ELT); } - @objid ("aa233885-badd-4de4-b0b5-31dc3e84b313") + @objid ("c4aed52d-0bff-46d1-98ee-6fe85f7c8f50") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -157,7 +154,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("c91a97e0-b0de-464c-ac1c-77b7be7ee880") + @objid ("8a379d03-17d3-4997-b6fa-4c991bbc984d") public void setLowerLimit(final String value) { this.elt.putTagValue(Range.MdaTypes.LOWERLIMIT_TAGTYPE_ELT, value); } @@ -167,7 +164,7 @@ public void setLowerLimit(final String value) { *

Property description: *
null

*/ - @objid ("324574d7-ad09-4c27-9b20-a283e48a73bc") + @objid ("754c6d1c-8d30-41dc-9f53-471831e3f982") public void setUpperLimit(final String value) { this.elt.putTagValue(Range.MdaTypes.UPPERLIMIT_TAGTYPE_ELT, value); } @@ -180,29 +177,29 @@ public List getChilds() { return result; } - @objid ("78ffd972-1d4a-4006-b795-acdac1aaa002") + @objid ("93210498-a72b-4167-9335-d2d0b27ea99d") protected Range(final DataType elt) { super(elt); } @objid ("f119cedf-8e67-4a07-b5a8-ffaf11158aa4") public static final class MdaTypes { - @objid ("66ea5646-d189-4736-b12f-10bbd849475a") + @objid ("183e6bc0-81be-45a5-9c21-3495455b4798") public static Stereotype STEREOTYPE_ELT; - @objid ("9533d839-9142-432c-8285-7bcbc6ec663f") + @objid ("ab1c7574-798e-42af-80da-d3b095c552d1") public static TagType LOWERLIMIT_TAGTYPE_ELT; - @objid ("35b54c60-57be-47c0-87c2-f18122aac6cd") + @objid ("fefb632e-88ef-44dc-9b5b-5e8cea6146e5") public static TagType UPPERLIMIT_TAGTYPE_ELT; - @objid ("a756b7f7-d00a-4a58-a8d1-ed6727993526") + @objid ("10178e07-23b8-4ad7-9a89-0b88d194054e") private static Stereotype MDAASSOCDEP; - @objid ("0512d3df-0322-493b-8e67-caf7d74300c2") + @objid ("6be2d85e-7881-42a2-8aa8-3dbad0592cd0") private static TagType MDAASSOCDEP_ROLE; - @objid ("9816efd0-cbbc-468b-9d8e-badae037e4ec") + @objid ("4f6d1193-7617-41ec-bf7f-d78661e9873d") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "ea69f465-8f51-41c3-9c81-cc30270ea9cb"); LOWERLIMIT_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "f6f57467-6d1e-4bb7-9266-0e11d1e1c7dd"); @@ -212,11 +209,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 88a52ae9..9bfe2464 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.typemodel.standard.datatype; @@ -35,7 +35,7 @@ */ @objid ("418feac3-a018-487d-af79-66ed2a10b317") public class RangeUnion extends ValueType { - @objid ("82285203-341a-495e-9e75-706e72eb8db0") + @objid ("a2b0c402-4699-46b9-abf1-a2ff58905935") public static final String STEREOTYPE_NAME = "RangeUnion"; /** @@ -46,7 +46,7 @@ public class RangeUnion extends ValueType { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("08f9092f-5e22-4052-9a39-4514988c7a7d") + @objid ("bdbda89b-6fef-4c33-bc5f-05078b9248e5") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof DataType) && ((DataType) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, RangeUnion.STEREOTYPE_NAME)); } @@ -56,7 +56,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link RangeUnion} proxy on the created {@link DataType}. */ - @objid ("5965a691-1759-4f9c-964d-098f78a35b1e") + @objid ("54e66578-beee-410c-85db-ec6ed5533f5c") public static RangeUnion create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.DataType"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, RangeUnion.STEREOTYPE_NAME); @@ -64,36 +64,34 @@ 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. */ - @objid ("848cb4ea-251f-4f48-9ffe-f2f35a5809e9") + @objid ("75cadbca-5457-464d-b5cd-863c3bc58255") public static RangeUnion instantiate(final DataType obj) { return RangeUnion.canInstantiate(obj) ? new RangeUnion(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("2d7b86cd-ca6f-42ef-a1f7-1529cb400d53") + @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 ("c314c8fe-16bc-4877-a909-4bce7da7b127") + @objid ("f49b5618-b789-45c3-bee8-69107b590257") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -110,17 +108,16 @@ 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 ("022a1db9-982d-41fb-baa3-d47843c80042") + @objid ("4c0e1154-13c1-4942-ad24-6d00766e6046") @Override public DataType getElement() { return (DataType)super.getElement(); } - @objid ("2ac6c220-1ce8-4ae8-9ab8-7c1481b31cea") + @objid ("6a4af6ab-dcbd-46ab-a3e9-a746595632ce") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -134,23 +131,23 @@ public List getChilds() { return result; } - @objid ("d153586a-6521-4e2e-b35b-0521b617649a") + @objid ("f49d829e-52f7-43ca-b3d1-86f81ad6b211") protected RangeUnion(final DataType elt) { super(elt); } @objid ("a86c3c8e-3fec-4d3f-8ea5-0137b2bd07d5") public static final class MdaTypes { - @objid ("cf474bfa-98b0-4f31-9338-941d13b984fc") + @objid ("6a44ebb6-5038-474d-baa7-e7ed64e0ae86") public static Stereotype STEREOTYPE_ELT; - @objid ("776cfb2c-6aed-4dbf-b903-f325c424c426") + @objid ("e8d926c0-03b3-4b3f-8ea9-0f215d912429") private static Stereotype MDAASSOCDEP; - @objid ("606cd9b0-3281-4b08-ab17-14887919c92f") + @objid ("5067ab6d-115c-4626-a488-a7ff769bfd07") private static TagType MDAASSOCDEP_ROLE; - @objid ("565ddddb-e15e-4cfe-a1b4-1f33eddcb068") + @objid ("10440390-6b71-47f1-9e28-29a0476b57c8") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "aeb307d4-49c6-4201-b285-a8ba93b291fb"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -158,11 +155,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 231a10fb..f24d9005 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.typemodel.standard.datatype; @@ -35,7 +35,7 @@ */ @objid ("d4a116b7-cd26-400c-b04d-1c342f5d5ece") public class StringValueType extends ValueType { - @objid ("bb7c567c-602f-46a2-b7ed-3fc05e7fb4f0") + @objid ("1bae2fdc-7422-49ce-8f61-d2f76a42102f") public static final String STEREOTYPE_NAME = "StringValueType"; /** @@ -46,7 +46,7 @@ public class StringValueType extends ValueType { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("e41b7651-c5a8-462a-beb6-e2be64545bed") + @objid ("37bb07a9-8284-4f14-b933-8cf563ca429e") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof DataType) && ((DataType) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, StringValueType.STEREOTYPE_NAME)); } @@ -56,7 +56,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link StringValueType} proxy on the created {@link DataType}. */ - @objid ("b8dc6acb-281e-4d1c-a335-83975a2fc9c5") + @objid ("007e26c7-63b6-49e0-a237-5076e0d57298") public static StringValueType create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.DataType"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, StringValueType.STEREOTYPE_NAME); @@ -64,36 +64,34 @@ 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. */ - @objid ("11edbc6e-2fff-499c-b837-0ee24dab9002") + @objid ("8885edae-84aa-4908-a39c-932b6590558a") public static StringValueType instantiate(final DataType obj) { return StringValueType.canInstantiate(obj) ? new StringValueType(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("0bb80068-df91-41f5-9edb-c3b036a952ca") + @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 ("da5aee88-be84-4b9c-b114-f5ef964b10d0") + @objid ("c7eea196-0f64-4aba-81ab-6e907c682ff3") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -110,17 +108,16 @@ 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 ("9df3010d-dd63-48bc-8861-9b6cc90b54a6") + @objid ("e273056d-d8d8-4dcc-9d66-de92fb5c2f00") @Override public DataType getElement() { return (DataType)super.getElement(); } - @objid ("6ff47fd0-044e-4d58-942d-60be9a7740a4") + @objid ("d0c33fe9-f718-4ef9-a80f-fa5e96261abc") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -134,23 +131,23 @@ public List getChilds() { return result; } - @objid ("4adfa921-dd76-4e2c-9648-0d235f7cf361") + @objid ("cf5c6e6b-7aac-4b81-a414-bd372bdfa019") protected StringValueType(final DataType elt) { super(elt); } @objid ("a89d3bdc-f18a-481f-8114-f08ae25840a6") public static final class MdaTypes { - @objid ("5a60537c-1977-4008-992f-273f164dc855") + @objid ("20d99d5d-f3fc-4f5c-b53d-fa60f729da3a") public static Stereotype STEREOTYPE_ELT; - @objid ("fac4736a-3559-4ff1-8b1f-0dd89e970446") + @objid ("700670f4-6175-4093-9fd5-3f6b74191356") private static Stereotype MDAASSOCDEP; - @objid ("6c2d03c8-83f1-4d6e-b296-60b2c414ad34") + @objid ("83ea022d-35e2-41b5-a34e-7d1334891411") private static TagType MDAASSOCDEP_ROLE; - @objid ("00788ba3-7731-466e-99f2-1102a894dafc") + @objid ("33db6fa4-338b-4de0-b2f6-039d055cb3ee") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "c8a2299c-93cc-47ca-82f3-53c1866d2c5b"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -158,11 +155,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 aa6d485a..046c1875 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.typemodel.standard.datatype; @@ -36,10 +36,10 @@ */ @objid ("4afad244-096e-4660-b995-b2061cfa5947") public abstract class ValueType extends ExpendableElement { - @objid ("3429e821-926a-4d38-a83a-6825071f3d88") + @objid ("dfd2f6e2-43ea-44c3-ac5a-5648e0eb481e") public static final String STEREOTYPE_NAME = "ValueType"; - @objid ("f2c9aca3-2e26-4d35-88d1-619abb90a921") + @objid ("c673db93-481e-4c8c-8d5a-5775a04dbb29") public static final String PRIMITIVETYPE_TAGTYPE = "primitiveType"; /** @@ -50,7 +50,7 @@ public abstract class ValueType extends ExpendableElement { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("e7dec0d0-5b65-4c84-814d-8d63cdf349e4") + @objid ("6c22bd8c-f6d5-4ec5-a21a-fbda334f213d") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof DataType) && ((DataType) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, ValueType.STEREOTYPE_NAME)); } @@ -65,7 +65,7 @@ public static ValueType instantiate(final DataType obj) { RangeUnion.canInstantiate(obj) ? new RangeUnion(obj) : null; } - @objid ("9e8c3f04-de1e-4381-b6d1-60fb734d94e9") + @objid ("4d70ba37-f4b1-4050-81d3-792b5f6a2ada") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -82,11 +82,10 @@ 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 ("973b5b18-cf42-4108-bf9f-abf19f1816f0") + @objid ("f6da753f-d492-4eda-b1dc-7cd13659ec2d") @Override public DataType getElement() { return (DataType)super.getElement(); @@ -97,12 +96,12 @@ public DataType getElement() { *

Property description: *
null

*/ - @objid ("ce246570-3d28-4ed2-8091-a516930731b9") + @objid ("4ca61707-ea55-4ac7-bcda-e41329f82649") public String getPrimitiveType() { return this.elt.getTagValue(ValueType.MdaTypes.PRIMITIVETYPE_TAGTYPE_ELT); } - @objid ("670f7ed3-d16f-4d38-bfed-6fed4accc344") + @objid ("ce6cd8c0-6a40-4dc3-b286-5174b1777fbf") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -113,7 +112,7 @@ public int hashCode() { *

Property description: *
null

*/ - @objid ("a2dc9fa9-9eac-4177-b6b5-73ffe7d04a6c") + @objid ("896aecbc-08b9-42ed-b426-f4ddf19d0eba") public void setPrimitiveType(final String value) { this.elt.putTagValue(ValueType.MdaTypes.PRIMITIVETYPE_TAGTYPE_ELT, value); } @@ -126,26 +125,26 @@ public List getChilds() { return result; } - @objid ("49e98561-e39b-4abb-96a2-03af999ad7d2") + @objid ("ef88ed4a-09ec-4a28-a44e-8bb577d3bfcd") protected ValueType(final DataType elt) { super(elt); } @objid ("efcfe0b2-71a4-471e-afbf-52a17a61448e") public static final class MdaTypes { - @objid ("572befcb-5fc3-4169-8e7d-b2fdcd5c324e") + @objid ("5bd7339d-9547-4392-8f77-0473ec76f1b8") public static Stereotype STEREOTYPE_ELT; - @objid ("396ad06f-a763-4b7c-818a-54fa92b7ffce") + @objid ("a974fbfb-9076-49ce-935a-5ae6ed5113f1") public static TagType PRIMITIVETYPE_TAGTYPE_ELT; - @objid ("b5da9715-fc0f-47e5-baf4-9c9dc35a06c7") + @objid ("af27fd0d-ee6c-4993-8687-302f57eccdf6") private static Stereotype MDAASSOCDEP; - @objid ("bfdf75fc-c34e-4426-b971-73f86ed897c0") + @objid ("66cae526-d6a6-41d8-8bad-b2a6f0fae439") private static TagType MDAASSOCDEP_ROLE; - @objid ("7a22b8e6-4c8d-4540-b8d3-0cc823b172e6") + @objid ("83e7910c-c49a-4d52-8986-95bbc1bc1cc4") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "4fa7ea19-f563-4658-8d2a-755724d85061"); PRIMITIVETYPE_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "23bfa9f4-034d-4dcf-9837-9cdd4bd55ba2"); @@ -154,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/typemodel/standard/package_/TypeModel.java b/src/main/java/fr/softeam/cameldesigner/api/typemodel/standard/package_/TypeModel.java index 467fc2a5..c8f51b25 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.typemodel.standard.package_; @@ -37,7 +37,7 @@ */ @objid ("68c913aa-accf-4c20-a47c-7141fc4f3f7b") public class TypeModel extends SubModel { - @objid ("824da82c-a985-40d2-9ac6-ecaca616da16") + @objid ("bba7e5cf-9d50-4a8c-9291-b8ae927fb121") public static final String STEREOTYPE_NAME = "TypeModel"; /** @@ -48,7 +48,7 @@ public class TypeModel extends SubModel { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("d60a8124-57b6-483e-b8ed-31faa95250bc") + @objid ("73b8a655-970a-4fa4-9d20-ea7c95803ceb") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Package) && ((Package) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, TypeModel.STEREOTYPE_NAME)); } @@ -58,7 +58,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link TypeModel} proxy on the created {@link Package}. */ - @objid ("a023db62-68d0-4729-b8cd-a78539e007af") + @objid ("1fd12bc8-f478-4ec5-ad8f-52b1266de4a5") public static TypeModel create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Package"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, TypeModel.STEREOTYPE_NAME); @@ -66,36 +66,34 @@ 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. */ - @objid ("30c39fff-3d7a-4f21-a667-438cfb096e83") + @objid ("abfa76f5-4c29-4b92-864a-fd212e7580df") public static TypeModel instantiate(final Package obj) { return TypeModel.canInstantiate(obj) ? new TypeModel(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("d44adf06-dd21-4d7e-b7c1-ef191d37cc91") + @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 ("7ae0edef-dc77-45f1-b97c-04de6a4787bf") + @objid ("da7a8aff-d951-4850-bada-a73fa79a46c1") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -115,24 +113,24 @@ public boolean equals(final Object obj) { * Get the value to the 'camelModel' role.

* Role description: * null + * */ - @objid ("eb7e51a7-847f-43c3-9621-6865e924127b") + @objid ("4b231fc9-78ee-4f5f-9d8d-aecf9370d3a9") public CamelModel getCamelModel() { return (CamelModel)CamelDesignerProxyFactory.instantiate(((Package) this.elt).getOwner(), CamelModel.STEREOTYPE_NAME); } /** - * Get the underlying {@link Package}. - * + * Get the underlying {@link Package}. * @return the Package represented by this proxy, never null. */ - @objid ("ee0fb4c7-37ac-494b-9f48-20b0fb0891e5") + @objid ("f6fce248-3622-46cd-948b-24969f5a9259") @Override public Package getElement() { return (Package)super.getElement(); } - @objid ("9fea65d3-3829-4df9-87b8-d21e1aea8aea") + @objid ("7d29ba20-72f4-4a9a-81cb-63e55d802107") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -142,8 +140,9 @@ public int hashCode() { * Set the value of the 'camelModel' role.

* Role description: * null + * */ - @objid ("24a5a9c6-ccb1-4b21-8bbf-f5ac344dd6fc") + @objid ("a18f2835-d2ce-4717-8641-6d5e87419461") public void setCamelModel(final CamelModel obj) { ((Package) this.elt).setOwner((obj != null) ? obj.getElement() : null); } @@ -156,23 +155,23 @@ public List getChilds() { return result; } - @objid ("a792ddad-9e2f-4f42-bbf5-59fd7489137b") + @objid ("8f353cae-0b0a-4add-a079-ae4010e7f53a") protected TypeModel(final Package elt) { super(elt); } @objid ("96a7120e-6c34-4aa2-95d8-e1eaa1ca16de") public static final class MdaTypes { - @objid ("76389497-0479-4dff-add7-b6aea10915b9") + @objid ("81c3fa38-0795-4395-b220-e037ad70dba9") public static Stereotype STEREOTYPE_ELT; - @objid ("15fd2e83-ba6c-4374-954e-34e59b394595") + @objid ("85669b1d-754b-4249-8caa-178c0a1bf410") private static Stereotype MDAASSOCDEP; - @objid ("a04e8a23-c5a9-4d2a-a25c-507457b36710") + @objid ("fa7b4ce6-0af6-4762-9bdc-258fc6ce1eb4") private static TagType MDAASSOCDEP_ROLE; - @objid ("bc25ccb9-5e3e-43b5-993c-71ca66b0784b") + @objid ("2af0464a-fcd7-4ad0-87fd-d82b3ec6d076") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "429103ee-a14c-4a9a-b791-6d9441fe5cf6"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -180,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/unitmodel/standard/datatype/CompositeUnit.java b/src/main/java/fr/softeam/cameldesigner/api/unitmodel/standard/datatype/CompositeUnit.java index acbad2f3..a8fc3dad 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.unitmodel.standard.datatype; @@ -16,6 +16,7 @@ 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; @@ -37,10 +38,10 @@ */ @objid ("f5225f72-6f20-48b4-a955-1025a1e63d7c") public class CompositeUnit extends DimensionedUnit { - @objid ("f2280506-1e85-49ef-baa9-7d08e5fdd912") + @objid ("c1c1052e-834c-4cd7-93e5-de7febdce4ca") public static final String STEREOTYPE_NAME = "CompositeUnit"; - @objid ("319eab1d-db0e-4925-9eda-52eef3734ce8") + @objid ("f8965fe5-0088-46dc-a764-948c3414a5c2") public static final String FORMULA_TAGTYPE = "formula"; /** @@ -51,7 +52,7 @@ public class CompositeUnit extends DimensionedUnit { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("eee25cdf-0a04-4ad4-b27c-44648259c9c0") + @objid ("d470012f-7f3b-46c6-8a7d-e4f75676de9b") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof DataType) && ((DataType) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, CompositeUnit.STEREOTYPE_NAME)); } @@ -61,7 +62,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link CompositeUnit} proxy on the created {@link DataType}. */ - @objid ("776405a7-981b-427a-943b-0304867368ae") + @objid ("27cee481-5acb-445e-9fcd-8aa3f00f2bd3") public static CompositeUnit create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.DataType"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, CompositeUnit.STEREOTYPE_NAME); @@ -69,41 +70,40 @@ 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. */ - @objid ("f7c43a67-6f15-41a7-b50a-c404de5622aa") + @objid ("855ce33c-ded6-456b-8f3c-e6fc91c54879") public static CompositeUnit instantiate(final DataType obj) { return CompositeUnit.canInstantiate(obj) ? new CompositeUnit(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("cad50647-ded4-472b-8a65-f63738041eb7") + @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 ("8c55e87f-dfb5-44c3-ad32-e7850c4590d0") + @objid ("63b180ee-0543-4ed7-8432-3ab56b690e28") public void addComponentsUnits(final Unit obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -113,7 +113,7 @@ public void addComponentsUnits(final Unit obj) { } } - @objid ("2830bc8b-2c55-4600-a739-2267a497f2c8") + @objid ("1af1c3d0-9531-45cf-ad6d-4feb5050f443") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -133,8 +133,9 @@ public boolean equals(final Object obj) { * Get the values of the 'componentsUnits' role.

* Role description: * null + * */ - @objid ("dc8bb2e4-808d-46d7-b5b8-ce4e0008a273") + @objid ("f6eb3034-8b80-40a2-9031-393397c9781b") public List getComponentsUnits() { List results = new ArrayList<>(); for (Dependency d : this.elt.getDependsOnDependency()) { @@ -152,11 +153,10 @@ public List getComponentsUnits() { } /** - * Get the underlying {@link DataType}. - * + * Get the underlying {@link DataType}. * @return the DataType represented by this proxy, never null. */ - @objid ("3747c179-d3ad-4338-b463-a938199a23df") + @objid ("8bfc5212-c07e-4f7a-b289-4e656410c43d") @Override public DataType getElement() { return (DataType)super.getElement(); @@ -167,12 +167,12 @@ public DataType getElement() { *

Property description: *
null

*/ - @objid ("4d26b70c-03da-4952-b68d-d538a3e14bf4") + @objid ("b1752566-6eae-4555-a2b4-9876b0685c4f") public String getFormula() { return this.elt.getTagValue(CompositeUnit.MdaTypes.FORMULA_TAGTYPE_ELT); } - @objid ("6f95446a-253d-44b0-9f92-62739fc375d9") + @objid ("af1dca76-caa3-4ca9-b8dd-fbeeb7f2ea6c") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -182,12 +182,13 @@ public int hashCode() { * Remove a value from the 'componentsUnits' role.

* Role description: * null + * */ - @objid ("3822ce2f-b198-4f74-97e3-67f3a116a8fb") + @objid ("7ebb9200-4e69-4e9c-81a4-efbb729f6b80") public boolean removeComponentsUnits(final Unit obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getDependsOnDependency())) { - if (d.isStereotyped(CompositeUnit.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(CompositeUnit.MdaTypes.MDAASSOCDEP_ROLE), "")) + if (d.isStereotyped(CompositeUnit.MdaTypes.MDAASSOCDEP) && Objects.equals(d.getTagValue(CompositeUnit.MdaTypes.MDAASSOCDEP_ROLE), "componentsUnits")) if (Objects.equals(d.getDependsOn(), obj.getElement())) { d.delete(); return true; @@ -202,7 +203,7 @@ public boolean removeComponentsUnits(final Unit obj) { *

Property description: *
null

*/ - @objid ("e296dd2e-cabe-4190-b206-95e33c28e6e2") + @objid ("b0497d79-8c1e-418f-ab29-3b2c4dc9f016") public void setFormula(final String value) { this.elt.putTagValue(CompositeUnit.MdaTypes.FORMULA_TAGTYPE_ELT, value); } @@ -215,26 +216,26 @@ public List getChilds() { return result; } - @objid ("154497a7-eee9-45f8-a141-ed30fd034ce8") + @objid ("99e2cede-0f81-4558-9b64-d722a61f73bb") protected CompositeUnit(final DataType elt) { super(elt); } @objid ("fb4ae2ef-3762-478f-83ef-6a6c6af48a4e") public static final class MdaTypes { - @objid ("b1c87088-62ae-49ae-998c-1ce7a8d8d50e") + @objid ("f5027bb0-7361-4ef4-b13f-d9720b64fd09") public static Stereotype STEREOTYPE_ELT; - @objid ("306fc778-28f7-48fb-af55-b97ab0b053e4") + @objid ("4705d424-871a-4f27-b317-aca3cd99b8a5") public static TagType FORMULA_TAGTYPE_ELT; - @objid ("59aae610-e358-4eda-8ca0-5b1210916b72") + @objid ("c6fb2f0e-5b68-4810-87c5-58ce26388ac7") private static Stereotype MDAASSOCDEP; - @objid ("54583f0b-9705-4100-a2dd-48df3c80b510") + @objid ("267ce371-bdbc-4f81-a5cd-d5faa5e3b5f6") private static TagType MDAASSOCDEP_ROLE; - @objid ("40fe128e-d166-4178-8b17-0b13a7fe395e") + @objid ("2967d803-ab27-4a03-ba07-c17023c17a75") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "54731af6-c46a-4304-996c-2e03b9035567"); FORMULA_TAGTYPE_ELT = ctx.getModelingSession().findElementById(TagType.class, "a2bb36cd-c4c0-4f75-b9ed-ec821fa8774e"); @@ -243,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/unitmodel/standard/datatype/DimensionedUnit.java b/src/main/java/fr/softeam/cameldesigner/api/unitmodel/standard/datatype/DimensionedUnit.java index aa7fb565..28701045 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.unitmodel.standard.datatype; @@ -14,6 +14,7 @@ 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; @@ -35,7 +36,7 @@ */ @objid ("2e234a26-ab74-44b2-9156-be36441cff03") public abstract class DimensionedUnit extends Unit { - @objid ("a7fd7f66-bbfd-4593-997d-8a0bb8687f39") + @objid ("2cb326a8-965a-478d-9a43-a217a285db8b") public static final String STEREOTYPE_NAME = "DimensionedUnit"; /** @@ -46,7 +47,7 @@ public abstract class DimensionedUnit extends Unit { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("9ce35215-d443-4540-8b61-d822597d6fa4") + @objid ("0d764746-4ad8-457c-b1f4-b107119ae8c7") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof DataType) && ((DataType) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, DimensionedUnit.STEREOTYPE_NAME)); } @@ -56,7 +57,7 @@ public static DimensionedUnit instantiate(final DataType obj) { return SingleUnit.canInstantiate(obj) ? new SingleUnit(obj) : CompositeUnit.canInstantiate(obj) ? new CompositeUnit(obj) : null; } - @objid ("eb43816d-77d7-45d7-85d8-aa827e7920d6") + @objid ("fc6acc55-2941-4c5c-b5ff-86b4ed5b35d1") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -76,8 +77,9 @@ public boolean equals(final Object obj) { * Get the value of the 'dimension' role.

* Role description: * null + * */ - @objid ("ef52b9c3-4ab1-4f26-92fe-20d5ac03d2c7") + @objid ("ed21c615-82e8-44f3-8ea9-c9cf77df5ef5") public UnitDimension getDimension() { for (Dependency d : this.elt.getDependsOnDependency()) { if (d.isStereotyped(DimensionedUnit.MdaTypes.MDAASSOCDEP) @@ -90,17 +92,16 @@ public UnitDimension getDimension() { } /** - * Get the underlying {@link DataType}. - * + * Get the underlying {@link DataType}. * @return the DataType represented by this proxy, never null. */ - @objid ("de199e19-cf49-4efb-a0a9-51d7d15eabf1") + @objid ("fd0543bc-054c-4158-886c-809e5b4a2048") @Override public DataType getElement() { return (DataType)super.getElement(); } - @objid ("7280bd88-5257-4ff5-ad46-cb4b9f66c8bf") + @objid ("a9ae8e13-8aaa-4924-9ffb-808e35ca4ff4") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -110,8 +111,9 @@ public int hashCode() { * Set the value of the 'dimension' role.

* Role description: * null + * */ - @objid ("9600c1c2-826b-4aeb-bdfe-562c0ea88ad2") + @objid ("3835c9c4-d0c4-4d5f-85ee-04b370020324") public void setDimension(final UnitDimension obj) { Dependency dep = null; for (Dependency d : this.elt.getDependsOnDependency()) @@ -139,23 +141,23 @@ public List getChilds() { return result; } - @objid ("000d4b1b-1252-498a-bb20-681eed4e4864") + @objid ("0069f519-ae28-4c76-9fa9-16f600cbe2f2") protected DimensionedUnit(final DataType elt) { super(elt); } @objid ("7020bdc9-61ca-45e7-b8b0-e04dd997a97d") public static final class MdaTypes { - @objid ("0deae437-b81f-4ddd-bff9-91cd908f4176") + @objid ("8b002f9a-45f6-46fa-b448-689fd717f0c7") public static Stereotype STEREOTYPE_ELT; - @objid ("999948a3-e19f-4489-a7e9-4579ae05ac34") + @objid ("8c2af662-4f52-4a4a-8eef-5a8a7620c366") private static Stereotype MDAASSOCDEP; - @objid ("bc42fe73-03db-4f7d-96c5-4860715e7392") + @objid ("2c057024-af34-4b81-b79c-d5c8633a1cbe") private static TagType MDAASSOCDEP_ROLE; - @objid ("6e2d34a2-73ff-4863-826b-feb3210dad0b") + @objid ("e6f5f3b9-b4de-4a24-9c4d-e81cd742e5c6") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "7e307b11-f18c-4c69-8c76-7b57b8d1bb8e"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -163,11 +165,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 c4053dc8..4973453a 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.unitmodel.standard.datatype; @@ -35,7 +35,7 @@ */ @objid ("e9f9cd86-0e87-4d30-8dca-05407bf4faee") public class Dimensionless extends Unit { - @objid ("8085692a-5916-41f5-a8e7-b75debef5a6a") + @objid ("a069b4fb-0a04-46dd-a93b-c95e874e6417") public static final String STEREOTYPE_NAME = "Dimensionless"; /** @@ -46,7 +46,7 @@ public class Dimensionless extends Unit { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("1223dd3e-9fb2-4246-96ce-07ff58c508d6") + @objid ("e1115c8c-89fa-443f-90c0-784f77cbebec") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof DataType) && ((DataType) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, Dimensionless.STEREOTYPE_NAME)); } @@ -56,7 +56,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link Dimensionless} proxy on the created {@link DataType}. */ - @objid ("9cfc7c04-b526-4447-acc3-cee5e336ca19") + @objid ("1333c8f2-d625-4b04-8930-dab0ff2c5594") public static Dimensionless create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.DataType"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, Dimensionless.STEREOTYPE_NAME); @@ -64,36 +64,34 @@ 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. */ - @objid ("45333f74-5490-4c41-a360-911aa6b74edf") + @objid ("e4b92af4-557e-4afb-a637-9d5faf4d16d6") public static Dimensionless instantiate(final DataType obj) { return Dimensionless.canInstantiate(obj) ? new Dimensionless(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("bddc8632-2dac-4021-ae2c-73c325a1d4e7") + @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 ("fdefe15e-bd08-4fb1-871f-bd82d8819f2a") + @objid ("98602ee2-5265-4e53-a8e6-127beb95db79") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -110,17 +108,16 @@ 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 ("077dc702-cae9-4a92-bc03-69b2f16a040f") + @objid ("f95db2aa-0ff8-47bf-9c00-c29d3531f245") @Override public DataType getElement() { return (DataType)super.getElement(); } - @objid ("941d554b-8f53-4764-8a6f-bd4e9e84ecbb") + @objid ("2512c8f0-5910-4f3e-bedb-e3758abc4f12") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -134,23 +131,23 @@ public List getChilds() { return result; } - @objid ("48de22ee-1099-473f-8fc5-bcb4b93ac639") + @objid ("41a5fe10-d48b-465e-a6ac-1b08defb3622") protected Dimensionless(final DataType elt) { super(elt); } @objid ("1d70db3f-3af3-451e-8f06-2dfdde561927") public static final class MdaTypes { - @objid ("fda9bd9a-1c45-4128-af1a-83f4ee9ece16") + @objid ("a564fee3-731f-41c7-b0e6-ade785b906eb") public static Stereotype STEREOTYPE_ELT; - @objid ("b2cbaaba-0eab-472f-a1ce-b61474c79e91") + @objid ("b8b196be-c0a8-480d-9a4d-b782fe1cb9a1") private static Stereotype MDAASSOCDEP; - @objid ("1d5a3be5-6657-46ba-ab43-3bba8b04b215") + @objid ("65c4aa33-3bb6-451d-a12c-3dad3be254e3") private static TagType MDAASSOCDEP_ROLE; - @objid ("4870028c-238f-4f19-802e-2d66413557aa") + @objid ("13e167d1-1572-40e8-a588-e2a195ae9963") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "4d98d5de-9085-4175-b509-30f88171f3ea"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -158,11 +155,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 ca18afb2..0906961b 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.unitmodel.standard.datatype; @@ -35,7 +35,7 @@ */ @objid ("7dfc6119-7128-437f-995f-47f0c2960c89") public class SingleUnit extends DimensionedUnit { - @objid ("8b8762c3-079d-44ec-8bdd-c8d4147184bc") + @objid ("1ae4c53b-0795-41db-a9dd-3434a87e5f6d") public static final String STEREOTYPE_NAME = "SingleUnit"; /** @@ -46,7 +46,7 @@ public class SingleUnit extends DimensionedUnit { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("68d32370-313d-4c1b-983d-dd1af9020fd2") + @objid ("6f67175a-3877-411d-8c57-6f720adfcae7") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof DataType) && ((DataType) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, SingleUnit.STEREOTYPE_NAME)); } @@ -56,7 +56,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link SingleUnit} proxy on the created {@link DataType}. */ - @objid ("56f2a1e9-cf6a-4adb-8746-ed4371ad18cd") + @objid ("1baa0ddc-2e32-4e33-8d2a-2eba4ce4e917") public static SingleUnit create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.DataType"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, SingleUnit.STEREOTYPE_NAME); @@ -64,36 +64,34 @@ 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. */ - @objid ("bbacf1e8-ba0b-40b4-8d67-790051061b18") + @objid ("feda5a3d-8806-488a-8973-72f4bc21794b") public static SingleUnit instantiate(final DataType obj) { return SingleUnit.canInstantiate(obj) ? new SingleUnit(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("2536c28c-96f5-449e-bbad-0d766a63c78e") + @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 ("4b6b3f91-728e-4858-a7ca-fb74fdfa345c") + @objid ("8768357e-f8d6-47ee-9ab0-6869078821db") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -110,17 +108,16 @@ 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 ("639c938f-7497-4f32-aecc-4de07aea8ddc") + @objid ("8f55dee3-31b4-4b4d-88bb-f7000308faf1") @Override public DataType getElement() { return (DataType)super.getElement(); } - @objid ("3a0090e7-1001-44a7-bf15-45228919df87") + @objid ("de528291-71fc-4e06-8b32-ab750b304fa0") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -134,23 +131,23 @@ public List getChilds() { return result; } - @objid ("12668c55-0e37-4229-b012-fa7f8bbfa91e") + @objid ("1fb7f85d-d7a2-4b00-87f7-869b4525b92a") protected SingleUnit(final DataType elt) { super(elt); } @objid ("41eab5b5-d30f-43d2-9da2-943d64381732") public static final class MdaTypes { - @objid ("d11aeecf-bf58-4050-bfab-ef4959e591d8") + @objid ("489d7865-2030-4e26-a206-0e1dd585d6e6") public static Stereotype STEREOTYPE_ELT; - @objid ("eb4b6999-5add-46cc-a3d4-d721bf1ff342") + @objid ("2d087221-0e68-4d57-ac8a-4257b6d8f4c4") private static Stereotype MDAASSOCDEP; - @objid ("1d41dc7e-5432-4f4d-837f-5b8eaef6bc05") + @objid ("32b0802e-0985-4ee7-bdf9-872b3a7d46cb") private static TagType MDAASSOCDEP_ROLE; - @objid ("ac69f93e-4fc4-4288-9f6d-0f9edc1b7ae7") + @objid ("b6cfd1c9-f73f-47b7-92a7-1547a2e50f46") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "5f6c0584-c6dd-44e5-a1ad-cd4785dccb03"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -158,11 +155,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 0411e7a6..1799826b 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.unitmodel.standard.datatype; @@ -36,7 +36,7 @@ */ @objid ("ad5e8f7b-b3a0-4678-bcf5-5ad638242927") public abstract class Unit extends FeatureDataType { - @objid ("f34fc6d5-c337-4c22-ab20-f1148733d240") + @objid ("85fc0524-1c12-43ef-9a57-2fe18bedbcd2") public static final String STEREOTYPE_NAME = "Unit"; /** @@ -47,7 +47,7 @@ public abstract class Unit extends FeatureDataType { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("38492abd-a3ca-47af-99b2-3b9b255fa282") + @objid ("aa88ab8b-70d6-4501-b40e-c0843ff5b80e") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof DataType) && ((DataType) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, Unit.STEREOTYPE_NAME)); } @@ -61,8 +61,9 @@ public static Unit instantiate(final DataType obj) { * Add a value of the 'multipleOf' role.

* Role description: * null + * */ - @objid ("1bceff8e-67b0-4fd0-b219-22e55e4b04c7") + @objid ("b1351911-200b-4a3a-a266-57034a249f6f") public void addMultipleOf(final Unit obj) { if (obj != null) { IModelingSession session = CamelDesignerModule.getInstance().getModuleContext().getModelingSession(); @@ -72,7 +73,7 @@ public void addMultipleOf(final Unit obj) { } } - @objid ("800d67e5-90f0-4f27-a744-9f730f1f0c67") + @objid ("55c6e898-2de3-4705-8335-e755f2c515ac") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -89,11 +90,10 @@ 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 ("aa21ea6d-5384-4259-a99e-9a2ea145de48") + @objid ("beaab2de-ed3c-4e6b-a1e3-c9c81a916660") @Override public DataType getElement() { return (DataType)super.getElement(); @@ -103,8 +103,9 @@ public DataType getElement() { * Get the values of the 'multipleOf' role.

* Role description: * null + * */ - @objid ("289c336b-739a-4318-9574-ee750d3d8d50") + @objid ("ff0777a8-7c02-4247-9a42-23ec6b352476") public List getMultipleOf() { List results = new ArrayList<>(); for (Dependency d : this.elt.getImpactedDependency()) { @@ -117,7 +118,7 @@ public List getMultipleOf() { return Collections.unmodifiableList(results); } - @objid ("9e787335-2e83-482f-8ac3-6c498786bc61") + @objid ("676e034e-9949-491e-901d-d0cdf134fc51") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -127,8 +128,9 @@ public int hashCode() { * Remove a value from 'multipleOf' role.

* Role description: * null + * */ - @objid ("a8c9200f-ce84-4fb3-aec1-efc0c65a0dc9") + @objid ("1afce388-d973-4ced-b9b6-0d485d524ae9") public boolean removeMultipleOf(final Unit obj) { if (obj != null) { for (Dependency d : new ArrayList<>(this.elt.getImpactedDependency())) { @@ -150,23 +152,23 @@ public List getChilds() { return result; } - @objid ("9fc9da03-82a0-4acc-a351-85c0dfa72fe2") + @objid ("ecb684b2-015b-4de2-a235-80b5617927f2") protected Unit(final DataType elt) { super(elt); } @objid ("6a12e779-f186-4ba1-ab98-47ecdcdb6ad2") public static final class MdaTypes { - @objid ("2470811f-f4dc-4704-b5b7-bd1d38cb44b4") + @objid ("de0fd11e-6b08-46f1-881a-0dc2196eb44a") public static Stereotype STEREOTYPE_ELT; - @objid ("078311b7-5b8a-468c-a9d7-80b1ccc8024e") + @objid ("fadb6e62-2488-4d05-84a3-2843fa4fd843") private static Stereotype MDAASSOCDEP; - @objid ("b8e80106-0ed7-4ef9-8977-4e2d243366a2") + @objid ("7fcc9631-b205-40d1-878d-0a079dc9ff8e") private static TagType MDAASSOCDEP_ROLE; - @objid ("e8be1a8d-b48b-4471-a49c-776860b477f0") + @objid ("eb1b558f-82f9-44e5-a74a-fe0b4f1c729c") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "56c9f56b-274d-4816-80c8-72536d1d7295"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -174,11 +176,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 0e83af9d..37864d72 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.unitmodel.standard.datatype; @@ -36,7 +36,7 @@ */ @objid ("1707f141-4e9c-4725-b618-05f025f22d01") public class UnitDimension extends FeatureDataType { - @objid ("fa131bad-c717-4a91-8dae-6c72efac1bf6") + @objid ("bac08800-96b3-4c56-b2b1-187429ad4071") public static final String STEREOTYPE_NAME = "UnitDimension"; /** @@ -47,7 +47,7 @@ public class UnitDimension extends FeatureDataType { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("458b24ed-cc10-4a24-963e-439f1d6e95f7") + @objid ("5ce42fa8-6898-4b9e-8b38-6df7072c24a3") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof DataType) && ((DataType) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, UnitDimension.STEREOTYPE_NAME)); } @@ -57,7 +57,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link UnitDimension} proxy on the created {@link DataType}. */ - @objid ("4957ad00-5921-4639-b5f7-1e3084d87a53") + @objid ("cbb9257a-4a50-4396-8c5d-7909f02b65fc") public static UnitDimension create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.DataType"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, UnitDimension.STEREOTYPE_NAME); @@ -65,36 +65,34 @@ 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. */ - @objid ("ab9ece6b-986c-4561-affd-452b8bb3e6e6") + @objid ("afd07ecc-ab84-406b-bc96-0aa40c55e94f") public static UnitDimension instantiate(final DataType obj) { return UnitDimension.canInstantiate(obj) ? new UnitDimension(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("5d67319d-1b67-459f-acad-e88e9ea191f5") + @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 ("319abea3-1d0b-4ece-8ee7-ae349feaf906") + @objid ("0b022b62-6a2e-489d-8b7c-1a92f57dd371") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -111,17 +109,16 @@ 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 ("c8aeaf04-ecad-4190-b392-5fa0f2acb782") + @objid ("ff0c1f09-9651-40bc-9c5e-a73c40f1221e") @Override public DataType getElement() { return (DataType)super.getElement(); } - @objid ("526b1f37-90d3-4dfd-8313-5bd3c7fc3f34") + @objid ("afcf856c-cfee-4793-8966-90ea1f7bdc25") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -135,23 +132,23 @@ public List getChilds() { return result; } - @objid ("d4866c08-4693-4cc3-9941-0d37a4be035a") + @objid ("d9daa398-0f16-4bf9-b33a-f62046a23013") protected UnitDimension(final DataType elt) { super(elt); } @objid ("75da9eb1-b40f-49c3-9600-695ba46ea42f") public static final class MdaTypes { - @objid ("52e42729-3289-422c-8fda-b4fabc1f523d") + @objid ("d5b220d9-aaa1-4c7e-bf52-34383173b6f1") public static Stereotype STEREOTYPE_ELT; - @objid ("ffa53fca-da5f-43f7-8dc0-545f7249466c") + @objid ("96c6d216-eeb3-4002-a6dc-ea01af1f56dc") private static Stereotype MDAASSOCDEP; - @objid ("15692231-efbd-4096-8d20-939533e229b6") + @objid ("32349d6a-97a3-4890-9a0a-de75ec7018fc") private static TagType MDAASSOCDEP_ROLE; - @objid ("12838cbf-389b-4181-b9cf-3f6e641b77b2") + @objid ("e87ea0b6-86d1-4fae-9170-437367feb25b") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "ce437f2d-07f2-4127-9702-da4eb627b157"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -159,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/unitmodel/standard/package_/UnitModel.java b/src/main/java/fr/softeam/cameldesigner/api/unitmodel/standard/package_/UnitModel.java index fa0b7688..65dd720c 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 @@ -1,8 +1,8 @@ /* * WARNING: GENERATED FILE - DO NOT EDIT - * Module: CamelDesigner v1.0.09 + * Module: CamelDesigner v1.0.10 - * This file was generated on 4/20/22 10:37 AM by Modelio Studio. + * This file was generated on 4/27/22 11:51 AM by Modelio Studio. */ package fr.softeam.cameldesigner.api.unitmodel.standard.package_; @@ -43,7 +43,7 @@ */ @objid ("7988540c-148d-49c6-853a-5b32ce9e826d") public class UnitModel extends SubModel { - @objid ("ddd46e4c-6d34-4d16-91d2-17a48c457901") + @objid ("6c40c6eb-33f3-44f8-b7c3-bcb29903e43c") public static final String STEREOTYPE_NAME = "UnitModel"; /** @@ -54,7 +54,7 @@ public class UnitModel extends SubModel { * @param elt a model object * @return true if the instantiation can be carried out else false. */ - @objid ("7c7928c5-0070-477e-9261-2a5920328aef") + @objid ("72d1bb23-d0c3-4036-abc2-1cf4664f044b") public static boolean canInstantiate(final MObject elt) { return ((elt instanceof Package) && ((Package) elt).isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, UnitModel.STEREOTYPE_NAME)); } @@ -64,7 +64,7 @@ public static boolean canInstantiate(final MObject elt) { * * @return a {@link UnitModel} proxy on the created {@link Package}. */ - @objid ("44df216e-5e49-4f6e-8f87-fe4c4b1747c6") + @objid ("b5fb1326-ae6f-40ab-bdfc-2b58cb11e129") public static UnitModel create() { ModelElement e = (ModelElement)CamelDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Package"); e.addStereotype(ICamelDesignerPeerModule.MODULE_NAME, UnitModel.STEREOTYPE_NAME); @@ -72,41 +72,40 @@ 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. */ - @objid ("2c0695b3-d0a4-41d2-9933-44fb839286f5") + @objid ("4461ddf7-b19d-4911-ae50-015ec9ab4683") public static UnitModel instantiate(final Package obj) { return UnitModel.canInstantiate(obj) ? new UnitModel(obj) : null; } /** - * 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 java.lang.IllegalArgumentException if the instantiation cannot be carried out. + * @throws IllegalArgumentException if the instantiation cannot be carried out. */ - @objid ("1b00cc60-a9f6-4330-ac8c-5eac4f45e34f") + @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 ("ef48008f-ac75-44e4-bb4f-3a14c558d98d") + @objid ("82f7f6b4-dcd0-469b-a774-878369fb64a8") public void addDimensions(final UnitDimension obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); @@ -116,14 +115,15 @@ public void addDimensions(final UnitDimension obj) { * Add a value to the 'units' role.

* Role description: * null + * */ - @objid ("46b86146-ca8c-452f-8f8e-eaf99829d422") + @objid ("8138ffc0-2d42-44f3-b85b-c5103c58c8ff") public void addUnits(final Unit obj) { if (obj!=null) ((Package) this.elt).getOwnedElement().add(obj.getElement()); } - @objid ("ef113cfc-395b-4b37-8559-b81700346ba8") + @objid ("16b35dad-66e6-40c8-806d-4a066b200505") @Override public boolean equals(final Object obj) { if (this == obj) { @@ -143,8 +143,9 @@ public boolean equals(final Object obj) { * Get the value to the 'camelModel' role.

* Role description: * null + * */ - @objid ("ca5a796f-2f88-4276-bd4b-28868aa86ec0") + @objid ("668d8cbe-3e4c-45fb-b0aa-0a0979feacb4") public CamelModel getCamelModel() { return (CamelModel)CamelDesignerProxyFactory.instantiate(((Package) this.elt).getOwner(), CamelModel.STEREOTYPE_NAME); } @@ -153,23 +154,23 @@ public CamelModel getCamelModel() { * Get the values of the 'dimensions' role.

* Role description: * null + * */ - @objid ("3a942687-10bc-458d-a8ea-94c8b2eb6fd2") + @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 ("9f1d2de6-58b4-4f8b-b173-a1e4626df8af") + @objid ("897b56c6-302b-43f5-84bf-e169db5c06df") @Override public Package getElement() { return (Package)super.getElement(); @@ -179,22 +180,23 @@ public Package getElement() { * Get the values of the 'units' role.

* Role description: * null + * */ - @objid ("ec8b52e8-645b-4844-a332-f0f332cb7ed9") + @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); } - @objid ("bf744836-1d0f-4d63-9f3c-18be06442271") + @objid ("90272ff1-d219-4eac-a8b0-6e41227f9e4f") @Override public int hashCode() { return 23 + ((this.elt == null) ? 0 : this.elt.hashCode()); @@ -204,8 +206,9 @@ public int hashCode() { * Remove a value from the 'dimensions' role.

* Role description: * null + * */ - @objid ("579758f4-d015-4988-b2b8-4c027cb10dbd") + @objid ("799977da-b347-4139-b9ec-5a3530f0bd2c") public boolean removeDimensions(final UnitDimension obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -214,8 +217,9 @@ public boolean removeDimensions(final UnitDimension obj) { * Remove a value from the 'units' role.

* Role description: * null + * */ - @objid ("858e568e-886d-4403-a6ea-3a5eeafeecd9") + @objid ("05e5d106-ef23-46df-b6e0-66f6e02d0ad5") public boolean removeUnits(final Unit obj) { return (obj!=null)? ((Package) this.elt).getOwnedElement().remove(obj.getElement()) : false; } @@ -224,8 +228,9 @@ public boolean removeUnits(final Unit obj) { * Set the value of the 'camelModel' role.

* Role description: * null + * */ - @objid ("f1f10967-a7bd-4138-9a44-5e09f334ac7e") + @objid ("d6bfdc34-b78b-42be-9add-43c679fec60f") public void setCamelModel(final CamelModel obj) { ((Package) this.elt).setOwner((obj != null) ? obj.getElement() : null); } @@ -238,23 +243,23 @@ public List getChilds() { return result; } - @objid ("792f4410-ea2d-4c30-958d-b9ab46aeb843") + @objid ("c855d454-69c0-4ffc-88e8-767db0c90d75") protected UnitModel(final Package elt) { super(elt); } @objid ("fbd51035-faf8-4064-a217-af4ea824c639") public static final class MdaTypes { - @objid ("aa59458f-7f99-447c-a051-83ac25965eea") + @objid ("0f279f1f-266b-4355-9081-c0db8c097dc3") public static Stereotype STEREOTYPE_ELT; - @objid ("cba952c0-0c90-4186-a1bf-b42860bf1654") + @objid ("6a748943-efa8-49ee-8ff7-62a12eb24cbb") private static Stereotype MDAASSOCDEP; - @objid ("fb305955-21c8-4568-8ed0-b0457417d528") + @objid ("1c59a018-c024-4bce-88c9-0962304389b2") private static TagType MDAASSOCDEP_ROLE; - @objid ("fbf3876f-d5ac-42ca-9a6e-e207135a1a69") + @objid ("dddb9fb5-2791-48db-9ef6-3de33ff09eff") public static void init(final IModuleContext ctx) { STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "59acf7f4-2a84-41d4-8fcb-ec300340062c"); MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e"); @@ -262,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/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/execution/ExecutionModelExporter.java b/src/main/java/fr/softeam/cameldesigner/exchange/exporter/execution/ExecutionModelExporter.java index 2a070543..908da1dd 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 @@ -39,7 +39,11 @@ public void setProperties(CDOObject elt) { @objid ("34dd56e1-d3cb-48c6-99f2-5054091dcb52") @Override public void attach(CDOObject elt, CDOObject context) { - super.attach(elt, context); + if ((context instanceof camel.core.CamelModel) && (elt instanceof camel.execution.ExecutionModel)) { + ((camel.core.CamelModel) context).getExecutionModels().add((camel.execution.ExecutionModel) elt); + }else { + super.attach(elt, context); + } } @objid ("8e07ae07-ced3-484d-b123-cc0286023e6a") diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/exporter/organisation/OrganisationModelExporter.java b/src/main/java/fr/softeam/cameldesigner/exchange/exporter/organisation/OrganisationModelExporter.java index f25451e1..3665ae09 100644 --- a/src/main/java/fr/softeam/cameldesigner/exchange/exporter/organisation/OrganisationModelExporter.java +++ b/src/main/java/fr/softeam/cameldesigner/exchange/exporter/organisation/OrganisationModelExporter.java @@ -33,7 +33,11 @@ public void setProperties(CDOObject elt) { @objid ("19743cd6-be73-4790-85fd-e40a9f3d8af5") @Override public void attach(CDOObject elt, CDOObject context) { - super.attach(elt, context); + if ((context instanceof camel.core.CamelModel) && (elt instanceof camel.organisation.OrganisationModel)) { + ((camel.core.CamelModel) context).getOrganisationModels().add((camel.organisation.OrganisationModel) elt); + }else { + super.attach(elt, context); + } } @objid ("36f2a71b-3e62-4386-a249-3a24ecfe395b") diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/exporter/scalability/ScalabilityModelExporter.java b/src/main/java/fr/softeam/cameldesigner/exchange/exporter/scalability/ScalabilityModelExporter.java index 8952ffc9..1d73c8aa 100644 --- a/src/main/java/fr/softeam/cameldesigner/exchange/exporter/scalability/ScalabilityModelExporter.java +++ b/src/main/java/fr/softeam/cameldesigner/exchange/exporter/scalability/ScalabilityModelExporter.java @@ -28,7 +28,11 @@ public void setProperties(CDOObject elt) { @objid ("962c2eb4-d4b0-4198-84ba-cd92785298c0") @Override public void attach(CDOObject elt, CDOObject context) { - super.attach(elt, context); + if ((context instanceof camel.core.CamelModel) && (elt instanceof camel.scalability.ScalabilityModel)) { + ((camel.core.CamelModel) context).getScalabilityModels().add((camel.scalability.ScalabilityModel) elt); + }else { + super.attach(elt, context); + } } } diff --git a/src/main/java/fr/softeam/cameldesigner/handlers/propertypages/core/AttributeAttributePropertyPage.java b/src/main/java/fr/softeam/cameldesigner/handlers/propertypages/core/AttributeAttributePropertyPage.java index dd66c96f..2b5e29a8 100644 --- a/src/main/java/fr/softeam/cameldesigner/handlers/propertypages/core/AttributeAttributePropertyPage.java +++ b/src/main/java/fr/softeam/cameldesigner/handlers/propertypages/core/AttributeAttributePropertyPage.java @@ -80,6 +80,7 @@ public void update(IModulePropertyTable table) { table.addProperty("ValueType", value, getValueType()); //Unit + value = ""; Unit unit = this._element.getUnit(); if (unit != null) { value = getCamelName(unit.getElement()); diff --git a/src/main/java/fr/softeam/cameldesigner/handlers/propertypages/core/AttributeClassPropertyPage.java b/src/main/java/fr/softeam/cameldesigner/handlers/propertypages/core/AttributeClassPropertyPage.java index 0b8b6a46..f217b60b 100644 --- a/src/main/java/fr/softeam/cameldesigner/handlers/propertypages/core/AttributeClassPropertyPage.java +++ b/src/main/java/fr/softeam/cameldesigner/handlers/propertypages/core/AttributeClassPropertyPage.java @@ -1,8 +1,16 @@ package fr.softeam.cameldesigner.handlers.propertypages.core; +import java.util.ArrayList; +import java.util.List; import com.modeliosoft.modelio.javadesigner.annotations.objid; +import fr.softeam.cameldesigner.api.CamelDesignerAbstractProxy; import fr.softeam.cameldesigner.api.camelcore.standard.class_.AttributeClass; +import fr.softeam.cameldesigner.api.typemodel.standard.datatype.ValueType; +import fr.softeam.cameldesigner.api.unitmodel.standard.datatype.Unit; +import fr.softeam.cameldesigner.utils.PrimitiveTypeUtils; import org.modelio.api.module.propertiesPage.IModulePropertyTable; +import org.modelio.metamodel.uml.infrastructure.ModelElement; +import org.modelio.metamodel.uml.statik.DataType; @objid ("935a3286-88b3-4606-bb1f-6cbaa81c965e") public class AttributeClassPropertyPage extends CamelAttributePropertyPage { @@ -18,6 +26,32 @@ public class AttributeClassPropertyPage extends CamelA @Override public void changeProperty(int row, String value) { super.changeProperty(row, value); + + if(this._currentRow == 1){ + this._element.setValue(value); + } + else if(this._currentRow == 2){ + if (value.equals(" ")) { + this._element.setValueType(null); + }else { + if (PrimitiveTypeUtils.isPrimitiveType(value)) { + this._element.setPrimitiveType(PrimitiveTypeUtils.getDataType(value)); + }else{ + DataType elt = (DataType) getModelElt(CamelDesignerAbstractProxy.getValueTypes(), value); + if (ValueType.canInstantiate(elt)) { + this._element.setValueType(ValueType.instantiate(elt)); + } + } + } + } + else if(this._currentRow == 3){ + DataType elt = (DataType) getModelElt(CamelDesignerAbstractProxy.getUnits(), value); + if (Unit.canInstantiate(elt)) { + this._element.setUnit(Unit.instantiate(elt)); + } + } + + this._currentRow -= 3; } /** @@ -30,6 +64,31 @@ public void changeProperty(int row, String value) { @Override public void update(IModulePropertyTable table) { super.update(table); + + //Value + table.addProperty("Value", getNotNull(this._element.getValue())); + + + //ValueType + String value = ""; + ValueType type = this._element.getValueType(); + if (type != null) { + value = getCamelName(type.getElement()); + }else { + DataType primitive = this._element.getPrimitiveType(); + if ((primitive != null) &&(PrimitiveTypeUtils.isPrimitiveType(primitive))) { + value = PrimitiveTypeUtils.getLabel(primitive); + } + } + table.addProperty("ValueType", value, getValueType()); + + //Unit + value = ""; + Unit unit = this._element.getUnit(); + if (unit != null) { + value = getCamelName(unit.getElement()); + } + table.addProperty("Unit", value, getCamelNames(CamelDesignerAbstractProxy.getUnits())); } @objid ("846de64a-c560-4d83-8c06-bdfa262d8502") @@ -37,4 +96,19 @@ public AttributeClassPropertyPage(T elt) { super(elt); } + @objid ("b8991e6a-1bea-44fe-b675-1c959989acba") + private String[] getValueType() { + List result = new ArrayList<>(); + result.add(" "); + + //primitiveType + result.addAll(PrimitiveTypeUtils.getPrimitiveType()); + + List valueTypes = CamelDesignerAbstractProxy.getValueTypes(); + for (ModelElement elt : valueTypes) { + result.add(getCamelName(elt)); + } + return result.toArray(new String[result.size()]); + } + } diff --git a/src/main/java/fr/softeam/cameldesigner/handlers/propertypages/core/MeasurableAttributeAttributePropertyPage.java b/src/main/java/fr/softeam/cameldesigner/handlers/propertypages/core/MeasurableAttributeAttributePropertyPage.java index 0a1c17c9..37627c78 100644 --- a/src/main/java/fr/softeam/cameldesigner/handlers/propertypages/core/MeasurableAttributeAttributePropertyPage.java +++ b/src/main/java/fr/softeam/cameldesigner/handlers/propertypages/core/MeasurableAttributeAttributePropertyPage.java @@ -1,8 +1,12 @@ package fr.softeam.cameldesigner.handlers.propertypages.core; 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.standard.attribute.MeasurableAttributeAttribute; +import fr.softeam.cameldesigner.api.metricmodel.standard.component.Sensor; import org.modelio.api.module.propertiesPage.IModulePropertyTable; +import org.modelio.metamodel.uml.statik.Class; @objid ("bf4f798e-4a7d-41a1-91ae-3677727ecdbd") public class MeasurableAttributeAttributePropertyPage extends QualityAttributeAttributePropertyPage { @@ -18,6 +22,19 @@ public class MeasurableAttributeAttributePropertyPage extends QualityAttributeClassPropertyPage { @@ -18,6 +22,19 @@ public class MeasurableAttributeClassPropertyPage extends CamelAttributePropertyPage { - /** - * 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 ("75df268e-e898-4773-a99f-5d8c3ac37f11") - @Override - public void changeProperty(int row, String value) { - super.changeProperty(row, 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 ("c9480a7b-f45d-49b9-803a-0a1d8d210870") - @Override - public void update(IModulePropertyTable table) { - super.update(table); - } - - @objid ("7b9a8d07-12f0-42ac-b448-ad4f9200100b") - public MeasurableAttributePropertyPage(T elt) { - super(elt); - } - -} diff --git a/src/main/java/fr/softeam/cameldesigner/handlers/propertypages/core/QualityAttributePropertyPage.java b/src/main/java/fr/softeam/cameldesigner/handlers/propertypages/core/QualityAttributePropertyPage.java deleted file mode 100644 index 668e0fa6..00000000 --- a/src/main/java/fr/softeam/cameldesigner/handlers/propertypages/core/QualityAttributePropertyPage.java +++ /dev/null @@ -1,40 +0,0 @@ -package fr.softeam.cameldesigner.handlers.propertypages.core; - -import com.modeliosoft.modelio.javadesigner.annotations.objid; -import fr.softeam.cameldesigner.api.camelcore.standard.class_.QualityAttributeClass; -import org.modelio.api.module.propertiesPage.IModulePropertyTable; - -@objid ("039449b2-fc5c-46dc-ad44-84986957f219") -public class QualityAttributePropertyPage extends CamelAttributePropertyPage { - /** - * 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 ("284848c5-2edd-46bf-a4a9-c29894e4d134") - @Override - public void changeProperty(int row, String value) { - super.changeProperty(row, 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 ("79113556-a08a-4bf0-9ef7-87ae5793fe21") - @Override - public void update(IModulePropertyTable table) { - super.update(table); - } - - @objid ("2db55384-53b4-4c9b-adf1-be9db455c981") - public QualityAttributePropertyPage(T elt) { - super(elt); - } - -} diff --git a/src/main/java/fr/softeam/cameldesigner/handlers/propertypages/location/GeographicalRegionPropertyPage.java b/src/main/java/fr/softeam/cameldesigner/handlers/propertypages/location/GeographicalRegionPropertyPage.java index 86bede28..a154afad 100644 --- a/src/main/java/fr/softeam/cameldesigner/handlers/propertypages/location/GeographicalRegionPropertyPage.java +++ b/src/main/java/fr/softeam/cameldesigner/handlers/propertypages/location/GeographicalRegionPropertyPage.java @@ -1,8 +1,11 @@ package fr.softeam.cameldesigner.handlers.propertypages.location; import com.modeliosoft.modelio.javadesigner.annotations.objid; +import fr.softeam.cameldesigner.api.CamelDesignerProxyFactory; +import fr.softeam.cameldesigner.api.ICamelDesignerPeerModule; import fr.softeam.cameldesigner.api.locationmodel.standard.enumeration.GeographicalRegion; import org.modelio.api.module.propertiesPage.IModulePropertyTable; +import org.modelio.metamodel.uml.statik.Class; @objid ("c4645b49-5a42-4f63-a315-9de67ad4ef1f") public class GeographicalRegionPropertyPage extends LocationPropertyPage { @@ -18,6 +21,19 @@ public class GeographicalRegionPropertyPage extend @Override public void changeProperty(int row, String value) { super.changeProperty(row, value); + + if(this._currentRow == 1) { + Class elt = (Class) getModelElt(GeographicalRegion.MdaTypes.STEREOTYPE_ELT.getExtendedElement(), value); + if ((elt!=null) &&(elt.isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, GeographicalRegion.STEREOTYPE_NAME))) { + Object mmsObj = CamelDesignerProxyFactory.instantiate(elt); + if (value.startsWith(this._add)) { + this._element.addParentRegions((GeographicalRegion) mmsObj); + }else { + this._element.removeParentRegions((GeographicalRegion) mmsObj); + } + } + } + this._currentRow -= 1; } /** @@ -30,6 +46,9 @@ public void changeProperty(int row, String value) { @Override public void update(IModulePropertyTable table) { super.update(table); + + //Parent RĂ©gions + table.addProperty("Parent Regions", getCamelValue(this._element.getParentRegions()), getAddRemove(GeographicalRegion.MdaTypes.STEREOTYPE_ELT.getExtendedElement(), this._element.getParentRegions())); } @objid ("36602fac-8a28-4e02-acb9-3af74ddb4095") diff --git a/src/main/java/fr/softeam/cameldesigner/handlers/propertypages/metric/RawMetricContextPropertyPage.java b/src/main/java/fr/softeam/cameldesigner/handlers/propertypages/metric/RawMetricContextPropertyPage.java index 8795ad2a..2947d5ba 100644 --- a/src/main/java/fr/softeam/cameldesigner/handlers/propertypages/metric/RawMetricContextPropertyPage.java +++ b/src/main/java/fr/softeam/cameldesigner/handlers/propertypages/metric/RawMetricContextPropertyPage.java @@ -1,8 +1,6 @@ package fr.softeam.cameldesigner.handlers.propertypages.metric; import com.modeliosoft.modelio.javadesigner.annotations.objid; -import fr.softeam.cameldesigner.api.ICamelDesignerPeerModule; -import fr.softeam.cameldesigner.api.metadatamodel.infrastructure.modelelement.MmsObject; import fr.softeam.cameldesigner.api.metricmodel.standard.class_.RawMetricContext; import fr.softeam.cameldesigner.api.metricmodel.standard.component.Sensor; import org.modelio.api.module.propertiesPage.IModulePropertyTable; diff --git a/src/main/java/fr/softeam/cameldesigner/impl/CamelDesignerModule.java b/src/main/java/fr/softeam/cameldesigner/impl/CamelDesignerModule.java index 73c979ad..969ea09a 100644 --- a/src/main/java/fr/softeam/cameldesigner/impl/CamelDesignerModule.java +++ b/src/main/java/fr/softeam/cameldesigner/impl/CamelDesignerModule.java @@ -94,7 +94,7 @@ public IMdaExpert getMdaExpert(final Stereotype st) { @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/utils/PrimitiveTypeUtils.java b/src/main/java/fr/softeam/cameldesigner/utils/PrimitiveTypeUtils.java index 72209eaf..065907c4 100644 --- a/src/main/java/fr/softeam/cameldesigner/utils/PrimitiveTypeUtils.java +++ b/src/main/java/fr/softeam/cameldesigner/utils/PrimitiveTypeUtils.java @@ -26,9 +26,7 @@ public static boolean isPrimitiveType(GeneralClass value) { @objid ("79486d68-5c69-4d17-aa80-2b12d4d6936b") public static DataType getDataType(String value) { - String ID = null; - - for( CamelPrimitiveType type : CamelPrimitiveType.values()) { + for(CamelPrimitiveType type : CamelPrimitiveType.values()) { if (type.toString().equals(value)) { return CamelDesignerModule.getInstance().getModuleContext().getModelingSession().findElementById(DataType.class, type.getID()); } @@ -55,22 +53,6 @@ public static List getPrimitiveType() { return primitiveTypes; } -// if (self.oclIsTypeOf(IntValue) and v.oclIsTypeOf(IntValue)) -// then self.oclAsType(IntValue).value = v.oclAsType(IntValue).value -// else if (self.oclIsTypeOf(FloatValue) and v.oclIsTypeOf(FloatValue)) -// then self.oclAsType(FloatValue).value = v.oclAsType(FloatValue).value -// else if (self.oclIsTypeOf(DoubleValue) and v.oclIsTypeOf(DoubleValue)) -// then self.oclAsType(DoubleValue).value = v.oclAsType(DoubleValue).value -// else if (self.oclIsTypeOf(StringValue) and v.oclIsTypeOf(StringValue)) -// then self.oclAsType(StringValue).value = v.oclAsType(StringValue).value -// else if (self.oclIsTypeOf(BooleanValue) and v.oclIsTypeOf(BooleanValue)) -// then self.oclAsType(BooleanValue).value = v.oclAsType(BooleanValue).value -// else false -// endif -// endif -// endif -// endif -// endif @objid ("410c2f57-791f-4c67-94df-da3b911ee4b3") enum CamelPrimitiveType { IntType ("00000004-0000-0009-0000-000000000000"),