1. /*
  2. * @(#)IOR.java 1.15 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 com.sun.corba.se.spi.ior;
  8. import java.util.List ;
  9. import java.util.Iterator ;
  10. import com.sun.corba.se.spi.orb.ORBVersion ;
  11. import com.sun.corba.se.spi.ior.iiop.GIOPVersion ;
  12. import com.sun.corba.se.spi.ior.iiop.IIOPProfile ;
  13. import com.sun.corba.se.spi.orb.ORB ;
  14. /** An IOR is represented as a list of profiles.
  15. * Only instances of TaggedProfile are contained in the list.
  16. */
  17. public interface IOR extends List, Writeable, MakeImmutable
  18. {
  19. ORB getORB() ;
  20. /** Return the type id string from the IOR.
  21. */
  22. String getTypeId() ;
  23. /** Return an iterator that iterates over tagged profiles with
  24. * identifier id. It is not possible to modify the list through this
  25. * iterator.
  26. */
  27. Iterator iteratorById( int id ) ;
  28. /** Return a representation of this IOR in the standard GIOP stringified
  29. * format that begins with "IOR:".
  30. */
  31. String stringify() ;
  32. /** Return a representation of this IOR in the standard GIOP marshalled
  33. * form.
  34. */
  35. org.omg.IOP.IOR getIOPIOR() ;
  36. /** Return true if this IOR has no profiles.
  37. */
  38. boolean isNil() ;
  39. /** Return true if this IOR is equivalent to ior. Here equivalent means
  40. * that the typeids are the same, they have the same number of profiles,
  41. * and each profile is equivalent to the corresponding profile.
  42. */
  43. boolean isEquivalent(IOR ior) ;
  44. /** Return the IORTemplate for this IOR. This is simply a list
  45. * of all TaggedProfileTemplates derived from the TaggedProfiles
  46. * of the IOR.
  47. */
  48. IORTemplateList getIORTemplates() ;
  49. /** Return the first IIOPProfile in this IOR.
  50. * XXX THIS IS TEMPORARY FOR BACKWARDS COMPATIBILITY AND WILL BE REMOVED
  51. * SOON!
  52. */
  53. IIOPProfile getProfile() ;
  54. }