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