org.omg.CORBA
Class SetOverrideType

java.lang.Object
  extended by org.omg.CORBA.SetOverrideType
All Implemented Interfaces:
Serializable, IDLEntity

public class SetOverrideType
extends Object
implements Serializable, IDLEntity

Defines the instruction, how the newly specified policies can be taken into consideration. The policies can be either added to the current policies or replace them.

See Also:
Serialized Form

Field Summary
static int _ADD_OVERRIDE
          Add the new policies to the existing policies.
static int _SET_OVERRIDE
          Replace the new existing policies by the new policies.
static SetOverrideType ADD_OVERRIDE
          Add the new policies to the existing policies.
static SetOverrideType SET_OVERRIDE
          Replace the new existing policies by the new policies.
 
Constructor Summary
protected SetOverrideType(int a_value)
          No other instances can be created.
 
Method Summary
static SetOverrideType from_int(int kind)
          Returns the SetOverrideType, matching the given integer constant
 String toString()
          Returns a short string representation.
 int value()
          Returns the value, representing stored instruction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_ADD_OVERRIDE

public static final int _ADD_OVERRIDE
Add the new policies to the existing policies.

See Also:
Constant Field Values

_SET_OVERRIDE

public static final int _SET_OVERRIDE
Replace the new existing policies by the new policies.

See Also:
Constant Field Values

ADD_OVERRIDE

public static final SetOverrideType ADD_OVERRIDE
Add the new policies to the existing policies. An instance of SetOverrideType, initialized to _ADD_OVERRIDE.


SET_OVERRIDE

public static final SetOverrideType SET_OVERRIDE
Replace the new existing policies by the new policies. An instance of SetOverrideType, initialized to _SET_OVERRIDE.

Constructor Detail

SetOverrideType

protected SetOverrideType(int a_value)
No other instances can be created.

Method Detail

from_int

public static SetOverrideType from_int(int kind)
Returns the SetOverrideType, matching the given integer constant

Parameters:
kind - one of _ADD_OVERRIDE or _SET_OVERRIDE.
Returns:
one of ADD_OVERRIDE or SET_OVERRIDE.
Throws:
BAD_PARAM - if the parameter is not one of these two values.

toString

public String toString()
Returns a short string representation.

Overrides:
toString in class Object
Returns:
either "add" or "replace".
See Also:
Object.getClass(), Object.hashCode(), Class.getName(), Integer.toHexString(int)

value

public int value()
Returns the value, representing stored instruction.

Returns:
one of ADD_OVERRIDE or SET_OVERRIDE