01: package org.cougaar.qos.ResourceStatus;
02:
03: /**
04: * org/cougaar/qos/ResourceStatus/ParameterListHelper.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: // sorts of values.
11: abstract public class ParameterListHelper {
12: private static String _id = "IDL:org/cougaar/qos/ResourceStatus/ParameterList:1.0";
13:
14: public static void insert(org.omg.CORBA.Any a, String[] 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 String[] extract(org.omg.CORBA.Any a) {
23: return read(a.create_input_stream());
24: }
25:
26: private static org.omg.CORBA.TypeCode __typeCode = null;
27:
28: synchronized public static org.omg.CORBA.TypeCode type() {
29: if (__typeCode == null) {
30: __typeCode = org.omg.CORBA.ORB.init().create_string_tc(0);
31: __typeCode = org.omg.CORBA.ORB.init().create_sequence_tc(0,
32: __typeCode);
33: __typeCode = org.omg.CORBA.ORB.init().create_alias_tc(
34: org.cougaar.qos.ResourceStatus.ParameterListHelper
35: .id(), "ParameterList", __typeCode);
36: }
37: return __typeCode;
38: }
39:
40: public static String id() {
41: return _id;
42: }
43:
44: public static String[] read(
45: org.omg.CORBA.portable.InputStream istream) {
46: String value[] = null;
47: int _len0 = istream.read_long();
48: value = new String[_len0];
49: for (int _o1 = 0; _o1 < value.length; ++_o1)
50: value[_o1] = istream.read_string();
51: return value;
52: }
53:
54: public static void write(
55: org.omg.CORBA.portable.OutputStream ostream, String[] value) {
56: ostream.write_long(value.length);
57: for (int _i0 = 0; _i0 < value.length; ++_i0)
58: ostream.write_string(value[_i0]);
59: }
60:
61: }
|