Liking cljdoc? Tell your friends :D

com.yetanalytics.datasim.xapi.profile.template.rule

Apply statement template rules for generation

Apply statement template rules for generation
raw docstring

apply-rules-genclj

(apply-rules-gen partial-statement raw-rules & {:keys [seed]})

Given a partial statement and rules, attempt to make the statement satisfy the rules. Additional options like :seed help do this deterministically.

Given a partial statement and rules, attempt to make the statement satisfy
the rules. Additional options like :seed help do this deterministically.
sourceraw docstring

follows-rule?clj

(follows-rule? statement
               {:keys [location selector any all none presence] :as rule}
               &
               [matches])

simple predicate check for a rule being satisfied by a statement a la https://github.com/adlnet/xapi-profiles/blob/master/xapi-profiles-communication.md#21-statement-template-validation. You can pass in matches for efficiency's sake.

simple predicate check for a rule being satisfied by a statement
a la https://github.com/adlnet/xapi-profiles/blob/master/xapi-profiles-communication.md#21-statement-template-validation.
You can pass in matches for efficiency's sake.
sourceraw docstring

match-ruleclj

(match-rule statement {:keys [location selector] :as rule})

The matching logic from https://github.com/adlnet/xapi-profiles/blob/master/xapi-profiles-communication.md#21-statement-template-validation returns a tuple, a list of matched values from location, selector, containing the key ::unmatchable if a selector cannot be matched.

The matching logic from https://github.com/adlnet/xapi-profiles/blob/master/xapi-profiles-communication.md#21-statement-template-validation
returns a tuple, a list of matched values from location, selector, containing the key ::unmatchable if a selector cannot be matched.
sourceraw docstring

parse-ruleclj

source

parse-rule*clj

(parse-rule* {:keys [location selector] :as rule})

Parse paths in a rule

Parse paths in a rule
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close