
package primativeAnyTest;

/**
 * <ul>
 * <li> <b>IDL Source</b>    "primativeAnyTest.idl"
 * <li> <b>IDL Name</b>      ::primativeAnyTest::pat
 * <li> <b>Repository Id</b> IDL:primativeAnyTest/pat:1.0
 * </ul>
 * <b>IDL definition:</b>
 * <pre>
 * interface pat {
  ...
};
 * </pre>
 */
public class patPOATie extends patPOA {
  private primativeAnyTest.patOperations _delegate;
  private org.omg.PortableServer.POA _poa;

  public patPOATie (final primativeAnyTest.patOperations _delegate) {
    this._delegate = _delegate;
  }

  public patPOATie (final primativeAnyTest.patOperations _delegate, 
                              final org.omg.PortableServer.POA _poa) {
    this._delegate = _delegate;
    this._poa = _poa;
  }

  public primativeAnyTest.patOperations _delegate () {
    return this._delegate;
  }

  public void _delegate (final primativeAnyTest.patOperations delegate) {
    this._delegate = delegate;
  }

  public org.omg.PortableServer.POA _default_POA () {
    if (_poa != null) {
      return _poa;
    } 
    else {
      return super._default_POA();
    }
  }

  /**
   * <pre>
   *   long testPrimativeAny (in any inPrimativeAny, inout any inoutPrimativeAny,
                         out any outPrimativeAny);
   * </pre>
   */
  public int testPrimativeAny (org.omg.CORBA.Any inPrimativeAny, 
                               org.omg.CORBA.AnyHolder inoutPrimativeAny, 
                               org.omg.CORBA.AnyHolder outPrimativeAny) {
    return this._delegate.testPrimativeAny(inPrimativeAny, inoutPrimativeAny, outPrimativeAny);
  }

}
