lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From no...@apache.org
Subject svn commit: r817495 - /lucene/solr/trunk/src/java/org/apache/solr/core/PluginInfo.java
Date Tue, 22 Sep 2009 04:04:55 GMT
Author: noble
Date: Tue Sep 22 04:04:54 2009
New Revision: 817495

URL: http://svn.apache.org/viewvc?rev=817495&view=rev
Log:
added helper method getChildren(String)

Modified:
    lucene/solr/trunk/src/java/org/apache/solr/core/PluginInfo.java

Modified: lucene/solr/trunk/src/java/org/apache/solr/core/PluginInfo.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/core/PluginInfo.java?rev=817495&r1=817494&r2=817495&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/core/PluginInfo.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/core/PluginInfo.java Tue Sep 22 04:04:54 2009
@@ -91,4 +91,11 @@
   public boolean isDefault() {
     return Boolean.parseBoolean(attributes.get("default"));
   }
+
+  public List<PluginInfo> getChildren(String type){
+    if(children.isEmpty()) return children;
+    List<PluginInfo> result = new ArrayList<PluginInfo>();
+    for (PluginInfo child : children) if(type.equals(child.type)) result.add(child);
+    return result;
+  }
 }



Mime
View raw message