public String getSearchURLSufix(String searchEngine) { String returnVal = ""; if (searchEngines != null) { return searchEngines.get(searchEngine).getUrlSuffix(); } return returnVal; }
/** * Initialize repository maps using the TranslationScope to find out if classes are Document or * Media. * * @param metadataTScope */ public void initializeRepository(TranslationScope metadataTScope) { this.metadataTScope = metadataTScope; this.defaultUserAgentString = (defaultUserAgentName == null) ? null : userAgents.get(defaultUserAgentName).userAgentString(); initializeLocationBasedMaps(); initializeSuffixAndMimeBasedMaps(); System.out.println(); }
public String getStartString(String searchEngine) { String returnVal = ""; if (searchEngine != null) return searchEngines.get(searchEngine).getStartString(); return returnVal; }
public String getSearchURL(String searchEngine) { if (searchEngines != null) { return searchEngines.get(searchEngine).getUrlPrefix(); } return null; }
public NamedStyle getDefaultStyle() { return namedStyles.get(DEFAULT_STYLE_NAME); }
public NamedStyle lookupStyle(String styleName) { return namedStyles.get(styleName); }
private boolean combineMapStates(HashMapState srcMap, HashMapState destMap) { if (destMap == null) return false; if (srcMap != null) destMap.putAll(srcMap); return true; }