|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| This report was generated with an evaluation server license. Purchase Clover or configure your license. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Plugin | Line # 10 | 11 | 0% | 7 | 0 | 100% |
1.0
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
| (18) | |||
| Result | |||
|
1.0
|
net.sourceforge.pebble.plugins.TestPluginLocator.testUnweighted
net.sourceforge.pebble.plugins.TestPluginLocator.testUnweighted
|
1 PASS | |
|
1.0
|
net.sourceforge.pebble.plugins.TestPluginLocator.testUnweighted
net.sourceforge.pebble.plugins.TestPluginLocator.testUnweighted
|
1 PASS | |
|
0.5555556
|
net.sourceforge.pebble.plugins.TestPluginLocator.testWeighted
net.sourceforge.pebble.plugins.TestPluginLocator.testWeighted
|
1 PASS | |
|
0.5555556
|
net.sourceforge.pebble.plugins.TestPluginLocator.testWeighted
net.sourceforge.pebble.plugins.TestPluginLocator.testWeighted
|
1 PASS | |
|
0.5555556
|
net.sourceforge.pebble.plugins.TestPluginLocator.testNoType
net.sourceforge.pebble.plugins.TestPluginLocator.testNoType
|
1 PASS | |
|
0.5555556
|
net.sourceforge.pebble.plugins.TestPluginLocator.testRequired
net.sourceforge.pebble.plugins.TestPluginLocator.testRequired
|
1 PASS | |
|
0.5555556
|
net.sourceforge.pebble.plugins.TestPluginLocator.testTextAreaType
net.sourceforge.pebble.plugins.TestPluginLocator.testTextAreaType
|
1 PASS | |
|
0.5555556
|
net.sourceforge.pebble.plugins.TestPluginLocator.testPasswordType
net.sourceforge.pebble.plugins.TestPluginLocator.testPasswordType
|
1 PASS | |
|
0.5555556
|
net.sourceforge.pebble.plugins.TestPluginLocator.testTextAreaType
net.sourceforge.pebble.plugins.TestPluginLocator.testTextAreaType
|
1 PASS | |
|
0.5555556
|
net.sourceforge.pebble.plugins.TestPluginLocator.testPasswordType
net.sourceforge.pebble.plugins.TestPluginLocator.testPasswordType
|
1 PASS | |
|
0.5555556
|
net.sourceforge.pebble.plugins.TestPluginLocator.testRequired
net.sourceforge.pebble.plugins.TestPluginLocator.testRequired
|
1 PASS | |
|
0.5555556
|
net.sourceforge.pebble.plugins.TestPluginLocator.testProperty
net.sourceforge.pebble.plugins.TestPluginLocator.testProperty
|
1 PASS | |
|
0.5555556
|
net.sourceforge.pebble.plugins.TestPluginLocator.testNoType
net.sourceforge.pebble.plugins.TestPluginLocator.testNoType
|
1 PASS | |
|
0.5555556
|
net.sourceforge.pebble.plugins.TestPluginLocator.testProperty
net.sourceforge.pebble.plugins.TestPluginLocator.testProperty
|
1 PASS | |
|
0.5555556
|
net.sourceforge.pebble.plugins.TestPluginLocator.testStringType
net.sourceforge.pebble.plugins.TestPluginLocator.testStringType
|
1 PASS | |
|
0.5555556
|
net.sourceforge.pebble.plugins.TestPluginLocator.testStringType
net.sourceforge.pebble.plugins.TestPluginLocator.testStringType
|
1 PASS | |
|
0.44444445
|
net.sourceforge.pebble.plugins.TestPluginLocator.testDescription
net.sourceforge.pebble.plugins.TestPluginLocator.testDescription
|
1 PASS | |
|
0.44444445
|
net.sourceforge.pebble.plugins.TestPluginLocator.testDescription
net.sourceforge.pebble.plugins.TestPluginLocator.testDescription
|
1 PASS | |
| 1 | package net.sourceforge.pebble.plugins; | |
| 2 | ||
| 3 | import java.util.Collection; | |
| 4 | ||
| 5 | /** | |
| 6 | * A plugin | |
| 7 | * | |
| 8 | * @author James Roper | |
| 9 | */ | |
| 10 | public class Plugin { | |
| 11 | private final String name; | |
| 12 | private final String description; | |
| 13 | private final String pluginClass; | |
| 14 | private final int weight; | |
| 15 | private final Collection<PluginConfig> pluginConfig; | |
| 16 | ||
| 17 | 72 |
public Plugin(String name, String description, String pluginClass, int weight, Collection<PluginConfig> pluginConfig) { |
| 18 | 72 | this.name = name; |
| 19 | 72 | this.description = description; |
| 20 | 72 | this.pluginClass = pluginClass; |
| 21 | 72 | this.weight = weight; |
| 22 | 72 | this.pluginConfig = pluginConfig; |
| 23 | } | |
| 24 | ||
| 25 | 4 |
public String getName() { |
| 26 | 4 | return name; |
| 27 | } | |
| 28 | ||
| 29 | 4 |
public String getDescription() { |
| 30 | 4 | return description; |
| 31 | } | |
| 32 | ||
| 33 | 2 |
public String getPluginClass() { |
| 34 | 2 | return pluginClass; |
| 35 | } | |
| 36 | ||
| 37 | 4 |
public int getWeight() { |
| 38 | 4 | return weight; |
| 39 | } | |
| 40 | ||
| 41 | 14 |
public Collection<PluginConfig> getPluginConfig() { |
| 42 | 14 | return pluginConfig; |
| 43 | } | |
| 44 | ||
| 45 | 14 |
public boolean isConfigurable() |
| 46 | { | |
| 47 | 14 | return pluginConfig != null && !pluginConfig.isEmpty(); |
| 48 | } | |
| 49 | } | |
|
||||||||||||