01: package org.cougaar.qos.ResourceStatus;
02:
03: /**
04: * org/cougaar/qos/ResourceStatus/ResourceNodeSeqHelper.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: // Likewise RSSSeq.
11: abstract public class ResourceNodeSeqHelper {
12: private static String _id = "IDL:org/cougaar/qos/ResourceStatus/ResourceNodeSeq:1.0";
13:
14: public static void insert(org.omg.CORBA.Any a,
15: org.cougaar.qos.ResourceStatus.ResourceNode[] that) {
16: org.omg.CORBA.portable.OutputStream out = a
17: .create_output_stream();
18: a.type(type());
19: write(out, that);
20: a.read_value(out.create_input_stream(), type());
21: }
22:
23: public static org.cougaar.qos.ResourceStatus.ResourceNode[] extract(
24: org.omg.CORBA.Any a) {
25: return read(a.create_input_stream());
26: }
27:
28: private static org.omg.CORBA.TypeCode __typeCode = null;
29:
30: synchronized public static org.omg.CORBA.TypeCode type() {
31: if (__typeCode == null) {
32: __typeCode = org.cougaar.qos.ResourceStatus.ResourceNodeHelper
33: .type();
34: __typeCode = org.omg.CORBA.ORB.init().create_sequence_tc(0,
35: __typeCode);
36: __typeCode = org.omg.CORBA.ORB
37: .init()
38: .create_alias_tc(
39: org.cougaar.qos.ResourceStatus.ResourceNodeSeqHelper
40: .id(), "ResourceNodeSeq",
41: __typeCode);
42: }
43: return __typeCode;
44: }
45:
46: public static String id() {
47: return _id;
48: }
49:
50: public static org.cougaar.qos.ResourceStatus.ResourceNode[] read(
51: org.omg.CORBA.portable.InputStream istream) {
52: org.cougaar.qos.ResourceStatus.ResourceNode value[] = null;
53: int _len0 = istream.read_long();
54: value = new org.cougaar.qos.ResourceStatus.ResourceNode[_len0];
55: for (int _o1 = 0; _o1 < value.length; ++_o1)
56: value[_o1] = org.cougaar.qos.ResourceStatus.ResourceNodeHelper
57: .read(istream);
58: return value;
59: }
60:
61: public static void write(
62: org.omg.CORBA.portable.OutputStream ostream,
63: org.cougaar.qos.ResourceStatus.ResourceNode[] value) {
64: ostream.write_long(value.length);
65: for (int _i0 = 0; _i0 < value.length; ++_i0)
66: org.cougaar.qos.ResourceStatus.ResourceNodeHelper.write(
67: ostream, value[_i0]);
68: }
69:
70: }
|