org.omg.DynamicAny

Interface DynStructOperations

  • All Superinterfaces:
    DynAnyOperations
    All Known Subinterfaces:
    DynStruct
    All Known Implementing Classes:
    _DynStructStub

    public interface DynStructOperations
    extends DynAnyOperations
    DynStruct objects support the manipulation of IDL struct and exception values. Members of the exceptions are handled in the same way as members of a struct.
    • Method Detail

      • current_member_name

        String current_member_name()
                                   throws TypeMismatch,
                                          InvalidValue
        Returns the name of the member at the current position. This operation may return an empty string since the TypeCode of the value being manipulated may not contain the names of members.
        Throws:
        TypeMismatch - if the DynStruct represents an empty exception.
        InvalidValue - if the current position does not indicate a member
      • current_member_kind

        TCKind current_member_kind()
                                   throws TypeMismatch,
                                          InvalidValue
        Returns the TCKind associated with the member at the current position.
        Throws:
        TypeMismatch - if the DynStruct represents an empty exception.
        InvalidValue - if the current position does not indicate a member
      • get_members

        NameValuePair[] get_members()
        Returns a sequence of NameValuePairs describing the name and the value of each member in the struct associated with a DynStruct object. The sequence contains members in the same order as the declaration order of members as indicated by the DynStruct's TypeCode. The current position is not affected. The member names in the returned sequence will be empty strings if the DynStruct's TypeCode does not contain member names.
      • set_members

        void set_members(NameValuePair[] value)
                         throws TypeMismatch,
                                InvalidValue
        Initializes the struct data value associated with a DynStruct object from a sequence of NameValuePairs. The operation sets the current position to zero if the passed sequences has non-zero length. Otherwise, if an empty sequence is passed, the current position is set to -1.

        Members must appear in the NameValuePairs in the order in which they appear in the IDL specification of the struct as indicated by the DynStruct's TypeCode or they must be empty strings. The operation makes no attempt to assign member values based on member names.

        Throws:
        TypeMismatch - if the member names supplied in the passed sequence do not match the corresponding member name in the DynStruct's TypeCode and they are not empty strings
        InvalidValue - if the passed sequence has a number of elements that disagrees with the number of members as indicated by the DynStruct's TypeCode
      • get_members_as_dyn_any

        NameDynAnyPair[] get_members_as_dyn_any()
        Returns a sequence of NameDynAnyPairs describing the name and the value of each member in the struct associated with a DynStruct object. The sequence contains members in the same order as the declaration order of members as indicated by the DynStruct's TypeCode. The current position is not affected. The member names in the returned sequence will be empty strings if the DynStruct's TypeCode does not contain member names.
      • set_members_as_dyn_any

        void set_members_as_dyn_any(NameDynAnyPair[] value)
                                    throws TypeMismatch,
                                           InvalidValue
        Initializes the struct data value associated with a DynStruct object from a sequence of NameDynAnyPairs. The operation sets the current position to zero if the passed sequences has non-zero length. Otherwise, if an empty sequence is passed, the current position is set to -1.

        Members must appear in the NameDynAnyPairs in the order in which they appear in the IDL specification of the struct as indicated by the DynStruct's TypeCode or they must be empty strings. The operation makes no attempt to assign member values based on member names.

        Throws:
        TypeMismatch - if the member names supplied in the passed sequence do not match the corresponding member name in the DynStruct's TypeCode and they are not empty strings
        InvalidValue - if the passed sequence has a number of elements that disagrees with the number of members as indicated by the DynStruct's TypeCode

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/dynamicany/dynstructoperations.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