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