1. /*
  2. * @(#)CorbaName.java 1.5 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package com.sun.corba.se.internal.corba;
  8. /** The corbaname: URL definitions from the -ORBInitDef and -ORBDefaultInitDef's
  9. * will be stored in this object. This object is capable of storing CorbaLoc
  10. * profiles as defined in the CorbaName grammer.
  11. */
  12. public class CorbaName
  13. {
  14. // CorbaLoc Object contains all the information to resolve
  15. // Root Naming context
  16. private CorbaLoc theCorbaLocObject;
  17. // Stringified Name is the compound anem which will be used to resolve
  18. // the reference from the root naming context
  19. private String theStringifiedName;
  20. public CorbaName( ) {
  21. theCorbaLocObject = null;
  22. theStringifiedName = null;
  23. }
  24. public void setCorbaLoc( CorbaLoc CorbaLocObject ) {
  25. theCorbaLocObject = CorbaLocObject;
  26. }
  27. public CorbaLoc getCorbaLoc( ) {
  28. return theCorbaLocObject;
  29. }
  30. public void setStringifiedName( String StringifiedName ) {
  31. theStringifiedName = StringifiedName;
  32. }
  33. public String getStringifiedName( ) {
  34. return theStringifiedName;
  35. }
  36. /** Internal Debug Method.
  37. */
  38. public void dprint( ) {
  39. System.out.println( "/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-" );
  40. System.out.println( "CORBAName Print ....." );
  41. System.out.println( "PrintingCorbaLoc Object First ..." );
  42. if( theCorbaLocObject != null ) {
  43. theCorbaLocObject.dprint( );
  44. }
  45. System.out.println( "StringifiedName -> " + theStringifiedName );
  46. System.out.flush( );
  47. }
  48. }