org.omg.CORBA
Interface PolicyOperations

All Known Subinterfaces:
IdAssignmentPolicy sample code for org.omg.PortableServer.IdAssignmentPolicy definition code for org.omg.PortableServer.IdAssignmentPolicy , IdAssignmentPolicyOperations sample code for org.omg.PortableServer.IdAssignmentPolicyOperations definition code for org.omg.PortableServer.IdAssignmentPolicyOperations , IdUniquenessPolicy sample code for org.omg.PortableServer.IdUniquenessPolicy definition code for org.omg.PortableServer.IdUniquenessPolicy , IdUniquenessPolicyOperations sample code for org.omg.PortableServer.IdUniquenessPolicyOperations definition code for org.omg.PortableServer.IdUniquenessPolicyOperations , ImplicitActivationPolicy sample code for org.omg.PortableServer.ImplicitActivationPolicy definition code for org.omg.PortableServer.ImplicitActivationPolicy , ImplicitActivationPolicyOperations sample code for org.omg.PortableServer.ImplicitActivationPolicyOperations definition code for org.omg.PortableServer.ImplicitActivationPolicyOperations , LifespanPolicy sample code for org.omg.PortableServer.LifespanPolicy definition code for org.omg.PortableServer.LifespanPolicy , LifespanPolicyOperations sample code for org.omg.PortableServer.LifespanPolicyOperations definition code for org.omg.PortableServer.LifespanPolicyOperations , Policy sample code for org.omg.CORBA.Policy definition code for org.omg.CORBA.Policy , RequestProcessingPolicy sample code for org.omg.PortableServer.RequestProcessingPolicy definition code for org.omg.PortableServer.RequestProcessingPolicy , RequestProcessingPolicyOperations sample code for org.omg.PortableServer.RequestProcessingPolicyOperations definition code for org.omg.PortableServer.RequestProcessingPolicyOperations , ServantRetentionPolicy sample code for org.omg.PortableServer.ServantRetentionPolicy definition code for org.omg.PortableServer.ServantRetentionPolicy , ServantRetentionPolicyOperations sample code for org.omg.PortableServer.ServantRetentionPolicyOperations definition code for org.omg.PortableServer.ServantRetentionPolicyOperations , ThreadPolicy sample code for org.omg.PortableServer.ThreadPolicy definition code for org.omg.PortableServer.ThreadPolicy , ThreadPolicyOperations sample code for org.omg.PortableServer.ThreadPolicyOperations definition code for org.omg.PortableServer.ThreadPolicyOperations
All Known Implementing Classes:
_PolicyStub sample code for org.omg.CORBA._PolicyStub definition code for org.omg.CORBA._PolicyStub

public interface PolicyOperations

Provides the operations for a Policy object.


Method Summary
 Policy sample code for org.omg.CORBA.Policy definition code for org.omg.CORBA.Policy copy sample code for org.omg.CORBA.PolicyOperations.copy() definition code for org.omg.CORBA.PolicyOperations.copy() ()
          Returns a copy of the Policy object.
 void destroy sample code for org.omg.CORBA.PolicyOperations.destroy() definition code for org.omg.CORBA.PolicyOperations.destroy() ()
          Destroys the Policy object.
 int policy_type sample code for org.omg.CORBA.PolicyOperations.policy_type() definition code for org.omg.CORBA.PolicyOperations.policy_type() ()
          Returns the constant value that corresponds to the type of the policy object.
 

Method Detail

policy_type sample code for org.omg.CORBA.PolicyOperations.policy_type() definition code for org.omg.CORBA.PolicyOperations.policy_type()

int policy_type()
Returns the constant value that corresponds to the type of the policy object. The values of the policy objects are allocated by the OMG. New values for PolicyType should be obtained from the OMG by sending mail to request@omg.org. In general the constant values that are allocated are defined in conjunction with the definition of the corresponding policy object.

Returns:
the constant value that corresponds to the type of the policy object

copy sample code for org.omg.CORBA.PolicyOperations.copy() definition code for org.omg.CORBA.PolicyOperations.copy()

Policy sample code for org.omg.CORBA.Policy definition code for org.omg.CORBA.Policy  copy()
Returns a copy of the Policy object. The copy does not retain any relationships that the policy had with any domain or object.

Returns:
a copy of the Policy object

destroy sample code for org.omg.CORBA.PolicyOperations.destroy() definition code for org.omg.CORBA.PolicyOperations.destroy()

void destroy()
Destroys the Policy object. It is the responsibility of the Policy object to determine whether it can be destroyed.