net.sf.qualitytest.blueprint.strategy.matching
Class InterfaceOfTypeMatchingStrategy
java.lang.Object
net.sf.qualitytest.blueprint.strategy.matching.InterfaceOfTypeMatchingStrategy
- All Implemented Interfaces:
- MatchingStrategy
public class InterfaceOfTypeMatchingStrategy
- extends Object
- implements MatchingStrategy
Match a value based on its type or supertype.
This MatchingStrategy does never match by method.
- Author:
- Dominik Seichter
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InterfaceOfTypeMatchingStrategy
public InterfaceOfTypeMatchingStrategy(Class<?> clazz)
matchesByMethod
public boolean matchesByMethod(Method method)
- Description copied from interface:
MatchingStrategy
- Test if a method matches this strategy.
- Specified by:
matchesByMethod in interface MatchingStrategy
- Parameters:
method - A method
- Returns:
- true if the strategy matches and the
ValueCreationStrategy should be applied
matchesByType
public boolean matchesByType(Class<?> clazz)
- Description copied from interface:
MatchingStrategy
- Test if a type matches this strategy.
- Specified by:
matchesByType in interface MatchingStrategy
- Parameters:
clazz - a clazz type
- Returns:
- true if the strategy matches and the
ValueCreationStrategy should be applied
Copyright © 2012-2013. All Rights Reserved.