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