added an extra getChild() method

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@896380 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Noble Paul 2010-01-06 10:49:00 +00:00
parent 6331869d2f
commit 6292fe589c

View File

@ -88,6 +88,11 @@ public class PluginInfo {
return Boolean.parseBoolean(attributes.get("default"));
}
public PluginInfo getChild(String type){
List<PluginInfo> l = getChildren(type);
return l.isEmpty() ? null:l.get(0);
}
/**Filter children by type
* @param type The type name. must not be null
* @return The mathcing children