1 11 package org.eclipse.jdt.core.search; 12 13 import org.eclipse.jdt.internal.core.search.indexing.InternalSearchDocument; 14 15 24 public abstract class SearchDocument extends InternalSearchDocument { 25 private String documentPath; 26 private SearchParticipant participant; 27 28 36 protected SearchDocument(String documentPath, SearchParticipant participant) { 37 this.documentPath = documentPath; 38 this.participant = participant; 39 } 40 41 49 public void addIndexEntry(char[] category, char[] key) { 50 super.addIndexEntry(category, key); 51 } 52 53 70 public abstract byte[] getByteContents(); 71 72 89 public abstract char[] getCharContents(); 90 91 100 public abstract String getEncoding(); 101 102 107 public final SearchParticipant getParticipant() { 108 return this.participant; 109 } 110 111 119 public final String getPath() { 120 return this.documentPath; 121 } 122 127 public void removeAllIndexEntries() { 128 super.removeAllIndexEntries(); 129 } 130 } 131 | Popular Tags |