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