lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From no...@apache.org
Subject svn commit: r896380 - /lucene/solr/trunk/src/java/org/apache/solr/core/PluginInfo.java
Date Wed, 06 Jan 2010 10:49:01 GMT
Author: noble
Date: Wed Jan  6 10:49:00 2010
New Revision: 896380

URL: http://svn.apache.org/viewvc?rev=896380&view=rev
Log:
added an extra getChild() method

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=896380&r1=896379&r2=896380&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 Wed Jan  6 10:49:00 2010
@@ -88,6 +88,11 @@
     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



Mime
View raw message