mirror of
https://github.com/apache/lucene.git
synced 2025-02-09 03:25:15 +00:00
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:
parent
6331869d2f
commit
6292fe589c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user