Source Code Cross Referenced for DifferenceQueryTypeImpl.java in  » GIS » GeoServer » net » opengis » wfsv » 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.wfsv.impl 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /**
002:         * <copyright>
003:         * </copyright>
004:         *
005:         * $Id: DifferenceQueryTypeImpl.java 7988 2007-12-12 20:29:15Z aaime $
006:         */package net.opengis.wfsv.impl;
007:
008:        import javax.xml.namespace.QName;
009:
010:        import net.opengis.wfsv.DifferenceQueryType;
011:        import net.opengis.wfsv.WfsvPackage;
012:
013:        import org.eclipse.emf.common.notify.Notification;
014:
015:        import org.eclipse.emf.ecore.EClass;
016:
017:        import org.eclipse.emf.ecore.impl.ENotificationImpl;
018:        import org.eclipse.emf.ecore.impl.EObjectImpl;
019:
020:        /**
021:         * <!-- begin-user-doc -->
022:         * An implementation of the model object '<em><b>Difference Query Type</b></em>'.
023:         * <!-- end-user-doc -->
024:         * <p>
025:         * The following features are implemented:
026:         * <ul>
027:         *   <li>{@link net.opengis.wfsv.impl.DifferenceQueryTypeImpl#getFilter <em>Filter</em>}</li>
028:         *   <li>{@link net.opengis.wfsv.impl.DifferenceQueryTypeImpl#getFromFeatureVersion <em>From Feature Version</em>}</li>
029:         *   <li>{@link net.opengis.wfsv.impl.DifferenceQueryTypeImpl#getSrsName <em>Srs Name</em>}</li>
030:         *   <li>{@link net.opengis.wfsv.impl.DifferenceQueryTypeImpl#getToFeatureVersion <em>To Feature Version</em>}</li>
031:         *   <li>{@link net.opengis.wfsv.impl.DifferenceQueryTypeImpl#getTypeName <em>Type Name</em>}</li>
032:         * </ul>
033:         * </p>
034:         *
035:         * @generated
036:         */
037:        public class DifferenceQueryTypeImpl extends EObjectImpl implements 
038:                DifferenceQueryType {
039:            /**
040:             * The default value of the '{@link #getFilter() <em>Filter</em>}' attribute.
041:             * <!-- begin-user-doc -->
042:             * <!-- end-user-doc -->
043:             * @see #getFilter()
044:             * @generated
045:             * @ordered
046:             */
047:            protected static final Object FILTER_EDEFAULT = null;
048:
049:            /**
050:             * The cached value of the '{@link #getFilter() <em>Filter</em>}' attribute.
051:             * <!-- begin-user-doc -->
052:             * <!-- end-user-doc -->
053:             * @see #getFilter()
054:             * @generated
055:             * @ordered
056:             */
057:            protected Object filter = FILTER_EDEFAULT;
058:
059:            /**
060:             * The default value of the '{@link #getFromFeatureVersion() <em>From Feature Version</em>}' attribute.
061:             * <!-- begin-user-doc -->
062:             * <!-- end-user-doc -->
063:             * @see #getFromFeatureVersion()
064:             * @generated
065:             * @ordered
066:             */
067:            protected static final String FROM_FEATURE_VERSION_EDEFAULT = "FIRST";
068:
069:            /**
070:             * The cached value of the '{@link #getFromFeatureVersion() <em>From Feature Version</em>}' attribute.
071:             * <!-- begin-user-doc -->
072:             * <!-- end-user-doc -->
073:             * @see #getFromFeatureVersion()
074:             * @generated
075:             * @ordered
076:             */
077:            protected String fromFeatureVersion = FROM_FEATURE_VERSION_EDEFAULT;
078:
079:            /**
080:             * This is true if the From Feature Version attribute has been set.
081:             * <!-- begin-user-doc -->
082:             * <!-- end-user-doc -->
083:             * @generated
084:             * @ordered
085:             */
086:            protected boolean fromFeatureVersionESet;
087:
088:            /**
089:             * The default value of the '{@link #getSrsName() <em>Srs Name</em>}' attribute.
090:             * <!-- begin-user-doc -->
091:             * <!-- end-user-doc -->
092:             * @see #getSrsName()
093:             * @generated
094:             * @ordered
095:             */
096:            protected static final String SRS_NAME_EDEFAULT = null;
097:
098:            /**
099:             * The cached value of the '{@link #getSrsName() <em>Srs Name</em>}' attribute.
100:             * <!-- begin-user-doc -->
101:             * <!-- end-user-doc -->
102:             * @see #getSrsName()
103:             * @generated
104:             * @ordered
105:             */
106:            protected String srsName = SRS_NAME_EDEFAULT;
107:
108:            /**
109:             * The default value of the '{@link #getToFeatureVersion() <em>To Feature Version</em>}' attribute.
110:             * <!-- begin-user-doc -->
111:             * <!-- end-user-doc -->
112:             * @see #getToFeatureVersion()
113:             * @generated
114:             * @ordered
115:             */
116:            protected static final String TO_FEATURE_VERSION_EDEFAULT = "LAST";
117:
118:            /**
119:             * The cached value of the '{@link #getToFeatureVersion() <em>To Feature Version</em>}' attribute.
120:             * <!-- begin-user-doc -->
121:             * <!-- end-user-doc -->
122:             * @see #getToFeatureVersion()
123:             * @generated
124:             * @ordered
125:             */
126:            protected String toFeatureVersion = TO_FEATURE_VERSION_EDEFAULT;
127:
128:            /**
129:             * This is true if the To Feature Version attribute has been set.
130:             * <!-- begin-user-doc -->
131:             * <!-- end-user-doc -->
132:             * @generated
133:             * @ordered
134:             */
135:            protected boolean toFeatureVersionESet;
136:
137:            /**
138:             * The default value of the '{@link #getTypeName() <em>Type Name</em>}' attribute.
139:             * <!-- begin-user-doc -->
140:             * <!-- end-user-doc -->
141:             * @see #getTypeName()
142:             * @generated
143:             * @ordered
144:             */
145:            protected static final QName TYPE_NAME_EDEFAULT = null;
146:
147:            /**
148:             * The cached value of the '{@link #getTypeName() <em>Type Name</em>}' attribute.
149:             * <!-- begin-user-doc -->
150:             * <!-- end-user-doc -->
151:             * @see #getTypeName()
152:             * @generated
153:             * @ordered
154:             */
155:            protected QName typeName = TYPE_NAME_EDEFAULT;
156:
157:            /**
158:             * <!-- begin-user-doc -->
159:             * <!-- end-user-doc -->
160:             * @generated
161:             */
162:            protected DifferenceQueryTypeImpl() {
163:                super ();
164:            }
165:
166:            /**
167:             * <!-- begin-user-doc -->
168:             * <!-- end-user-doc -->
169:             * @generated
170:             */
171:            protected EClass eStaticClass() {
172:                return WfsvPackage.Literals.DIFFERENCE_QUERY_TYPE;
173:            }
174:
175:            /**
176:             * <!-- begin-user-doc -->
177:             * <!-- end-user-doc -->
178:             * @generated
179:             */
180:            public Object getFilter() {
181:                return filter;
182:            }
183:
184:            /**
185:             * <!-- begin-user-doc -->
186:             * <!-- end-user-doc -->
187:             * @generated
188:             */
189:            public void setFilter(Object newFilter) {
190:                Object oldFilter = filter;
191:                filter = newFilter;
192:                if (eNotificationRequired())
193:                    eNotify(new ENotificationImpl(this , Notification.SET,
194:                            WfsvPackage.DIFFERENCE_QUERY_TYPE__FILTER,
195:                            oldFilter, filter));
196:            }
197:
198:            /**
199:             * <!-- begin-user-doc -->
200:             * <!-- end-user-doc -->
201:             * @generated
202:             */
203:            public String getFromFeatureVersion() {
204:                return fromFeatureVersion;
205:            }
206:
207:            /**
208:             * <!-- begin-user-doc -->
209:             * <!-- end-user-doc -->
210:             * @generated
211:             */
212:            public void setFromFeatureVersion(String newFromFeatureVersion) {
213:                String oldFromFeatureVersion = fromFeatureVersion;
214:                fromFeatureVersion = newFromFeatureVersion;
215:                boolean oldFromFeatureVersionESet = fromFeatureVersionESet;
216:                fromFeatureVersionESet = true;
217:                if (eNotificationRequired())
218:                    eNotify(new ENotificationImpl(
219:                            this ,
220:                            Notification.SET,
221:                            WfsvPackage.DIFFERENCE_QUERY_TYPE__FROM_FEATURE_VERSION,
222:                            oldFromFeatureVersion, fromFeatureVersion,
223:                            !oldFromFeatureVersionESet));
224:            }
225:
226:            /**
227:             * <!-- begin-user-doc -->
228:             * <!-- end-user-doc -->
229:             * @generated
230:             */
231:            public void unsetFromFeatureVersion() {
232:                String oldFromFeatureVersion = fromFeatureVersion;
233:                boolean oldFromFeatureVersionESet = fromFeatureVersionESet;
234:                fromFeatureVersion = FROM_FEATURE_VERSION_EDEFAULT;
235:                fromFeatureVersionESet = false;
236:                if (eNotificationRequired())
237:                    eNotify(new ENotificationImpl(
238:                            this ,
239:                            Notification.UNSET,
240:                            WfsvPackage.DIFFERENCE_QUERY_TYPE__FROM_FEATURE_VERSION,
241:                            oldFromFeatureVersion,
242:                            FROM_FEATURE_VERSION_EDEFAULT,
243:                            oldFromFeatureVersionESet));
244:            }
245:
246:            /**
247:             * <!-- begin-user-doc -->
248:             * <!-- end-user-doc -->
249:             * @generated
250:             */
251:            public boolean isSetFromFeatureVersion() {
252:                return fromFeatureVersionESet;
253:            }
254:
255:            /**
256:             * <!-- begin-user-doc -->
257:             * <!-- end-user-doc -->
258:             * @generated
259:             */
260:            public String getSrsName() {
261:                return srsName;
262:            }
263:
264:            /**
265:             * <!-- begin-user-doc -->
266:             * <!-- end-user-doc -->
267:             * @generated
268:             */
269:            public void setSrsName(String newSrsName) {
270:                String oldSrsName = srsName;
271:                srsName = newSrsName;
272:                if (eNotificationRequired())
273:                    eNotify(new ENotificationImpl(this , Notification.SET,
274:                            WfsvPackage.DIFFERENCE_QUERY_TYPE__SRS_NAME,
275:                            oldSrsName, srsName));
276:            }
277:
278:            /**
279:             * <!-- begin-user-doc -->
280:             * <!-- end-user-doc -->
281:             * @generated
282:             */
283:            public String getToFeatureVersion() {
284:                return toFeatureVersion;
285:            }
286:
287:            /**
288:             * <!-- begin-user-doc -->
289:             * <!-- end-user-doc -->
290:             * @generated
291:             */
292:            public void setToFeatureVersion(String newToFeatureVersion) {
293:                String oldToFeatureVersion = toFeatureVersion;
294:                toFeatureVersion = newToFeatureVersion;
295:                boolean oldToFeatureVersionESet = toFeatureVersionESet;
296:                toFeatureVersionESet = true;
297:                if (eNotificationRequired())
298:                    eNotify(new ENotificationImpl(
299:                            this ,
300:                            Notification.SET,
301:                            WfsvPackage.DIFFERENCE_QUERY_TYPE__TO_FEATURE_VERSION,
302:                            oldToFeatureVersion, toFeatureVersion,
303:                            !oldToFeatureVersionESet));
304:            }
305:
306:            /**
307:             * <!-- begin-user-doc -->
308:             * <!-- end-user-doc -->
309:             * @generated
310:             */
311:            public void unsetToFeatureVersion() {
312:                String oldToFeatureVersion = toFeatureVersion;
313:                boolean oldToFeatureVersionESet = toFeatureVersionESet;
314:                toFeatureVersion = TO_FEATURE_VERSION_EDEFAULT;
315:                toFeatureVersionESet = false;
316:                if (eNotificationRequired())
317:                    eNotify(new ENotificationImpl(
318:                            this ,
319:                            Notification.UNSET,
320:                            WfsvPackage.DIFFERENCE_QUERY_TYPE__TO_FEATURE_VERSION,
321:                            oldToFeatureVersion, TO_FEATURE_VERSION_EDEFAULT,
322:                            oldToFeatureVersionESet));
323:            }
324:
325:            /**
326:             * <!-- begin-user-doc -->
327:             * <!-- end-user-doc -->
328:             * @generated
329:             */
330:            public boolean isSetToFeatureVersion() {
331:                return toFeatureVersionESet;
332:            }
333:
334:            /**
335:             * <!-- begin-user-doc -->
336:             * <!-- end-user-doc -->
337:             * @generated
338:             */
339:            public QName getTypeName() {
340:                return typeName;
341:            }
342:
343:            /**
344:             * <!-- begin-user-doc -->
345:             * <!-- end-user-doc -->
346:             * @generated
347:             */
348:            public void setTypeName(QName newTypeName) {
349:                QName oldTypeName = typeName;
350:                typeName = newTypeName;
351:                if (eNotificationRequired())
352:                    eNotify(new ENotificationImpl(this , Notification.SET,
353:                            WfsvPackage.DIFFERENCE_QUERY_TYPE__TYPE_NAME,
354:                            oldTypeName, typeName));
355:            }
356:
357:            /**
358:             * <!-- begin-user-doc -->
359:             * <!-- end-user-doc -->
360:             * @generated
361:             */
362:            public Object eGet(int featureID, boolean resolve, boolean coreType) {
363:                switch (featureID) {
364:                case WfsvPackage.DIFFERENCE_QUERY_TYPE__FILTER:
365:                    return getFilter();
366:                case WfsvPackage.DIFFERENCE_QUERY_TYPE__FROM_FEATURE_VERSION:
367:                    return getFromFeatureVersion();
368:                case WfsvPackage.DIFFERENCE_QUERY_TYPE__SRS_NAME:
369:                    return getSrsName();
370:                case WfsvPackage.DIFFERENCE_QUERY_TYPE__TO_FEATURE_VERSION:
371:                    return getToFeatureVersion();
372:                case WfsvPackage.DIFFERENCE_QUERY_TYPE__TYPE_NAME:
373:                    return getTypeName();
374:                }
375:                return super .eGet(featureID, resolve, coreType);
376:            }
377:
378:            /**
379:             * <!-- begin-user-doc -->
380:             * <!-- end-user-doc -->
381:             * @generated
382:             */
383:            public void eSet(int featureID, Object newValue) {
384:                switch (featureID) {
385:                case WfsvPackage.DIFFERENCE_QUERY_TYPE__FILTER:
386:                    setFilter(newValue);
387:                    return;
388:                case WfsvPackage.DIFFERENCE_QUERY_TYPE__FROM_FEATURE_VERSION:
389:                    setFromFeatureVersion((String) newValue);
390:                    return;
391:                case WfsvPackage.DIFFERENCE_QUERY_TYPE__SRS_NAME:
392:                    setSrsName((String) newValue);
393:                    return;
394:                case WfsvPackage.DIFFERENCE_QUERY_TYPE__TO_FEATURE_VERSION:
395:                    setToFeatureVersion((String) newValue);
396:                    return;
397:                case WfsvPackage.DIFFERENCE_QUERY_TYPE__TYPE_NAME:
398:                    setTypeName((QName) newValue);
399:                    return;
400:                }
401:                super .eSet(featureID, newValue);
402:            }
403:
404:            /**
405:             * <!-- begin-user-doc -->
406:             * <!-- end-user-doc -->
407:             * @generated
408:             */
409:            public void eUnset(int featureID) {
410:                switch (featureID) {
411:                case WfsvPackage.DIFFERENCE_QUERY_TYPE__FILTER:
412:                    setFilter(FILTER_EDEFAULT);
413:                    return;
414:                case WfsvPackage.DIFFERENCE_QUERY_TYPE__FROM_FEATURE_VERSION:
415:                    unsetFromFeatureVersion();
416:                    return;
417:                case WfsvPackage.DIFFERENCE_QUERY_TYPE__SRS_NAME:
418:                    setSrsName(SRS_NAME_EDEFAULT);
419:                    return;
420:                case WfsvPackage.DIFFERENCE_QUERY_TYPE__TO_FEATURE_VERSION:
421:                    unsetToFeatureVersion();
422:                    return;
423:                case WfsvPackage.DIFFERENCE_QUERY_TYPE__TYPE_NAME:
424:                    setTypeName(TYPE_NAME_EDEFAULT);
425:                    return;
426:                }
427:                super .eUnset(featureID);
428:            }
429:
430:            /**
431:             * <!-- begin-user-doc -->
432:             * <!-- end-user-doc -->
433:             * @generated
434:             */
435:            public boolean eIsSet(int featureID) {
436:                switch (featureID) {
437:                case WfsvPackage.DIFFERENCE_QUERY_TYPE__FILTER:
438:                    return FILTER_EDEFAULT == null ? filter != null
439:                            : !FILTER_EDEFAULT.equals(filter);
440:                case WfsvPackage.DIFFERENCE_QUERY_TYPE__FROM_FEATURE_VERSION:
441:                    return isSetFromFeatureVersion();
442:                case WfsvPackage.DIFFERENCE_QUERY_TYPE__SRS_NAME:
443:                    return SRS_NAME_EDEFAULT == null ? srsName != null
444:                            : !SRS_NAME_EDEFAULT.equals(srsName);
445:                case WfsvPackage.DIFFERENCE_QUERY_TYPE__TO_FEATURE_VERSION:
446:                    return isSetToFeatureVersion();
447:                case WfsvPackage.DIFFERENCE_QUERY_TYPE__TYPE_NAME:
448:                    return TYPE_NAME_EDEFAULT == null ? typeName != null
449:                            : !TYPE_NAME_EDEFAULT.equals(typeName);
450:                }
451:                return super .eIsSet(featureID);
452:            }
453:
454:            /**
455:             * <!-- begin-user-doc -->
456:             * <!-- end-user-doc -->
457:             * @generated
458:             */
459:            public String toString() {
460:                if (eIsProxy())
461:                    return super .toString();
462:
463:                StringBuffer result = new StringBuffer(super .toString());
464:                result.append(" (filter: ");
465:                result.append(filter);
466:                result.append(", fromFeatureVersion: ");
467:                if (fromFeatureVersionESet)
468:                    result.append(fromFeatureVersion);
469:                else
470:                    result.append("<unset>");
471:                result.append(", srsName: ");
472:                result.append(srsName);
473:                result.append(", toFeatureVersion: ");
474:                if (toFeatureVersionESet)
475:                    result.append(toFeatureVersion);
476:                else
477:                    result.append("<unset>");
478:                result.append(", typeName: ");
479:                result.append(typeName);
480:                result.append(')');
481:                return result.toString();
482:            }
483:
484:        } //DifferenceQueryTypeImpl
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.