01: package org.cougaar.qos.ResourceStatus;
02:
03: /**
04: * org/cougaar/qos/ResourceStatus/NoSuchAttributeExceptionHelper.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 NoSuchAttributeExceptionHelper {
11: private static String _id = "IDL:org/cougaar/qos/ResourceStatus/NoSuchAttributeException:1.0";
12:
13: public static void insert(org.omg.CORBA.Any a,
14: org.cougaar.qos.ResourceStatus.NoSuchAttributeException 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.NoSuchAttributeException 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: "attribute_name", _tcOf_members0, null);
45: __typeCode = org.omg.CORBA.ORB
46: .init()
47: .create_exception_tc(
48: org.cougaar.qos.ResourceStatus.NoSuchAttributeExceptionHelper
49: .id(),
50: "NoSuchAttributeException",
51: _members0);
52: __active = false;
53: }
54: }
55: }
56: return __typeCode;
57: }
58:
59: public static String id() {
60: return _id;
61: }
62:
63: public static org.cougaar.qos.ResourceStatus.NoSuchAttributeException read(
64: org.omg.CORBA.portable.InputStream istream) {
65: org.cougaar.qos.ResourceStatus.NoSuchAttributeException value = new org.cougaar.qos.ResourceStatus.NoSuchAttributeException();
66: // read and discard the repository ID
67: istream.read_string();
68: value.attribute_name = istream.read_string();
69: return value;
70: }
71:
72: public static void write(
73: org.omg.CORBA.portable.OutputStream ostream,
74: org.cougaar.qos.ResourceStatus.NoSuchAttributeException value) {
75: // write the repository ID
76: ostream.write_string(id());
77: ostream.write_string(value.attribute_name);
78: }
79:
80: }
|