Versions in this module Expand all Collapse all v1 v1.0.0 Jul 18, 2023 Changes in this version + const JSON + const Unix + const XSD + var GoTimeFormatTerm = ls.NewTerm(ls.LS, "goTimeFormat", "ls:goTimeFormat").SetComposition(ls.SetComposition).Register() + var JSONBooleanTerm = ...() + var JSONDateTerm = ...() + var JSONDateTimeTerm = ...() + var JSONInteger = ...() + var JSONNumber = ...() + var JSONTimeTerm = ...() + var MeasureTerm = ...() + var MeasureUnitDomainTerm = ls.NewTerm(ls.LS, "measure/unitDomain").SetComposition(ls.OverrideComposition).Register() + var MeasureUnitExpr = ls.NewTerm(ls.LS, "measure/unitExpr").SetComposition(ls.OverrideComposition).SetMetadata(ls.CompileOCSemantics{}).Register() + var MeasureUnitNode = ls.NewTerm(ls.LS, "measure/unitNode").SetComposition(ls.OverrideComposition).Register() + var MeasureUnitTerm = ls.NewTerm(ls.LS, "measure/unit").SetComposition(ls.OverrideComposition).Register() + var MeasureUseUnitTerm = ls.NewTerm(ls.LS, "measure/useUnit").SetComposition(ls.OverrideComposition).Register() + var MeasureValueNode = ls.NewTerm(ls.LS, "measure/valueNode").SetComposition(ls.OverrideComposition).Register() + var MeasureValueNodeExpr = ls.NewTerm(ls.LS, "measure/valueNodeExpr").SetComposition(ls.OverrideComposition).SetMetadata(ls.CompileOCSemantics{}).Register() + var MeasureValueTerm = ls.NewTerm(ls.LS, "measure/value").SetComposition(ls.OverrideComposition).Register() + var MomentTimeFormatTerm = ls.NewTerm(ls.LS, "momentTimeFormat", "ls:momentTimeFormat").SetComposition(ls.SetComposition).Register() + var PatternDateTerm = ...() + var PatternDateTimeTerm = ...() + var PatternTimeTerm = ...() + var UnixTimeNanoTerm = ...() + var UnixTimeTerm = ...() + var XMLBooleanTerm = ...() + var XSDByte = ...() + var XSDDateTerm = ...() + var XSDDateTimeTerm = ...() + var XSDDecimal = ...() + var XSDGDayTerm = ...() + var XSDGMonthDayTerm = ...() + var XSDGMonthTerm = ...() + var XSDGYearMonthTerm = ...() + var XSDGYearTerm = ...() + var XSDInt = ...() + var XSDLong = ...() + var XSDNegativeInteger = ...() + var XSDNonNegativeInteger = ...() + var XSDNonPositiverInteger = ...() + var XSDPositiveInteger = ...() + var XSDShort = ...() + var XSDTimeTerm = ...() + var XSDUnsignedByte = ...() + var XSDUnsignedInt = ...() + var XSDUnsignedLong = ...() + var XSDUnsignedShort = ...() + func BuildMeasureNodes(ctx *ls.Context, builder ls.GraphBuilder, measureSchemaNode *lpg.Node) error + func BuildMeasureNodesForLayer(ctx *ls.Context, bldr ls.GraphBuilder, layer *ls.Layer) error + func SetMeasureService(ctx *ls.Context, svc MeasureService) + func SetMeasureValue(ctx *ls.Context, svc MeasureService, measureNode, schemaNode *lpg.Node, ...) error + func ToGomentTime(time time.Time) (*goment.Goment, error) + type Date struct + Day int + Location *time.Location + Month int + Year int + func NewDate(t time.Time) Date + func (d Date) String() string + func (d Date) ToTime() time.Time + type DateTime struct + Day int + Hour int64 + Location *time.Location + Milliseconds int64 + Minute int64 + Month int + Nanoseconds int64 + Seconds int64 + Year int + func NewDateTime(t time.Time) DateTime + func (dt DateTime) String() string + func (dt DateTime) ToTime() time.Time + type DecimalParser struct + func (DecimalParser) GetNativeValue(value string, node *lpg.Node) (interface{}, error) + func (parser DecimalParser) FormatNativeValue(newValue, oldValue interface{}, node *lpg.Node) (string, error) + type ErrCannotParseTemporalValue string + func (e ErrCannotParseTemporalValue) Error() string + type ErrIncompatibleTypes struct + func (e ErrIncompatibleTypes) Error() string + type ErrMeasureProcessing struct + ID string + Msg string + func (e ErrMeasureProcessing) Error() string + type ErrMultipleNodesMatch struct + Src string + func (e ErrMultipleNodesMatch) Error() string + type ErrNotAMeasure struct + Value string + func (e ErrNotAMeasure) Error() string + type ErrOverflow struct + NodeID string + Type string + Value interface{} + func (o ErrOverflow) Error() string + type GDay int + func (g GDay) String() string + type GMonth int + func (g GMonth) String() string + type GMonthDay struct + Day int + Month int + func (g GMonthDay) String() string + type GYear int + func (g GYear) String() string + type GYearMonth struct + Month int + Year int + func (g GYearMonth) String() string + type JSONBooleanParser struct + func (JSONBooleanParser) FormatNativeValue(newValue, oldValue interface{}, node *lpg.Node) (string, error) + func (JSONBooleanParser) GetNativeValue(value string, node *lpg.Node) (interface{}, error) + type JSONDateParser struct + func (JSONDateParser) GetNativeValue(value string, node *lpg.Node) (interface{}, error) + func (parser JSONDateParser) FormatNativeValue(newValue, oldValue interface{}, node *lpg.Node) (string, error) + type JSONDateTimeParser struct + func (JSONDateTimeParser) GetNativeValue(value string, node *lpg.Node) (interface{}, error) + func (parser JSONDateTimeParser) FormatNativeValue(newValue, oldValue interface{}, node *lpg.Node) (string, error) + type JSONNumberParser struct + func (JSONNumberParser) GetNativeValue(value string, node *lpg.Node) (interface{}, error) + func (parser JSONNumberParser) FormatNativeValue(newValue, oldValue interface{}, node *lpg.Node) (string, error) + type JSONTimeParser struct + func (JSONTimeParser) GetNativeValue(value string, node *lpg.Node) (interface{}, error) + func (parser JSONTimeParser) FormatNativeValue(newValue, oldValue interface{}, node *lpg.Node) (string, error) + type Measure struct + Unit string + Value string + func ParseMeasure(in string) (Measure, error) + func (m Measure) String() string + type MeasureService interface + Convert func(measure Measure, targetUnit string, domain string) (Measure, error) + Parse func(string) (Measure, error) + func GetMeasureService(ctx *ls.Context) MeasureService + type PatternDateParser struct + func (PatternDateParser) GetNativeValue(value string, node *lpg.Node) (interface{}, error) + func (parser PatternDateParser) FormatNativeValue(newValue, oldValue interface{}, node *lpg.Node) (string, error) + type PatternDateTimeParser struct + func (PatternDateTimeParser) GetNativeValue(value string, node *lpg.Node) (interface{}, error) + func (parser PatternDateTimeParser) FormatNativeValue(newValue, oldValue interface{}, node *lpg.Node) (string, error) + type PatternTimeParser struct + func (PatternTimeParser) GetNativeValue(value string, node *lpg.Node) (interface{}, error) + func (parser PatternTimeParser) FormatNativeValue(newValue, oldValue interface{}, node *lpg.Node) (string, error) + type SignedIntParser struct + func (SignedIntParser[T]) GetNativeValue(value string, node *lpg.Node) (interface{}, error) + func (parser SignedIntParser[T]) FormatNativeValue(newValue, oldValue interface{}, node *lpg.Node) (string, error) + type TimeOfDay struct + Hour int64 + Location *time.Location + Milliseconds int64 + Minute int64 + Nanoseconds int64 + Seconds int64 + func NewTimeOfDay(t time.Time) TimeOfDay + func (t TimeOfDay) String() string + func (t TimeOfDay) ToTime() time.Time + type UnixTime struct + Location *time.Location + Seconds int64 + func (u UnixTime) String() string + func (u UnixTime) ToTime() time.Time + type UnixTimeNano struct + Location *time.Location + Nanoseconds int64 + func (u UnixTimeNano) String() string + func (u UnixTimeNano) ToTime() time.Time + type UnixTimeNanoParser struct + func (UnixTimeNanoParser) GetNativeValue(value string, node *lpg.Node) (interface{}, error) + func (parser UnixTimeNanoParser) FormatNativeValue(newValue, oldValue interface{}, node *lpg.Node) (string, error) + type UnixTimeParser struct + func (UnixTimeParser) GetNativeValue(value string, node *lpg.Node) (interface{}, error) + func (parser UnixTimeParser) FormatNativeValue(newValue, oldValue interface{}, node *lpg.Node) (string, error) + type UnsignedIntParser struct + func (UnsignedIntParser[T]) GetNativeValue(value string, node *lpg.Node) (interface{}, error) + func (parser UnsignedIntParser[T]) FormatNativeValue(newValue, oldValue interface{}, node *lpg.Node) (string, error) + type XMLBooleanParser struct + func (XMLBooleanParser) FormatNativeValue(newValue, oldValue interface{}, node *lpg.Node) (string, error) + func (XMLBooleanParser) GetNativeValue(value string, node *lpg.Node) (interface{}, error) + type XSDDateParser struct + func (XSDDateParser) GetNativeValue(value string, node *lpg.Node) (interface{}, error) + func (parser XSDDateParser) FormatNativeValue(newValue, oldValue interface{}, node *lpg.Node) (string, error) + type XSDDateTimeParser struct + func (XSDDateTimeParser) GetNativeValue(value string, node *lpg.Node) (interface{}, error) + func (parser XSDDateTimeParser) FormatNativeValue(newValue, oldValue interface{}, node *lpg.Node) (string, error) + type XSDGDayParser struct + func (XSDGDayParser) GetNativeValue(value string, node *lpg.Node) (interface{}, error) + func (parser XSDGDayParser) FormatNativeValue(newValue, oldValue interface{}, node *lpg.Node) (string, error) + type XSDGMonthDayParser struct + func (XSDGMonthDayParser) GetNativeValue(value string, node *lpg.Node) (interface{}, error) + func (parser XSDGMonthDayParser) FormatNativeValue(newValue, oldValue interface{}, node *lpg.Node) (string, error) + type XSDGMonthParser struct + func (XSDGMonthParser) GetNativeValue(value string, node *lpg.Node) (interface{}, error) + func (parser XSDGMonthParser) FormatNativeValue(newValue, oldValue interface{}, node *lpg.Node) (string, error) + type XSDGYearMonthParser struct + func (XSDGYearMonthParser) GetNativeValue(value string, node *lpg.Node) (interface{}, error) + func (parser XSDGYearMonthParser) FormatNativeValue(newValue, oldValue interface{}, node *lpg.Node) (string, error) + type XSDGYearParser struct + func (XSDGYearParser) GetNativeValue(value string, node *lpg.Node) (interface{}, error) + func (parser XSDGYearParser) FormatNativeValue(newValue, oldValue interface{}, node *lpg.Node) (string, error) + type XSDTimeParser struct + func (XSDTimeParser) GetNativeValue(value string, node *lpg.Node) (interface{}, error) + func (parser XSDTimeParser) FormatNativeValue(newValue, oldValue interface{}, node *lpg.Node) (string, error) v1.0.0-beta9 Apr 8, 2022 v1.0.0-beta8 Mar 10, 2022 v1.0.0-beta22 Feb 9, 2023 v1.0.0-beta21 Feb 8, 2023 v1.0.0-beta20 Jan 17, 2023 v1.0.0-beta19 Dec 16, 2022 v1.0.0-beta17 Oct 20, 2022 v1.0.0-beta16 Sep 15, 2022 v1.0.0-beta15 Jun 30, 2022 v1.0.0-beta14 May 11, 2022 v1.0.0-beta13 May 9, 2022 v1.0.0-beta12 Apr 25, 2022 v1.0.0-beta11 Apr 14, 2022 v1.0.0-beta10 Apr 12, 2022 v1.0.0-beta-18 Nov 8, 2022