public class DateTimePatternDetector extends Object
Constructor and Description |
---|
DateTimePatternDetector() |
Modifier and Type | Method and Description |
---|---|
DateTimePatternDetector |
addCommonPatterns() |
DateTimePatternDetector |
addPattern(DateTimePattern pattern) |
DateTimePatternDetector |
addPattern(String pattern) |
DateTimePatternDetector |
clearPatterns() |
Set<DateTimePattern> |
getPatterns() |
boolean |
isDebug()
Indicates if failing patterns should be logged (default false).
|
List<DateTimePatternMatch> |
matchAll(String value)
Returns all the patterns in this detector that successfully parsed the supplied value.
|
DateTimePatternMatch |
matchFirst(String value)
Returns the first pattern in this detector that successfully parsed the supplied value.
|
DateTimePatternDetector |
setDebug(boolean debug)
Indicates if failing patterns should be logged (default false).
|
public boolean isDebug()
public DateTimePatternDetector setDebug(boolean debug)
public Set<DateTimePattern> getPatterns()
public DateTimePatternDetector addCommonPatterns()
public DateTimePatternDetector addPattern(DateTimePattern pattern)
public DateTimePatternDetector clearPatterns()
public DateTimePatternDetector addPattern(String pattern)
public DateTimePatternMatch matchFirst(String value)
public List<DateTimePatternMatch> matchAll(String value)
Copyright (c) 2006-2024 North Concepts Inc. All Rights Reserved.