org.omg.CORBA

Class SetOverrideType

  • All Implemented Interfaces:
    Serializable, IDLEntity

    public class SetOverrideType
    extends Object
    implements IDLEntity
    The mapping of a CORBA enum tagging SET_OVERRIDE and ADD_OVERRIDE, which indicate whether policies should replace the existing policies of an Object or be added to them.

    The method Object._set_policy_override(org.omg.CORBA.Policy[], org.omg.CORBA.SetOverrideType) takes either SetOverrideType.SET_OVERRIDE or SetOverrideType.ADD_OVERRIDE as its second argument. The method _set_policy_override creates a new Object initialized with the Policy objects supplied as the first argument. If the second argument is ADD_OVERRIDE, the new policies are added to those of the Object instance that is calling the _set_policy_override method. If SET_OVERRIDE is given instead, the existing policies are replaced with the given ones.

    Since:
    JDK1.2
    • Field Detail

      • _SET_OVERRIDE

        public static final int _SET_OVERRIDE
        The int constant for the enum value SET_OVERRIDE.
        See Also:
        Constant Field Values
      • _ADD_OVERRIDE

        public static final int _ADD_OVERRIDE
        The int constant for the enum value ADD_OVERRIDE.
        See Also:
        Constant Field Values
      • SET_OVERRIDE

        public static final SetOverrideType SET_OVERRIDE
        The SetOverrideType constant for the enum value SET_OVERRIDE.
      • ADD_OVERRIDE

        public static final SetOverrideType ADD_OVERRIDE
        The SetOverrideType constant for the enum value ADD_OVERRIDE.
    • Constructor Detail

      • SetOverrideType

        protected SetOverrideType(int _value)
        Constructs a SetOverrideType instance from an int.
        Parameters:
        _value - must be either SET_OVERRIDE or ADD_OVERRIDE
    • Method Detail

      • value

        public int value()
        Retrieves the value of this SetOverrideType instance.
        Returns:
        the int for this SetOverrideType instance.
      • from_int

        public static SetOverrideType from_int(int i)
        Converts the given int to the corresponding SetOverrideType instance.
        Parameters:
        i - the int to convert; must be either SetOverrideType._SET_OVERRIDE or SetOverrideType._ADD_OVERRIDE
        Returns:
        the SetOverrideType instance whose value matches the given int
        Throws:
        BAD_PARAM - if the given int does not match the value of any SetOverrideType instance

Document created the 11/06/2005, last modified the 04/03/2020
Source of the printed document:https://www.gaudry.be/en/java-api-rf-org/omg/CORBA/SetOverrideType.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:fr Manuel PHP : https://docs.oracle.com

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.

Contents Haut