Revision 237 branches/modelio3.7.x/src/main/java/org/modelio/togaf/profile/technologyarchitecture/model/Connexion.java

View differences:

Connexion.java
1
/** 
2
 * Licensed to the Apache Software Foundation (ASF) under one 
3
 * or more contributor license agreements.  See the NOTICE file 
4
 * distributed with this work for additional information 
5
 * regarding copyright ownership.  The ASF licenses this file 
6
 * to you under the Apache License, Version 2.0 (the 
7
 * "License"); you may not use this file except in compliance 
8
 * with the License.  You may obtain a copy of the License at 
9
 * 
10
 *	http://www.apache.org/licenses/LICENSE-2.0 
11
 * 
12
 *	Unless required by applicable law or agreed to in writing, 
13
 *	software distributed under the License is distributed on an 
14
 *	"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 
15
 *	KIND, either express or implied.  See the License for the 
16
 *	specific language governing permissions and limitations 
17
 *	under the License. 
18
 * 
19
 * 
20
 * @package    org.modelio.togaf. 
21
 * @author     Modelio 
22
 * @license    http://www.apache.org/licenses/LICENSE-2.0 
23
 * @version  1.0.00 
1
/**
2
 * Licensed to the Apache Software Foundation (ASF) under one
3
 * or more contributor license agreements.  See the NOTICE file
4
 * distributed with this work for additional information
5
 * regarding copyright ownership.  The ASF licenses this file
6
 * to you under the Apache License, Version 2.0 (the
7
 * "License"); you may not use this file except in compliance
8
 * with the License.  You may obtain a copy of the License at
9
 *
10
 *	http://www.apache.org/licenses/LICENSE-2.0
11
 *
12
 *	Unless required by applicable law or agreed to in writing,
13
 *	software distributed under the License is distributed on an
14
 *	"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
 *	KIND, either express or implied.  See the License for the
16
 *	specific language governing permissions and limitations
17
 *	under the License.
18
 *
19
 *
20
 * @package    org.modelio.togaf.
21
 * @author     Modelio
22
 * @license    http://www.apache.org/licenses/LICENSE-2.0
23
 * @version  1.0.00
24 24
 **/
25 25
package org.modelio.togaf.profile.technologyarchitecture.model;
26 26

  
......
41 41
			} else if (source instanceof Classifier && destination instanceof Classifier) {
42 42
				this.element = TogafArchitectModule.getInstance().getModuleContext().getModelingSession().getModel().createAssociation((Classifier) source, (Classifier) destination, "Connexion");
43 43
			} else {
44
				this.element = TogafArchitectModule.getInstance().getModuleContext().getModelingSession().getModel().createDependency((ModelElement) source, (ModelElement) destination,TogafArchitectModule.getInstance().getModuleContext().getModelingSession().getMetamodelExtensions().getStereotype("TogafArchitect", "Connexion", TogafArchitectModule.getInstance().getModuleContext().getModelioServices().getMetamodelService().getMetamodel().getMClass(Dependency.class)) );
44
				this.element = TogafArchitectModule.getInstance().getModuleContext().getModelingSession().getModel().createDependency(source, destination,TogafArchitectModule.getInstance().getModuleContext().getModelingSession().getMetamodelExtensions().getStereotype("TogafArchitect", "Connexion", TogafArchitectModule.getInstance().getModuleContext().getModelioServices().getMetamodelService().getMetamodel().getMClass(Dependency.class)) );
45 45
			}
46 46
		} catch (Exception e) {
47 47
			e.printStackTrace();

Also available in: Unified diff