/OpenJDK 8 Web

Class _PolicyStub

All Implemented Interfaces:
Serializable, Object, Policy, PolicyOperations, IDLEntity
public class _PolicyStub
extends ObjectImpl
implements Policy

The Stub for Policy. For more information on Stub files, see "Generated Files: Stubs".

org/omg/CORBA/_PolicyStub.java Generated by the IDL-to-Java compiler (portable), version "3.0" from ../../../../../src/share/classes/org/omg/PortableServer/corba.idl. Saturday, July 17, 1999 12:26:20 AM PDT



public _PolicyStub()

Constructors NOTE: If the default constructor is used, the object is useless until _set_delegate (...) is called.


public _PolicyStub(Delegate delegate)

Constructs a _PolicyStub object initialized with the given Delegate object.

delegate - a Delegate Object



public int policy_type()

Returns the constant value that corresponds to the type of the policy object. The values of the polivy objectys 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.

Specified by:
policy_type in interface PolicyOperations
the constant value that corresponds to the type of the policy object.


public Policy copy()

Copies the policy object. The copy does not retain any relationships that the policy had with any domain or object.

Specified by:
copy in interface PolicyOperations
the copy of the policy object.


public void destroy()

Destroys the policy object. It is the responsibility of the policy object to determine whether it can be destroyed.

Specified by:
destroy in interface PolicyOperations


public String[] _ids()

Description copied from class: ObjectImpl

Retrieves a string array containing the repository identifiers supported by this ObjectImpl object. For example, for a stub, this method returns information about all the interfaces supported by the stub.

Specified by:
_ids in class ObjectImpl
the array of all repository identifiers supported by this ObjectImpl instance

© 1993–2017, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.