1. /*
  2. * @(#)InternalBindingValue.java 1.8 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. /*
  8. * @(#)InternalBindingValue.java 1.17 99/07/16
  9. *
  10. * Copyright 1993-1997 Sun Microsystems, Inc. 901 San Antonio Road,
  11. * Palo Alto, California, 94303, U.S.A. All Rights Reserved.
  12. *
  13. * This software is the confidential and proprietary information of Sun
  14. * Microsystems, Inc. ("Confidential Information"). You shall not
  15. * disclose such Confidential Information and shall use it only in
  16. * accordance with the terms of the license agreement you entered into
  17. * with Sun.
  18. *
  19. * CopyrightVersion 1.2
  20. *
  21. */
  22. package com.sun.corba.se.impl.naming.pcosnaming;
  23. import org.omg.CORBA.Object;
  24. import org.omg.CosNaming.BindingType;
  25. import java.io.Serializable;
  26. /**
  27. * Class InternalBindingKey acts as a container for two objects, namely
  28. * a org.omg.CosNaming::Binding and an CORBA object reference, which are the two
  29. * components associated with the binding.
  30. */
  31. public class InternalBindingValue
  32. implements Serializable
  33. {
  34. public BindingType theBindingType;
  35. // The value stores both Stringified Object Reference and
  36. // Non-Stringified Object Reference. This is done to avoid
  37. // calling orb.string_to_object( ) everytime. Instead it
  38. // will be set once and then the result will be used everytime.
  39. public String strObjectRef;
  40. transient private org.omg.CORBA.Object theObjectRef;
  41. // Default constructor
  42. public InternalBindingValue() {
  43. }
  44. // Normal constructor
  45. public InternalBindingValue(BindingType b, String o) {
  46. // Objectreference or Context
  47. theBindingType = b;
  48. strObjectRef = o;
  49. }
  50. public org.omg.CORBA.Object getObjectRef( )
  51. {
  52. return theObjectRef;
  53. }
  54. public void setObjectRef( org.omg.CORBA.Object ObjectRef )
  55. {
  56. theObjectRef = ObjectRef;
  57. }
  58. }