hudson.plugins.cigame.rules.plugins
Class PluginRuleSet

java.lang.Object
  extended by hudson.plugins.cigame.model.RuleSet
      extended by hudson.plugins.cigame.rules.plugins.PluginRuleSet
Direct Known Subclasses:
CheckstyleRuleSet, FindBugsRuleSet, OpenTasksRuleSet, PmdRuleSet, WarningsRuleSet, ViolationsRuleSet

public class PluginRuleSet
extends RuleSet

Rule set for plugins rules that will check if the plugin is installed or not.


Constructor Summary
PluginRuleSet(java.lang.String pluginName, java.lang.String name)
          Construct a rule set for a plugin.
 
Method Summary
 java.util.Collection<Rule> getRules()
          Returns the rules for this rule set.
 boolean isAvailable()
          Returns if the plugin is installed or not.
protected  void loadRules()
          Late loading of the rules for this rule set.
 
Methods inherited from class hudson.plugins.cigame.model.RuleSet
add, getName, removeRule
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginRuleSet

public PluginRuleSet(java.lang.String pluginName,
                     java.lang.String name)
Construct a rule set for a plugin.

Parameters:
pluginName - the name of the plugin as it is known by Hudson.
name - the text name of the rule set, as it will be displayed.
Method Detail

isAvailable

public boolean isAvailable()
Returns if the plugin is installed or not.

Overrides:
isAvailable in class RuleSet
Returns:
true, if the plugin is installed; false otherwise.

loadRules

protected void loadRules()
Late loading of the rules for this rule set.


getRules

public java.util.Collection<Rule> getRules()
Description copied from class: RuleSet
Returns the rules for this rule set.

Overrides:
getRules in class RuleSet
Returns:
the rules for this rule set.


Copyright © 2010. All Rights Reserved.