01: package org.cougaar.qos.ResourceStatus;
02:
03: /**
04: * org/cougaar/qos/ResourceStatus/RSSSeqHelper.java .
05: * Generated by the IDL-to-Java compiler (portable), version "3.2"
06: * from qrs.idl
07: * Tuesday, August 7, 2007 11:57:30 AM EDT
08: */
09:
10: abstract public class RSSSeqHelper {
11: private static String _id = "IDL:org/cougaar/qos/ResourceStatus/RSSSeq:1.0";
12:
13: public static void insert(org.omg.CORBA.Any a,
14: org.cougaar.qos.ResourceStatus.ResourceStatusService[] that) {
15: org.omg.CORBA.portable.OutputStream out = a
16: .create_output_stream();
17: a.type(type());
18: write(out, that);
19: a.read_value(out.create_input_stream(), type());
20: }
21:
22: public static org.cougaar.qos.ResourceStatus.ResourceStatusService[] extract(
23: org.omg.CORBA.Any a) {
24: return read(a.create_input_stream());
25: }
26:
27: private static org.omg.CORBA.TypeCode __typeCode = null;
28:
29: synchronized public static org.omg.CORBA.TypeCode type() {
30: if (__typeCode == null) {
31: __typeCode = org.cougaar.qos.ResourceStatus.ResourceStatusServiceHelper
32: .type();
33: __typeCode = org.omg.CORBA.ORB.init().create_sequence_tc(0,
34: __typeCode);
35: __typeCode = org.omg.CORBA.ORB.init().create_alias_tc(
36: org.cougaar.qos.ResourceStatus.RSSSeqHelper.id(),
37: "RSSSeq", __typeCode);
38: }
39: return __typeCode;
40: }
41:
42: public static String id() {
43: return _id;
44: }
45:
46: public static org.cougaar.qos.ResourceStatus.ResourceStatusService[] read(
47: org.omg.CORBA.portable.InputStream istream) {
48: org.cougaar.qos.ResourceStatus.ResourceStatusService value[] = null;
49: int _len0 = istream.read_long();
50: value = new org.cougaar.qos.ResourceStatus.ResourceStatusService[_len0];
51: for (int _o1 = 0; _o1 < value.length; ++_o1)
52: value[_o1] = org.cougaar.qos.ResourceStatus.ResourceStatusServiceHelper
53: .read(istream);
54: return value;
55: }
56:
57: public static void write(
58: org.omg.CORBA.portable.OutputStream ostream,
59: org.cougaar.qos.ResourceStatus.ResourceStatusService[] value) {
60: ostream.write_long(value.length);
61: for (int _i0 = 0; _i0 < value.length; ++_i0)
62: org.cougaar.qos.ResourceStatus.ResourceStatusServiceHelper
63: .write(ostream, value[_i0]);
64: }
65:
66: }
|