01: package org.cougaar.qos.ResourceStatus;
02:
03: /**
04: * org/cougaar/qos/ResourceStatus/RSSSubscriberHelper.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: // to the RSS should implement this.
11: abstract public class RSSSubscriberHelper {
12: private static String _id = "IDL:org/cougaar/qos/ResourceStatus/RSSSubscriber:1.0";
13:
14: public static void insert(org.omg.CORBA.Any a,
15: org.cougaar.qos.ResourceStatus.RSSSubscriber 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.RSSSubscriber 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:
30: synchronized public static org.omg.CORBA.TypeCode type() {
31: if (__typeCode == null) {
32: __typeCode = org.omg.CORBA.ORB.init().create_interface_tc(
33: org.cougaar.qos.ResourceStatus.RSSSubscriberHelper
34: .id(), "RSSSubscriber");
35: }
36: return __typeCode;
37: }
38:
39: public static String id() {
40: return _id;
41: }
42:
43: public static org.cougaar.qos.ResourceStatus.RSSSubscriber read(
44: org.omg.CORBA.portable.InputStream istream) {
45: return narrow(istream.read_Object(_RSSSubscriberStub.class));
46: }
47:
48: public static void write(
49: org.omg.CORBA.portable.OutputStream ostream,
50: org.cougaar.qos.ResourceStatus.RSSSubscriber value) {
51: ostream.write_Object((org.omg.CORBA.Object) value);
52: }
53:
54: public static org.cougaar.qos.ResourceStatus.RSSSubscriber narrow(
55: org.omg.CORBA.Object obj) {
56: if (obj == null)
57: return null;
58: else if (obj instanceof org.cougaar.qos.ResourceStatus.RSSSubscriber)
59: return (org.cougaar.qos.ResourceStatus.RSSSubscriber) obj;
60: else if (!obj._is_a(id()))
61: throw new org.omg.CORBA.BAD_PARAM();
62: else {
63: org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)
64: ._get_delegate();
65: org.cougaar.qos.ResourceStatus._RSSSubscriberStub stub = new org.cougaar.qos.ResourceStatus._RSSSubscriberStub();
66: stub._set_delegate(delegate);
67: return stub;
68: }
69: }
70:
71: public static org.cougaar.qos.ResourceStatus.RSSSubscriber unchecked_narrow(
72: org.omg.CORBA.Object obj) {
73: if (obj == null)
74: return null;
75: else if (obj instanceof org.cougaar.qos.ResourceStatus.RSSSubscriber)
76: return (org.cougaar.qos.ResourceStatus.RSSSubscriber) obj;
77: else {
78: org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)
79: ._get_delegate();
80: org.cougaar.qos.ResourceStatus._RSSSubscriberStub stub = new org.cougaar.qos.ResourceStatus._RSSSubscriberStub();
81: stub._set_delegate(delegate);
82: return stub;
83: }
84: }
85:
86: }
|