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