trait DateMatcherUtils extends Params
- Grouped
- Alphabetic
- By Inheritance
- DateMatcherUtils
- Params
- Serializable
- Serializable
- Identifiable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
$[T](param: Param[T]): T
- Attributes
- protected
- Definition Classes
- Params
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
amDefinition: Regex
- Attributes
- protected
-
val
anchorDateDay: Param[Int]
Add an anchor year for the relative dates such as a day after tomorrow.
Add an anchor year for the relative dates such as a day after tomorrow. The first day of the month has value 1 Example: 11 By default it will use the current day Default: -1
-
val
anchorDateMonth: Param[Int]
Add an anchor month for the relative dates such as a day after tomorrow.
Add an anchor month for the relative dates such as a day after tomorrow. Month value is 1-based. e.g., 1 for January. By default it will use the current month Default: -1
-
val
anchorDateYear: Param[Int]
Add an anchor year for the relative dates such as a day after tomorrow.
Add an anchor year for the relative dates such as a day after tomorrow. If not set it will use the current year. Example: 2021 By default it will use the current year Default: -1
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
calculateAnchorCalendar(): Calendar
- Attributes
- protected
-
final
def
clear(param: Param[_]): DateMatcherUtils.this.type
- Definition Classes
- Params
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
copyValues[T <: Params](to: T, extra: ParamMap): T
- Attributes
- protected
- Definition Classes
- Params
-
val
dateFormat: Param[String]
Annotator param containing expected output format of parsed date
-
final
def
defaultCopy[T <: Params](extra: ParamMap): T
- Attributes
- protected
- Definition Classes
- Params
- val defaultDayWhenMissing: IntParam
-
val
defaultMonthWhenMissing: Int
- Attributes
- protected
-
val
defaultYearWhenMissing: Int
- Attributes
- protected
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
explainParam(param: Param[_]): String
- Definition Classes
- Params
-
def
explainParams(): String
- Definition Classes
- Params
-
final
def
extractParamMap(): ParamMap
- Definition Classes
- Params
-
final
def
extractParamMap(extra: ParamMap): ParamMap
- Definition Classes
- Params
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formalDateContentParse(date: RuleMatch): MatchedDateTime
- Attributes
- protected
-
val
formalFactory: RuleFactory
Searches formal date by ordered rules Matching strategy is to find first match only, ignore additional matches from then Any 4 digit year will be assumed a year, any 2 digit year will be as part of XX Century e.g.
Searches formal date by ordered rules Matching strategy is to find first match only, ignore additional matches from then Any 4 digit year will be assumed a year, any 2 digit year will be as part of XX Century e.g. 1954
- Attributes
- protected
-
final
def
get[T](param: Param[T]): Option[T]
- Definition Classes
- Params
- def getAnchorDateDay: Int
- def getAnchorDateMonth: Int
- def getAnchorDateYear: Int
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
getDefault[T](param: Param[T]): Option[T]
- Definition Classes
- Params
- def getDefaultDayWhenMissing: Int
- def getFormat: String
-
final
def
getOrDefault[T](param: Param[T]): T
- Definition Classes
- Params
-
def
getParam(paramName: String): Param[Any]
- Definition Classes
- Params
- def getReadMonthFirst: Boolean
-
final
def
hasDefault[T](param: Param[T]): Boolean
- Definition Classes
- Params
-
def
hasParam(paramName: String): Boolean
- Definition Classes
- Params
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isDefined(param: Param[_]): Boolean
- Definition Classes
- Params
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
isSet(param: Param[_]): Boolean
- Definition Classes
- Params
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
lazy val
params: Array[Param[_]]
- Definition Classes
- Params
- val readMonthFirst: BooleanParam
-
def
relativeDateContentParse(date: RuleMatch): MatchedDateTime
- Attributes
- protected
- def relativeExactContentParse(possibleDate: RuleMatch): MatchedDateTime
-
val
relativeExactFactory: RuleFactory
Searches for exactly provided days of the week.
Searches for exactly provided days of the week. Always relative from current time at processing
- Attributes
- protected
-
val
relativeFactory: RuleFactory
extracts relative dates.
extracts relative dates. Strategy is to get only first match. Will always assume relative day from current time at processing ToDo: Support relative dates from input date
- Attributes
- protected
-
val
relaxedFactory: RuleFactory
Searches relaxed dates by ordered rules by more exhaustive to less Strategy used is to match first only.
Searches relaxed dates by ordered rules by more exhaustive to less Strategy used is to match first only. any other matches discarded Auto completes short versions of months. Any two digit year is considered to be XX century
- Attributes
- protected
-
final
def
set(paramPair: ParamPair[_]): DateMatcherUtils.this.type
- Attributes
- protected
- Definition Classes
- Params
-
final
def
set(param: String, value: Any): DateMatcherUtils.this.type
- Attributes
- protected
- Definition Classes
- Params
-
final
def
set[T](param: Param[T], value: T): DateMatcherUtils.this.type
- Definition Classes
- Params
- def setAnchorDateDay(value: Int): DateMatcherUtils.this.type
- def setAnchorDateMonth(value: Int): DateMatcherUtils.this.type
- def setAnchorDateYear(value: Int): DateMatcherUtils.this.type
-
final
def
setDefault(paramPairs: ParamPair[_]*): DateMatcherUtils.this.type
- Attributes
- protected
- Definition Classes
- Params
-
final
def
setDefault[T](param: Param[T], value: T): DateMatcherUtils.this.type
- Attributes
- protected
- Definition Classes
- Params
- def setDefaultDayWhenMissing(value: Int): DateMatcherUtils.this.type
- def setFormat(value: String): DateMatcherUtils.this.type
- def setReadMonthFirst(value: Boolean): DateMatcherUtils.this.type
-
val
shortMonths: Seq[String]
- Attributes
- protected
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
val
timeFactory: RuleFactory
Searches for times of the day dateTime If any dates found previously, keep it as part of the final result text target document
Searches for times of the day dateTime If any dates found previously, keep it as part of the final result text target document
- returns
a final possible date if any found
- Attributes
- protected
-
def
toString(): String
- Definition Classes
- Identifiable → AnyRef → Any
- def tomorrowYesterdayContentParse(date: RuleMatch): MatchedDateTime
-
val
tyFactory: RuleFactory
Searches for relative informal dates such as today or the day after tomorrow
Searches for relative informal dates such as today or the day after tomorrow
- Attributes
- protected
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()