1. /*
  2. * @(#)NotEmptyHelper.java 1.10 00/02/02
  3. *
  4. * Copyright 1997-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. /*
  11. * File: ./org/omg/CosNaming/NamingContextPackage/NotEmptyHelper.java
  12. * From: nameservice.idl
  13. * Date: Tue Aug 11 03:12:09 1998
  14. * By: idltojava Java IDL 1.2 Aug 11 1998 02:00:18
  15. */
  16. package org.omg.CosNaming.NamingContextPackage;
  17. public class NotEmptyHelper {
  18. // It is useless to have instances of this class
  19. private NotEmptyHelper() { }
  20. public static void write(org.omg.CORBA.portable.OutputStream out, org.omg.CosNaming.NamingContextPackage.NotEmpty that) {
  21. out.write_string(id());
  22. }
  23. public static org.omg.CosNaming.NamingContextPackage.NotEmpty read(org.omg.CORBA.portable.InputStream in) {
  24. org.omg.CosNaming.NamingContextPackage.NotEmpty that = new org.omg.CosNaming.NamingContextPackage.NotEmpty();
  25. // read and discard the repository id
  26. in.read_string();
  27. return that;
  28. }
  29. public static org.omg.CosNaming.NamingContextPackage.NotEmpty extract(org.omg.CORBA.Any a) {
  30. org.omg.CORBA.portable.InputStream in = a.create_input_stream();
  31. return read(in);
  32. }
  33. public static void insert(org.omg.CORBA.Any a, org.omg.CosNaming.NamingContextPackage.NotEmpty that) {
  34. org.omg.CORBA.portable.OutputStream out = a.create_output_stream();
  35. write(out, that);
  36. a.read_value(out.create_input_stream(), type());
  37. }
  38. private static org.omg.CORBA.TypeCode _tc;
  39. synchronized public static org.omg.CORBA.TypeCode type() {
  40. int _memberCount = 0;
  41. org.omg.CORBA.StructMember[] _members = null;
  42. if (_tc == null) {
  43. _members= new org.omg.CORBA.StructMember[0];
  44. _tc = org.omg.CORBA.ORB.init().create_exception_tc(id(), "NotEmpty", _members);
  45. }
  46. return _tc;
  47. }
  48. public static String id() {
  49. return "IDL:omg.org/CosNaming/NamingContext/NotEmpty:1.0";
  50. }
  51. }