Class DynAnyImpl

    • Constructor Detail

      • DynAnyImpl

        protected DynAnyImpl()
      • DynAnyImpl

        protected DynAnyImpl​(ORB orb,
                             Any any,
                             boolean copyValue)
      • DynAnyImpl

        protected DynAnyImpl​(ORB orb,
                             TypeCode typeCode)
    • Method Detail

      • getAny

        protected Any getAny()
      • getAny

        protected Any getAny​(DynAny dynAny)
      • setStatus

        protected void setStatus​(byte newStatus)
      • clearData

        protected void clearData()
      • type

        public TypeCode type()
        Description copied from interface: DynAnyOperations
        Returns the TypeCode associated with this DynAny object. A DynAny object is created with a TypeCode value assigned to it. This TypeCode value determines the type of the value handled through the DynAny object. Note that the TypeCode associated with a DynAny object is initialized at the time the DynAny is created and cannot be changed during lifetime of the DynAny object.
        Specified by:
        type in interface DynAnyOperations
        Returns:
        The TypeCode associated with this DynAny object
      • assign

        public void assign​(DynAny dyn_any)
                    throws TypeMismatch
        Description copied from interface: DynAnyOperations
        Initializes the value associated with a DynAny object with the value associated with another DynAny object. The current position of the target DynAny is set to zero for values that have components and to -1 for values that do not have components.
        Specified by:
        assign in interface DynAnyOperations
        Parameters:
        dyn_any - DynAny value to assign to this object
        Throws:
        TypeMismatch - if the type of the passed DynAny is not equivalent to the type of target DynAny
      • from_any

        public void from_any​(Any value)
                      throws TypeMismatch,
                             InvalidValue
        Description copied from interface: DynAnyOperations
        Initializes the value associated with a DynAny object with the value contained in an any. The current position of the target DynAny is set to zero for values that have components and to -1 for values that do not have components.
        Specified by:
        from_any in interface DynAnyOperations
        Parameters:
        value - the value to set as contained in this object
        Throws:
        TypeMismatch - if the type of the passed Any is not equivalent to the type of target DynAny
        InvalidValue - if the passed Any does not contain a legal value (such as a null string)
      • to_any

        public abstract Any to_any()
        Description copied from interface: DynAnyOperations
        Creates an any value from a DynAny object. A copy of the TypeCode associated with the DynAny object is assigned to the resulting any. The value associated with the DynAny object is copied into the any.
        Specified by:
        to_any in interface DynAnyOperations
        Returns:
        a new Any object with the same value and TypeCode
      • equal

        public abstract boolean equal​(DynAny dyn_any)
        Description copied from interface: DynAnyOperations
        Compares two DynAny values for equality. Two DynAny values are equal if their TypeCodes are equivalent and, recursively, all component DynAnys have equal values. The current position of the two DynAnys being compared has no effect on the result of equal.
        Specified by:
        equal in interface DynAnyOperations
        Parameters:
        dyn_any - the value to compare to
        Returns:
        true of the DynAnys are equal, false otherwise
      • destroy

        public abstract void destroy()
        Description copied from interface: DynAnyOperations
        Destroys a DynAny object. This operation frees any resources used to represent the data value associated with a DynAny object. It must be invoked on references obtained from one of the creation operations on the ORB interface or on a reference returned by DynAny.copy() to avoid resource leaks. Invoking destroy on component DynAny objects (for example, on objects returned by the current_component operation) does nothing. Destruction of a DynAny object implies destruction of all DynAny objects obtained from it. That is, references to components of a destroyed DynAny become invalid. Invocations on such references raise OBJECT_NOT_EXIST. It is possible to manipulate a component of a DynAny beyond the life time of the DynAny from which the component was obtained by making a copy of the component with the copy operation before destroying the DynAny from which the component was obtained.
        Specified by:
        destroy in interface DynAnyOperations
      • copy

        public abstract DynAny copy()
        Description copied from interface: DynAnyOperations
        Creates a new DynAny object whose value is a deep copy of the DynAny on which it is invoked. The operation is polymorphic, that is, invoking it on one of the types derived from DynAny, such as DynStruct, creates the derived type but returns its reference as the DynAny base type.
        Specified by:
        copy in interface DynAnyOperations
        Returns:
        a deep copy of the DynAny object
      • _ids

        public java.lang.String[] _ids()