Source Code Cross Referenced for User.java in  » IDE-Netbeans » collab » org » netbeans » modules » collab » channel » filesharing » msgbean » 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 » IDE Netbeans » collab » org.netbeans.modules.collab.channel.filesharing.msgbean 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003:         *
004:         * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005:         *
006:         * The contents of this file are subject to the terms of either the GNU
007:         * General Public License Version 2 only ("GPL") or the Common
008:         * Development and Distribution License("CDDL") (collectively, the
009:         * "License"). You may not use this file except in compliance with the
010:         * License. You can obtain a copy of the License at
011:         * http://www.netbeans.org/cddl-gplv2.html
012:         * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
013:         * specific language governing permissions and limitations under the
014:         * License.  When distributing the software, include this License Header
015:         * Notice in each file and include the License file at
016:         * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
017:         * particular file as subject to the "Classpath" exception as provided
018:         * by Sun in the GPL Version 2 section of the License file that
019:         * accompanied this code. If applicable, add the following below the
020:         * License Header, with the fields enclosed by brackets [] replaced by
021:         * your own identifying information:
022:         * "Portions Copyrighted [year] [name of copyright owner]"
023:         *
024:         * Contributor(s):
025:         *
026:         * The Original Software is NetBeans. The Initial Developer of the Original
027:         * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
028:         * Microsystems, Inc. All Rights Reserved.
029:         *
030:         * If you wish your version of this file to be governed by only the CDDL
031:         * or only the GPL Version 2, indicate your decision by adding
032:         * "[Contributor] elects to include this software in this distribution
033:         * under the [CDDL or GPL Version 2] license." If you do not indicate a
034:         * single choice of license, a recipient has the option to distribute
035:         * your version of this file under either the CDDL, the GPL Version 2 or
036:         * to extend the choice of license to its licensees as provided above.
037:         * However, if you add GPL Version 2 code and therefore, elected the GPL
038:         * Version 2 license, then the option applies only if the new code is
039:         * made subject to such option by the copyright holder.
040:         */
041:        /**
042:         *        This generated bean class User
043:         *        matches the schema element '_user'.
044:         *
045:         *        Generated on Mon Sep 27 16:53:12 PDT 2004
046:         */package org.netbeans.modules.collab.channel.filesharing.msgbean;
047:
048:        public class User {
049:            private java.lang.String _Id;
050:            private java.lang.String _Name;
051:            private java.lang.String _Description;
052:
053:            public User() {
054:                _Id = "";
055:            }
056:
057:            // Deep copy
058:            public User(
059:                    org.netbeans.modules.collab.channel.filesharing.msgbean.User source) {
060:                _Id = source._Id;
061:                _Name = source._Name;
062:                _Description = source._Description;
063:            }
064:
065:            // This attribute is mandatory
066:            public void setId(java.lang.String value) {
067:                _Id = value;
068:            }
069:
070:            public java.lang.String getId() {
071:                return _Id;
072:            }
073:
074:            // This attribute is optional
075:            public void setName(java.lang.String value) {
076:                _Name = value;
077:            }
078:
079:            public java.lang.String getName() {
080:                return _Name;
081:            }
082:
083:            // This attribute is optional
084:            public void setDescription(java.lang.String value) {
085:                _Description = value;
086:            }
087:
088:            public java.lang.String getDescription() {
089:                return _Description;
090:            }
091:
092:            public void writeNode(java.io.Writer out, String nodeName,
093:                    String indent) throws java.io.IOException {
094:                out.write(indent);
095:                out.write("<");
096:                out.write(nodeName);
097:                out.write(">\n");
098:
099:                String nextIndent = indent + "	";
100:
101:                if (_Id != null) {
102:                    out.write(nextIndent);
103:                    out.write("<id"); // NOI18N
104:                    out.write(">"); // NOI18N
105:                    org.netbeans.modules.collab.channel.filesharing.msgbean.CCollab
106:                            .writeXML(out, _Id, false);
107:                    out.write("</id>\n"); // NOI18N
108:                }
109:
110:                if (_Name != null) {
111:                    out.write(nextIndent);
112:                    out.write("<name"); // NOI18N
113:                    out.write(">"); // NOI18N
114:                    org.netbeans.modules.collab.channel.filesharing.msgbean.CCollab
115:                            .writeXML(out, _Name, false);
116:                    out.write("</name>\n"); // NOI18N
117:                }
118:
119:                if (_Description != null) {
120:                    out.write(nextIndent);
121:                    out.write("<description"); // NOI18N
122:                    out.write(">"); // NOI18N
123:                    org.netbeans.modules.collab.channel.filesharing.msgbean.CCollab
124:                            .writeXML(out, _Description, false);
125:                    out.write("</description>\n"); // NOI18N
126:                }
127:
128:                out.write(indent);
129:                out.write("</" + nodeName + ">\n");
130:            }
131:
132:            public void readNode(org.w3c.dom.Node node) {
133:                org.w3c.dom.NodeList children = node.getChildNodes();
134:
135:                for (int i = 0, size = children.getLength(); i < size; ++i) {
136:                    org.w3c.dom.Node childNode = children.item(i);
137:                    String childNodeName = ((childNode.getLocalName() == null) ? childNode
138:                            .getNodeName().intern()
139:                            : childNode.getLocalName().intern());
140:                    String childNodeValue = "";
141:
142:                    if (childNode.getFirstChild() != null) {
143:                        childNodeValue = childNode.getFirstChild()
144:                                .getNodeValue();
145:                    }
146:
147:                    if (childNodeName == "id") {
148:                        _Id = childNodeValue;
149:                    } else if (childNodeName == "name") {
150:                        _Name = childNodeValue;
151:                    } else if (childNodeName == "description") {
152:                        _Description = childNodeValue;
153:                    } else {
154:                        // Found extra unrecognized childNode
155:                    }
156:                }
157:            }
158:
159:            public void changePropertyByName(String name, Object value) {
160:                if (name == null) {
161:                    return;
162:                }
163:
164:                name = name.intern();
165:
166:                if (name == "id") {
167:                    setId((java.lang.String) value);
168:                } else if (name == "name") {
169:                    setName((java.lang.String) value);
170:                } else if (name == "description") {
171:                    setDescription((java.lang.String) value);
172:                } else {
173:                    throw new IllegalArgumentException(name
174:                            + " is not a valid property name for User");
175:                }
176:            }
177:
178:            public Object fetchPropertyByName(String name) {
179:                if (name == "id") {
180:                    return getId();
181:                }
182:
183:                if (name == "name") {
184:                    return getName();
185:                }
186:
187:                if (name == "description") {
188:                    return getDescription();
189:                }
190:
191:                throw new IllegalArgumentException(name
192:                        + " is not a valid property name for User");
193:            }
194:
195:            // Return an array of all of the properties that are beans and are set.
196:            public java.lang.Object[] childBeans(boolean recursive) {
197:                java.util.List children = new java.util.LinkedList();
198:                childBeans(recursive, children);
199:
200:                java.lang.Object[] result = new java.lang.Object[children
201:                        .size()];
202:
203:                return (java.lang.Object[]) children.toArray(result);
204:            }
205:
206:            // Put all child beans into the beans list.
207:            public void childBeans(boolean recursive, java.util.List beans) {
208:            }
209:
210:            public boolean equals(Object o) {
211:                if (o == this ) {
212:                    return true;
213:                }
214:
215:                if (!(o instanceof  org.netbeans.modules.collab.channel.filesharing.msgbean.User)) {
216:                    return false;
217:                }
218:
219:                org.netbeans.modules.collab.channel.filesharing.msgbean.User inst = (org.netbeans.modules.collab.channel.filesharing.msgbean.User) o;
220:
221:                if (!((_Id == null) ? (inst._Id == null) : _Id.equals(inst._Id))) {
222:                    return false;
223:                }
224:
225:                if (!((_Name == null) ? (inst._Name == null) : _Name
226:                        .equals(inst._Name))) {
227:                    return false;
228:                }
229:
230:                if (!((_Description == null) ? (inst._Description == null)
231:                        : _Description.equals(inst._Description))) {
232:                    return false;
233:                }
234:
235:                return true;
236:            }
237:
238:            public int hashCode() {
239:                int result = 17;
240:                result = (37 * result) + ((_Id == null) ? 0 : _Id.hashCode());
241:                result = (37 * result)
242:                        + ((_Name == null) ? 0 : _Name.hashCode());
243:                result = (37 * result)
244:                        + ((_Description == null) ? 0 : _Description.hashCode());
245:
246:                return result;
247:            }
248:        }
249:
250:        /*
251:         The following schema file has been used for generation:
252:
253:         <?xml version="1.0" encoding="UTF-8"?>
254:         <!--
255:         Document   : collab.xsd
256:         Created on : May 21, 2004, 7:45 PM
257:         Author     : Ayub Khan
258:         Description:
259:         Purpose of the document follows.
260:         -->
261:         <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
262:         targetNamespace="http://sun.com/ns/collab/dev/1_0/filesharing"
263:         xmlns:c="http://sun.com/ns/collab/dev/1_0"
264:         xmlns:ch="http://sun.com/ns/collab/dev/1_0/filesharing"
265:         elementFormDefault="qaulified">
266:
267:         <!-- collab element -->
268:         <xsd:element name="c:collab" type="_collab">
269:         </xsd:element>
270:
271:         <xsd:complexType name="_collab">
272:         <xsd:sequence>
273:         <xsd:element name="version" type="xsd:string"
274:         minOccurs="1" maxOccurs="1"/>
275:         <xsd:choice maxOccurs="1">
276:         <xsd:element name="ch:send-file" type="_send-file"
277:         minOccurs="0" maxOccurs="1"/>
278:         <xsd:element name="ch:file-changed" type="_file-changed"
279:         minOccurs="0" maxOccurs="1"/>
280:         <xsd:element name="ch:lock-region" type="_lock-region"
281:         minOccurs="0" maxOccurs="1"/>
282:         <xsd:element name="ch:unlock-region" type="_unlock-region"
283:         minOccurs="0" maxOccurs="1"/>
284:         <xsd:element name="ch:join-filesharing" type="_join-filesharing"
285:         minOccurs="0" maxOccurs="1"/>
286:         <xsd:element name="ch:pause-filesharing" type="_pause-filesharing"
287:         minOccurs="0" maxOccurs="1"/>
288:         <xsd:element name="ch:resume-filesharing" type="_resume-filesharing"
289:         minOccurs="0" maxOccurs="1"/>
290:         <xsd:element name="ch:leave-filesharing" type="_leave-filesharing"
291:         minOccurs="0" maxOccurs="1"/>
292:         <xsd:element name="ch:commands" type="_commands"
293:         minOccurs="0" maxOccurs="1"/>
294:         </xsd:choice>
295:         </xsd:sequence>
296:         </xsd:complexType>
297:
298:         <!-- Schema for send-file -->
299:         <xsd:complexType name="_send-file">
300:         <xsd:sequence>
301:         <xsd:element name="file-groups" type="_file-groups"
302:         minOccurs="1" maxOccurs="1"/>
303:         <xsd:element name="send-file-data" type="_send-file-data"
304:         minOccurs="1" maxOccurs="unbounded"/>
305:         </xsd:sequence>
306:         </xsd:complexType>
307:
308:         <!-- Schema for file-changed -->
309:         <xsd:complexType name="_file-changed">
310:         <xsd:sequence>
311:         <xsd:element name="file-groups" type="_file-groups"
312:         minOccurs="1" maxOccurs="1"/>
313:         <xsd:element name="file-changed-data" type="_file-changed-data"
314:         minOccurs="1" maxOccurs="unbounded"/>
315:         </xsd:sequence>
316:         </xsd:complexType>
317:
318:         <!-- Schema for lock-region -->
319:         <xsd:complexType name="_lock-region">
320:         <xsd:sequence>
321:         <xsd:element name="file-groups" type="_file-groups"
322:         minOccurs="1" maxOccurs="1"/>
323:         <xsd:element name="lock-region-data" type="_lock-region-data"
324:         minOccurs="1" maxOccurs="unbounded"/>
325:         </xsd:sequence>
326:         </xsd:complexType>
327:
328:         <!-- Schema for unlock-region -->
329:         <xsd:complexType name="_unlock-region">
330:         <xsd:sequence>
331:         <xsd:element name="file-groups" type="_file-groups"
332:         minOccurs="1" maxOccurs="1"/>
333:         <xsd:element name="unlock-region-data" type="_unlock-region-data"
334:         minOccurs="1" maxOccurs="unbounded"/>
335:         </xsd:sequence>
336:         </xsd:complexType>
337:
338:         <!-- Schema for join filesharing -->
339:         <xsd:complexType name="_join-filesharing">
340:         <xsd:sequence>
341:         <xsd:choice maxOccurs="1">
342:         <xsd:element name="begin-join"
343:         minOccurs="0" maxOccurs="1"/>
344:         <xsd:element name="end-join"
345:         minOccurs="0" maxOccurs="1"/>
346:         </xsd:choice>
347:         <xsd:element name="user" type="_user"
348:         minOccurs="1" maxOccurs="1"/>
349:         </xsd:sequence>
350:         </xsd:complexType>
351:
352:         <!-- Schema for pause filesharing -->
353:         <xsd:complexType name="_pause-filesharing">
354:         <xsd:sequence>
355:         <xsd:element name="join-user" type="_join-user"
356:         minOccurs="1" maxOccurs="1"/>
357:         <xsd:element name="moderator" type="_moderator"
358:         minOccurs="1" maxOccurs="1"/>
359:         <xsd:element name="file-owners" type="_file-owners"
360:         minOccurs="1" maxOccurs="1"/>
361:         <xsd:element name="users" type="_users"
362:         minOccurs="1" maxOccurs="1"/>
363:         <xsd:element name="file-groups" type="_file-groups"
364:         minOccurs="1" maxOccurs="1"/>
365:         </xsd:sequence>
366:         </xsd:complexType>
367:
368:         <!-- Schema for resume filesharing -->
369:         <xsd:complexType name="_resume-filesharing">
370:         <xsd:sequence>
371:         <xsd:element name="moderator" type="_moderator"
372:         minOccurs="1" maxOccurs="1"/>
373:         </xsd:sequence>
374:         </xsd:complexType>
375:
376:         <!-- Schema for pause filesharing -->
377:         <xsd:complexType name="_leave-filesharing">
378:         <xsd:sequence>
379:         <xsd:element name="user" type="_user"
380:         minOccurs="1" maxOccurs="1"/>
381:         <xsd:element name="new-moderator" type="_moderator"
382:         minOccurs="1" maxOccurs="1"/>
383:         <xsd:element name="new-file-owner" type="_new-file-owner"
384:         minOccurs="1" maxOccurs="1"/>
385:         <xsd:element name="file-groups" type="_file-groups"
386:         minOccurs="1" maxOccurs="1"/>
387:         </xsd:sequence>
388:         </xsd:complexType>
389:
390:         <!-- Schema for commands -->
391:         <xsd:complexType name="_commands">
392:         <xsd:sequence>
393:         <xsd:choice maxOccurs="1">
394:         <xsd:element name="filesystem-command" type="_filesystem-command"
395:         minOccurs="1" maxOccurs="1"/>
396:         </xsd:choice>
397:         </xsd:sequence>
398:         </xsd:complexType>
399:
400:         <!-- ===================================================== -->
401:
402:         <xsd:complexType name="_file-groups">
403:         <xsd:sequence>
404:         <xsd:element name="file-group" type="_file-group"
405:         minOccurs="1" maxOccurs="unbounded"/>
406:         </xsd:sequence>
407:         </xsd:complexType>
408:
409:         <xsd:complexType name="_file-group">
410:         <xsd:sequence>
411:         <xsd:element name="file-group-name" type="xsd:string"
412:         minOccurs="1" maxOccurs="1"/>
413:         <xsd:element name="user" type="_user"
414:         minOccurs="1" maxOccurs="1"/>
415:         <!-- file-name contains full path -->
416:         <xsd:element name="file-name" type="xsd:string"
417:         minOccurs="1" maxOccurs="unbounded"/>
418:         </xsd:sequence>
419:         </xsd:complexType>
420:
421:         <xsd:complexType name="_send-file-data">
422:         <xsd:sequence>
423:         <xsd:element name="file-data" type="_file-data"
424:         minOccurs="1" maxOccurs="1"/>
425:         <xsd:element name="choose-line-region-function" type="xsd:boolean"
426:         minOccurs="1" maxOccurs="1"/>
427:         <xsd:choice maxOccurs="1">
428:         <xsd:element name="line-region-function" type="_line-region-function"
429:         minOccurs="1" maxOccurs="1"/>
430:         <xsd:element name="line-region" type="_line-region"
431:         minOccurs="1" maxOccurs="unbounded"/>
432:         </xsd:choice>
433:         <xsd:element name="content" type="_content"
434:         minOccurs="1" maxOccurs="1"/>
435:         </xsd:sequence>
436:         </xsd:complexType>
437:
438:         <xsd:complexType name="_line-region-function">
439:         <xsd:sequence>
440:         <xsd:element name="funtion-name" type="xsd:string"
441:         minOccurs="1" maxOccurs="1"/>
442:         <xsd:element name="arguments"  type="xsd:string"
443:         minOccurs="1" maxOccurs="unbounded"/>
444:         </xsd:sequence>
445:         </xsd:complexType>
446:
447:         <xsd:complexType name="_file-data">
448:         <xsd:sequence>
449:         <!-- file-name contains full path -->
450:         <xsd:element name="file-name" type="xsd:string"
451:         minOccurs="1" maxOccurs="1"/>
452:         <xsd:element name="content-type" type="xsd:string"
453:         minOccurs="1" maxOccurs="1"/>
454:         <xsd:element name="description" type="xsd:string"
455:         minOccurs="0" maxOccurs="1"/>
456:         </xsd:sequence>
457:         </xsd:complexType>
458:
459:         <!-- Schema for file-changed -->
460:         <xsd:complexType name="_file-changed-data">
461:         <xsd:sequence>
462:         <!-- file-name contains full path -->
463:         <xsd:element name="file-name" type="xsd:string"
464:         minOccurs="1" maxOccurs="1"/>
465:         <xsd:element name="digest" type="xsd:string"
466:         minOccurs="1" maxOccurs="1"/>
467:         <xsd:element name="region-changed" type="_region-changed"
468:         minOccurs="1" maxOccurs="unbounded"/>
469:         </xsd:sequence>
470:         </xsd:complexType>
471:
472:         <!-- Schema for lock-region -->
473:         <xsd:complexType name="_lock-region-data">
474:         <xsd:sequence>
475:         <!-- file-name contains full path -->
476:         <xsd:element name="file-name" type="xsd:string"
477:         minOccurs="1" maxOccurs="1"/>
478:         <xsd:element name="line-region" type="_line-region"
479:         minOccurs="1" maxOccurs="unbounded"/>
480:         <xsd:choice maxOccurs="1">
481:         <xsd:element name="text-region" type="_text-region"
482:         minOccurs="1" maxOccurs="1"/>
483:         <xsd:element name="java-region" type="_java-region"
484:         minOccurs="1" maxOccurs="1"/>
485:         </xsd:choice>
486:         <xsd:element name="content" type="_content"
487:         minOccurs="1" maxOccurs="1"/>
488:         </xsd:sequence>
489:         </xsd:complexType>
490:
491:         <!-- Schema for unlock-region -->
492:         <xsd:complexType name="_unlock-region-data">
493:         <xsd:sequence>
494:         <!-- file-name contains full path -->
495:         <xsd:element name="file-name" type="xsd:string"
496:         minOccurs="1" maxOccurs="1"/>
497:         <xsd:element name="line-region" type="_line-region"
498:         minOccurs="1" maxOccurs="unbounded"/>
499:         <xsd:choice maxOccurs="1">
500:         <xsd:element name="text-region" type="_text-region"
501:         minOccurs="1" maxOccurs="1"/>
502:         <xsd:element name="java-region" type="_java-region"
503:         minOccurs="1" maxOccurs="1"/>
504:         </xsd:choice>
505:         <xsd:element name="content" type="_content"
506:         minOccurs="1" maxOccurs="1"/>
507:         </xsd:sequence>
508:         </xsd:complexType>
509:
510:         <!-- user elements -->
511:         <xsd:complexType name="_moderator">
512:         <xsd:sequence>
513:         <xsd:element name="users" type="_users"
514:         minOccurs="1" maxOccurs="1"/>
515:         </xsd:sequence>
516:         </xsd:complexType>
517:
518:         <xsd:complexType name="_join-user">
519:         <xsd:sequence>
520:         <xsd:element name="user" type="_user"
521:         minOccurs="1" maxOccurs="1"/>
522:         </xsd:sequence>
523:         </xsd:complexType>
524:
525:         <xsd:complexType name="_file-owners">
526:         <xsd:sequence>
527:         <xsd:element name="users" type="_users"
528:         minOccurs="1" maxOccurs="1"/>
529:         </xsd:sequence>
530:         </xsd:complexType>
531:
532:         <xsd:complexType name="_new-file-owner">
533:         <xsd:sequence>
534:         <xsd:element name="users" type="_users"
535:         minOccurs="1" maxOccurs="1"/>
536:         </xsd:sequence>
537:         </xsd:complexType>
538:
539:         <xsd:complexType name="_users">
540:         <xsd:sequence>
541:         <xsd:element name="user" type="_user"
542:         minOccurs="0" maxOccurs="unbounded"/>
543:         </xsd:sequence>
544:         </xsd:complexType>
545:
546:         <xsd:complexType name="_user">
547:         <xsd:sequence>
548:         <xsd:element name="id" type="xsd:string"
549:         minOccurs="1" maxOccurs="1"/>
550:         <xsd:element name="name" type="xsd:string"
551:         minOccurs="0" maxOccurs="1"/>
552:         <xsd:element name="description" type="xsd:string"
553:         minOccurs="0" maxOccurs="1"/>
554:         </xsd:sequence>
555:         </xsd:complexType>
556:
557:         <!-- filesystem command schema -->
558:         <xsd:complexType name="_filesystem-command">
559:         <xsd:sequence>
560:         <xsd:choice maxOccurs="1">
561:         <!-- file commands -->
562:         <xsd:element name="delete-file" type="_delete-file"
563:         minOccurs="1" maxOccurs="1"/>
564:         </xsd:choice>
565:         </xsd:sequence>
566:         </xsd:complexType>
567:
568:         <xsd:complexType name="_delete-file">
569:         <xsd:sequence>
570:         <!-- file-name contains full path -->
571:         <xsd:element name="file-name" type="xsd:string"
572:         minOccurs="1" maxOccurs="1"/>
573:         </xsd:sequence>
574:         </xsd:complexType>
575:
576:         <!-- ===================================================== -->
577:
578:         <xsd:complexType name="_region-changed">
579:         <xsd:sequence>
580:         <xsd:choice maxOccurs="1">
581:         <xsd:element name="text-region-changed" type="_text-region-changed"
582:         minOccurs="1" maxOccurs="1"/>
583:         <xsd:element name="java-region-changed" type="_java-region-changed"
584:         minOccurs="1" maxOccurs="1"/>
585:         <xsd:element name="line-region-changed" type="_line-region-changed"
586:         minOccurs="1" maxOccurs="1"/>
587:         </xsd:choice>
588:         </xsd:sequence>
589:         </xsd:complexType>
590:
591:         <xsd:complexType name="_text-region-changed">
592:         <xsd:sequence>
593:         <xsd:element name="text-region" type="_text-region"
594:         minOccurs="1" maxOccurs="1"/>
595:         <xsd:element name="text-change" type="_text-change"
596:         minOccurs="1" maxOccurs="1"/>
597:         </xsd:sequence>
598:         </xsd:complexType>
599:
600:         <xsd:complexType name="_java-region-changed">
601:         <xsd:sequence>
602:         <xsd:element name="java-region" type="_java-region"
603:         minOccurs="1" maxOccurs="1"/>
604:         <xsd:element name="java-change" type="_java-change"
605:         minOccurs="1" maxOccurs="1"/>
606:         </xsd:sequence>
607:         </xsd:complexType>
608:
609:         <xsd:complexType name="_line-region-changed">
610:         <xsd:sequence>
611:         <xsd:element name="line-region" type="_line-region"
612:         minOccurs="1" maxOccurs="1"/>
613:         <xsd:element name="line-change" type="_line-change"
614:         minOccurs="1" maxOccurs="1"/>
615:         </xsd:sequence>
616:         </xsd:complexType>
617:
618:         <xsd:complexType name="_region" abstract="true">
619:         <xsd:sequence>
620:         <xsd:element name="region-name" type="xsd:string"
621:         minOccurs="1" maxOccurs="1">
622:         </xsd:element>
623:         </xsd:sequence>
624:         </xsd:complexType>
625:
626:         <xsd:complexType name="_change" abstract="true"/>
627:
628:         <xsd:complexType name="_content">
629:         <xsd:sequence>
630:         <xsd:element name="encoding" type="xsd:string"
631:         minOccurs="1" maxOccurs="1">
632:         </xsd:element>
633:         <xsd:element name="digest" type="xsd:string"
634:         minOccurs="1" maxOccurs="1">
635:         </xsd:element>
636:         <xsd:element name="data" type="xsd:string"
637:         minOccurs="1" maxOccurs="1">
638:         </xsd:element>
639:         </xsd:sequence>
640:         </xsd:complexType>
641:
642:
643:
644:         <!-- ===================================================== -->
645:         <!-- ================   Text Region    =================== -->
646:         <!-- ===================================================== -->
647:
648:         <xsd:complexType name="_text-region">
649:         <xsd:complexContent>
650:         <xsd:extension base="_region">
651:         <xsd:sequence>
652:         <xsd:element name="begin-offset" type="xsd:integer"
653:         minOccurs="1" maxOccurs="1">
654:         </xsd:element>
655:         <xsd:element name="length" type="xsd:integer"
656:         minOccurs="1" maxOccurs="1">
657:         </xsd:element>
658:         </xsd:sequence>
659:         </xsd:extension>
660:         </xsd:complexContent>
661:         </xsd:complexType>
662:
663:         <xsd:complexType name="_line-range">
664:         <xsd:sequence>
665:         <xsd:element name="from-line" type="xsd:integer"
666:         minOccurs="1" maxOccurs="1"/>
667:         <xsd:element name="to-line" type="xsd:integer"
668:         minOccurs="1" maxOccurs="1"/>
669:         </xsd:sequence>
670:         </xsd:complexType>
671:
672:         <xsd:complexType name="_offset-range">
673:         <xsd:sequence>
674:         <xsd:element name="begin-offset" type="xsd:integer"
675:         minOccurs="1" maxOccurs="1">
676:         </xsd:element>
677:         <xsd:element name="length" type="xsd:integer"
678:         minOccurs="1" maxOccurs="1">
679:         </xsd:element>
680:         </xsd:sequence>
681:         </xsd:complexType>
682:
683:         <xsd:complexType name="_text-change">
684:         <xsd:complexContent>
685:         <xsd:extension base="_change">
686:         <xsd:choice maxOccurs="1">
687:         <xsd:element name="change-texts" type="_change-texts"
688:         minOccurs="1" maxOccurs="1"/>
689:         <xsd:element name="content" type="_content"
690:         minOccurs="1" maxOccurs="1"/>
691:         </xsd:choice>
692:         </xsd:extension>
693:         </xsd:complexContent>
694:         </xsd:complexType>
695:
696:
697:
698:         <!-- ===================================================== -->
699:         <!-- ================   Java Region    =================== -->
700:         <!-- ===================================================== -->
701:         <xsd:complexType name="_java-region">
702:         <xsd:complexContent>
703:         <xsd:extension base="_region">
704:         <xsd:sequence>
705:         <xsd:element name="begin-offset" type="xsd:integer"
706:         minOccurs="1" maxOccurs="1">
707:         </xsd:element>
708:         <xsd:element name="length" type="xsd:integer"
709:         minOccurs="1" maxOccurs="1">
710:         </xsd:element>
711:         </xsd:sequence>
712:         </xsd:extension>
713:         </xsd:complexContent>
714:         </xsd:complexType>
715:
716:         <xsd:complexType name="_java-change">
717:         <xsd:complexContent>
718:         <xsd:extension base="_change">
719:         <xsd:sequence>
720:         <xsd:choice maxOccurs="1">
721:         <xsd:element name="change-texts" type="_change-texts"
722:         minOccurs="1" maxOccurs="1"/>
723:         <xsd:element name="content" type="_content"
724:         minOccurs="1" maxOccurs="1"/>
725:         </xsd:choice>
726:         </xsd:sequence>
727:         </xsd:extension>
728:         </xsd:complexContent>
729:         </xsd:complexType>
730:
731:
732:
733:         <!-- ===================================================== -->
734:         <!-- ================   Line Region    =================== -->
735:         <!-- ===================================================== -->
736:         <xsd:complexType name="_line-region">
737:         <xsd:complexContent>
738:         <xsd:extension base="_region">
739:         </xsd:extension>
740:         </xsd:complexContent>
741:         </xsd:complexType>
742:
743:         <xsd:complexType name="_line-change">
744:         <xsd:complexContent>
745:         <xsd:extension base="_change">
746:         <xsd:sequence>
747:         <xsd:choice maxOccurs="1">
748:         <xsd:element name="content" type="_content"
749:         minOccurs="1" maxOccurs="1"/>
750:         </xsd:choice>
751:         </xsd:sequence>
752:         </xsd:extension>
753:         </xsd:complexContent>
754:         </xsd:complexType>
755:
756:
757:
758:         <!-- ===================================================== -->
759:         <!-- ================Common Region Type=================== -->
760:         <!-- ===================================================== -->
761:
762:         <xsd:complexType name="_change-texts">
763:         <xsd:sequence>
764:         <xsd:element name="remove-texts" type="_remove-texts"
765:         minOccurs="1" maxOccurs="1"/>
766:         <xsd:element name="insert-texts" type="_insert-texts"
767:         minOccurs="1" maxOccurs="1"/>
768:         </xsd:sequence>
769:         </xsd:complexType>
770:
771:         <xsd:complexType name="_remove-texts">
772:         <xsd:sequence>
773:         <xsd:element name="remove-text" type="_remove-text"
774:         minOccurs="1" maxOccurs="unbounded"/>
775:         </xsd:sequence>
776:         </xsd:complexType>
777:
778:         <xsd:complexType name="_insert-texts">
779:         <xsd:sequence>
780:         <xsd:element name="insert-text" type="_insert-text"
781:         minOccurs="1" maxOccurs="unbounded"/>
782:         </xsd:sequence>
783:         </xsd:complexType>
784:
785:         <xsd:complexType name="_remove-text">
786:         <xsd:sequence>
787:         <xsd:element name="offset" type="xsd:integer"
788:         minOccurs="1" maxOccurs="1"/>
789:         </xsd:sequence>
790:         </xsd:complexType>
791:
792:         <xsd:complexType name="_insert-text">
793:         <xsd:sequence>
794:         <xsd:element name="offset" type="xsd:integer"
795:         minOccurs="1" maxOccurs="1"/>
796:         <xsd:element name="content" type="_content"
797:         minOccurs="1" maxOccurs="1"/>
798:         </xsd:sequence>
799:         </xsd:complexType>
800:
801:         </xsd:schema>
802:
803:         */
ww___w__.__ja__va__2___s_.__co__m_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.