FactSmartDateQuerySource class
Used to make smartDate queries that are based on fact data.
- Implemented types
Constructors
- FactSmartDateQuerySource(IFactSchema factSchema, IFactMetaDate metaDate, IFact fact, FlexiDate? resolvedFlexiDate, TZDateTime resolvedDate, IRef? contact, {String? smartDateQuery, String? selection})
- FactSmartDateQuerySource.ofMetaDate(IFactSchema factSchema, IFactMetaDate metaDate, IFact fact, IRef contact, {required TZDateTime resolvedDate, FlexiDate? resolvedFlexiDate, String? originalQuery, String? matchedTerm})
- FactSmartDateQuerySource.ofSchemaQuery(FactDateSchemaQuery schemaQuery, IRef? contact, {required TZDateTime resolvedDate, FlexiDate? resolvedFlexiDate})
Properties
- contact → IRef?
-
final
- fact → IFact?
-
final
- factSchema → IFactSchema
-
The query that will be sent to the smartDate service. May include interpolation to replace fact tokens with
actual date terms, eg. a week before her anniversary -> a week before 2007-03-10
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- metaDate → IFactMetaDate
-
final
- resolvedDate → TZDateTime
-
We found an actual date mapped to a search term, eg "birthday", "joined date", "wedding", "kid's birthday", etc
The final date may be a derivative of this date (before, after, etc).
final
- resolvedFlexiDate → FlexiDate?
-
We may have found an actual flexiDate as well.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selection → String?
-
If this query is completed and selected, this is what should show as the logical description of the date
final
- smartDateQuery → String?
-
The query we're sending to the smart date parser. This will probably be doctored to interpolate the resolved
date, since the smart date parser on the server doesn't understand
IFact
semanticsfinal
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toQueryResult(
ISmartDate result) → List< SmartDateQueryResult> -
override
-
toSingleQueryResult(
) → SmartDateQueryResult - Converts this query source immediately into a query result. This is for the case that we're not sending the date query to the nlp engine, but just want to use the resolved date completely.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited