1 7 8 package javax.naming; 9 10 import java.util.Enumeration ; 11 12 40 41 public interface Name 42 extends Cloneable , java.io.Serializable , Comparable <Object > 43 { 44 45 50 static final long serialVersionUID = -3617482732056931635L; 51 52 61 public Object clone(); 62 63 84 public int compareTo(Object obj); 85 86 91 public int size(); 92 93 99 public boolean isEmpty(); 100 101 109 public Enumeration <String > getAll(); 110 111 121 public String get(int posn); 122 123 136 public Name getPrefix(int posn); 137 138 152 public Name getSuffix(int posn); 153 154 163 public boolean startsWith(Name n); 164 165 174 public boolean endsWith(Name n); 175 176 187 public Name addAll(Name suffix) throws InvalidNameException ; 188 189 209 public Name addAll(int posn, Name n) throws InvalidNameException ; 210 211 221 public Name add(String comp) throws InvalidNameException ; 222 223 241 public Name add(int posn, String comp) throws InvalidNameException ; 242 243 259 public Object remove(int posn) throws InvalidNameException ; 260 } 261 | Popular Tags |