1 16 package org.apache.jetspeed.services.search; 17 18 import java.util.Map ; 19 import java.net.URL ; 20 21 import org.apache.commons.collections.MultiMap; 22 23 29 public interface ParsedObject 30 { 31 32 public static final String FIELDNAME_KEY = "fieldname.key"; 33 public static final String FIELDNAME_KEY_DEFAULT = "Key"; 34 public static final String FIELDNAME_TYPE = "fieldname.type"; 35 public static final String FIELDNAME_TYPE_DEFAULT = "Type"; 36 public static final String FIELDNAME_CONTENT = "fieldname.content"; 37 public static final String FIELDNAME_CONTENT_DEFAULT = "Content"; 38 public static final String FIELDNAME_DESCRIPTION = "fieldname.description"; 39 public static final String FIELDNAME_DESCRIPTION_DEFAULT = "Description"; 40 public static final String FIELDNAME_TITLE = "fieldname.title"; 41 public static final String FIELDNAME_TITLE_DEFAULT = "Title"; 42 public static final String FIELDNAME_LANGUAGE = "fieldname.language"; 43 public static final String FIELDNAME_LANGUAGE_DEFAULT = "Language"; 44 public static final String FIELDNAME_FIELDS = "fieldname.fields"; 45 public static final String FIELDNAME_FIELDS_DEFAULT = "Fields"; 46 public static final String FIELDNAME_KEYWORDS = "fieldname.keywords"; 47 public static final String FIELDNAME_KEYWORDS_DEFAULT = "Keywords"; 48 public static final String FIELDNAME_URL = "fieldname.url"; 49 public static final String FIELDNAME_URL_DEFAULT = "URL"; 50 public static final String FIELDNAME_SCORE = "fieldname.score"; 51 public static final String FIELDNAME_SCORE_DEFAULT = "Score"; 52 public static final String FIELDNAME_CLASSNAME = "fieldname.className"; 53 public static final String FIELDNAME_CLASSNAME_DEFAULT = "ClassName"; 54 55 public static final String OBJECT_TYPE_URL = "url"; 57 public static final String OBJECT_TYPE_PORTLET = "portlet"; 58 public static final String OBJECT_TYPE_PDF = "pdf"; 59 60 65 public String getKey(); 66 67 72 public void setKey(String key); 73 74 79 public String getType(); 80 81 86 public void setType(String type); 87 88 93 public String getContent(); 94 95 100 public void setContent(String content); 101 102 107 public String getDescription(); 108 109 114 public void setDescription(String description); 115 116 123 public String [] getKeywords(); 124 125 132 public void setKeywords(String [] keywords); 133 134 139 public String getTitle(); 140 141 146 public void setTitle(String title); 147 148 153 public String getLanguage(); 154 155 160 public void setLanguage(String language); 161 162 169 public Map getFields(); 170 171 178 public void setFields(Map fields); 179 180 183 public MultiMap getMultiFields(); 184 185 188 public void setMultiFields(MultiMap multiFields); 189 190 193 public MultiMap getMultiKeywords(); 194 195 198 public void setMultiKeywords(MultiMap multiKeywords); 199 200 205 public URL getURL(); 206 207 212 public void setURL(URL url); 213 214 219 public float getScore(); 220 221 226 public void setScore(float score); 227 228 233 public String getClassName(); 234 235 240 public void setClassName(String className); 241 242 } 243 244 | Popular Tags |