Package org.apache.juneau.objecttools
Class MatcherFactory
java.lang.Object
org.apache.juneau.objecttools.MatcherFactory
- Direct Known Subclasses:
NumberMatcherFactory
,StringMatcherFactory
,TimeMatcherFactory
Common interface for matchers used by the
ObjectSearcher
class.
See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
Returnstrue if this matcher can be used on the specified object.abstract AbstractMatcher
Instantiates a matcher for the specified pattern.
-
Constructor Details
-
MatcherFactory
public MatcherFactory()
-
-
Method Details
-
canMatch
Returnstrue if this matcher can be used on the specified object.- Parameters:
cm
- The class type of the object being matched. Nevernull .- Returns:
true if this matcher can be used on the specified object.
-
create
Instantiates a matcher for the specified pattern.- Parameters:
pattern
- The pattern string.- Returns:
- A matcher for the specified pattern.
-