Source Code Cross Referenced for LockFeatureResponseTypeImpl.java in  » GIS » GeoServer » net » opengis » wfs » impl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » GeoServer » net.opengis.wfs.impl 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /**
002:         * <copyright>
003:         * </copyright>
004:         *
005:         * $Id: LockFeatureResponseTypeImpl.java 7522 2007-09-12 22:00:10Z saul.farber $
006:         */package net.opengis.wfs.impl;
007:
008:        import net.opengis.wfs.FeaturesLockedType;
009:        import net.opengis.wfs.FeaturesNotLockedType;
010:        import net.opengis.wfs.LockFeatureResponseType;
011:        import net.opengis.wfs.WfsPackage;
012:
013:        import org.eclipse.emf.common.notify.Notification;
014:        import org.eclipse.emf.common.notify.NotificationChain;
015:
016:        import org.eclipse.emf.ecore.EClass;
017:        import org.eclipse.emf.ecore.InternalEObject;
018:
019:        import org.eclipse.emf.ecore.impl.ENotificationImpl;
020:        import org.eclipse.emf.ecore.impl.EObjectImpl;
021:
022:        /**
023:         * <!-- begin-user-doc -->
024:         * An implementation of the model object '<em><b>Lock Feature Response Type</b></em>'.
025:         * <!-- end-user-doc -->
026:         * <p>
027:         * The following features are implemented:
028:         * <ul>
029:         *   <li>{@link net.opengis.wfs.impl.LockFeatureResponseTypeImpl#getLockId <em>Lock Id</em>}</li>
030:         *   <li>{@link net.opengis.wfs.impl.LockFeatureResponseTypeImpl#getFeaturesLocked <em>Features Locked</em>}</li>
031:         *   <li>{@link net.opengis.wfs.impl.LockFeatureResponseTypeImpl#getFeaturesNotLocked <em>Features Not Locked</em>}</li>
032:         * </ul>
033:         * </p>
034:         *
035:         * @generated
036:         */
037:        public class LockFeatureResponseTypeImpl extends EObjectImpl implements 
038:                LockFeatureResponseType {
039:            /**
040:             * The default value of the '{@link #getLockId() <em>Lock Id</em>}' attribute.
041:             * <!-- begin-user-doc -->
042:             * <!-- end-user-doc -->
043:             * @see #getLockId()
044:             * @generated
045:             * @ordered
046:             */
047:            protected static final String LOCK_ID_EDEFAULT = null;
048:
049:            /**
050:             * The cached value of the '{@link #getLockId() <em>Lock Id</em>}' attribute.
051:             * <!-- begin-user-doc -->
052:             * <!-- end-user-doc -->
053:             * @see #getLockId()
054:             * @generated
055:             * @ordered
056:             */
057:            protected String lockId = LOCK_ID_EDEFAULT;
058:
059:            /**
060:             * The cached value of the '{@link #getFeaturesLocked() <em>Features Locked</em>}' containment reference.
061:             * <!-- begin-user-doc -->
062:             * <!-- end-user-doc -->
063:             * @see #getFeaturesLocked()
064:             * @generated
065:             * @ordered
066:             */
067:            protected FeaturesLockedType featuresLocked;
068:
069:            /**
070:             * The cached value of the '{@link #getFeaturesNotLocked() <em>Features Not Locked</em>}' containment reference.
071:             * <!-- begin-user-doc -->
072:             * <!-- end-user-doc -->
073:             * @see #getFeaturesNotLocked()
074:             * @generated
075:             * @ordered
076:             */
077:            protected FeaturesNotLockedType featuresNotLocked;
078:
079:            /**
080:             * <!-- begin-user-doc -->
081:             * <!-- end-user-doc -->
082:             * @generated
083:             */
084:            protected LockFeatureResponseTypeImpl() {
085:                super ();
086:            }
087:
088:            /**
089:             * <!-- begin-user-doc -->
090:             * <!-- end-user-doc -->
091:             * @generated
092:             */
093:            protected EClass eStaticClass() {
094:                return WfsPackage.Literals.LOCK_FEATURE_RESPONSE_TYPE;
095:            }
096:
097:            /**
098:             * <!-- begin-user-doc -->
099:             * <!-- end-user-doc -->
100:             * @generated
101:             */
102:            public String getLockId() {
103:                return lockId;
104:            }
105:
106:            /**
107:             * <!-- begin-user-doc -->
108:             * <!-- end-user-doc -->
109:             * @generated
110:             */
111:            public void setLockId(String newLockId) {
112:                String oldLockId = lockId;
113:                lockId = newLockId;
114:                if (eNotificationRequired())
115:                    eNotify(new ENotificationImpl(this , Notification.SET,
116:                            WfsPackage.LOCK_FEATURE_RESPONSE_TYPE__LOCK_ID,
117:                            oldLockId, lockId));
118:            }
119:
120:            /**
121:             * <!-- begin-user-doc -->
122:             * <!-- end-user-doc -->
123:             * @generated
124:             */
125:            public FeaturesLockedType getFeaturesLocked() {
126:                return featuresLocked;
127:            }
128:
129:            /**
130:             * <!-- begin-user-doc -->
131:             * <!-- end-user-doc -->
132:             * @generated
133:             */
134:            public NotificationChain basicSetFeaturesLocked(
135:                    FeaturesLockedType newFeaturesLocked, NotificationChain msgs) {
136:                FeaturesLockedType oldFeaturesLocked = featuresLocked;
137:                featuresLocked = newFeaturesLocked;
138:                if (eNotificationRequired()) {
139:                    ENotificationImpl notification = new ENotificationImpl(
140:                            this ,
141:                            Notification.SET,
142:                            WfsPackage.LOCK_FEATURE_RESPONSE_TYPE__FEATURES_LOCKED,
143:                            oldFeaturesLocked, newFeaturesLocked);
144:                    if (msgs == null)
145:                        msgs = notification;
146:                    else
147:                        msgs.add(notification);
148:                }
149:                return msgs;
150:            }
151:
152:            /**
153:             * <!-- begin-user-doc -->
154:             * <!-- end-user-doc -->
155:             * @generated
156:             */
157:            public void setFeaturesLocked(FeaturesLockedType newFeaturesLocked) {
158:                if (newFeaturesLocked != featuresLocked) {
159:                    NotificationChain msgs = null;
160:                    if (featuresLocked != null)
161:                        msgs = ((InternalEObject) featuresLocked)
162:                                .eInverseRemove(
163:                                        this ,
164:                                        EOPPOSITE_FEATURE_BASE
165:                                                - WfsPackage.LOCK_FEATURE_RESPONSE_TYPE__FEATURES_LOCKED,
166:                                        null, msgs);
167:                    if (newFeaturesLocked != null)
168:                        msgs = ((InternalEObject) newFeaturesLocked)
169:                                .eInverseAdd(
170:                                        this ,
171:                                        EOPPOSITE_FEATURE_BASE
172:                                                - WfsPackage.LOCK_FEATURE_RESPONSE_TYPE__FEATURES_LOCKED,
173:                                        null, msgs);
174:                    msgs = basicSetFeaturesLocked(newFeaturesLocked, msgs);
175:                    if (msgs != null)
176:                        msgs.dispatch();
177:                } else if (eNotificationRequired())
178:                    eNotify(new ENotificationImpl(
179:                            this ,
180:                            Notification.SET,
181:                            WfsPackage.LOCK_FEATURE_RESPONSE_TYPE__FEATURES_LOCKED,
182:                            newFeaturesLocked, newFeaturesLocked));
183:            }
184:
185:            /**
186:             * <!-- begin-user-doc -->
187:             * <!-- end-user-doc -->
188:             * @generated
189:             */
190:            public FeaturesNotLockedType getFeaturesNotLocked() {
191:                return featuresNotLocked;
192:            }
193:
194:            /**
195:             * <!-- begin-user-doc -->
196:             * <!-- end-user-doc -->
197:             * @generated
198:             */
199:            public NotificationChain basicSetFeaturesNotLocked(
200:                    FeaturesNotLockedType newFeaturesNotLocked,
201:                    NotificationChain msgs) {
202:                FeaturesNotLockedType oldFeaturesNotLocked = featuresNotLocked;
203:                featuresNotLocked = newFeaturesNotLocked;
204:                if (eNotificationRequired()) {
205:                    ENotificationImpl notification = new ENotificationImpl(
206:                            this ,
207:                            Notification.SET,
208:                            WfsPackage.LOCK_FEATURE_RESPONSE_TYPE__FEATURES_NOT_LOCKED,
209:                            oldFeaturesNotLocked, newFeaturesNotLocked);
210:                    if (msgs == null)
211:                        msgs = notification;
212:                    else
213:                        msgs.add(notification);
214:                }
215:                return msgs;
216:            }
217:
218:            /**
219:             * <!-- begin-user-doc -->
220:             * <!-- end-user-doc -->
221:             * @generated
222:             */
223:            public void setFeaturesNotLocked(
224:                    FeaturesNotLockedType newFeaturesNotLocked) {
225:                if (newFeaturesNotLocked != featuresNotLocked) {
226:                    NotificationChain msgs = null;
227:                    if (featuresNotLocked != null)
228:                        msgs = ((InternalEObject) featuresNotLocked)
229:                                .eInverseRemove(
230:                                        this ,
231:                                        EOPPOSITE_FEATURE_BASE
232:                                                - WfsPackage.LOCK_FEATURE_RESPONSE_TYPE__FEATURES_NOT_LOCKED,
233:                                        null, msgs);
234:                    if (newFeaturesNotLocked != null)
235:                        msgs = ((InternalEObject) newFeaturesNotLocked)
236:                                .eInverseAdd(
237:                                        this ,
238:                                        EOPPOSITE_FEATURE_BASE
239:                                                - WfsPackage.LOCK_FEATURE_RESPONSE_TYPE__FEATURES_NOT_LOCKED,
240:                                        null, msgs);
241:                    msgs = basicSetFeaturesNotLocked(newFeaturesNotLocked, msgs);
242:                    if (msgs != null)
243:                        msgs.dispatch();
244:                } else if (eNotificationRequired())
245:                    eNotify(new ENotificationImpl(
246:                            this ,
247:                            Notification.SET,
248:                            WfsPackage.LOCK_FEATURE_RESPONSE_TYPE__FEATURES_NOT_LOCKED,
249:                            newFeaturesNotLocked, newFeaturesNotLocked));
250:            }
251:
252:            /**
253:             * <!-- begin-user-doc -->
254:             * <!-- end-user-doc -->
255:             * @generated
256:             */
257:            public NotificationChain eInverseRemove(InternalEObject otherEnd,
258:                    int featureID, NotificationChain msgs) {
259:                switch (featureID) {
260:                case WfsPackage.LOCK_FEATURE_RESPONSE_TYPE__FEATURES_LOCKED:
261:                    return basicSetFeaturesLocked(null, msgs);
262:                case WfsPackage.LOCK_FEATURE_RESPONSE_TYPE__FEATURES_NOT_LOCKED:
263:                    return basicSetFeaturesNotLocked(null, msgs);
264:                }
265:                return super .eInverseRemove(otherEnd, featureID, msgs);
266:            }
267:
268:            /**
269:             * <!-- begin-user-doc -->
270:             * <!-- end-user-doc -->
271:             * @generated
272:             */
273:            public Object eGet(int featureID, boolean resolve, boolean coreType) {
274:                switch (featureID) {
275:                case WfsPackage.LOCK_FEATURE_RESPONSE_TYPE__LOCK_ID:
276:                    return getLockId();
277:                case WfsPackage.LOCK_FEATURE_RESPONSE_TYPE__FEATURES_LOCKED:
278:                    return getFeaturesLocked();
279:                case WfsPackage.LOCK_FEATURE_RESPONSE_TYPE__FEATURES_NOT_LOCKED:
280:                    return getFeaturesNotLocked();
281:                }
282:                return super .eGet(featureID, resolve, coreType);
283:            }
284:
285:            /**
286:             * <!-- begin-user-doc -->
287:             * <!-- end-user-doc -->
288:             * @generated
289:             */
290:            public void eSet(int featureID, Object newValue) {
291:                switch (featureID) {
292:                case WfsPackage.LOCK_FEATURE_RESPONSE_TYPE__LOCK_ID:
293:                    setLockId((String) newValue);
294:                    return;
295:                case WfsPackage.LOCK_FEATURE_RESPONSE_TYPE__FEATURES_LOCKED:
296:                    setFeaturesLocked((FeaturesLockedType) newValue);
297:                    return;
298:                case WfsPackage.LOCK_FEATURE_RESPONSE_TYPE__FEATURES_NOT_LOCKED:
299:                    setFeaturesNotLocked((FeaturesNotLockedType) newValue);
300:                    return;
301:                }
302:                super .eSet(featureID, newValue);
303:            }
304:
305:            /**
306:             * <!-- begin-user-doc -->
307:             * <!-- end-user-doc -->
308:             * @generated
309:             */
310:            public void eUnset(int featureID) {
311:                switch (featureID) {
312:                case WfsPackage.LOCK_FEATURE_RESPONSE_TYPE__LOCK_ID:
313:                    setLockId(LOCK_ID_EDEFAULT);
314:                    return;
315:                case WfsPackage.LOCK_FEATURE_RESPONSE_TYPE__FEATURES_LOCKED:
316:                    setFeaturesLocked((FeaturesLockedType) null);
317:                    return;
318:                case WfsPackage.LOCK_FEATURE_RESPONSE_TYPE__FEATURES_NOT_LOCKED:
319:                    setFeaturesNotLocked((FeaturesNotLockedType) null);
320:                    return;
321:                }
322:                super .eUnset(featureID);
323:            }
324:
325:            /**
326:             * <!-- begin-user-doc -->
327:             * <!-- end-user-doc -->
328:             * @generated
329:             */
330:            public boolean eIsSet(int featureID) {
331:                switch (featureID) {
332:                case WfsPackage.LOCK_FEATURE_RESPONSE_TYPE__LOCK_ID:
333:                    return LOCK_ID_EDEFAULT == null ? lockId != null
334:                            : !LOCK_ID_EDEFAULT.equals(lockId);
335:                case WfsPackage.LOCK_FEATURE_RESPONSE_TYPE__FEATURES_LOCKED:
336:                    return featuresLocked != null;
337:                case WfsPackage.LOCK_FEATURE_RESPONSE_TYPE__FEATURES_NOT_LOCKED:
338:                    return featuresNotLocked != null;
339:                }
340:                return super .eIsSet(featureID);
341:            }
342:
343:            /**
344:             * <!-- begin-user-doc -->
345:             * <!-- end-user-doc -->
346:             * @generated
347:             */
348:            public String toString() {
349:                if (eIsProxy())
350:                    return super .toString();
351:
352:                StringBuffer result = new StringBuffer(super .toString());
353:                result.append(" (lockId: ");
354:                result.append(lockId);
355:                result.append(')');
356:                return result.toString();
357:            }
358:
359:        } //LockFeatureResponseTypeImpl
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.