001: package org.cougaar.qos.ResourceStatus;
002:
003: /**
004: * org/cougaar/qos/ResourceStatus/_QualifierStub.java .
005: * Generated by the IDL-to-Java compiler (portable), version "3.2"
006: * from qrs.idl
007: * Tuesday, August 7, 2007 11:57:30 AM EDT
008: */
009:
010: public class _QualifierStub extends org.omg.CORBA.portable.ObjectImpl
011: implements org.cougaar.qos.ResourceStatus.Qualifier {
012:
013: public void getAttribute(
014: String attribute_name,
015: org.cougaar.qos.ResourceStatus.data_valueHolder attribute_value)
016: throws org.cougaar.qos.ResourceStatus.NoSuchAttributeException,
017: org.cougaar.qos.ResourceStatus.BadAttributeValueException {
018: org.omg.CORBA.portable.InputStream $in = null;
019: try {
020: org.omg.CORBA.portable.OutputStream $out = _request(
021: "getAttribute", true);
022: $out.write_string(attribute_name);
023: $in = _invoke($out);
024: attribute_value.value = org.cougaar.qos.ResourceStatus.data_valueHelper
025: .read($in);
026: return;
027: } catch (org.omg.CORBA.portable.ApplicationException $ex) {
028: $in = $ex.getInputStream();
029: String _id = $ex.getId();
030: if (_id
031: .equals("IDL:org/cougaar/qos/ResourceStatus/NoSuchAttributeException:1.0"))
032: throw org.cougaar.qos.ResourceStatus.NoSuchAttributeExceptionHelper
033: .read($in);
034: else if (_id
035: .equals("IDL:org/cougaar/qos/ResourceStatus/BadAttributeValueException:1.0"))
036: throw org.cougaar.qos.ResourceStatus.BadAttributeValueExceptionHelper
037: .read($in);
038: else
039: throw new org.omg.CORBA.MARSHAL(_id);
040: } catch (org.omg.CORBA.portable.RemarshalException $rm) {
041: getAttribute(attribute_name, attribute_value);
042: } finally {
043: _releaseReply($in);
044: }
045: } // getAttribute
046:
047: public void setAttribute(String attribute_name,
048: org.cougaar.qos.ResourceStatus.data_value attrobute_value)
049: throws org.cougaar.qos.ResourceStatus.NoSuchAttributeException,
050: org.cougaar.qos.ResourceStatus.BadAttributeValueException {
051: org.omg.CORBA.portable.InputStream $in = null;
052: try {
053: org.omg.CORBA.portable.OutputStream $out = _request(
054: "setAttribute", true);
055: $out.write_string(attribute_name);
056: org.cougaar.qos.ResourceStatus.data_valueHelper.write($out,
057: attrobute_value);
058: $in = _invoke($out);
059: return;
060: } catch (org.omg.CORBA.portable.ApplicationException $ex) {
061: $in = $ex.getInputStream();
062: String _id = $ex.getId();
063: if (_id
064: .equals("IDL:org/cougaar/qos/ResourceStatus/NoSuchAttributeException:1.0"))
065: throw org.cougaar.qos.ResourceStatus.NoSuchAttributeExceptionHelper
066: .read($in);
067: else if (_id
068: .equals("IDL:org/cougaar/qos/ResourceStatus/BadAttributeValueException:1.0"))
069: throw org.cougaar.qos.ResourceStatus.BadAttributeValueExceptionHelper
070: .read($in);
071: else
072: throw new org.omg.CORBA.MARSHAL(_id);
073: } catch (org.omg.CORBA.portable.RemarshalException $rm) {
074: setAttribute(attribute_name, attrobute_value);
075: } finally {
076: _releaseReply($in);
077: }
078: } // setAttribute
079:
080: // Type-specific CORBA::Object operations
081: private static String[] __ids = { "IDL:org/cougaar/qos/ResourceStatus/Qualifier:1.0" };
082:
083: public String[] _ids() {
084: return (String[]) __ids.clone();
085: }
086:
087: private void readObject(java.io.ObjectInputStream s)
088: throws java.io.IOException {
089: String str = s.readUTF();
090: String[] args = null;
091: java.util.Properties props = null;
092: org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init(args, props)
093: .string_to_object(str);
094: org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)
095: ._get_delegate();
096: _set_delegate(delegate);
097: }
098:
099: private void writeObject(java.io.ObjectOutputStream s)
100: throws java.io.IOException {
101: String[] args = null;
102: java.util.Properties props = null;
103: String str = org.omg.CORBA.ORB.init(args, props)
104: .object_to_string(this );
105: s.writeUTF(str);
106: }
107: } // class _QualifierStub
|