Package org.apache.juneau.objecttools
Class TimeMatcherFactory
java.lang.Object
org.apache.juneau.objecttools.MatcherFactory
org.apache.juneau.objecttools.TimeMatcherFactory
Date/time matcher factory for the
ObjectSearcher
class.
The class provides searching based on the following patterns:
"property=2011" - A single year"property=2011 2013 2015" - Multiple years"property=2011-01" - A single month"property=2011-01-01" - A single day"property=2011-01-01T12" - A single hour"property=2011-01-01T12:30" - A single minute"property=2011-01-01T12:30:45" - A single second"property=>2011" ,"property=>=2011" ,"property=<2011" ,"property=<=2011" - Open-ended ranges"property=>2011" ,"property=>=2011" ,"property=<2011" ,"property=<=2011" - Open-ended ranges"property=2011 - 2013-06-30" - Closed ranges
See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returnstrue if this matcher can be used on the specified object.Instantiates a matcher for the specified pattern.protected SimpleDateFormat[]
TODOprotected String[]
TODO
-
Field Details
-
DEFAULT
Default reusable matcher.
-
-
Constructor Details
-
TimeMatcherFactory
protected TimeMatcherFactory()Constructor.
-
-
Method Details
-
getTimestampFormats
TODO- Returns:
- TODO
-
getTimestampFormatStrings
TODO- Returns:
- TODO
-
canMatch
Description copied from class:MatcherFactory
Returnstrue if this matcher can be used on the specified object.- Specified by:
canMatch
in classMatcherFactory
- Parameters:
cm
- The class type of the object being matched. Nevernull .- Returns:
true if this matcher can be used on the specified object.
-
create
Description copied from class:MatcherFactory
Instantiates a matcher for the specified pattern.- Specified by:
create
in classMatcherFactory
- Parameters:
pattern
- The pattern string.- Returns:
- A matcher for the specified pattern.
-