01: /* ----- BEGIN LICENSE BLOCK -----
02: * Version: MPL 1.1
03: *
04: * The contents of this file are subject to the Mozilla Public License Version
05: * 1.1 (the "License"); you may not use this file except in compliance with
06: * the License. You may obtain a copy of the License at
07: * http://www.mozilla.org/MPL/
08: *
09: * Software distributed under the License is distributed on an "AS IS" basis,
10: * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11: * for the specific language governing rights and limitations under the
12: * License.
13: *
14: * The Original Code is the DataShare server.
15: *
16: * The Initial Developer of the Original Code is
17: * Ball Aerospace & Technologies Corp, Fairborn, Ohio
18: * Portions created by the Initial Developer are Copyright (C) 2001
19: * the Initial Developer. All Rights Reserved.
20: *
21: * Contributor(s): Charles Wood <cwood@ball.com>
22: *
23: * ----- END LICENSE BLOCK ----- */
24: /* RCS $Id: ChannelDescriptionArray.java,v 1.1.1.1 2001/10/23 13:37:20 lizellaman Exp $
25: * $Log: ChannelDescriptionArray.java,v $
26: * Revision 1.1.1.1 2001/10/23 13:37:20 lizellaman
27: * initial sourceforge release
28: *
29: */
30:
31: package org.datashare.objects;
32:
33: /**
34: * This class is used when an array of ChannelDescriptions is to be sent over the
35: * CommandStatus Channel, such as when the server is telling a client what types
36: * of Channels are available in a Session, or when the client needs to tell the
37: * server all the ChannelDescription type Channels to put in a Session that is to
38: * be created.
39: */
40: public class ChannelDescriptionArray implements java.io.Serializable {
41: /**
42: * this allows us to serialize this class without 'marshalling' errors.
43: *
44: */
45: static final long serialVersionUID = 9034593813711480533L;
46:
47: public ChannelDescription[] channelDescriptions = null;
48:
49: /**
50: * Constructor, not very useful unless you want an empty reference to this class
51: */
52: public ChannelDescriptionArray() {
53: }
54:
55: /**
56: * Constructor, this is one to use normally
57: */
58: public ChannelDescriptionArray(
59: ChannelDescription channelDescriptions[]) {
60: this.channelDescriptions = channelDescriptions;
61: }
62: }
|