Source Code Cross Referenced for AbstractVersionedFeatureTypeImpl.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: AbstractVersionedFeatureTypeImpl.java 7988 2007-12-12 20:29:15Z aaime $
006:         */package net.opengis.wfsv.impl;
007:
008:        import javax.xml.datatype.XMLGregorianCalendar;
009:
010:        import net.opengis.wfsv.AbstractVersionedFeatureType;
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>Abstract Versioned Feature Type</b></em>'.
023:         * <!-- end-user-doc -->
024:         * <p>
025:         * The following features are implemented:
026:         * <ul>
027:         *   <li>{@link net.opengis.wfsv.impl.AbstractVersionedFeatureTypeImpl#getVersion <em>Version</em>}</li>
028:         *   <li>{@link net.opengis.wfsv.impl.AbstractVersionedFeatureTypeImpl#getAuthor <em>Author</em>}</li>
029:         *   <li>{@link net.opengis.wfsv.impl.AbstractVersionedFeatureTypeImpl#getDate <em>Date</em>}</li>
030:         *   <li>{@link net.opengis.wfsv.impl.AbstractVersionedFeatureTypeImpl#getMessage <em>Message</em>}</li>
031:         * </ul>
032:         * </p>
033:         *
034:         * @generated
035:         */
036:        public abstract class AbstractVersionedFeatureTypeImpl extends
037:                EObjectImpl implements  AbstractVersionedFeatureType {
038:            /**
039:             * The default value of the '{@link #getVersion() <em>Version</em>}' attribute.
040:             * <!-- begin-user-doc -->
041:             * <!-- end-user-doc -->
042:             * @see #getVersion()
043:             * @generated
044:             * @ordered
045:             */
046:            protected static final String VERSION_EDEFAULT = null;
047:
048:            /**
049:             * The cached value of the '{@link #getVersion() <em>Version</em>}' attribute.
050:             * <!-- begin-user-doc -->
051:             * <!-- end-user-doc -->
052:             * @see #getVersion()
053:             * @generated
054:             * @ordered
055:             */
056:            protected String version = VERSION_EDEFAULT;
057:
058:            /**
059:             * The default value of the '{@link #getAuthor() <em>Author</em>}' attribute.
060:             * <!-- begin-user-doc -->
061:             * <!-- end-user-doc -->
062:             * @see #getAuthor()
063:             * @generated
064:             * @ordered
065:             */
066:            protected static final String AUTHOR_EDEFAULT = null;
067:
068:            /**
069:             * The cached value of the '{@link #getAuthor() <em>Author</em>}' attribute.
070:             * <!-- begin-user-doc -->
071:             * <!-- end-user-doc -->
072:             * @see #getAuthor()
073:             * @generated
074:             * @ordered
075:             */
076:            protected String author = AUTHOR_EDEFAULT;
077:
078:            /**
079:             * The default value of the '{@link #getDate() <em>Date</em>}' attribute.
080:             * <!-- begin-user-doc -->
081:             * <!-- end-user-doc -->
082:             * @see #getDate()
083:             * @generated
084:             * @ordered
085:             */
086:            protected static final XMLGregorianCalendar DATE_EDEFAULT = null;
087:
088:            /**
089:             * The cached value of the '{@link #getDate() <em>Date</em>}' attribute.
090:             * <!-- begin-user-doc -->
091:             * <!-- end-user-doc -->
092:             * @see #getDate()
093:             * @generated
094:             * @ordered
095:             */
096:            protected XMLGregorianCalendar date = DATE_EDEFAULT;
097:
098:            /**
099:             * The default value of the '{@link #getMessage() <em>Message</em>}' attribute.
100:             * <!-- begin-user-doc -->
101:             * <!-- end-user-doc -->
102:             * @see #getMessage()
103:             * @generated
104:             * @ordered
105:             */
106:            protected static final String MESSAGE_EDEFAULT = null;
107:
108:            /**
109:             * The cached value of the '{@link #getMessage() <em>Message</em>}' attribute.
110:             * <!-- begin-user-doc -->
111:             * <!-- end-user-doc -->
112:             * @see #getMessage()
113:             * @generated
114:             * @ordered
115:             */
116:            protected String message = MESSAGE_EDEFAULT;
117:
118:            /**
119:             * <!-- begin-user-doc -->
120:             * <!-- end-user-doc -->
121:             * @generated
122:             */
123:            protected AbstractVersionedFeatureTypeImpl() {
124:                super ();
125:            }
126:
127:            /**
128:             * <!-- begin-user-doc -->
129:             * <!-- end-user-doc -->
130:             * @generated
131:             */
132:            protected EClass eStaticClass() {
133:                return WfsvPackage.Literals.ABSTRACT_VERSIONED_FEATURE_TYPE;
134:            }
135:
136:            /**
137:             * <!-- begin-user-doc -->
138:             * <!-- end-user-doc -->
139:             * @generated
140:             */
141:            public String getVersion() {
142:                return version;
143:            }
144:
145:            /**
146:             * <!-- begin-user-doc -->
147:             * <!-- end-user-doc -->
148:             * @generated
149:             */
150:            public void setVersion(String newVersion) {
151:                String oldVersion = version;
152:                version = newVersion;
153:                if (eNotificationRequired())
154:                    eNotify(new ENotificationImpl(
155:                            this ,
156:                            Notification.SET,
157:                            WfsvPackage.ABSTRACT_VERSIONED_FEATURE_TYPE__VERSION,
158:                            oldVersion, version));
159:            }
160:
161:            /**
162:             * <!-- begin-user-doc -->
163:             * <!-- end-user-doc -->
164:             * @generated
165:             */
166:            public String getAuthor() {
167:                return author;
168:            }
169:
170:            /**
171:             * <!-- begin-user-doc -->
172:             * <!-- end-user-doc -->
173:             * @generated
174:             */
175:            public void setAuthor(String newAuthor) {
176:                String oldAuthor = author;
177:                author = newAuthor;
178:                if (eNotificationRequired())
179:                    eNotify(new ENotificationImpl(
180:                            this ,
181:                            Notification.SET,
182:                            WfsvPackage.ABSTRACT_VERSIONED_FEATURE_TYPE__AUTHOR,
183:                            oldAuthor, author));
184:            }
185:
186:            /**
187:             * <!-- begin-user-doc -->
188:             * <!-- end-user-doc -->
189:             * @generated
190:             */
191:            public XMLGregorianCalendar getDate() {
192:                return date;
193:            }
194:
195:            /**
196:             * <!-- begin-user-doc -->
197:             * <!-- end-user-doc -->
198:             * @generated
199:             */
200:            public void setDate(XMLGregorianCalendar newDate) {
201:                XMLGregorianCalendar oldDate = date;
202:                date = newDate;
203:                if (eNotificationRequired())
204:                    eNotify(new ENotificationImpl(this , Notification.SET,
205:                            WfsvPackage.ABSTRACT_VERSIONED_FEATURE_TYPE__DATE,
206:                            oldDate, date));
207:            }
208:
209:            /**
210:             * <!-- begin-user-doc -->
211:             * <!-- end-user-doc -->
212:             * @generated
213:             */
214:            public String getMessage() {
215:                return message;
216:            }
217:
218:            /**
219:             * <!-- begin-user-doc -->
220:             * <!-- end-user-doc -->
221:             * @generated
222:             */
223:            public void setMessage(String newMessage) {
224:                String oldMessage = message;
225:                message = newMessage;
226:                if (eNotificationRequired())
227:                    eNotify(new ENotificationImpl(
228:                            this ,
229:                            Notification.SET,
230:                            WfsvPackage.ABSTRACT_VERSIONED_FEATURE_TYPE__MESSAGE,
231:                            oldMessage, message));
232:            }
233:
234:            /**
235:             * <!-- begin-user-doc -->
236:             * <!-- end-user-doc -->
237:             * @generated
238:             */
239:            public Object eGet(int featureID, boolean resolve, boolean coreType) {
240:                switch (featureID) {
241:                case WfsvPackage.ABSTRACT_VERSIONED_FEATURE_TYPE__VERSION:
242:                    return getVersion();
243:                case WfsvPackage.ABSTRACT_VERSIONED_FEATURE_TYPE__AUTHOR:
244:                    return getAuthor();
245:                case WfsvPackage.ABSTRACT_VERSIONED_FEATURE_TYPE__DATE:
246:                    return getDate();
247:                case WfsvPackage.ABSTRACT_VERSIONED_FEATURE_TYPE__MESSAGE:
248:                    return getMessage();
249:                }
250:                return super .eGet(featureID, resolve, coreType);
251:            }
252:
253:            /**
254:             * <!-- begin-user-doc -->
255:             * <!-- end-user-doc -->
256:             * @generated
257:             */
258:            public void eSet(int featureID, Object newValue) {
259:                switch (featureID) {
260:                case WfsvPackage.ABSTRACT_VERSIONED_FEATURE_TYPE__VERSION:
261:                    setVersion((String) newValue);
262:                    return;
263:                case WfsvPackage.ABSTRACT_VERSIONED_FEATURE_TYPE__AUTHOR:
264:                    setAuthor((String) newValue);
265:                    return;
266:                case WfsvPackage.ABSTRACT_VERSIONED_FEATURE_TYPE__DATE:
267:                    setDate((XMLGregorianCalendar) newValue);
268:                    return;
269:                case WfsvPackage.ABSTRACT_VERSIONED_FEATURE_TYPE__MESSAGE:
270:                    setMessage((String) newValue);
271:                    return;
272:                }
273:                super .eSet(featureID, newValue);
274:            }
275:
276:            /**
277:             * <!-- begin-user-doc -->
278:             * <!-- end-user-doc -->
279:             * @generated
280:             */
281:            public void eUnset(int featureID) {
282:                switch (featureID) {
283:                case WfsvPackage.ABSTRACT_VERSIONED_FEATURE_TYPE__VERSION:
284:                    setVersion(VERSION_EDEFAULT);
285:                    return;
286:                case WfsvPackage.ABSTRACT_VERSIONED_FEATURE_TYPE__AUTHOR:
287:                    setAuthor(AUTHOR_EDEFAULT);
288:                    return;
289:                case WfsvPackage.ABSTRACT_VERSIONED_FEATURE_TYPE__DATE:
290:                    setDate(DATE_EDEFAULT);
291:                    return;
292:                case WfsvPackage.ABSTRACT_VERSIONED_FEATURE_TYPE__MESSAGE:
293:                    setMessage(MESSAGE_EDEFAULT);
294:                    return;
295:                }
296:                super .eUnset(featureID);
297:            }
298:
299:            /**
300:             * <!-- begin-user-doc -->
301:             * <!-- end-user-doc -->
302:             * @generated
303:             */
304:            public boolean eIsSet(int featureID) {
305:                switch (featureID) {
306:                case WfsvPackage.ABSTRACT_VERSIONED_FEATURE_TYPE__VERSION:
307:                    return VERSION_EDEFAULT == null ? version != null
308:                            : !VERSION_EDEFAULT.equals(version);
309:                case WfsvPackage.ABSTRACT_VERSIONED_FEATURE_TYPE__AUTHOR:
310:                    return AUTHOR_EDEFAULT == null ? author != null
311:                            : !AUTHOR_EDEFAULT.equals(author);
312:                case WfsvPackage.ABSTRACT_VERSIONED_FEATURE_TYPE__DATE:
313:                    return DATE_EDEFAULT == null ? date != null
314:                            : !DATE_EDEFAULT.equals(date);
315:                case WfsvPackage.ABSTRACT_VERSIONED_FEATURE_TYPE__MESSAGE:
316:                    return MESSAGE_EDEFAULT == null ? message != null
317:                            : !MESSAGE_EDEFAULT.equals(message);
318:                }
319:                return super .eIsSet(featureID);
320:            }
321:
322:            /**
323:             * <!-- begin-user-doc -->
324:             * <!-- end-user-doc -->
325:             * @generated
326:             */
327:            public String toString() {
328:                if (eIsProxy())
329:                    return super .toString();
330:
331:                StringBuffer result = new StringBuffer(super .toString());
332:                result.append(" (version: ");
333:                result.append(version);
334:                result.append(", author: ");
335:                result.append(author);
336:                result.append(", date: ");
337:                result.append(date);
338:                result.append(", message: ");
339:                result.append(message);
340:                result.append(')');
341:                return result.toString();
342:            }
343:
344:        } //AbstractVersionedFeatureTypeImpl
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.