1. package org.omg.CosNaming;
  2. /**
  3. * org/omg/CosNaming/BindingTypeHolder.java .
  4. * Generated by the IDL-to-Java compiler (portable), version "3.1"
  5. * from ../../../../src/share/classes/org/omg/CosNaming/nameservice.idl
  6. * Monday, February 23, 2004 7:03:07 AM GMT
  7. */
  8. /**
  9. * Specifies whether the given binding is for a object (that is not a
  10. * naming context) or for a naming context.
  11. */
  12. public final class BindingTypeHolder implements org.omg.CORBA.portable.Streamable
  13. {
  14. public org.omg.CosNaming.BindingType value = null;
  15. public BindingTypeHolder ()
  16. {
  17. }
  18. public BindingTypeHolder (org.omg.CosNaming.BindingType initialValue)
  19. {
  20. value = initialValue;
  21. }
  22. public void _read (org.omg.CORBA.portable.InputStream i)
  23. {
  24. value = org.omg.CosNaming.BindingTypeHelper.read (i);
  25. }
  26. public void _write (org.omg.CORBA.portable.OutputStream o)
  27. {
  28. org.omg.CosNaming.BindingTypeHelper.write (o, value);
  29. }
  30. public org.omg.CORBA.TypeCode _type ()
  31. {
  32. return org.omg.CosNaming.BindingTypeHelper.type ();
  33. }
  34. }