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 RemoveTexts
043: * matches the schema element '_remove-texts'.
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 RemoveTexts {
049: private java.util.List _RemoveText = new java.util.ArrayList(); // List<RemoveText>
050:
051: public RemoveTexts() {
052: }
053:
054: // Deep copy
055: public RemoveTexts(
056: org.netbeans.modules.collab.channel.filesharing.msgbean.RemoveTexts source) {
057: for (java.util.Iterator it = source._RemoveText.iterator(); it
058: .hasNext();) {
059: _RemoveText
060: .add(new org.netbeans.modules.collab.channel.filesharing.msgbean.RemoveText(
061: (org.netbeans.modules.collab.channel.filesharing.msgbean.RemoveText) it
062: .next()));
063: }
064: }
065:
066: // This attribute is an array containing at least one element
067: public void setRemoveText(
068: org.netbeans.modules.collab.channel.filesharing.msgbean.RemoveText[] value) {
069: if (value == null) {
070: value = new RemoveText[0];
071: }
072:
073: _RemoveText.clear();
074:
075: for (int i = 0; i < value.length; ++i) {
076: _RemoveText.add(value[i]);
077: }
078: }
079:
080: public void setRemoveText(
081: int index,
082: org.netbeans.modules.collab.channel.filesharing.msgbean.RemoveText value) {
083: _RemoveText.set(index, value);
084: }
085:
086: public org.netbeans.modules.collab.channel.filesharing.msgbean.RemoveText[] getRemoveText() {
087: RemoveText[] arr = new RemoveText[_RemoveText.size()];
088:
089: return (RemoveText[]) _RemoveText.toArray(arr);
090: }
091:
092: public java.util.List fetchRemoveTextList() {
093: return _RemoveText;
094: }
095:
096: public org.netbeans.modules.collab.channel.filesharing.msgbean.RemoveText getRemoveText(
097: int index) {
098: return (RemoveText) _RemoveText.get(index);
099: }
100:
101: // Return the number of removeText
102: public int sizeRemoveText() {
103: return _RemoveText.size();
104: }
105:
106: public int addRemoveText(
107: org.netbeans.modules.collab.channel.filesharing.msgbean.RemoveText value) {
108: _RemoveText.add(value);
109:
110: return _RemoveText.size() - 1;
111: }
112:
113: // Search from the end looking for @param value, and then remove it.
114: public int removeRemoveText(
115: org.netbeans.modules.collab.channel.filesharing.msgbean.RemoveText value) {
116: int pos = _RemoveText.indexOf(value);
117:
118: if (pos >= 0) {
119: _RemoveText.remove(pos);
120: }
121:
122: return pos;
123: }
124:
125: public void writeNode(java.io.Writer out, String nodeName,
126: String indent) throws java.io.IOException {
127: out.write(indent);
128: out.write("<");
129: out.write(nodeName);
130: out.write(">\n");
131:
132: String nextIndent = indent + " ";
133:
134: for (java.util.Iterator it = _RemoveText.iterator(); it
135: .hasNext();) {
136: org.netbeans.modules.collab.channel.filesharing.msgbean.RemoveText element = (org.netbeans.modules.collab.channel.filesharing.msgbean.RemoveText) it
137: .next();
138:
139: if (element != null) {
140: element.writeNode(out, "remove-text", nextIndent);
141: }
142: }
143:
144: out.write(indent);
145: out.write("</" + nodeName + ">\n");
146: }
147:
148: public void readNode(org.w3c.dom.Node node) {
149: org.w3c.dom.NodeList children = node.getChildNodes();
150:
151: for (int i = 0, size = children.getLength(); i < size; ++i) {
152: org.w3c.dom.Node childNode = children.item(i);
153: String childNodeName = ((childNode.getLocalName() == null) ? childNode
154: .getNodeName().intern()
155: : childNode.getLocalName().intern());
156: String childNodeValue = "";
157:
158: if (childNode.getFirstChild() != null) {
159: childNodeValue = childNode.getFirstChild()
160: .getNodeValue();
161: }
162:
163: if (childNodeName == "remove-text") {
164: RemoveText aRemoveText = new org.netbeans.modules.collab.channel.filesharing.msgbean.RemoveText();
165: aRemoveText.readNode(childNode);
166: _RemoveText.add(aRemoveText);
167: } else {
168: // Found extra unrecognized childNode
169: }
170: }
171: }
172:
173: public void changePropertyByName(String name, Object value) {
174: if (name == null) {
175: return;
176: }
177:
178: name = name.intern();
179:
180: if (name == "removeText") {
181: addRemoveText((RemoveText) value);
182: } else if (name == "removeText[]") {
183: setRemoveText((RemoveText[]) value);
184: } else {
185: throw new IllegalArgumentException(name
186: + " is not a valid property name for RemoveTexts");
187: }
188: }
189:
190: public Object fetchPropertyByName(String name) {
191: if (name == "removeText[]") {
192: return getRemoveText();
193: }
194:
195: throw new IllegalArgumentException(name
196: + " is not a valid property name for RemoveTexts");
197: }
198:
199: // Return an array of all of the properties that are beans and are set.
200: public java.lang.Object[] childBeans(boolean recursive) {
201: java.util.List children = new java.util.LinkedList();
202: childBeans(recursive, children);
203:
204: java.lang.Object[] result = new java.lang.Object[children
205: .size()];
206:
207: return (java.lang.Object[]) children.toArray(result);
208: }
209:
210: // Put all child beans into the beans list.
211: public void childBeans(boolean recursive, java.util.List beans) {
212: for (java.util.Iterator it = _RemoveText.iterator(); it
213: .hasNext();) {
214: org.netbeans.modules.collab.channel.filesharing.msgbean.RemoveText element = (org.netbeans.modules.collab.channel.filesharing.msgbean.RemoveText) it
215: .next();
216:
217: if (element != null) {
218: if (recursive) {
219: element.childBeans(true, beans);
220: }
221:
222: beans.add(element);
223: }
224: }
225: }
226:
227: public boolean equals(Object o) {
228: if (o == this ) {
229: return true;
230: }
231:
232: if (!(o instanceof org.netbeans.modules.collab.channel.filesharing.msgbean.RemoveTexts)) {
233: return false;
234: }
235:
236: org.netbeans.modules.collab.channel.filesharing.msgbean.RemoveTexts inst = (org.netbeans.modules.collab.channel.filesharing.msgbean.RemoveTexts) o;
237:
238: if (sizeRemoveText() != inst.sizeRemoveText()) {
239: return false;
240: }
241:
242: // Compare every element.
243: for (java.util.Iterator it = _RemoveText.iterator(), it2 = inst._RemoveText
244: .iterator(); it.hasNext() && it2.hasNext();) {
245: org.netbeans.modules.collab.channel.filesharing.msgbean.RemoveText element = (org.netbeans.modules.collab.channel.filesharing.msgbean.RemoveText) it
246: .next();
247: org.netbeans.modules.collab.channel.filesharing.msgbean.RemoveText element2 = (org.netbeans.modules.collab.channel.filesharing.msgbean.RemoveText) it2
248: .next();
249:
250: if (!((element == null) ? (element2 == null) : element
251: .equals(element2))) {
252: return false;
253: }
254: }
255:
256: return true;
257: }
258:
259: public int hashCode() {
260: int result = 17;
261: result = (37 * result)
262: + ((_RemoveText == null) ? 0 : _RemoveText.hashCode());
263:
264: return result;
265: }
266: }
267:
268: /*
269: The following schema file has been used for generation:
270:
271: <?xml version="1.0" encoding="UTF-8"?>
272: <!--
273: Document : collab.xsd
274: Created on : May 21, 2004, 7:45 PM
275: Author : Ayub Khan
276: Description:
277: Purpose of the document follows.
278: -->
279: <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
280: targetNamespace="http://sun.com/ns/collab/dev/1_0/filesharing"
281: xmlns:c="http://sun.com/ns/collab/dev/1_0"
282: xmlns:ch="http://sun.com/ns/collab/dev/1_0/filesharing"
283: elementFormDefault="qaulified">
284:
285: <!-- collab element -->
286: <xsd:element name="c:collab" type="_collab">
287: </xsd:element>
288:
289: <xsd:complexType name="_collab">
290: <xsd:sequence>
291: <xsd:element name="version" type="xsd:string"
292: minOccurs="1" maxOccurs="1"/>
293: <xsd:choice maxOccurs="1">
294: <xsd:element name="ch:send-file" type="_send-file"
295: minOccurs="0" maxOccurs="1"/>
296: <xsd:element name="ch:file-changed" type="_file-changed"
297: minOccurs="0" maxOccurs="1"/>
298: <xsd:element name="ch:lock-region" type="_lock-region"
299: minOccurs="0" maxOccurs="1"/>
300: <xsd:element name="ch:unlock-region" type="_unlock-region"
301: minOccurs="0" maxOccurs="1"/>
302: <xsd:element name="ch:join-filesharing" type="_join-filesharing"
303: minOccurs="0" maxOccurs="1"/>
304: <xsd:element name="ch:pause-filesharing" type="_pause-filesharing"
305: minOccurs="0" maxOccurs="1"/>
306: <xsd:element name="ch:resume-filesharing" type="_resume-filesharing"
307: minOccurs="0" maxOccurs="1"/>
308: <xsd:element name="ch:leave-filesharing" type="_leave-filesharing"
309: minOccurs="0" maxOccurs="1"/>
310: <xsd:element name="ch:commands" type="_commands"
311: minOccurs="0" maxOccurs="1"/>
312: </xsd:choice>
313: </xsd:sequence>
314: </xsd:complexType>
315:
316: <!-- Schema for send-file -->
317: <xsd:complexType name="_send-file">
318: <xsd:sequence>
319: <xsd:element name="file-groups" type="_file-groups"
320: minOccurs="1" maxOccurs="1"/>
321: <xsd:element name="send-file-data" type="_send-file-data"
322: minOccurs="1" maxOccurs="unbounded"/>
323: </xsd:sequence>
324: </xsd:complexType>
325:
326: <!-- Schema for file-changed -->
327: <xsd:complexType name="_file-changed">
328: <xsd:sequence>
329: <xsd:element name="file-groups" type="_file-groups"
330: minOccurs="1" maxOccurs="1"/>
331: <xsd:element name="file-changed-data" type="_file-changed-data"
332: minOccurs="1" maxOccurs="unbounded"/>
333: </xsd:sequence>
334: </xsd:complexType>
335:
336: <!-- Schema for lock-region -->
337: <xsd:complexType name="_lock-region">
338: <xsd:sequence>
339: <xsd:element name="file-groups" type="_file-groups"
340: minOccurs="1" maxOccurs="1"/>
341: <xsd:element name="lock-region-data" type="_lock-region-data"
342: minOccurs="1" maxOccurs="unbounded"/>
343: </xsd:sequence>
344: </xsd:complexType>
345:
346: <!-- Schema for unlock-region -->
347: <xsd:complexType name="_unlock-region">
348: <xsd:sequence>
349: <xsd:element name="file-groups" type="_file-groups"
350: minOccurs="1" maxOccurs="1"/>
351: <xsd:element name="unlock-region-data" type="_unlock-region-data"
352: minOccurs="1" maxOccurs="unbounded"/>
353: </xsd:sequence>
354: </xsd:complexType>
355:
356: <!-- Schema for join filesharing -->
357: <xsd:complexType name="_join-filesharing">
358: <xsd:sequence>
359: <xsd:choice maxOccurs="1">
360: <xsd:element name="begin-join"
361: minOccurs="0" maxOccurs="1"/>
362: <xsd:element name="end-join"
363: minOccurs="0" maxOccurs="1"/>
364: </xsd:choice>
365: <xsd:element name="user" type="_user"
366: minOccurs="1" maxOccurs="1"/>
367: </xsd:sequence>
368: </xsd:complexType>
369:
370: <!-- Schema for pause filesharing -->
371: <xsd:complexType name="_pause-filesharing">
372: <xsd:sequence>
373: <xsd:element name="join-user" type="_join-user"
374: minOccurs="1" maxOccurs="1"/>
375: <xsd:element name="moderator" type="_moderator"
376: minOccurs="1" maxOccurs="1"/>
377: <xsd:element name="file-owners" type="_file-owners"
378: minOccurs="1" maxOccurs="1"/>
379: <xsd:element name="users" type="_users"
380: minOccurs="1" maxOccurs="1"/>
381: <xsd:element name="file-groups" type="_file-groups"
382: minOccurs="1" maxOccurs="1"/>
383: </xsd:sequence>
384: </xsd:complexType>
385:
386: <!-- Schema for resume filesharing -->
387: <xsd:complexType name="_resume-filesharing">
388: <xsd:sequence>
389: <xsd:element name="moderator" type="_moderator"
390: minOccurs="1" maxOccurs="1"/>
391: </xsd:sequence>
392: </xsd:complexType>
393:
394: <!-- Schema for pause filesharing -->
395: <xsd:complexType name="_leave-filesharing">
396: <xsd:sequence>
397: <xsd:element name="user" type="_user"
398: minOccurs="1" maxOccurs="1"/>
399: <xsd:element name="new-moderator" type="_moderator"
400: minOccurs="1" maxOccurs="1"/>
401: <xsd:element name="new-file-owner" type="_new-file-owner"
402: minOccurs="1" maxOccurs="1"/>
403: <xsd:element name="file-groups" type="_file-groups"
404: minOccurs="1" maxOccurs="1"/>
405: </xsd:sequence>
406: </xsd:complexType>
407:
408: <!-- Schema for commands -->
409: <xsd:complexType name="_commands">
410: <xsd:sequence>
411: <xsd:choice maxOccurs="1">
412: <xsd:element name="filesystem-command" type="_filesystem-command"
413: minOccurs="1" maxOccurs="1"/>
414: </xsd:choice>
415: </xsd:sequence>
416: </xsd:complexType>
417:
418: <!-- ===================================================== -->
419:
420: <xsd:complexType name="_file-groups">
421: <xsd:sequence>
422: <xsd:element name="file-group" type="_file-group"
423: minOccurs="1" maxOccurs="unbounded"/>
424: </xsd:sequence>
425: </xsd:complexType>
426:
427: <xsd:complexType name="_file-group">
428: <xsd:sequence>
429: <xsd:element name="file-group-name" type="xsd:string"
430: minOccurs="1" maxOccurs="1"/>
431: <xsd:element name="user" type="_user"
432: minOccurs="1" maxOccurs="1"/>
433: <!-- file-name contains full path -->
434: <xsd:element name="file-name" type="xsd:string"
435: minOccurs="1" maxOccurs="unbounded"/>
436: </xsd:sequence>
437: </xsd:complexType>
438:
439: <xsd:complexType name="_send-file-data">
440: <xsd:sequence>
441: <xsd:element name="file-data" type="_file-data"
442: minOccurs="1" maxOccurs="1"/>
443: <xsd:element name="choose-line-region-function" type="xsd:boolean"
444: minOccurs="1" maxOccurs="1"/>
445: <xsd:choice maxOccurs="1">
446: <xsd:element name="line-region-function" type="_line-region-function"
447: minOccurs="1" maxOccurs="1"/>
448: <xsd:element name="line-region" type="_line-region"
449: minOccurs="1" maxOccurs="unbounded"/>
450: </xsd:choice>
451: <xsd:element name="content" type="_content"
452: minOccurs="1" maxOccurs="1"/>
453: </xsd:sequence>
454: </xsd:complexType>
455:
456: <xsd:complexType name="_line-region-function">
457: <xsd:sequence>
458: <xsd:element name="funtion-name" type="xsd:string"
459: minOccurs="1" maxOccurs="1"/>
460: <xsd:element name="arguments" type="xsd:string"
461: minOccurs="1" maxOccurs="unbounded"/>
462: </xsd:sequence>
463: </xsd:complexType>
464:
465: <xsd:complexType name="_file-data">
466: <xsd:sequence>
467: <!-- file-name contains full path -->
468: <xsd:element name="file-name" type="xsd:string"
469: minOccurs="1" maxOccurs="1"/>
470: <xsd:element name="content-type" type="xsd:string"
471: minOccurs="1" maxOccurs="1"/>
472: <xsd:element name="description" type="xsd:string"
473: minOccurs="0" maxOccurs="1"/>
474: </xsd:sequence>
475: </xsd:complexType>
476:
477: <!-- Schema for file-changed -->
478: <xsd:complexType name="_file-changed-data">
479: <xsd:sequence>
480: <!-- file-name contains full path -->
481: <xsd:element name="file-name" type="xsd:string"
482: minOccurs="1" maxOccurs="1"/>
483: <xsd:element name="digest" type="xsd:string"
484: minOccurs="1" maxOccurs="1"/>
485: <xsd:element name="region-changed" type="_region-changed"
486: minOccurs="1" maxOccurs="unbounded"/>
487: </xsd:sequence>
488: </xsd:complexType>
489:
490: <!-- Schema for lock-region -->
491: <xsd:complexType name="_lock-region-data">
492: <xsd:sequence>
493: <!-- file-name contains full path -->
494: <xsd:element name="file-name" type="xsd:string"
495: minOccurs="1" maxOccurs="1"/>
496: <xsd:element name="line-region" type="_line-region"
497: minOccurs="1" maxOccurs="unbounded"/>
498: <xsd:choice maxOccurs="1">
499: <xsd:element name="text-region" type="_text-region"
500: minOccurs="1" maxOccurs="1"/>
501: <xsd:element name="java-region" type="_java-region"
502: minOccurs="1" maxOccurs="1"/>
503: </xsd:choice>
504: <xsd:element name="content" type="_content"
505: minOccurs="1" maxOccurs="1"/>
506: </xsd:sequence>
507: </xsd:complexType>
508:
509: <!-- Schema for unlock-region -->
510: <xsd:complexType name="_unlock-region-data">
511: <xsd:sequence>
512: <!-- file-name contains full path -->
513: <xsd:element name="file-name" type="xsd:string"
514: minOccurs="1" maxOccurs="1"/>
515: <xsd:element name="line-region" type="_line-region"
516: minOccurs="1" maxOccurs="unbounded"/>
517: <xsd:choice maxOccurs="1">
518: <xsd:element name="text-region" type="_text-region"
519: minOccurs="1" maxOccurs="1"/>
520: <xsd:element name="java-region" type="_java-region"
521: minOccurs="1" maxOccurs="1"/>
522: </xsd:choice>
523: <xsd:element name="content" type="_content"
524: minOccurs="1" maxOccurs="1"/>
525: </xsd:sequence>
526: </xsd:complexType>
527:
528: <!-- user elements -->
529: <xsd:complexType name="_moderator">
530: <xsd:sequence>
531: <xsd:element name="users" type="_users"
532: minOccurs="1" maxOccurs="1"/>
533: </xsd:sequence>
534: </xsd:complexType>
535:
536: <xsd:complexType name="_join-user">
537: <xsd:sequence>
538: <xsd:element name="user" type="_user"
539: minOccurs="1" maxOccurs="1"/>
540: </xsd:sequence>
541: </xsd:complexType>
542:
543: <xsd:complexType name="_file-owners">
544: <xsd:sequence>
545: <xsd:element name="users" type="_users"
546: minOccurs="1" maxOccurs="1"/>
547: </xsd:sequence>
548: </xsd:complexType>
549:
550: <xsd:complexType name="_new-file-owner">
551: <xsd:sequence>
552: <xsd:element name="users" type="_users"
553: minOccurs="1" maxOccurs="1"/>
554: </xsd:sequence>
555: </xsd:complexType>
556:
557: <xsd:complexType name="_users">
558: <xsd:sequence>
559: <xsd:element name="user" type="_user"
560: minOccurs="0" maxOccurs="unbounded"/>
561: </xsd:sequence>
562: </xsd:complexType>
563:
564: <xsd:complexType name="_user">
565: <xsd:sequence>
566: <xsd:element name="id" type="xsd:string"
567: minOccurs="1" maxOccurs="1"/>
568: <xsd:element name="name" type="xsd:string"
569: minOccurs="0" maxOccurs="1"/>
570: <xsd:element name="description" type="xsd:string"
571: minOccurs="0" maxOccurs="1"/>
572: </xsd:sequence>
573: </xsd:complexType>
574:
575: <!-- filesystem command schema -->
576: <xsd:complexType name="_filesystem-command">
577: <xsd:sequence>
578: <xsd:choice maxOccurs="1">
579: <!-- file commands -->
580: <xsd:element name="delete-file" type="_delete-file"
581: minOccurs="1" maxOccurs="1"/>
582: </xsd:choice>
583: </xsd:sequence>
584: </xsd:complexType>
585:
586: <xsd:complexType name="_delete-file">
587: <xsd:sequence>
588: <!-- file-name contains full path -->
589: <xsd:element name="file-name" type="xsd:string"
590: minOccurs="1" maxOccurs="1"/>
591: </xsd:sequence>
592: </xsd:complexType>
593:
594: <!-- ===================================================== -->
595:
596: <xsd:complexType name="_region-changed">
597: <xsd:sequence>
598: <xsd:choice maxOccurs="1">
599: <xsd:element name="text-region-changed" type="_text-region-changed"
600: minOccurs="1" maxOccurs="1"/>
601: <xsd:element name="java-region-changed" type="_java-region-changed"
602: minOccurs="1" maxOccurs="1"/>
603: <xsd:element name="line-region-changed" type="_line-region-changed"
604: minOccurs="1" maxOccurs="1"/>
605: </xsd:choice>
606: </xsd:sequence>
607: </xsd:complexType>
608:
609: <xsd:complexType name="_text-region-changed">
610: <xsd:sequence>
611: <xsd:element name="text-region" type="_text-region"
612: minOccurs="1" maxOccurs="1"/>
613: <xsd:element name="text-change" type="_text-change"
614: minOccurs="1" maxOccurs="1"/>
615: </xsd:sequence>
616: </xsd:complexType>
617:
618: <xsd:complexType name="_java-region-changed">
619: <xsd:sequence>
620: <xsd:element name="java-region" type="_java-region"
621: minOccurs="1" maxOccurs="1"/>
622: <xsd:element name="java-change" type="_java-change"
623: minOccurs="1" maxOccurs="1"/>
624: </xsd:sequence>
625: </xsd:complexType>
626:
627: <xsd:complexType name="_line-region-changed">
628: <xsd:sequence>
629: <xsd:element name="line-region" type="_line-region"
630: minOccurs="1" maxOccurs="1"/>
631: <xsd:element name="line-change" type="_line-change"
632: minOccurs="1" maxOccurs="1"/>
633: </xsd:sequence>
634: </xsd:complexType>
635:
636: <xsd:complexType name="_region" abstract="true">
637: <xsd:sequence>
638: <xsd:element name="region-name" type="xsd:string"
639: minOccurs="1" maxOccurs="1">
640: </xsd:element>
641: </xsd:sequence>
642: </xsd:complexType>
643:
644: <xsd:complexType name="_change" abstract="true"/>
645:
646: <xsd:complexType name="_content">
647: <xsd:sequence>
648: <xsd:element name="encoding" type="xsd:string"
649: minOccurs="1" maxOccurs="1">
650: </xsd:element>
651: <xsd:element name="digest" type="xsd:string"
652: minOccurs="1" maxOccurs="1">
653: </xsd:element>
654: <xsd:element name="data" type="xsd:string"
655: minOccurs="1" maxOccurs="1">
656: </xsd:element>
657: </xsd:sequence>
658: </xsd:complexType>
659:
660:
661:
662: <!-- ===================================================== -->
663: <!-- ================ Text Region =================== -->
664: <!-- ===================================================== -->
665:
666: <xsd:complexType name="_text-region">
667: <xsd:complexContent>
668: <xsd:extension base="_region">
669: <xsd:sequence>
670: <xsd:element name="begin-offset" type="xsd:integer"
671: minOccurs="1" maxOccurs="1">
672: </xsd:element>
673: <xsd:element name="length" type="xsd:integer"
674: minOccurs="1" maxOccurs="1">
675: </xsd:element>
676: </xsd:sequence>
677: </xsd:extension>
678: </xsd:complexContent>
679: </xsd:complexType>
680:
681: <xsd:complexType name="_line-range">
682: <xsd:sequence>
683: <xsd:element name="from-line" type="xsd:integer"
684: minOccurs="1" maxOccurs="1"/>
685: <xsd:element name="to-line" type="xsd:integer"
686: minOccurs="1" maxOccurs="1"/>
687: </xsd:sequence>
688: </xsd:complexType>
689:
690: <xsd:complexType name="_offset-range">
691: <xsd:sequence>
692: <xsd:element name="begin-offset" type="xsd:integer"
693: minOccurs="1" maxOccurs="1">
694: </xsd:element>
695: <xsd:element name="length" type="xsd:integer"
696: minOccurs="1" maxOccurs="1">
697: </xsd:element>
698: </xsd:sequence>
699: </xsd:complexType>
700:
701: <xsd:complexType name="_text-change">
702: <xsd:complexContent>
703: <xsd:extension base="_change">
704: <xsd:choice maxOccurs="1">
705: <xsd:element name="change-texts" type="_change-texts"
706: minOccurs="1" maxOccurs="1"/>
707: <xsd:element name="content" type="_content"
708: minOccurs="1" maxOccurs="1"/>
709: </xsd:choice>
710: </xsd:extension>
711: </xsd:complexContent>
712: </xsd:complexType>
713:
714:
715:
716: <!-- ===================================================== -->
717: <!-- ================ Java Region =================== -->
718: <!-- ===================================================== -->
719: <xsd:complexType name="_java-region">
720: <xsd:complexContent>
721: <xsd:extension base="_region">
722: <xsd:sequence>
723: <xsd:element name="begin-offset" type="xsd:integer"
724: minOccurs="1" maxOccurs="1">
725: </xsd:element>
726: <xsd:element name="length" type="xsd:integer"
727: minOccurs="1" maxOccurs="1">
728: </xsd:element>
729: </xsd:sequence>
730: </xsd:extension>
731: </xsd:complexContent>
732: </xsd:complexType>
733:
734: <xsd:complexType name="_java-change">
735: <xsd:complexContent>
736: <xsd:extension base="_change">
737: <xsd:sequence>
738: <xsd:choice maxOccurs="1">
739: <xsd:element name="change-texts" type="_change-texts"
740: minOccurs="1" maxOccurs="1"/>
741: <xsd:element name="content" type="_content"
742: minOccurs="1" maxOccurs="1"/>
743: </xsd:choice>
744: </xsd:sequence>
745: </xsd:extension>
746: </xsd:complexContent>
747: </xsd:complexType>
748:
749:
750:
751: <!-- ===================================================== -->
752: <!-- ================ Line Region =================== -->
753: <!-- ===================================================== -->
754: <xsd:complexType name="_line-region">
755: <xsd:complexContent>
756: <xsd:extension base="_region">
757: </xsd:extension>
758: </xsd:complexContent>
759: </xsd:complexType>
760:
761: <xsd:complexType name="_line-change">
762: <xsd:complexContent>
763: <xsd:extension base="_change">
764: <xsd:sequence>
765: <xsd:choice maxOccurs="1">
766: <xsd:element name="content" type="_content"
767: minOccurs="1" maxOccurs="1"/>
768: </xsd:choice>
769: </xsd:sequence>
770: </xsd:extension>
771: </xsd:complexContent>
772: </xsd:complexType>
773:
774:
775:
776: <!-- ===================================================== -->
777: <!-- ================Common Region Type=================== -->
778: <!-- ===================================================== -->
779:
780: <xsd:complexType name="_change-texts">
781: <xsd:sequence>
782: <xsd:element name="remove-texts" type="_remove-texts"
783: minOccurs="1" maxOccurs="1"/>
784: <xsd:element name="insert-texts" type="_insert-texts"
785: minOccurs="1" maxOccurs="1"/>
786: </xsd:sequence>
787: </xsd:complexType>
788:
789: <xsd:complexType name="_remove-texts">
790: <xsd:sequence>
791: <xsd:element name="remove-text" type="_remove-text"
792: minOccurs="1" maxOccurs="unbounded"/>
793: </xsd:sequence>
794: </xsd:complexType>
795:
796: <xsd:complexType name="_insert-texts">
797: <xsd:sequence>
798: <xsd:element name="insert-text" type="_insert-text"
799: minOccurs="1" maxOccurs="unbounded"/>
800: </xsd:sequence>
801: </xsd:complexType>
802:
803: <xsd:complexType name="_remove-text">
804: <xsd:sequence>
805: <xsd:element name="offset" type="xsd:integer"
806: minOccurs="1" maxOccurs="1"/>
807: </xsd:sequence>
808: </xsd:complexType>
809:
810: <xsd:complexType name="_insert-text">
811: <xsd:sequence>
812: <xsd:element name="offset" type="xsd:integer"
813: minOccurs="1" maxOccurs="1"/>
814: <xsd:element name="content" type="_content"
815: minOccurs="1" maxOccurs="1"/>
816: </xsd:sequence>
817: </xsd:complexType>
818:
819: </xsd:schema>
820:
821: */
|