1. /*
  2. * @(#)ServiceDetail.java 1.16 03/12/19
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package org.omg.CORBA;
  8. /**
  9. * An object that represents an ORB service: its <code>service_detail_type</code>
  10. * field contains the type of the ORB service, and its <code>service_detail</code>
  11. * field contains a description of the ORB service.
  12. *
  13. * @author RIP Team
  14. * @version 1.11 11/15/00
  15. */
  16. public final class ServiceDetail implements org.omg.CORBA.portable.IDLEntity
  17. {
  18. /**
  19. * The type of the ORB service that this <code>ServiceDetail</code>
  20. * object represents.
  21. */
  22. public int service_detail_type;
  23. /**
  24. * The data describing the ORB service that this <code>ServiceDetail</code>
  25. * object represents.
  26. */
  27. public byte[] service_detail;
  28. /**
  29. * Constructs a <code>ServiceDetail</code> object with 0 for the type of
  30. * ORB service and an empty description.
  31. */
  32. public ServiceDetail() { }
  33. /**
  34. * Constructs a <code>ServiceDetail</code> object with the given
  35. * ORB service type and the given description.
  36. *
  37. * @param service_detail_type an <code>int</code> specifying the type of
  38. * ORB service
  39. * @param service_detail a <code>byte</code> array describing the ORB service
  40. */
  41. public ServiceDetail(int service_detail_type, byte[] service_detail) {
  42. this.service_detail_type = service_detail_type;
  43. this.service_detail = service_detail;
  44. }
  45. }