< prev index next >

src/java.corba/share/classes/com/sun/tools/corba/se/idl/RepositoryID.java

Print this page




  51   } // ctor
  52 
  53   public String ID ()
  54   {
  55     return _id;
  56   } // ID
  57 
  58   public Object clone ()
  59   {
  60     return new RepositoryID (_id);
  61   } // clone
  62 
  63   public String toString ()
  64   {
  65     return ID ();
  66   } // toString
  67 
  68   /**
  69    * Determine is a supplied string meets the minimal format requirement
  70    * for a Repository ID.
  71    * @return true iff supplied string has form '<format>:<string>', where
  72    * <format> is any non-empty string not containing ':'.
  73    **/
  74   public static boolean hasValidForm (String string)
  75   {
  76     return string != null && string.indexOf (':') > 0;
  77   } // hasValidForm
  78 
  79   private String _id;
  80 } // class RepositoryID


  51   } // ctor
  52 
  53   public String ID ()
  54   {
  55     return _id;
  56   } // ID
  57 
  58   public Object clone ()
  59   {
  60     return new RepositoryID (_id);
  61   } // clone
  62 
  63   public String toString ()
  64   {
  65     return ID ();
  66   } // toString
  67 
  68   /**
  69    * Determine is a supplied string meets the minimal format requirement
  70    * for a Repository ID.
  71    * @return true if supplied string has form {@literal '<format>:<string>'}, where
  72    * {@literal <format>} is any non-empty string not containing ':'.
  73    **/
  74   public static boolean hasValidForm (String string)
  75   {
  76     return string != null && string.indexOf (':') > 0;
  77   } // hasValidForm
  78 
  79   private String _id;
  80 } // class RepositoryID
< prev index next >