1 | public class ProcessingInstructionImpl extends EObjectImpl implements ProcessingInstruction↵ | | 1 | public class FunctionNamePairImpl extends TypeConverterImpl implements FunctionNamePair↵
|
2 | {↵ | | 2 | {↵
|
3 | /**↵ | | 3 | /**↵
|
4 | * The default value of the '{@link #getData() <em>Data</em>}' attribute.↵ | | 4 | * The default value of the '{@link #getIn2out() <em>In2out</em>}' attribute.↵
|
5 | * <!-- begin-user-doc -->↵ | | 5 | * <!-- begin-user-doc -->↵
|
6 | * <!-- end-user-doc -->↵ | | 6 | * <!-- end-user-doc -->↵
|
7 | * @see #getData()↵ | | 7 | * @see #getIn2out()↵
|
8 | * @generated↵ | | 8 | * @generated↵
|
9 | * @ordered↵ | | 9 | * @ordered↵
|
10 | */↵ | | 10 | */↵
|
11 | protected static final String DATA_EDEFAULT = null;↵ | | 11 | protected static final String IN2OUT_EDEFAULT = null;↵
|
|
12 | /**↵ | | 12 | /**↵
|
13 | * The cached value of the '{@link #getData() <em>Data</em>}' attribute.↵ | | 13 | * The cached value of the '{@link #getIn2out() <em>In2out</em>}' attribute.↵
|
14 | * <!-- begin-user-doc -->↵ | | 14 | * <!-- begin-user-doc -->↵
|
15 | * <!-- end-user-doc -->↵ | | 15 | * <!-- end-user-doc -->↵
|
16 | * @see #getData()↵ | | 16 | * @see #getIn2out()↵
|
17 | * @generated↵ | | 17 | * @generated↵
|
18 | * @ordered↵ | | 18 | * @ordered↵
|
19 | */↵ | | 19 | */↵
|
20 | protected String data = DATA_EDEFAULT;↵ | | 20 | protected String in2out = IN2OUT_EDEFAULT;↵
|
|
21 | /**↵ | | 21 | /**↵
|
22 | * The default value of the '{@link #getTarget() <em>Target</em>}' attribute.↵ | | 22 | * The default value of the '{@link #getOut2in() <em>Out2in</em>}' attribute.↵
|
23 | * <!-- begin-user-doc -->↵ | | 23 | * <!-- begin-user-doc -->↵
|
24 | * <!-- end-user-doc -->↵ | | 24 | * <!-- end-user-doc -->↵
|
25 | * @see #getTarget()↵ | | 25 | * @see #getOut2in()↵
|
26 | * @generated↵ | | 26 | * @generated↵
|
27 | * @ordered↵ | | 27 | * @ordered↵
|
28 | */↵ | | 28 | */↵
|
29 | protected static final String TARGET_EDEFAULT = null;↵ | | 29 | protected static final String OUT2IN_EDEFAULT = null;↵
|
|
30 | /**↵ | | 30 | /**↵
|
31 | * The cached value of the '{@link #getTarget() <em>Target</em>}' attribute.↵ | | 31 | * The cached value of the '{@link #getOut2in() <em>Out2in</em>}' attribute.↵
|
32 | * <!-- begin-user-doc -->↵ | | 32 | * <!-- begin-user-doc -->↵
|
33 | * <!-- end-user-doc -->↵ | | 33 | * <!-- end-user-doc -->↵
|
34 | * @see #getTarget()↵ | | 34 | * @see #getOut2in()↵
|
35 | * @generated↵ | | 35 | * @generated↵
|
36 | * @ordered↵ | | 36 | * @ordered↵
|
37 | */↵ | | 37 | */↵
|
38 | protected String target = TARGET_EDEFAULT;↵ | | 38 | protected String out2in = OUT2IN_EDEFAULT;↵
|
|
39 | /**↵ | | 39 | /**↵
|
40 | * <!-- begin-user-doc -->↵ | | 40 | * <!-- begin-user-doc -->↵
|
41 | * <!-- end-user-doc -->↵ | | 41 | * <!-- end-user-doc -->↵
|
42 | * @generated↵ | | 42 | * @generated↵
|
43 | */↵ | | 43 | */↵
|
44 | protected ProcessingInstructionImpl()↵ | | 44 | protected FunctionNamePairImpl()↵
|
45 | {↵ | | 45 | {↵
|
46 | super();↵ | | 46 | super();↵
|
47 | }↵ | | 47 | }↵
|
|
48 | /**↵ | | 48 | /**↵
|
49 | * <!-- begin-user-doc -->↵ | | 49 | * <!-- begin-user-doc -->↵
|
50 | * <!-- end-user-doc -->↵ | | 50 | * <!-- end-user-doc -->↵
|
51 | * @generated↵ | | 51 | * @generated↵
|
52 | */↵ | | 52 | */↵
|
53 | @Override↵ | | 53 | @Override↵
|
54 | protected EClass eStaticClass()↵ | | 54 | protected EClass eStaticClass()↵
|
55 | {↵ | | 55 | {↵
|
56 | return XMLTypePackage.Literals.PROCESSING_INSTRUCTION;↵ | | 56 | return MappingPackage.Literals.FUNCTION_NAME_PAIR;↵
|
57 | }↵ | | 57 | }↵
|
|
58 | /**↵ | | 58 | /**↵
|
59 | * <!-- begin-user-doc -->↵ | | 59 | * <!-- begin-user-doc -->↵
|
60 | * <!-- end-user-doc -->↵ | | 60 | * <!-- end-user-doc -->↵
|
61 | * @generated↵ | | 61 | * @generated↵
|
62 | */↵ | | 62 | */↵
|
63 | public String getData()↵ | | 63 | public String getIn2out()↵
|
64 | {↵ | | 64 | {↵
|
65 | return data;↵ | | 65 | return in2out;↵
|
66 | }↵ | | 66 | }↵
|
|
67 | /**↵ | | 67 | /**↵
|
68 | * <!-- begin-user-doc -->↵ | | 68 | * <!-- begin-user-doc -->↵
|
69 | * <!-- end-user-doc -->↵ | | 69 | * <!-- end-user-doc -->↵
|
70 | * @generated↵ | | 70 | * @generated↵
|
71 | */↵ | | 71 | */↵
|
72 | public void setData(String newData)↵ | | 72 | public void setIn2out(String newIn2out)↵
|
73 | {↵ | | 73 | {↵
|
74 | String oldData = data;↵ | | 74 | String old↵
|
75 | data = newData↵ | | 75 | In2out = in2out;↵
|
76 | ;↵ | | 76 | in2out = newIn2out;↵
|
77 | if (eNotificationRequired())↵ | | 77 | if (eNotificationRequired())↵
|
78 | eNotify(new ENotificationImpl(this, Notification.SET, XMLTypePackage.PROCESSING_INSTRUCTION__DATA, oldData, data));↵ | | 78 | eNotify(new ENotificationImpl(this, Notification.SET, MappingPackage.FUNCTION_NAME_PAIR__IN2OUT, oldIn2out, in2out));↵
|
79 | }↵ | | 79 | }↵
|
|
80 | /**↵ | | 80 | /**↵
|
81 | * <!-- begin-user-doc -->↵ | | 81 | * <!-- begin-user-doc -->↵
|
82 | * <!-- end-user-doc -->↵ | | 82 | * <!-- end-user-doc -->↵
|
83 | * @generated↵ | | 83 | * @generated↵
|
84 | */↵ | | 84 | */↵
|
85 | public String getTarget()↵ | | 85 | public String getOut2in()↵
|
86 | {↵ | | 86 | {↵
|
87 | return target;↵ | | 87 | return out2in;↵
|
88 | }↵ | | 88 | }↵
|
|
89 | /**↵ | | 89 | /**↵
|
90 | * <!-- begin-user-doc -->↵ | | 90 | * <!-- begin-user-doc -->↵
|
91 | * <!-- end-user-doc -->↵ | | 91 | * <!-- end-user-doc -->↵
|
92 | * @generated↵ | | 92 | * @generated↵
|
93 | */↵ | | 93 | */↵
|
94 | public void setTarget(String newTarget)↵ | | 94 | public void setOut2in(String newOut2in)↵
|
95 | {↵ | | 95 | {↵
|
96 | String oldTarget = target;↵ | | 96 | String old↵
|
97 | target = newTarget↵ | | 97 | Out2in = out2in;↵
|
98 | ;↵ | | 98 | out2in = newOut2in;↵
|
99 | if (eNotificationRequired())↵ | | 99 | if (eNotificationRequired())↵
|
100 | eNotify(new ENotificationImpl(this, Notification.SET, XMLTypePackage.PROCESSING_INSTRUCTION__TARGET, oldTarget, target));↵ | | 100 | eNotify(new ENotificationImpl(this, Notification.SET, MappingPackage.FUNCTION_NAME_PAIR__OUT2IN, oldOut2in, out2in));↵
|
101 | }↵ | | 101 | }↵
|
|
102 | /**↵ | | 102 | /**↵
|
103 | * <!-- begin-user-doc -->↵ | | 103 | * <!-- begin-user-doc -->↵
|
104 | * <!-- end-user-doc -->↵ | | 104 | * <!-- end-user-doc -->↵
|
105 | * @generated↵ | | 105 | * @generated↵
|
106 | */↵ | | 106 | */↵
|
107 | @Override↵ | | 107 | @Override↵
|
108 | public Object eGet(int featureID, boolean resolve, boolean coreType)↵ | | 108 | public Object eGet(int featureID, boolean resolve, boolean coreType)↵
|
109 | {↵ | | 109 | {↵
|
110 | switch (featureID)↵ | | 110 | switch (featureID)↵
|
111 | {↵ | | 111 | {↵
|
112 | case XMLTypePackage.PROCESSING_INSTRUCTION__DATA:↵ | | 112 | case MappingPackage.FUNCTION_NAME_PAIR__IN2OUT:↵
|
113 | return getData();↵ | | 113 | return getIn2out();↵
|
114 | case XMLTypePackage.PROCESSING_INSTRUCTION__TARGET:↵ | | 114 | case MappingPackage.FUNCTION_NAME_PAIR__OUT2IN:↵
|
115 | return getTarget();↵ | | 115 | return getOut2in();↵
|
116 | }↵ | | 116 | }↵
|
117 | return eDynamicGet(featureID, resolve, coreType);↵ | | 117 | return super.eGet(featureID, resolve, coreType);↵
|
118 | }↵ | | 118 | }↵
|
|
119 | /**↵ | | 119 | /**↵
|
120 | * <!-- begin-user-doc -->↵ | | 120 | * <!-- begin-user-doc -->↵
|
121 | * <!-- end-user-doc -->↵ | | 121 | * <!-- end-user-doc -->↵
|
122 | * @generated↵ | | 122 | * @generated↵
|
123 | */↵ | | 123 | */↵
|
124 | @Override↵ | | 124 | @Override↵
|
125 | public void eSet(int featureID, Object newValue)↵ | | 125 | public void eSet(int featureID, Object newValue)↵
|
126 | {↵ | | 126 | {↵
|
127 | switch (featureID)↵ | | 127 | switch (featureID)↵
|
128 | {↵ | | 128 | {↵
|
129 | case XMLTypePackage.PROCESSING_INSTRUCTION__DATA:↵ | | 129 | case MappingPackage.FUNCTION_NAME_PAIR__IN2OUT:↵
|
130 | setData((String)newValue);↵ | | 130 | setIn2out((String)newValue);↵
|
131 | return;↵ | | 131 | return;↵
|
132 | case XMLTypePackage.PROCESSING_INSTRUCTION__TARGET:↵ | | 132 | case MappingPackage.FUNCTION_NAME_PAIR__OUT2IN:↵
|
133 | setTarget((String)newValue);↵ | | 133 | setOut2in((String)newValue);↵
|
134 | return;↵ | | 134 | return;↵
|
135 | }↵ | | 135 | }↵
|
136 | eDynamicSet(featureID, newValue);↵ | | 136 | super.eSet(featureID, newValue);↵
|
137 | }↵ | | 137 | }↵
|
|
138 | /**↵ | | 138 | /**↵
|
139 | * <!-- begin-user-doc -->↵ | | 139 | * <!-- begin-user-doc -->↵
|
140 | * <!-- end-user-doc -->↵ | | 140 | * <!-- end-user-doc -->↵
|
141 | * @generated↵ | | 141 | * @generated↵
|
142 | */↵ | | 142 | */↵
|
143 | @Override↵ | | 143 | @Override↵
|
144 | public void eUnset(int featureID)↵ | | 144 | public void eUnset(int featureID)↵
|
145 | {↵ | | 145 | {↵
|
146 | switch (featureID)↵ | | 146 | switch (featureID)↵
|
147 | {↵ | | 147 | {↵
|
148 | case XMLTypePackage.PROCESSING_INSTRUCTION__DATA:↵ | | 148 | case MappingPackage.↵
|
149 | setData(DATA↵ | | 149 | FUNCTION_NAME_PAIR__IN2OUT:↵
|
150 | _EDEFAULT);↵ | | 150 | setIn2out(IN2OUT_EDEFAULT);↵
|
151 | return;↵ | | 151 | return;↵
|
152 | case XMLTypePackage.PROCESSING_INSTRUCTION__TARGET:↵ | | 152 | case MappingPackage.↵
|
153 | setTarget(TARGET↵ | | 153 | FUNCTION_NAME_PAIR__OUT2IN:↵
|
154 | _EDEFAULT);↵ | | 154 | setOut2in(OUT2IN_EDEFAULT);↵
|
155 | return;↵ | | 155 | return;↵
|
156 | }↵ | | 156 | }↵
|
157 | eDynamicUnset(featureID);↵ | | 157 | super.eUnset(featureID);↵
|
158 | }↵ | | 158 | }↵
|
|
159 | /**↵ | | 159 | /**↵
|
160 | * <!-- begin-user-doc -->↵ | | 160 | * <!-- begin-user-doc -->↵
|
161 | * <!-- end-user-doc -->↵ | | 161 | * <!-- end-user-doc -->↵
|
162 | * @generated↵ | | 162 | * @generated↵
|
163 | */↵ | | 163 | */↵
|
164 | @Override↵ | | 164 | @Override↵
|
165 | public boolean eIsSet(int featureID)↵ | | 165 | public boolean eIsSet(int featureID)↵
|
166 | {↵ | | 166 | {↵
|
167 | switch (featureID)↵ | | 167 | switch (featureID)↵
|
168 | {↵ | | 168 | {↵
|
169 | case XMLTypePackage.PROCESSING_INSTRUCTION__DATA:↵ | | 169 | case MappingPackage.FUNCTION_NAME_PAIR__IN2OUT:↵
|
170 | return DATA_EDEFAULT == null ? data != null : !DATA_EDEFAULT.equals(data);↵ | | 170 | return IN2OUT_EDEFAULT == null ? in2out != null : !IN2OUT_EDEFAULT.equals(in2out);↵
|
171 | case XMLTypePackage.PROCESSING_INSTRUCTION__TARGET:↵ | | 171 | case MappingPackage.FUNCTION_NAME_PAIR__OUT2IN:↵
|
172 | return TARGET_EDEFAULT == null ? target != null : !TARGET_EDEFAULT.equals(target);↵ | | 172 | return OUT2IN_EDEFAULT == null ? out2in != null : !OUT2IN_EDEFAULT.equals(out2in);↵
|
173 | }↵ | | 173 | }↵
|
174 | return eDynamicIsSet(featureID);↵ | | 174 | return super.eIsSet(featureID);↵
|
175 | }↵ | | 175 | }↵
|
|
176 | /**↵ | | 176 | /**↵
|
177 | * <!-- begin-user-doc -->↵ | | 177 | * <!-- begin-user-doc -->↵
|
178 | * <!-- end-user-doc -->↵ | | 178 | * <!-- end-user-doc -->↵
|
179 | * @generated↵ | | 179 | * @generated↵
|
180 | */↵ | | 180 | */↵
|
181 | @Override↵ | | 181 | @Override↵
|
182 | public String toString()↵ | | 182 | public String toString()↵
|
183 | {↵ | | 183 | {↵
|
184 | if (eIsProxy()) return super.toString();↵ | | 184 | if (eIsProxy()) return super.toString();↵
|
|
185 | StringBuffer result = new StringBuffer(super.toString());↵ | | 185 | StringBuffer result = new StringBuffer(super.toString());↵
|
186 | result.append(" (data: ");↵ | | 186 | result.append(" (in2out: ");↵
|
187 | result.append(data);↵ | | 187 | result.append(in2out);↵
|
188 | result.append(", target: ");↵ | | 188 | result.append(", out2in: ");↵
|
189 | result.append(target);↵ | | 189 | result.append(out2in);↵
|
190 | result.append(')');↵ | | 190 | result.append(')');↵
|
191 | return result.toString();↵ | | 191 | return result.toString();↵
|
192 | | | 192 |
|