001 package org.omg.CORBA;
002
003 import org.omg.PortableServer.POA;
004
005 /**
006 * Generated from IDL interface "Policy".
007 *
008 * @author JacORB IDL compiler V 2.3.0 (JBoss patch 6), 06-Jun-2007
009 * @version generated at Sep 6, 2011 5:12:27 AM
010 */
011
012 public class PolicyPOATie
013 extends PolicyPOA
014 {
015 private PolicyOperations _delegate;
016
017 private POA _poa;
018 public PolicyPOATie(PolicyOperations delegate)
019 {
020 _delegate = delegate;
021 }
022 public PolicyPOATie(PolicyOperations delegate, POA poa)
023 {
024 _delegate = delegate;
025 _poa = poa;
026 }
027 public org.omg.CORBA.Policy _this()
028 {
029 return org.omg.CORBA.PolicyHelper.narrow(_this_object());
030 }
031 public org.omg.CORBA.Policy _this(org.omg.CORBA.ORB orb)
032 {
033 return org.omg.CORBA.PolicyHelper.narrow(_this_object(orb));
034 }
035 public PolicyOperations _delegate()
036 {
037 return _delegate;
038 }
039 public void _delegate(PolicyOperations delegate)
040 {
041 _delegate = delegate;
042 }
043 public POA _default_POA()
044 {
045 if (_poa != null)
046 {
047 return _poa;
048 }
049 return super._default_POA();
050 }
051 public int policy_type()
052 {
053 return _delegate.policy_type();
054 }
055
056 public org.omg.CORBA.Policy copy()
057 {
058 return _delegate.copy();
059 }
060
061 public void destroy()
062 {
063 _delegate.destroy();
064 }
065
066 }