KickJava   Java API By Example, From Geeks To Geeks.

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


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  * $Id: Source.java,v 1.2 2005/06/08 06:17:17 nickb Exp $
16  */

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

33 public class MergerExample
34 {
35   private int a1 = 1;
36   
37   /**
38    * Source javadoc 5
39    */

40   int a2 = 2;
41
42   /**
43    * Source javadoc 6
44    * @generated
45    */

46   protected int a3 = 3;
47
48   /**
49    * Source javadoc 7
50    * <!-- begin-user-doc -->
51    * Source user javadoc 8
52    * <!-- end-user-doc -->
53    */

54   public int a4 = 4;
55
56   /**
57    * Source javadoc 9
58    * <!-- begin-user-doc -->
59    * Source user javadoc 10
60    * <!-- end-user-doc -->
61    * @generated
62    */

63   protected int a5 = 5;
64   
65   
66   
67   
68   /**
69    * Source javadoc 11
70    * <!-- begin-user-doc -->
71    * <!-- end-user-doc -->
72    * @generated
73    */

74   protected String JavaDoc id = "source";
75
76   /**
77    * Source javadoc 12
78    * <!-- begin-user-doc -->
79    * <!-- end-user-doc -->
80    * @generated
81    */

82   protected boolean newAttribute = true;
83   
84   /**
85    * Source javadoc 13
86    * <!-- begin-user-doc -->
87    * Source user javadoc 14
88    * <!-- end-user-doc -->
89    * Source javadoc 15
90    * @return source
91    * @generated
92    */

93   public boolean isID()
94   {
95     // begin-user-code
96
System.out.println("Source user code 1");
97     // end-user-code
98
System.out.println("Source code 2");
99     return id == "source";
100   }
101
102   /**
103    * Source javadoc 16
104    * <!-- begin-user-doc -->
105    * <!-- end-user-doc -->
106    * Source javadoc 17
107    * @param source
108    * @generated
109    */

110   public void setID(boolean value)
111   {
112      System.out.println("Source code 3");
113      id = value ? "source" : "target";
114   }
115   
116   /**
117    * Source javadoc 17
118    * <!-- begin-user-doc -->
119    * Source user javadoc 18
120    * <!-- end-user-doc -->
121    * Source javadoc 19
122    * @param source
123    * @unmodifiable
124    */

125   protected Object JavaDoc sourceRequired()
126   {
127     System.out.println("Source code 4");
128   }
129   
130   /**
131    * Source javadoc 20
132    * <!-- begin-user-doc -->
133    * Source user javadoc 21
134    * <!-- end-user-doc -->
135    * Source javadoc 22
136    * @generated
137    */

138   private void methodWithTargetWithoutUserSections()
139   {
140     // begin-user-code
141
System.out.println("Source user code 5");
142     // end-user-code
143
System.out.println("Source code 6");
144   }
145   
146   /**
147    * Source javadoc 23
148    * @generated
149    */

150   private void methodWithSourceWithoutUserSections()
151   {
152     System.out.println("Source code 7");
153   }
154   
155   /**
156    * Source javadoc 24
157    * @generated
158    */

159   private void methodWithoutUserSections()
160   {
161     System.out.println("Source code 8");
162   }
163 }
Popular Tags