1. package org.omg.IOP;
  2. /**
  3. * org/omg/IOP/TaggedComponentHolder.java .
  4. * Generated by the IDL-to-Java compiler (portable), version "3.1"
  5. * from ../../../../src/share/classes/org/omg/PortableInterceptor/IOP.idl
  6. * Monday, February 23, 2004 7:03:03 AM GMT
  7. */
  8. /**
  9. * <code>TaggedComponents</code> contained in
  10. * <code>TAG_INTERNET_IOP</code> and
  11. * <code>TAG_MULTIPLE_COMPONENTS</code> profiles are identified by
  12. * unique numeric tags using a namespace distinct form that is used for
  13. * profile tags. Component tags are assigned by the OMG.
  14. * <p>
  15. * Specifications of components must include the following information:
  16. * <ul>
  17. * <li><i>Component ID</i>: The compound tag that is obtained
  18. * from OMG.</li>
  19. * <li><i>Structure and encoding</i>: The syntax of the component
  20. * data and the encoding rules. If the component value is
  21. * encoded as a CDR encapsulation, the IDL type that is
  22. * encapsulated and the GIOP version which is used for encoding
  23. * the value, if different than GIOP 1.0, must be specified as
  24. * part of the component definition.</li>
  25. * <li><i>Semantics</i>: How the component data is intended to be
  26. * used.</li>
  27. * <li><i>Protocols</i>: The protocol for which the component is
  28. * defined, and whether it is intended that the component be
  29. * usable by other protocols.</li>
  30. * <li><i>At most once</i>: whether more than one instance of this
  31. * component can be included in a profile.</li>
  32. * </ul>
  33. * Specification of protocols must describe how the components affect
  34. * the protocol. The following should be specified in any protocol
  35. * definition for each <code>TaggedComponent</code> that the protocol uses:
  36. * <ul>
  37. * <li><i>Mandatory presence</i>: Whether inclusion of the component
  38. * in profiles supporting the protocol is required (MANDATORY
  39. * PRESENCE) or not required (OPTIONAL PRESENCE).</li>
  40. * <li><i>Droppable</i>: For optional presence component, whether
  41. * component, if present, must be retained or may be dropped.</li>
  42. * </ul>
  43. */
  44. public final class TaggedComponentHolder implements org.omg.CORBA.portable.Streamable
  45. {
  46. public org.omg.IOP.TaggedComponent value = null;
  47. public TaggedComponentHolder ()
  48. {
  49. }
  50. public TaggedComponentHolder (org.omg.IOP.TaggedComponent initialValue)
  51. {
  52. value = initialValue;
  53. }
  54. public void _read (org.omg.CORBA.portable.InputStream i)
  55. {
  56. value = org.omg.IOP.TaggedComponentHelper.read (i);
  57. }
  58. public void _write (org.omg.CORBA.portable.OutputStream o)
  59. {
  60. org.omg.IOP.TaggedComponentHelper.write (o, value);
  61. }
  62. public org.omg.CORBA.TypeCode _type ()
  63. {
  64. return org.omg.IOP.TaggedComponentHelper.type ();
  65. }
  66. }