KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > emf > test > tools > merger > Target


1 /**
2  * <copyright>
3  *
4  * Copyright (c) 2004 IBM Corporation and others.
5  * All rights reserved. This program and the accompanying materials
6  * are made available under the terms of the Eclipse Public License v1.0
7  * which accompanies this distribution, and is available at
8  * http://www.eclipse.org/legal/epl-v10.html
9  *
10  * Contributors:
11  * IBM - Initial API and implementation
12  *
13  * </copyright>
14  */

15 package org.eclipse.emf.test.tools.merger;
16
17 import source.ClassA;
18 import target.ClassA;
19
20
21 /**
22  * Target javadoc 1
23  * Target javadoc 2
24  * <!-- begin-user-doc -->
25  * Target user javadoc 3
26  * Target user javadoc 4
27  * <!-- end-user-doc -->
28  *
29  * @author EMF Team (target)
30  * @generated
31  */

32 public class MergerExample
33 {
34   /**
35    * Target javadoc 5
36    * @generated
37    */

38   private int a1 = -1;
39   
40   /**
41    * Target javadoc 6
42    * @generated
43    */

44   private int a2 = -2;
45
46   /**
47    * Target javadoc 7
48    * @generated
49    */

50   private int a3 = -3;
51
52   /**
53    * Target javadoc 8
54    * <!-- begin-user-doc -->
55    * Target user javadoc 9
56    * <!-- end-user-doc -->
57    * @generated
58    */

59   private int a4 = -4;
60
61   /**
62    * Target javadoc 10
63    * <!-- begin-user-doc -->
64    * Target user javadoc 11
65    * <!-- end-user-doc -->
66    * @generated
67    */

68   private int a5 = -5;
69   
70   
71   
72   
73   
74   /**
75    * Target javadoc 12
76    * <!-- begin-user-doc -->
77    * Target user javadoc 13
78    * <!-- end-user-doc -->
79    * Target javadoc 14
80    * @generated
81    */

82   protected String JavaDoc id = "target";
83
84   /**
85    * Target javadoc 15
86    * <!-- begin-user-doc -->
87    * Target user javadoc 16
88    * Target user javadoc 17
89    * <!-- end-user-doc -->
90    * Target javadoc 18
91    * @return target
92    * @generated
93    */

94   public boolean isID()
95   {
96     // begin-user-code
97
System.out.println("Target user code 2");
98     // end-user-code
99
System.out.println("Target code 3");
100     return id == "target";
101   }
102
103   /**
104    * Target javadoc 19
105    * <!-- begin-user-doc -->
106    * Target user javadoc 20
107    * Target user javadoc 21
108    * <!-- end-user-doc -->
109    * Target javadoc 22
110    * @param target
111    * @generated NOT
112    */

113   public void setID(boolean value)
114   {
115      id = value ? "target" : "source";
116      System.out.println("Target code 4");
117   }
118   
119   /**
120    * Target javadoc 23
121    * <!-- begin-user-doc -->
122    * Target user javadoc 24
123    * <!-- end-user-doc -->
124    * Target javadoc 25
125    * @param target
126    */

127   protected Object JavaDoc sourceRequired()
128   {
129     System.out.println("Target code 5");
130   }
131   
132   /**
133    * Target javadoc 26
134    * @generated
135    */

136   private void methodWithTargetWithoutUserSections()
137   {
138     System.out.println("Target code 6");
139   }
140   
141   /**
142    * Target javadoc 27
143    * <!-- begin-user-doc -->
144    * Target user javadoc 28
145    * <!-- end-user-doc -->
146    * Target javadoc 29
147    * @generated
148    */

149   private void methodWithSourceWithoutUserSections()
150   {
151     // begin-user-code
152
System.out.println("Target user code 7");
153     // end-user-code
154
System.out.println("Target code 8");
155   }
156   
157   /**
158    * Target javadoc 30
159    * @generated
160    */

161   private void methodWithoutUserSections()
162   {
163     System.out.println("Target code 9");
164   }
165 }
Popular Tags