org.omg.CosPropertyService
Class PropertyModeType

java.lang.Object
  extended by org.omg.CosPropertyService.PropertyModeType
All Implemented Interfaces:
java.io.Serializable, org.omg.CORBA.portable.IDLEntity

public final class PropertyModeType
extends java.lang.Object
implements org.omg.CORBA.portable.IDLEntity

PropertyModeType is an enumeration of five mutually exclusive property mode types:

  • normal means there are no restrictions to the property. A client may define new values to an existing property or delete this property.
  • read_only means clients can only get the property information. However, a readonly property may be deleted.
  • fixed_normal means the property cannot be deleted. However, clients are free to define new values to an existing property.
  • fixed_readonly means the property cannot be deleted and clients can only get the property information.
  • undefined is used to signify PropertyNotFound when requesting a multiple get mode request. Using this oneway an operation that sets the mode of a property (e.g., set_mode or define_property_with_mode) will raise the UnsupportedModeexception. Restrictions on the property_mode_type field is an implementation issue. For example, a PropertySetDef implementation may choose to not support a client setting a property to the fixed_readonly mode.

    See Also:
    PropertyMode, Serialized Form

    Field Summary
    static int _fixed_normal
              Enum member fixed_normal value
    static int _fixed_readonly
              Enum member fixed_readonly value
    static int _normal
              Enum member normal value
    static int _read_only
              Enum member read_only value
    static int _undefined
              Enum member undefined value
    static PropertyModeType fixed_normal
              Enum member fixed_normal
    static PropertyModeType fixed_readonly
              Enum member fixed_readonly
    static PropertyModeType normal
              Enum member normal
    static PropertyModeType read_only
              Enum member read_only
    static PropertyModeType undefined
              Enum member undefined
     
    Method Summary
    static PropertyModeType from_int(int value)
              Return a enum member from its value.
     java.lang.Object readResolve()
              Maintains singleton property for serialized enums.
     java.lang.String toString()
              Return a string representation
     int value()
              Return the internal member value
     
    Methods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
     

    Field Detail

    _normal

    public static final int _normal
    Enum member normal value

    See Also:
    Constant Field Values

    normal

    public static final PropertyModeType normal
    Enum member normal


    _read_only

    public static final int _read_only
    Enum member read_only value

    See Also:
    Constant Field Values

    read_only

    public static final PropertyModeType read_only
    Enum member read_only


    _fixed_normal

    public static final int _fixed_normal
    Enum member fixed_normal value

    See Also:
    Constant Field Values

    fixed_normal

    public static final PropertyModeType fixed_normal
    Enum member fixed_normal


    _fixed_readonly

    public static final int _fixed_readonly
    Enum member fixed_readonly value

    See Also:
    Constant Field Values

    fixed_readonly

    public static final PropertyModeType fixed_readonly
    Enum member fixed_readonly


    _undefined

    public static final int _undefined
    Enum member undefined value

    See Also:
    Constant Field Values

    undefined

    public static final PropertyModeType undefined
    Enum member undefined

    Method Detail

    readResolve

    public java.lang.Object readResolve()
                                 throws java.io.ObjectStreamException
    Maintains singleton property for serialized enums. Issue 4271: IDL/Java issue, Mapping for IDL enum.

    Throws:
    java.io.ObjectStreamException

    value

    public int value()
    Return the internal member value

    Returns:
    the member value

    from_int

    public static PropertyModeType from_int(int value)
    Return a enum member from its value.

    Parameters:
    value - An enum value
    Returns:
    An enum member

    toString

    public java.lang.String toString()
    Return a string representation

    Overrides:
    toString in class java.lang.Object
    Returns:
    a string representation of the enumeration