|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| This report was generated with an evaluation server license. Purchase Clover or configure your license. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PluginConfig | Line # 10 | 10 | 0% | 6 | 0 | 100% |
1.0
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
| (18) | |||
| Result | |||
|
1.0
|
net.sourceforge.pebble.plugins.TestPluginLocator.testNoType
net.sourceforge.pebble.plugins.TestPluginLocator.testNoType
|
1 PASS | |
|
1.0
|
net.sourceforge.pebble.plugins.TestPluginLocator.testNoType
net.sourceforge.pebble.plugins.TestPluginLocator.testNoType
|
1 PASS | |
|
0.5
|
net.sourceforge.pebble.plugins.TestPluginLocator.testRequired
net.sourceforge.pebble.plugins.TestPluginLocator.testRequired
|
1 PASS | |
|
0.5
|
net.sourceforge.pebble.plugins.TestPluginLocator.testTextAreaType
net.sourceforge.pebble.plugins.TestPluginLocator.testTextAreaType
|
1 PASS | |
|
0.5
|
net.sourceforge.pebble.plugins.TestPluginLocator.testPasswordType
net.sourceforge.pebble.plugins.TestPluginLocator.testPasswordType
|
1 PASS | |
|
0.5
|
net.sourceforge.pebble.plugins.TestPluginLocator.testTextAreaType
net.sourceforge.pebble.plugins.TestPluginLocator.testTextAreaType
|
1 PASS | |
|
0.5
|
net.sourceforge.pebble.plugins.TestPluginLocator.testPasswordType
net.sourceforge.pebble.plugins.TestPluginLocator.testPasswordType
|
1 PASS | |
|
0.5
|
net.sourceforge.pebble.plugins.TestPluginLocator.testRequired
net.sourceforge.pebble.plugins.TestPluginLocator.testRequired
|
1 PASS | |
|
0.5
|
net.sourceforge.pebble.plugins.TestPluginLocator.testProperty
net.sourceforge.pebble.plugins.TestPluginLocator.testProperty
|
1 PASS | |
|
0.5
|
net.sourceforge.pebble.plugins.TestPluginLocator.testProperty
net.sourceforge.pebble.plugins.TestPluginLocator.testProperty
|
1 PASS | |
|
0.5
|
net.sourceforge.pebble.plugins.TestPluginLocator.testStringType
net.sourceforge.pebble.plugins.TestPluginLocator.testStringType
|
1 PASS | |
|
0.5
|
net.sourceforge.pebble.plugins.TestPluginLocator.testStringType
net.sourceforge.pebble.plugins.TestPluginLocator.testStringType
|
1 PASS | |
|
0.375
|
net.sourceforge.pebble.plugins.TestPluginLocator.testDescription
net.sourceforge.pebble.plugins.TestPluginLocator.testDescription
|
1 PASS | |
|
0.375
|
net.sourceforge.pebble.plugins.TestPluginLocator.testUnweighted
net.sourceforge.pebble.plugins.TestPluginLocator.testUnweighted
|
1 PASS | |
|
0.375
|
net.sourceforge.pebble.plugins.TestPluginLocator.testWeighted
net.sourceforge.pebble.plugins.TestPluginLocator.testWeighted
|
1 PASS | |
|
0.375
|
net.sourceforge.pebble.plugins.TestPluginLocator.testWeighted
net.sourceforge.pebble.plugins.TestPluginLocator.testWeighted
|
1 PASS | |
|
0.375
|
net.sourceforge.pebble.plugins.TestPluginLocator.testDescription
net.sourceforge.pebble.plugins.TestPluginLocator.testDescription
|
1 PASS | |
|
0.375
|
net.sourceforge.pebble.plugins.TestPluginLocator.testUnweighted
net.sourceforge.pebble.plugins.TestPluginLocator.testUnweighted
|
1 PASS | |
| 1 | package net.sourceforge.pebble.plugins; | |
| 2 | ||
| 3 | import java.util.Properties; | |
| 4 | ||
| 5 | /** | |
| 6 | * Represents a configuration item for a plugin | |
| 7 | * | |
| 8 | * @author James Roper | |
| 9 | */ | |
| 10 | public class PluginConfig { | |
| 11 | private final String key; | |
| 12 | private final String name; | |
| 13 | private final PluginConfigType type; | |
| 14 | private final boolean requried; | |
| 15 | private final Properties properties; | |
| 16 | ||
| 17 | 108 |
public PluginConfig(String key, String name, PluginConfigType type, boolean requried, Properties properties) { |
| 18 | 108 | this.key = key; |
| 19 | 108 | this.name = name; |
| 20 | 108 | this.type = type; |
| 21 | 108 | this.requried = requried; |
| 22 | 108 | this.properties = properties; |
| 23 | } | |
| 24 | ||
| 25 | 2 |
public String getKey() { |
| 26 | 2 | return key; |
| 27 | } | |
| 28 | ||
| 29 | 2 |
public String getName() { |
| 30 | 2 | return name; |
| 31 | } | |
| 32 | ||
| 33 | 8 |
public PluginConfigType getType() { |
| 34 | 8 | return type; |
| 35 | } | |
| 36 | ||
| 37 | 4 |
public boolean isRequried() { |
| 38 | 4 | return requried; |
| 39 | } | |
| 40 | ||
| 41 | 4 |
public Properties getProperties() { |
| 42 | 4 | return properties; |
| 43 | } | |
| 44 | } | |
|
||||||||||||