1 16 19 package com.sun.org.apache.xml.internal.utils; 20 21 import java.util.Locale ; 22 23 29 public interface XMLString 30 { 31 32 43 public abstract void dispatchCharactersEvents(org.xml.sax.ContentHandler ch) 44 throws org.xml.sax.SAXException ; 45 46 55 public abstract void dispatchAsComment(org.xml.sax.ext.LexicalHandler lh) 56 throws org.xml.sax.SAXException ; 57 58 72 public XMLString fixWhiteSpace(boolean trimHead, 73 boolean trimTail, 74 boolean doublePunctuationSpaces); 75 76 82 public abstract int length(); 83 84 97 public abstract char charAt(int index); 98 99 120 public abstract void getChars(int srcBegin, int srcEnd, char dst[], 121 int dstBegin); 122 123 136 public abstract boolean equals(XMLString anObject); 137 138 139 152 public abstract boolean equals(Object anObject); 153 154 169 public abstract boolean equalsIgnoreCase(String anotherString); 170 171 183 public abstract int compareTo(XMLString anotherString); 184 185 203 public abstract int compareToIgnoreCase(XMLString str); 204 205 224 public abstract boolean startsWith(String prefix, int toffset); 225 226 245 public abstract boolean startsWith(XMLString prefix, int toffset); 246 247 262 public abstract boolean startsWith(String prefix); 263 264 279 public abstract boolean startsWith(XMLString prefix); 280 281 294 public abstract boolean endsWith(String suffix); 295 296 309 public abstract int hashCode(); 310 311 328 public abstract int indexOf(int ch); 329 330 358 public abstract int indexOf(int ch, int fromIndex); 359 360 375 public abstract int lastIndexOf(int ch); 376 377 400 public abstract int lastIndexOf(int ch, int fromIndex); 401 402 419 public abstract int indexOf(String str); 420 421 438 public abstract int indexOf(XMLString str); 439 440 466 public abstract int indexOf(String str, int fromIndex); 467 468 486 public abstract int lastIndexOf(String str); 487 488 508 public abstract int lastIndexOf(String str, int fromIndex); 509 510 527 public abstract XMLString substring(int beginIndex); 528 529 545 public abstract XMLString substring(int beginIndex, int endIndex); 546 547 557 public abstract XMLString concat(String str); 558 559 568 public abstract XMLString toLowerCase(Locale locale); 569 570 580 public abstract XMLString toLowerCase(); 581 582 590 public abstract XMLString toUpperCase(Locale locale); 591 592 618 public abstract XMLString toUpperCase(); 619 620 649 public abstract XMLString trim(); 650 651 656 public abstract String toString(); 657 658 663 public abstract boolean hasString(); 664 665 672 public double toDouble(); 673 } 674 | Popular Tags |