1. package org.omg.DynamicAny;
  2. /**
  3. * org/omg/DynamicAny/DynStructOperations.java .
  4. * Generated by the IDL-to-Java compiler (portable), version "3.1"
  5. * from ../../../../src/share/classes/org/omg/DynamicAny/DynamicAny.idl
  6. * Monday, February 23, 2004 7:03:09 AM GMT
  7. */
  8. /**
  9. * DynStruct objects support the manipulation of IDL struct and exception values.
  10. * Members of the exceptions are handled in the same way as members of a struct.
  11. */
  12. public interface DynStructOperations extends org.omg.DynamicAny.DynAnyOperations
  13. {
  14. /**
  15. * Returns the name of the member at the current position.
  16. * This operation may return an empty string since the TypeCode of the value being
  17. * manipulated may not contain the names of members.
  18. *
  19. * @exception TypeMismatch if the DynStruct represents an empty exception.
  20. * @exception InvalidValue if the current position does not indicate a member
  21. */
  22. String current_member_name () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
  23. /**
  24. * Returns the TCKind associated with the member at the current position.
  25. *
  26. * @exception TypeMismatch if the DynStruct represents an empty exception.
  27. * @exception InvalidValue if the current position does not indicate a member
  28. */
  29. org.omg.CORBA.TCKind current_member_kind () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
  30. /**
  31. * Returns a sequence of NameValuePairs describing the name and the value of each member
  32. * in the struct associated with a DynStruct object.
  33. * The sequence contains members in the same order as the declaration order of members
  34. * as indicated by the DynStruct's TypeCode. The current position is not affected.
  35. * The member names in the returned sequence will be empty strings if the DynStruct's TypeCode
  36. * does not contain member names.
  37. */
  38. org.omg.DynamicAny.NameValuePair[] get_members ();
  39. /**
  40. * Initializes the struct data value associated with a DynStruct object from a sequence of NameValuePairs.
  41. * The operation sets the current position to zero if the passed sequences has non-zero length. Otherwise,
  42. * if an empty sequence is passed, the current position is set to -1.
  43. * <P>Members must appear in the NameValuePairs in the order in which they appear in the IDL specification
  44. * of the struct as indicated by the DynStruct's TypeCode or they must be empty strings.
  45. * The operation makes no attempt to assign member values based on member names.
  46. *
  47. * @exception TypeMismatch if the member names supplied in the passed sequence do not match the
  48. * corresponding member name in the DynStruct's TypeCode and they are not empty strings
  49. * @exception InvalidValue if the passed sequence has a number of elements that disagrees
  50. * with the number of members as indicated by the DynStruct's TypeCode
  51. */
  52. void set_members (org.omg.DynamicAny.NameValuePair[] value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
  53. /**
  54. * Returns a sequence of NameDynAnyPairs describing the name and the value of each member
  55. * in the struct associated with a DynStruct object.
  56. * The sequence contains members in the same order as the declaration order of members
  57. * as indicated by the DynStruct's TypeCode. The current position is not affected.
  58. * The member names in the returned sequence will be empty strings if the DynStruct's TypeCode
  59. * does not contain member names.
  60. */
  61. org.omg.DynamicAny.NameDynAnyPair[] get_members_as_dyn_any ();
  62. /**
  63. * Initializes the struct data value associated with a DynStruct object from a sequence of NameDynAnyPairs.
  64. * The operation sets the current position to zero if the passed sequences has non-zero length. Otherwise,
  65. * if an empty sequence is passed, the current position is set to -1.
  66. * <P>Members must appear in the NameDynAnyPairs in the order in which they appear in the IDL specification
  67. * of the struct as indicated by the DynStruct's TypeCode or they must be empty strings.
  68. * The operation makes no attempt to assign member values based on member names.
  69. *
  70. * @exception TypeMismatch if the member names supplied in the passed sequence do not match the
  71. * corresponding member name in the DynStruct's TypeCode and they are not empty strings
  72. * @exception InvalidValue if the passed sequence has a number of elements that disagrees
  73. * with the number of members as indicated by the DynStruct's TypeCode
  74. */
  75. void set_members_as_dyn_any (org.omg.DynamicAny.NameDynAnyPair[] value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
  76. } // interface DynStructOperations