01: package org.cougaar.qos.ResourceStatus;
02:
03: /**
04: * org/cougaar/qos/ResourceStatus/NoSuchMethodExceptionHelper.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 NoSuchMethodExceptionHelper {
11: private static String _id = "IDL:org/cougaar/qos/ResourceStatus/NoSuchMethodException:1.0";
12:
13: public static void insert(org.omg.CORBA.Any a,
14: org.cougaar.qos.ResourceStatus.NoSuchMethodException 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.NoSuchMethodException 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: private static boolean __active = false;
29:
30: synchronized public static org.omg.CORBA.TypeCode type() {
31: if (__typeCode == null) {
32: synchronized (org.omg.CORBA.TypeCode.class) {
33: if (__typeCode == null) {
34: if (__active) {
35: return org.omg.CORBA.ORB.init()
36: .create_recursive_tc(_id);
37: }
38: __active = true;
39: org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember[1];
40: org.omg.CORBA.TypeCode _tcOf_members0 = null;
41: _tcOf_members0 = org.omg.CORBA.ORB.init()
42: .create_string_tc(0);
43: _members0[0] = new org.omg.CORBA.StructMember(
44: "method_name", _tcOf_members0, null);
45: __typeCode = org.omg.CORBA.ORB
46: .init()
47: .create_exception_tc(
48: org.cougaar.qos.ResourceStatus.NoSuchMethodExceptionHelper
49: .id(),
50: "NoSuchMethodException", _members0);
51: __active = false;
52: }
53: }
54: }
55: return __typeCode;
56: }
57:
58: public static String id() {
59: return _id;
60: }
61:
62: public static org.cougaar.qos.ResourceStatus.NoSuchMethodException read(
63: org.omg.CORBA.portable.InputStream istream) {
64: org.cougaar.qos.ResourceStatus.NoSuchMethodException value = new org.cougaar.qos.ResourceStatus.NoSuchMethodException();
65: // read and discard the repository ID
66: istream.read_string();
67: value.method_name = istream.read_string();
68: return value;
69: }
70:
71: public static void write(
72: org.omg.CORBA.portable.OutputStream ostream,
73: org.cougaar.qos.ResourceStatus.NoSuchMethodException value) {
74: // write the repository ID
75: ostream.write_string(id());
76: ostream.write_string(value.method_name);
77: }
78:
79: }
|