|
|||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| NameInvocationStrategy.java | - | 100% | 100% | 100% |
|
||||||||||||||
| 1 | package net.sf.crispy.strategy; | |
| 2 | ||
| 3 | import java.util.Map; | |
| 4 | ||
| 5 | import net.sf.crispy.InvocationStrategy; | |
| 6 | ||
| 7 | /** | |
| 8 | * Return the Interface-Name. | |
| 9 | * | |
| 10 | * @author Linke | |
| 11 | * | |
| 12 | */ | |
| 13 | public class NameInvocationStrategy implements InvocationStrategy { | |
| 14 | ||
| 15 | private String interfaceName = null; | |
| 16 | ||
| 17 | 143 | public NameInvocationStrategy(String pvInterfaceName) { |
| 18 | 143 | interfaceName = pvInterfaceName; |
| 19 | } | |
| 20 | ||
| 21 | 136 | public Object convert(Map pvPropertyMap) { |
| 22 | 136 | return interfaceName; |
| 23 | } | |
| 24 | ||
| 25 | } |
|
||||||||||