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