예제 #1
0
  public List<String> getElementList(String key) {
    Object element = definitionMap.getMapElement(key);
    List<String> lst;

    if (element instanceof String) {
      return Collections.singletonList((String) element);
    } else if (element instanceof List) {
      return (List) element;
    } else {
      return null;
    }
  }
예제 #2
0
 public Map getMap(EditableDefinablePlugin plugin) {
   return Collections.unmodifiableMap(plugin.getHashFilterRules());
 }
예제 #3
0
 public Map getMap(EditableDefinablePlugin plugin) {
   return Collections.unmodifiableMap(plugin.getCrawlFilterFactories());
 }