org.apache.solr.core
Class PluginInfo

java.lang.Object
  extended by org.apache.solr.core.PluginInfo

public class PluginInfo
extends Object

An Object which represents a Plugin of any type

Version:
$Id: PluginInfo.java 817501 2009-09-22 04:38:10Z noble $

Field Summary
 Map<String,String> attributes
           
 List<PluginInfo> children
           
 String className
           
 org.apache.solr.common.util.NamedList initArgs
           
 String name
           
 String type
           
 
Constructor Summary
PluginInfo(Node node, String err, boolean requireName, boolean requireClass)
           
PluginInfo(String type, Map<String,String> attrs, org.apache.solr.common.util.NamedList initArgs, List<PluginInfo> children)
           
 
Method Summary
 List<PluginInfo> getChildren(String type)
          Filter children by type
 boolean isDefault()
           
 boolean isEnabled()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public final String name

className

public final String className

type

public final String type

initArgs

public final org.apache.solr.common.util.NamedList initArgs

attributes

public final Map<String,String> attributes

children

public final List<PluginInfo> children
Constructor Detail

PluginInfo

public PluginInfo(String type,
                  Map<String,String> attrs,
                  org.apache.solr.common.util.NamedList initArgs,
                  List<PluginInfo> children)

PluginInfo

public PluginInfo(Node node,
                  String err,
                  boolean requireName,
                  boolean requireClass)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

isEnabled

public boolean isEnabled()

isDefault

public boolean isDefault()

getChildren

public List<PluginInfo> getChildren(String type)
Filter children by type

Parameters:
type - The type name. must not be null
Returns:
The mathcing children


Copyright © 2011 Apache Software Foundation. All Rights Reserved.