0001: /*
0002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
0003: *
0004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
0005: *
0006: * The contents of this file are subject to the terms of either the GNU
0007: * General Public License Version 2 only ("GPL") or the Common
0008: * Development and Distribution License("CDDL") (collectively, the
0009: * "License"). You may not use this file except in compliance with the
0010: * License. You can obtain a copy of the License at
0011: * http://www.netbeans.org/cddl-gplv2.html
0012: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
0013: * specific language governing permissions and limitations under the
0014: * License. When distributing the software, include this License Header
0015: * Notice in each file and include the License file at
0016: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
0017: * particular file as subject to the "Classpath" exception as provided
0018: * by Sun in the GPL Version 2 section of the License file that
0019: * accompanied this code. If applicable, add the following below the
0020: * License Header, with the fields enclosed by brackets [] replaced by
0021: * your own identifying information:
0022: * "Portions Copyrighted [year] [name of copyright owner]"
0023: *
0024: * Contributor(s):
0025: *
0026: * The Original Software is NetBeans. The Initial Developer of the Original
0027: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
0028: * Microsystems, Inc. All Rights Reserved.
0029: *
0030: * If you wish your version of this file to be governed by only the CDDL
0031: * or only the GPL Version 2, indicate your decision by adding
0032: * "[Contributor] elects to include this software in this distribution
0033: * under the [CDDL or GPL Version 2] license." If you do not indicate a
0034: * single choice of license, a recipient has the option to distribute
0035: * your version of this file under either the CDDL, the GPL Version 2 or
0036: * to extend the choice of license to its licensees as provided above.
0037: * However, if you add GPL Version 2 code and therefore, elected the GPL
0038: * Version 2 license, then the option applies only if the new code is
0039: * made subject to such option by the copyright holder.
0040: */
0041: /**
0042: * This generated bean class Collab
0043: * matches the schema element '_collab'.
0044: *
0045: * Generated on Mon Sep 27 16:53:12 PDT 2004
0046: */package org.netbeans.modules.collab.channel.filesharing.msgbean;
0047:
0048: public class Collab {
0049: private java.lang.String _Version;
0050: private SendFile _ChSendFile;
0051: private FileChanged _ChFileChanged;
0052: private LockRegion _ChLockRegion;
0053: private UnlockRegion _ChUnlockRegion;
0054: private JoinFilesharing _ChJoinFilesharing;
0055: private PauseFilesharing _ChPauseFilesharing;
0056: private ResumeFilesharing _ChResumeFilesharing;
0057: private LeaveFilesharing _ChLeaveFilesharing;
0058: private Commands _ChCommands;
0059:
0060: public Collab() {
0061: _Version = "";
0062: }
0063:
0064: // Deep copy
0065: public Collab(
0066: org.netbeans.modules.collab.channel.filesharing.msgbean.Collab source) {
0067: _Version = source._Version;
0068: _ChSendFile = new org.netbeans.modules.collab.channel.filesharing.msgbean.SendFile(
0069: source._ChSendFile);
0070: _ChFileChanged = new org.netbeans.modules.collab.channel.filesharing.msgbean.FileChanged(
0071: source._ChFileChanged);
0072: _ChLockRegion = new org.netbeans.modules.collab.channel.filesharing.msgbean.LockRegion(
0073: source._ChLockRegion);
0074: _ChUnlockRegion = new org.netbeans.modules.collab.channel.filesharing.msgbean.UnlockRegion(
0075: source._ChUnlockRegion);
0076: _ChJoinFilesharing = new org.netbeans.modules.collab.channel.filesharing.msgbean.JoinFilesharing(
0077: source._ChJoinFilesharing);
0078: _ChPauseFilesharing = new org.netbeans.modules.collab.channel.filesharing.msgbean.PauseFilesharing(
0079: source._ChPauseFilesharing);
0080: _ChResumeFilesharing = new org.netbeans.modules.collab.channel.filesharing.msgbean.ResumeFilesharing(
0081: source._ChResumeFilesharing);
0082: _ChLeaveFilesharing = new org.netbeans.modules.collab.channel.filesharing.msgbean.LeaveFilesharing(
0083: source._ChLeaveFilesharing);
0084: _ChCommands = new org.netbeans.modules.collab.channel.filesharing.msgbean.Commands(
0085: source._ChCommands);
0086: }
0087:
0088: // This attribute is mandatory
0089: public void setVersion(java.lang.String value) {
0090: _Version = value;
0091: }
0092:
0093: public java.lang.String getVersion() {
0094: return _Version;
0095: }
0096:
0097: // This attribute is optional
0098: public void setChSendFile(
0099: org.netbeans.modules.collab.channel.filesharing.msgbean.SendFile value) {
0100: _ChSendFile = value;
0101: }
0102:
0103: public org.netbeans.modules.collab.channel.filesharing.msgbean.SendFile getChSendFile() {
0104: return _ChSendFile;
0105: }
0106:
0107: // This attribute is optional
0108: public void setChFileChanged(
0109: org.netbeans.modules.collab.channel.filesharing.msgbean.FileChanged value) {
0110: _ChFileChanged = value;
0111: }
0112:
0113: public org.netbeans.modules.collab.channel.filesharing.msgbean.FileChanged getChFileChanged() {
0114: return _ChFileChanged;
0115: }
0116:
0117: // This attribute is optional
0118: public void setChLockRegion(
0119: org.netbeans.modules.collab.channel.filesharing.msgbean.LockRegion value) {
0120: _ChLockRegion = value;
0121: }
0122:
0123: public org.netbeans.modules.collab.channel.filesharing.msgbean.LockRegion getChLockRegion() {
0124: return _ChLockRegion;
0125: }
0126:
0127: // This attribute is optional
0128: public void setChUnlockRegion(
0129: org.netbeans.modules.collab.channel.filesharing.msgbean.UnlockRegion value) {
0130: _ChUnlockRegion = value;
0131: }
0132:
0133: public org.netbeans.modules.collab.channel.filesharing.msgbean.UnlockRegion getChUnlockRegion() {
0134: return _ChUnlockRegion;
0135: }
0136:
0137: // This attribute is optional
0138: public void setChJoinFilesharing(
0139: org.netbeans.modules.collab.channel.filesharing.msgbean.JoinFilesharing value) {
0140: _ChJoinFilesharing = value;
0141: }
0142:
0143: public org.netbeans.modules.collab.channel.filesharing.msgbean.JoinFilesharing getChJoinFilesharing() {
0144: return _ChJoinFilesharing;
0145: }
0146:
0147: // This attribute is optional
0148: public void setChPauseFilesharing(
0149: org.netbeans.modules.collab.channel.filesharing.msgbean.PauseFilesharing value) {
0150: _ChPauseFilesharing = value;
0151: }
0152:
0153: public org.netbeans.modules.collab.channel.filesharing.msgbean.PauseFilesharing getChPauseFilesharing() {
0154: return _ChPauseFilesharing;
0155: }
0156:
0157: // This attribute is optional
0158: public void setChResumeFilesharing(
0159: org.netbeans.modules.collab.channel.filesharing.msgbean.ResumeFilesharing value) {
0160: _ChResumeFilesharing = value;
0161: }
0162:
0163: public org.netbeans.modules.collab.channel.filesharing.msgbean.ResumeFilesharing getChResumeFilesharing() {
0164: return _ChResumeFilesharing;
0165: }
0166:
0167: // This attribute is optional
0168: public void setChLeaveFilesharing(
0169: org.netbeans.modules.collab.channel.filesharing.msgbean.LeaveFilesharing value) {
0170: _ChLeaveFilesharing = value;
0171: }
0172:
0173: public org.netbeans.modules.collab.channel.filesharing.msgbean.LeaveFilesharing getChLeaveFilesharing() {
0174: return _ChLeaveFilesharing;
0175: }
0176:
0177: // This attribute is optional
0178: public void setChCommands(
0179: org.netbeans.modules.collab.channel.filesharing.msgbean.Commands value) {
0180: _ChCommands = value;
0181: }
0182:
0183: public org.netbeans.modules.collab.channel.filesharing.msgbean.Commands getChCommands() {
0184: return _ChCommands;
0185: }
0186:
0187: public void writeNode(java.io.Writer out, String nodeName,
0188: String indent) throws java.io.IOException {
0189: out.write(indent);
0190: out.write("<");
0191: out.write(nodeName);
0192: out.write(">\n");
0193:
0194: String nextIndent = indent + " ";
0195:
0196: if (_Version != null) {
0197: out.write(nextIndent);
0198: out.write("<version"); // NOI18N
0199: out.write(">"); // NOI18N
0200: org.netbeans.modules.collab.channel.filesharing.msgbean.CCollab
0201: .writeXML(out, _Version, false);
0202: out.write("</version>\n"); // NOI18N
0203: }
0204:
0205: if (_ChSendFile != null) {
0206: _ChSendFile.writeNode(out, "ch:send-file", nextIndent);
0207: }
0208:
0209: if (_ChFileChanged != null) {
0210: _ChFileChanged
0211: .writeNode(out, "ch:file-changed", nextIndent);
0212: }
0213:
0214: if (_ChLockRegion != null) {
0215: _ChLockRegion.writeNode(out, "ch:lock-region", nextIndent);
0216: }
0217:
0218: if (_ChUnlockRegion != null) {
0219: _ChUnlockRegion.writeNode(out, "ch:unlock-region",
0220: nextIndent);
0221: }
0222:
0223: if (_ChJoinFilesharing != null) {
0224: _ChJoinFilesharing.writeNode(out, "ch:join-filesharing",
0225: nextIndent);
0226: }
0227:
0228: if (_ChPauseFilesharing != null) {
0229: _ChPauseFilesharing.writeNode(out, "ch:pause-filesharing",
0230: nextIndent);
0231: }
0232:
0233: if (_ChResumeFilesharing != null) {
0234: _ChResumeFilesharing.writeNode(out,
0235: "ch:resume-filesharing", nextIndent);
0236: }
0237:
0238: if (_ChLeaveFilesharing != null) {
0239: _ChLeaveFilesharing.writeNode(out, "ch:leave-filesharing",
0240: nextIndent);
0241: }
0242:
0243: if (_ChCommands != null) {
0244: _ChCommands.writeNode(out, "ch:commands", nextIndent);
0245: }
0246:
0247: out.write(indent);
0248: out.write("</" + nodeName + ">\n");
0249: }
0250:
0251: public void readNode(org.w3c.dom.Node node) {
0252: org.w3c.dom.NodeList children = node.getChildNodes();
0253:
0254: for (int i = 0, size = children.getLength(); i < size; ++i) {
0255: org.w3c.dom.Node childNode = children.item(i);
0256: String childNodeName = ((childNode.getLocalName() == null) ? childNode
0257: .getNodeName().intern()
0258: : childNode.getLocalName().intern());
0259: String childNodeValue = "";
0260:
0261: if (childNode.getFirstChild() != null) {
0262: childNodeValue = childNode.getFirstChild()
0263: .getNodeValue();
0264: }
0265:
0266: if (childNodeName == "version") {
0267: _Version = childNodeValue;
0268: } else if (childNodeName == "ch:send-file") {
0269: _ChSendFile = new org.netbeans.modules.collab.channel.filesharing.msgbean.SendFile();
0270: _ChSendFile.readNode(childNode);
0271: } else if (childNodeName == "ch:file-changed") {
0272: _ChFileChanged = new org.netbeans.modules.collab.channel.filesharing.msgbean.FileChanged();
0273: _ChFileChanged.readNode(childNode);
0274: } else if (childNodeName == "ch:lock-region") {
0275: _ChLockRegion = new org.netbeans.modules.collab.channel.filesharing.msgbean.LockRegion();
0276: _ChLockRegion.readNode(childNode);
0277: } else if (childNodeName == "ch:unlock-region") {
0278: _ChUnlockRegion = new org.netbeans.modules.collab.channel.filesharing.msgbean.UnlockRegion();
0279: _ChUnlockRegion.readNode(childNode);
0280: } else if (childNodeName == "ch:join-filesharing") {
0281: _ChJoinFilesharing = new org.netbeans.modules.collab.channel.filesharing.msgbean.JoinFilesharing();
0282: _ChJoinFilesharing.readNode(childNode);
0283: } else if (childNodeName == "ch:pause-filesharing") {
0284: _ChPauseFilesharing = new org.netbeans.modules.collab.channel.filesharing.msgbean.PauseFilesharing();
0285: _ChPauseFilesharing.readNode(childNode);
0286: } else if (childNodeName == "ch:resume-filesharing") {
0287: _ChResumeFilesharing = new org.netbeans.modules.collab.channel.filesharing.msgbean.ResumeFilesharing();
0288: _ChResumeFilesharing.readNode(childNode);
0289: } else if (childNodeName == "ch:leave-filesharing") {
0290: _ChLeaveFilesharing = new org.netbeans.modules.collab.channel.filesharing.msgbean.LeaveFilesharing();
0291: _ChLeaveFilesharing.readNode(childNode);
0292: } else if (childNodeName == "ch:commands") {
0293: _ChCommands = new org.netbeans.modules.collab.channel.filesharing.msgbean.Commands();
0294: _ChCommands.readNode(childNode);
0295: } else {
0296: // Found extra unrecognized childNode
0297: }
0298: }
0299: }
0300:
0301: public void changePropertyByName(String name, Object value) {
0302: if (name == null) {
0303: return;
0304: }
0305:
0306: name = name.intern();
0307:
0308: if (name == "version") {
0309: setVersion((java.lang.String) value);
0310: } else if (name == "chSendFile") {
0311: setChSendFile((SendFile) value);
0312: } else if (name == "chFileChanged") {
0313: setChFileChanged((FileChanged) value);
0314: } else if (name == "chLockRegion") {
0315: setChLockRegion((LockRegion) value);
0316: } else if (name == "chUnlockRegion") {
0317: setChUnlockRegion((UnlockRegion) value);
0318: } else if (name == "chJoinFilesharing") {
0319: setChJoinFilesharing((JoinFilesharing) value);
0320: } else if (name == "chPauseFilesharing") {
0321: setChPauseFilesharing((PauseFilesharing) value);
0322: } else if (name == "chResumeFilesharing") {
0323: setChResumeFilesharing((ResumeFilesharing) value);
0324: } else if (name == "chLeaveFilesharing") {
0325: setChLeaveFilesharing((LeaveFilesharing) value);
0326: } else if (name == "chCommands") {
0327: setChCommands((Commands) value);
0328: } else {
0329: throw new IllegalArgumentException(name
0330: + " is not a valid property name for Collab");
0331: }
0332: }
0333:
0334: public Object fetchPropertyByName(String name) {
0335: if (name == "version") {
0336: return getVersion();
0337: }
0338:
0339: if (name == "chSendFile") {
0340: return getChSendFile();
0341: }
0342:
0343: if (name == "chFileChanged") {
0344: return getChFileChanged();
0345: }
0346:
0347: if (name == "chLockRegion") {
0348: return getChLockRegion();
0349: }
0350:
0351: if (name == "chUnlockRegion") {
0352: return getChUnlockRegion();
0353: }
0354:
0355: if (name == "chJoinFilesharing") {
0356: return getChJoinFilesharing();
0357: }
0358:
0359: if (name == "chPauseFilesharing") {
0360: return getChPauseFilesharing();
0361: }
0362:
0363: if (name == "chResumeFilesharing") {
0364: return getChResumeFilesharing();
0365: }
0366:
0367: if (name == "chLeaveFilesharing") {
0368: return getChLeaveFilesharing();
0369: }
0370:
0371: if (name == "chCommands") {
0372: return getChCommands();
0373: }
0374:
0375: throw new IllegalArgumentException(name
0376: + " is not a valid property name for Collab");
0377: }
0378:
0379: // Return an array of all of the properties that are beans and are set.
0380: public java.lang.Object[] childBeans(boolean recursive) {
0381: java.util.List children = new java.util.LinkedList();
0382: childBeans(recursive, children);
0383:
0384: java.lang.Object[] result = new java.lang.Object[children
0385: .size()];
0386:
0387: return (java.lang.Object[]) children.toArray(result);
0388: }
0389:
0390: // Put all child beans into the beans list.
0391: public void childBeans(boolean recursive, java.util.List beans) {
0392: if (_ChSendFile != null) {
0393: if (recursive) {
0394: _ChSendFile.childBeans(true, beans);
0395: }
0396:
0397: beans.add(_ChSendFile);
0398: }
0399:
0400: if (_ChFileChanged != null) {
0401: if (recursive) {
0402: _ChFileChanged.childBeans(true, beans);
0403: }
0404:
0405: beans.add(_ChFileChanged);
0406: }
0407:
0408: if (_ChLockRegion != null) {
0409: if (recursive) {
0410: _ChLockRegion.childBeans(true, beans);
0411: }
0412:
0413: beans.add(_ChLockRegion);
0414: }
0415:
0416: if (_ChUnlockRegion != null) {
0417: if (recursive) {
0418: _ChUnlockRegion.childBeans(true, beans);
0419: }
0420:
0421: beans.add(_ChUnlockRegion);
0422: }
0423:
0424: if (_ChJoinFilesharing != null) {
0425: if (recursive) {
0426: _ChJoinFilesharing.childBeans(true, beans);
0427: }
0428:
0429: beans.add(_ChJoinFilesharing);
0430: }
0431:
0432: if (_ChPauseFilesharing != null) {
0433: if (recursive) {
0434: _ChPauseFilesharing.childBeans(true, beans);
0435: }
0436:
0437: beans.add(_ChPauseFilesharing);
0438: }
0439:
0440: if (_ChResumeFilesharing != null) {
0441: if (recursive) {
0442: _ChResumeFilesharing.childBeans(true, beans);
0443: }
0444:
0445: beans.add(_ChResumeFilesharing);
0446: }
0447:
0448: if (_ChLeaveFilesharing != null) {
0449: if (recursive) {
0450: _ChLeaveFilesharing.childBeans(true, beans);
0451: }
0452:
0453: beans.add(_ChLeaveFilesharing);
0454: }
0455:
0456: if (_ChCommands != null) {
0457: if (recursive) {
0458: _ChCommands.childBeans(true, beans);
0459: }
0460:
0461: beans.add(_ChCommands);
0462: }
0463: }
0464:
0465: public boolean equals(Object o) {
0466: if (o == this ) {
0467: return true;
0468: }
0469:
0470: if (!(o instanceof org.netbeans.modules.collab.channel.filesharing.msgbean.Collab)) {
0471: return false;
0472: }
0473:
0474: org.netbeans.modules.collab.channel.filesharing.msgbean.Collab inst = (org.netbeans.modules.collab.channel.filesharing.msgbean.Collab) o;
0475:
0476: if (!((_Version == null) ? (inst._Version == null) : _Version
0477: .equals(inst._Version))) {
0478: return false;
0479: }
0480:
0481: if (!((_ChSendFile == null) ? (inst._ChSendFile == null)
0482: : _ChSendFile.equals(inst._ChSendFile))) {
0483: return false;
0484: }
0485:
0486: if (!((_ChFileChanged == null) ? (inst._ChFileChanged == null)
0487: : _ChFileChanged.equals(inst._ChFileChanged))) {
0488: return false;
0489: }
0490:
0491: if (!((_ChLockRegion == null) ? (inst._ChLockRegion == null)
0492: : _ChLockRegion.equals(inst._ChLockRegion))) {
0493: return false;
0494: }
0495:
0496: if (!((_ChUnlockRegion == null) ? (inst._ChUnlockRegion == null)
0497: : _ChUnlockRegion.equals(inst._ChUnlockRegion))) {
0498: return false;
0499: }
0500:
0501: if (!((_ChJoinFilesharing == null) ? (inst._ChJoinFilesharing == null)
0502: : _ChJoinFilesharing.equals(inst._ChJoinFilesharing))) {
0503: return false;
0504: }
0505:
0506: if (!((_ChPauseFilesharing == null) ? (inst._ChPauseFilesharing == null)
0507: : _ChPauseFilesharing.equals(inst._ChPauseFilesharing))) {
0508: return false;
0509: }
0510:
0511: if (!((_ChResumeFilesharing == null) ? (inst._ChResumeFilesharing == null)
0512: : _ChResumeFilesharing
0513: .equals(inst._ChResumeFilesharing))) {
0514: return false;
0515: }
0516:
0517: if (!((_ChLeaveFilesharing == null) ? (inst._ChLeaveFilesharing == null)
0518: : _ChLeaveFilesharing.equals(inst._ChLeaveFilesharing))) {
0519: return false;
0520: }
0521:
0522: if (!((_ChCommands == null) ? (inst._ChCommands == null)
0523: : _ChCommands.equals(inst._ChCommands))) {
0524: return false;
0525: }
0526:
0527: return true;
0528: }
0529:
0530: public int hashCode() {
0531: int result = 17;
0532: result = (37 * result)
0533: + ((_Version == null) ? 0 : _Version.hashCode());
0534: result = (37 * result)
0535: + ((_ChSendFile == null) ? 0 : _ChSendFile.hashCode());
0536: result = (37 * result)
0537: + ((_ChFileChanged == null) ? 0 : _ChFileChanged
0538: .hashCode());
0539: result = (37 * result)
0540: + ((_ChLockRegion == null) ? 0 : _ChLockRegion
0541: .hashCode());
0542: result = (37 * result)
0543: + ((_ChUnlockRegion == null) ? 0 : _ChUnlockRegion
0544: .hashCode());
0545: result = (37 * result)
0546: + ((_ChJoinFilesharing == null) ? 0
0547: : _ChJoinFilesharing.hashCode());
0548: result = (37 * result)
0549: + ((_ChPauseFilesharing == null) ? 0
0550: : _ChPauseFilesharing.hashCode());
0551: result = (37 * result)
0552: + ((_ChResumeFilesharing == null) ? 0
0553: : _ChResumeFilesharing.hashCode());
0554: result = (37 * result)
0555: + ((_ChLeaveFilesharing == null) ? 0
0556: : _ChLeaveFilesharing.hashCode());
0557: result = (37 * result)
0558: + ((_ChCommands == null) ? 0 : _ChCommands.hashCode());
0559:
0560: return result;
0561: }
0562: }
0563:
0564: /*
0565: The following schema file has been used for generation:
0566:
0567: <?xml version="1.0" encoding="UTF-8"?>
0568: <!--
0569: Document : collab.xsd
0570: Created on : May 21, 2004, 7:45 PM
0571: Author : Ayub Khan
0572: Description:
0573: Purpose of the document follows.
0574: -->
0575: <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
0576: targetNamespace="http://sun.com/ns/collab/dev/1_0/filesharing"
0577: xmlns:c="http://sun.com/ns/collab/dev/1_0"
0578: xmlns:ch="http://sun.com/ns/collab/dev/1_0/filesharing"
0579: elementFormDefault="qaulified">
0580:
0581: <!-- collab element -->
0582: <xsd:element name="c:collab" type="_collab">
0583: </xsd:element>
0584:
0585: <xsd:complexType name="_collab">
0586: <xsd:sequence>
0587: <xsd:element name="version" type="xsd:string"
0588: minOccurs="1" maxOccurs="1"/>
0589: <xsd:choice maxOccurs="1">
0590: <xsd:element name="ch:send-file" type="_send-file"
0591: minOccurs="0" maxOccurs="1"/>
0592: <xsd:element name="ch:file-changed" type="_file-changed"
0593: minOccurs="0" maxOccurs="1"/>
0594: <xsd:element name="ch:lock-region" type="_lock-region"
0595: minOccurs="0" maxOccurs="1"/>
0596: <xsd:element name="ch:unlock-region" type="_unlock-region"
0597: minOccurs="0" maxOccurs="1"/>
0598: <xsd:element name="ch:join-filesharing" type="_join-filesharing"
0599: minOccurs="0" maxOccurs="1"/>
0600: <xsd:element name="ch:pause-filesharing" type="_pause-filesharing"
0601: minOccurs="0" maxOccurs="1"/>
0602: <xsd:element name="ch:resume-filesharing" type="_resume-filesharing"
0603: minOccurs="0" maxOccurs="1"/>
0604: <xsd:element name="ch:leave-filesharing" type="_leave-filesharing"
0605: minOccurs="0" maxOccurs="1"/>
0606: <xsd:element name="ch:commands" type="_commands"
0607: minOccurs="0" maxOccurs="1"/>
0608: </xsd:choice>
0609: </xsd:sequence>
0610: </xsd:complexType>
0611:
0612: <!-- Schema for send-file -->
0613: <xsd:complexType name="_send-file">
0614: <xsd:sequence>
0615: <xsd:element name="file-groups" type="_file-groups"
0616: minOccurs="1" maxOccurs="1"/>
0617: <xsd:element name="send-file-data" type="_send-file-data"
0618: minOccurs="1" maxOccurs="unbounded"/>
0619: </xsd:sequence>
0620: </xsd:complexType>
0621:
0622: <!-- Schema for file-changed -->
0623: <xsd:complexType name="_file-changed">
0624: <xsd:sequence>
0625: <xsd:element name="file-groups" type="_file-groups"
0626: minOccurs="1" maxOccurs="1"/>
0627: <xsd:element name="file-changed-data" type="_file-changed-data"
0628: minOccurs="1" maxOccurs="unbounded"/>
0629: </xsd:sequence>
0630: </xsd:complexType>
0631:
0632: <!-- Schema for lock-region -->
0633: <xsd:complexType name="_lock-region">
0634: <xsd:sequence>
0635: <xsd:element name="file-groups" type="_file-groups"
0636: minOccurs="1" maxOccurs="1"/>
0637: <xsd:element name="lock-region-data" type="_lock-region-data"
0638: minOccurs="1" maxOccurs="unbounded"/>
0639: </xsd:sequence>
0640: </xsd:complexType>
0641:
0642: <!-- Schema for unlock-region -->
0643: <xsd:complexType name="_unlock-region">
0644: <xsd:sequence>
0645: <xsd:element name="file-groups" type="_file-groups"
0646: minOccurs="1" maxOccurs="1"/>
0647: <xsd:element name="unlock-region-data" type="_unlock-region-data"
0648: minOccurs="1" maxOccurs="unbounded"/>
0649: </xsd:sequence>
0650: </xsd:complexType>
0651:
0652: <!-- Schema for join filesharing -->
0653: <xsd:complexType name="_join-filesharing">
0654: <xsd:sequence>
0655: <xsd:choice maxOccurs="1">
0656: <xsd:element name="begin-join"
0657: minOccurs="0" maxOccurs="1"/>
0658: <xsd:element name="end-join"
0659: minOccurs="0" maxOccurs="1"/>
0660: </xsd:choice>
0661: <xsd:element name="user" type="_user"
0662: minOccurs="1" maxOccurs="1"/>
0663: </xsd:sequence>
0664: </xsd:complexType>
0665:
0666: <!-- Schema for pause filesharing -->
0667: <xsd:complexType name="_pause-filesharing">
0668: <xsd:sequence>
0669: <xsd:element name="join-user" type="_join-user"
0670: minOccurs="1" maxOccurs="1"/>
0671: <xsd:element name="moderator" type="_moderator"
0672: minOccurs="1" maxOccurs="1"/>
0673: <xsd:element name="file-owners" type="_file-owners"
0674: minOccurs="1" maxOccurs="1"/>
0675: <xsd:element name="users" type="_users"
0676: minOccurs="1" maxOccurs="1"/>
0677: <xsd:element name="file-groups" type="_file-groups"
0678: minOccurs="1" maxOccurs="1"/>
0679: </xsd:sequence>
0680: </xsd:complexType>
0681:
0682: <!-- Schema for resume filesharing -->
0683: <xsd:complexType name="_resume-filesharing">
0684: <xsd:sequence>
0685: <xsd:element name="moderator" type="_moderator"
0686: minOccurs="1" maxOccurs="1"/>
0687: </xsd:sequence>
0688: </xsd:complexType>
0689:
0690: <!-- Schema for pause filesharing -->
0691: <xsd:complexType name="_leave-filesharing">
0692: <xsd:sequence>
0693: <xsd:element name="user" type="_user"
0694: minOccurs="1" maxOccurs="1"/>
0695: <xsd:element name="new-moderator" type="_moderator"
0696: minOccurs="1" maxOccurs="1"/>
0697: <xsd:element name="new-file-owner" type="_new-file-owner"
0698: minOccurs="1" maxOccurs="1"/>
0699: <xsd:element name="file-groups" type="_file-groups"
0700: minOccurs="1" maxOccurs="1"/>
0701: </xsd:sequence>
0702: </xsd:complexType>
0703:
0704: <!-- Schema for commands -->
0705: <xsd:complexType name="_commands">
0706: <xsd:sequence>
0707: <xsd:choice maxOccurs="1">
0708: <xsd:element name="filesystem-command" type="_filesystem-command"
0709: minOccurs="1" maxOccurs="1"/>
0710: </xsd:choice>
0711: </xsd:sequence>
0712: </xsd:complexType>
0713:
0714: <!-- ===================================================== -->
0715:
0716: <xsd:complexType name="_file-groups">
0717: <xsd:sequence>
0718: <xsd:element name="file-group" type="_file-group"
0719: minOccurs="1" maxOccurs="unbounded"/>
0720: </xsd:sequence>
0721: </xsd:complexType>
0722:
0723: <xsd:complexType name="_file-group">
0724: <xsd:sequence>
0725: <xsd:element name="file-group-name" type="xsd:string"
0726: minOccurs="1" maxOccurs="1"/>
0727: <xsd:element name="user" type="_user"
0728: minOccurs="1" maxOccurs="1"/>
0729: <!-- file-name contains full path -->
0730: <xsd:element name="file-name" type="xsd:string"
0731: minOccurs="1" maxOccurs="unbounded"/>
0732: </xsd:sequence>
0733: </xsd:complexType>
0734:
0735: <xsd:complexType name="_send-file-data">
0736: <xsd:sequence>
0737: <xsd:element name="file-data" type="_file-data"
0738: minOccurs="1" maxOccurs="1"/>
0739: <xsd:element name="choose-line-region-function" type="xsd:boolean"
0740: minOccurs="1" maxOccurs="1"/>
0741: <xsd:choice maxOccurs="1">
0742: <xsd:element name="line-region-function" type="_line-region-function"
0743: minOccurs="1" maxOccurs="1"/>
0744: <xsd:element name="line-region" type="_line-region"
0745: minOccurs="1" maxOccurs="unbounded"/>
0746: </xsd:choice>
0747: <xsd:element name="content" type="_content"
0748: minOccurs="1" maxOccurs="1"/>
0749: </xsd:sequence>
0750: </xsd:complexType>
0751:
0752: <xsd:complexType name="_line-region-function">
0753: <xsd:sequence>
0754: <xsd:element name="funtion-name" type="xsd:string"
0755: minOccurs="1" maxOccurs="1"/>
0756: <xsd:element name="arguments" type="xsd:string"
0757: minOccurs="1" maxOccurs="unbounded"/>
0758: </xsd:sequence>
0759: </xsd:complexType>
0760:
0761: <xsd:complexType name="_file-data">
0762: <xsd:sequence>
0763: <!-- file-name contains full path -->
0764: <xsd:element name="file-name" type="xsd:string"
0765: minOccurs="1" maxOccurs="1"/>
0766: <xsd:element name="content-type" type="xsd:string"
0767: minOccurs="1" maxOccurs="1"/>
0768: <xsd:element name="description" type="xsd:string"
0769: minOccurs="0" maxOccurs="1"/>
0770: </xsd:sequence>
0771: </xsd:complexType>
0772:
0773: <!-- Schema for file-changed -->
0774: <xsd:complexType name="_file-changed-data">
0775: <xsd:sequence>
0776: <!-- file-name contains full path -->
0777: <xsd:element name="file-name" type="xsd:string"
0778: minOccurs="1" maxOccurs="1"/>
0779: <xsd:element name="digest" type="xsd:string"
0780: minOccurs="1" maxOccurs="1"/>
0781: <xsd:element name="region-changed" type="_region-changed"
0782: minOccurs="1" maxOccurs="unbounded"/>
0783: </xsd:sequence>
0784: </xsd:complexType>
0785:
0786: <!-- Schema for lock-region -->
0787: <xsd:complexType name="_lock-region-data">
0788: <xsd:sequence>
0789: <!-- file-name contains full path -->
0790: <xsd:element name="file-name" type="xsd:string"
0791: minOccurs="1" maxOccurs="1"/>
0792: <xsd:element name="line-region" type="_line-region"
0793: minOccurs="1" maxOccurs="unbounded"/>
0794: <xsd:choice maxOccurs="1">
0795: <xsd:element name="text-region" type="_text-region"
0796: minOccurs="1" maxOccurs="1"/>
0797: <xsd:element name="java-region" type="_java-region"
0798: minOccurs="1" maxOccurs="1"/>
0799: </xsd:choice>
0800: <xsd:element name="content" type="_content"
0801: minOccurs="1" maxOccurs="1"/>
0802: </xsd:sequence>
0803: </xsd:complexType>
0804:
0805: <!-- Schema for unlock-region -->
0806: <xsd:complexType name="_unlock-region-data">
0807: <xsd:sequence>
0808: <!-- file-name contains full path -->
0809: <xsd:element name="file-name" type="xsd:string"
0810: minOccurs="1" maxOccurs="1"/>
0811: <xsd:element name="line-region" type="_line-region"
0812: minOccurs="1" maxOccurs="unbounded"/>
0813: <xsd:choice maxOccurs="1">
0814: <xsd:element name="text-region" type="_text-region"
0815: minOccurs="1" maxOccurs="1"/>
0816: <xsd:element name="java-region" type="_java-region"
0817: minOccurs="1" maxOccurs="1"/>
0818: </xsd:choice>
0819: <xsd:element name="content" type="_content"
0820: minOccurs="1" maxOccurs="1"/>
0821: </xsd:sequence>
0822: </xsd:complexType>
0823:
0824: <!-- user elements -->
0825: <xsd:complexType name="_moderator">
0826: <xsd:sequence>
0827: <xsd:element name="users" type="_users"
0828: minOccurs="1" maxOccurs="1"/>
0829: </xsd:sequence>
0830: </xsd:complexType>
0831:
0832: <xsd:complexType name="_join-user">
0833: <xsd:sequence>
0834: <xsd:element name="user" type="_user"
0835: minOccurs="1" maxOccurs="1"/>
0836: </xsd:sequence>
0837: </xsd:complexType>
0838:
0839: <xsd:complexType name="_file-owners">
0840: <xsd:sequence>
0841: <xsd:element name="users" type="_users"
0842: minOccurs="1" maxOccurs="1"/>
0843: </xsd:sequence>
0844: </xsd:complexType>
0845:
0846: <xsd:complexType name="_new-file-owner">
0847: <xsd:sequence>
0848: <xsd:element name="users" type="_users"
0849: minOccurs="1" maxOccurs="1"/>
0850: </xsd:sequence>
0851: </xsd:complexType>
0852:
0853: <xsd:complexType name="_users">
0854: <xsd:sequence>
0855: <xsd:element name="user" type="_user"
0856: minOccurs="0" maxOccurs="unbounded"/>
0857: </xsd:sequence>
0858: </xsd:complexType>
0859:
0860: <xsd:complexType name="_user">
0861: <xsd:sequence>
0862: <xsd:element name="id" type="xsd:string"
0863: minOccurs="1" maxOccurs="1"/>
0864: <xsd:element name="name" type="xsd:string"
0865: minOccurs="0" maxOccurs="1"/>
0866: <xsd:element name="description" type="xsd:string"
0867: minOccurs="0" maxOccurs="1"/>
0868: </xsd:sequence>
0869: </xsd:complexType>
0870:
0871: <!-- filesystem command schema -->
0872: <xsd:complexType name="_filesystem-command">
0873: <xsd:sequence>
0874: <xsd:choice maxOccurs="1">
0875: <!-- file commands -->
0876: <xsd:element name="delete-file" type="_delete-file"
0877: minOccurs="1" maxOccurs="1"/>
0878: </xsd:choice>
0879: </xsd:sequence>
0880: </xsd:complexType>
0881:
0882: <xsd:complexType name="_delete-file">
0883: <xsd:sequence>
0884: <!-- file-name contains full path -->
0885: <xsd:element name="file-name" type="xsd:string"
0886: minOccurs="1" maxOccurs="1"/>
0887: </xsd:sequence>
0888: </xsd:complexType>
0889:
0890: <!-- ===================================================== -->
0891:
0892: <xsd:complexType name="_region-changed">
0893: <xsd:sequence>
0894: <xsd:choice maxOccurs="1">
0895: <xsd:element name="text-region-changed" type="_text-region-changed"
0896: minOccurs="1" maxOccurs="1"/>
0897: <xsd:element name="java-region-changed" type="_java-region-changed"
0898: minOccurs="1" maxOccurs="1"/>
0899: <xsd:element name="line-region-changed" type="_line-region-changed"
0900: minOccurs="1" maxOccurs="1"/>
0901: </xsd:choice>
0902: </xsd:sequence>
0903: </xsd:complexType>
0904:
0905: <xsd:complexType name="_text-region-changed">
0906: <xsd:sequence>
0907: <xsd:element name="text-region" type="_text-region"
0908: minOccurs="1" maxOccurs="1"/>
0909: <xsd:element name="text-change" type="_text-change"
0910: minOccurs="1" maxOccurs="1"/>
0911: </xsd:sequence>
0912: </xsd:complexType>
0913:
0914: <xsd:complexType name="_java-region-changed">
0915: <xsd:sequence>
0916: <xsd:element name="java-region" type="_java-region"
0917: minOccurs="1" maxOccurs="1"/>
0918: <xsd:element name="java-change" type="_java-change"
0919: minOccurs="1" maxOccurs="1"/>
0920: </xsd:sequence>
0921: </xsd:complexType>
0922:
0923: <xsd:complexType name="_line-region-changed">
0924: <xsd:sequence>
0925: <xsd:element name="line-region" type="_line-region"
0926: minOccurs="1" maxOccurs="1"/>
0927: <xsd:element name="line-change" type="_line-change"
0928: minOccurs="1" maxOccurs="1"/>
0929: </xsd:sequence>
0930: </xsd:complexType>
0931:
0932: <xsd:complexType name="_region" abstract="true">
0933: <xsd:sequence>
0934: <xsd:element name="region-name" type="xsd:string"
0935: minOccurs="1" maxOccurs="1">
0936: </xsd:element>
0937: </xsd:sequence>
0938: </xsd:complexType>
0939:
0940: <xsd:complexType name="_change" abstract="true"/>
0941:
0942: <xsd:complexType name="_content">
0943: <xsd:sequence>
0944: <xsd:element name="encoding" type="xsd:string"
0945: minOccurs="1" maxOccurs="1">
0946: </xsd:element>
0947: <xsd:element name="digest" type="xsd:string"
0948: minOccurs="1" maxOccurs="1">
0949: </xsd:element>
0950: <xsd:element name="data" type="xsd:string"
0951: minOccurs="1" maxOccurs="1">
0952: </xsd:element>
0953: </xsd:sequence>
0954: </xsd:complexType>
0955:
0956:
0957:
0958: <!-- ===================================================== -->
0959: <!-- ================ Text Region =================== -->
0960: <!-- ===================================================== -->
0961:
0962: <xsd:complexType name="_text-region">
0963: <xsd:complexContent>
0964: <xsd:extension base="_region">
0965: <xsd:sequence>
0966: <xsd:element name="begin-offset" type="xsd:integer"
0967: minOccurs="1" maxOccurs="1">
0968: </xsd:element>
0969: <xsd:element name="length" type="xsd:integer"
0970: minOccurs="1" maxOccurs="1">
0971: </xsd:element>
0972: </xsd:sequence>
0973: </xsd:extension>
0974: </xsd:complexContent>
0975: </xsd:complexType>
0976:
0977: <xsd:complexType name="_line-range">
0978: <xsd:sequence>
0979: <xsd:element name="from-line" type="xsd:integer"
0980: minOccurs="1" maxOccurs="1"/>
0981: <xsd:element name="to-line" type="xsd:integer"
0982: minOccurs="1" maxOccurs="1"/>
0983: </xsd:sequence>
0984: </xsd:complexType>
0985:
0986: <xsd:complexType name="_offset-range">
0987: <xsd:sequence>
0988: <xsd:element name="begin-offset" type="xsd:integer"
0989: minOccurs="1" maxOccurs="1">
0990: </xsd:element>
0991: <xsd:element name="length" type="xsd:integer"
0992: minOccurs="1" maxOccurs="1">
0993: </xsd:element>
0994: </xsd:sequence>
0995: </xsd:complexType>
0996:
0997: <xsd:complexType name="_text-change">
0998: <xsd:complexContent>
0999: <xsd:extension base="_change">
1000: <xsd:choice maxOccurs="1">
1001: <xsd:element name="change-texts" type="_change-texts"
1002: minOccurs="1" maxOccurs="1"/>
1003: <xsd:element name="content" type="_content"
1004: minOccurs="1" maxOccurs="1"/>
1005: </xsd:choice>
1006: </xsd:extension>
1007: </xsd:complexContent>
1008: </xsd:complexType>
1009:
1010:
1011:
1012: <!-- ===================================================== -->
1013: <!-- ================ Java Region =================== -->
1014: <!-- ===================================================== -->
1015: <xsd:complexType name="_java-region">
1016: <xsd:complexContent>
1017: <xsd:extension base="_region">
1018: <xsd:sequence>
1019: <xsd:element name="begin-offset" type="xsd:integer"
1020: minOccurs="1" maxOccurs="1">
1021: </xsd:element>
1022: <xsd:element name="length" type="xsd:integer"
1023: minOccurs="1" maxOccurs="1">
1024: </xsd:element>
1025: </xsd:sequence>
1026: </xsd:extension>
1027: </xsd:complexContent>
1028: </xsd:complexType>
1029:
1030: <xsd:complexType name="_java-change">
1031: <xsd:complexContent>
1032: <xsd:extension base="_change">
1033: <xsd:sequence>
1034: <xsd:choice maxOccurs="1">
1035: <xsd:element name="change-texts" type="_change-texts"
1036: minOccurs="1" maxOccurs="1"/>
1037: <xsd:element name="content" type="_content"
1038: minOccurs="1" maxOccurs="1"/>
1039: </xsd:choice>
1040: </xsd:sequence>
1041: </xsd:extension>
1042: </xsd:complexContent>
1043: </xsd:complexType>
1044:
1045:
1046:
1047: <!-- ===================================================== -->
1048: <!-- ================ Line Region =================== -->
1049: <!-- ===================================================== -->
1050: <xsd:complexType name="_line-region">
1051: <xsd:complexContent>
1052: <xsd:extension base="_region">
1053: </xsd:extension>
1054: </xsd:complexContent>
1055: </xsd:complexType>
1056:
1057: <xsd:complexType name="_line-change">
1058: <xsd:complexContent>
1059: <xsd:extension base="_change">
1060: <xsd:sequence>
1061: <xsd:choice maxOccurs="1">
1062: <xsd:element name="content" type="_content"
1063: minOccurs="1" maxOccurs="1"/>
1064: </xsd:choice>
1065: </xsd:sequence>
1066: </xsd:extension>
1067: </xsd:complexContent>
1068: </xsd:complexType>
1069:
1070:
1071:
1072: <!-- ===================================================== -->
1073: <!-- ================Common Region Type=================== -->
1074: <!-- ===================================================== -->
1075:
1076: <xsd:complexType name="_change-texts">
1077: <xsd:sequence>
1078: <xsd:element name="remove-texts" type="_remove-texts"
1079: minOccurs="1" maxOccurs="1"/>
1080: <xsd:element name="insert-texts" type="_insert-texts"
1081: minOccurs="1" maxOccurs="1"/>
1082: </xsd:sequence>
1083: </xsd:complexType>
1084:
1085: <xsd:complexType name="_remove-texts">
1086: <xsd:sequence>
1087: <xsd:element name="remove-text" type="_remove-text"
1088: minOccurs="1" maxOccurs="unbounded"/>
1089: </xsd:sequence>
1090: </xsd:complexType>
1091:
1092: <xsd:complexType name="_insert-texts">
1093: <xsd:sequence>
1094: <xsd:element name="insert-text" type="_insert-text"
1095: minOccurs="1" maxOccurs="unbounded"/>
1096: </xsd:sequence>
1097: </xsd:complexType>
1098:
1099: <xsd:complexType name="_remove-text">
1100: <xsd:sequence>
1101: <xsd:element name="offset" type="xsd:integer"
1102: minOccurs="1" maxOccurs="1"/>
1103: </xsd:sequence>
1104: </xsd:complexType>
1105:
1106: <xsd:complexType name="_insert-text">
1107: <xsd:sequence>
1108: <xsd:element name="offset" type="xsd:integer"
1109: minOccurs="1" maxOccurs="1"/>
1110: <xsd:element name="content" type="_content"
1111: minOccurs="1" maxOccurs="1"/>
1112: </xsd:sequence>
1113: </xsd:complexType>
1114:
1115: </xsd:schema>
1116:
1117: */
|