Home RuleExtensions Class
RuleExtensions Class
Cancel

RuleExtensions Class

Namespace: Json.Logic

Inheritance: RuleExtensions 🡒 object

Calls Json.Logic.Rule.Apply(System.Text.Json.Nodes.JsonNode,System.Text.Json.Nodes.JsonNode) with no data.

Methods

Apply(this Rule rule)

Calls Json.Logic.Rule.Apply(System.Text.Json.Nodes.JsonNode,System.Text.Json.Nodes.JsonNode) with no data.

Declaration

1
public static JsonNode Apply(this Rule rule)
ParameterTypeDescription
ruleRuleThe rule.

Returns

The result.

GetCondition(this IfRule rule)

Gets the rule that returns the condition.

Declaration

1
public static Rule GetCondition(this IfRule rule)
ParameterTypeDescription
ruleIfRuleThe rule

Returns

A rule.

GetCount(this SubstrRule rule)

Gets the rule that returns the character count.

Declaration

1
public static Rule GetCount(this SubstrRule rule)
ParameterTypeDescription
ruleSubstrRuleThe rule

Returns

A rule.

GetDefault(this VariableRule rule)

Gets the rule that returns the default value.

Declaration

1
public static Rule GetDefault(this VariableRule rule)
ParameterTypeDescription
ruleVariableRuleThe rule

Returns

A rule.

GetDividend(this DivideRule rule)

Gets the rule that returns the dividend.

Declaration

1
public static Rule GetDividend(this DivideRule rule)
ParameterTypeDescription
ruleDivideRuleThe rule

Returns

A rule.

GetDividend(this ModRule rule)

Gets the rule that returns the dividend.

Declaration

1
public static Rule GetDividend(this ModRule rule)
ParameterTypeDescription
ruleModRuleThe rule

Returns

A rule.

GetDivisor(this DivideRule rule)

Gets the rule that returns the divisor.

Declaration

1
public static Rule GetDivisor(this DivideRule rule)
ParameterTypeDescription
ruleDivideRuleThe rule

Returns

A rule.

GetDivisor(this ModRule rule)

Gets the rule that returns the divisor.

Declaration

1
public static Rule GetDivisor(this ModRule rule)
ParameterTypeDescription
ruleModRuleThe rule

Returns

A rule.

GetElse(this IfRule rule)

Gets the rule that returns the else requirement.

Declaration

1
public static Rule GetElse(this IfRule rule)
ParameterTypeDescription
ruleIfRuleThe rule

Returns

A rule.

GetInitial(this ReduceRule rule)

Gets the rule that returns the initial value.

Declaration

1
public static Rule GetInitial(this ReduceRule rule)
ParameterTypeDescription
ruleReduceRuleThe rule

Returns

A rule.

GetInput(this AllRule rule)

Gets the rule that returns the input.

Declaration

1
public static Rule GetInput(this AllRule rule)
ParameterTypeDescription
ruleAllRuleThe rule

Returns

A rule.

GetInput(this FilterRule rule)

Gets the rule that returns the input.

Declaration

1
public static Rule GetInput(this FilterRule rule)
ParameterTypeDescription
ruleFilterRuleThe rule

Returns

A rule.

GetInput(this MapRule rule)

Gets the rule that returns the input.

Declaration

1
public static Rule GetInput(this MapRule rule)
ParameterTypeDescription
ruleMapRuleThe rule

Returns

A rule.

GetInput(this NoneRule rule)

Gets the rule that returns the input.

Declaration

1
public static Rule GetInput(this NoneRule rule)
ParameterTypeDescription
ruleNoneRuleThe rule

Returns

A rule.

GetInput(this ReduceRule rule)

Gets the rule that returns the input.

Declaration

1
public static Rule GetInput(this ReduceRule rule)
ParameterTypeDescription
ruleReduceRuleThe rule

Returns

A rule.

GetInput(this SomeRule rule)

Gets the rule that returns the input.

Declaration

1
public static Rule GetInput(this SomeRule rule)
ParameterTypeDescription
ruleSomeRuleThe rule

Returns

A rule.

GetInput(this SubstrRule rule)

Gets the rule that returns the input.

Declaration

1
public static Rule GetInput(this SubstrRule rule)
ParameterTypeDescription
ruleSubstrRuleThe rule

Returns

A rule.

GetItems(this AddRule rule)

Gets the collection of items within the rule.

Declaration

1
public static IEnumerable<Rule> GetItems(this AddRule rule)
ParameterTypeDescription
ruleAddRuleThe rule

Returns

The collection of rules.

GetItems(this AndRule rule)

Gets the collection of items within the rule.

Declaration

1
public static IEnumerable<Rule> GetItems(this AndRule rule)
ParameterTypeDescription
ruleAndRuleThe rule

Returns

The collection of items.

GetItems(this CatRule rule)

Gets the collection of items within the rule.

Declaration

1
public static IEnumerable<Rule> GetItems(this CatRule rule)
ParameterTypeDescription
ruleCatRuleThe rule

Returns

The collection of rules.

GetItems(this MaxRule rule)

Gets the collection of items within the rule.

Declaration

1
public static IEnumerable<Rule> GetItems(this MaxRule rule)
ParameterTypeDescription
ruleMaxRuleThe rule

Returns

The collection of rules.

GetItems(this MergeRule rule)

Gets the collection of items within the rule.

Declaration

1
public static IEnumerable<Rule> GetItems(this MergeRule rule)
ParameterTypeDescription
ruleMergeRuleThe rule

Returns

The collection of rules.

GetItems(this MinRule rule)

Gets the collection of items within the rule.

Declaration

1
public static IEnumerable<Rule> GetItems(this MinRule rule)
ParameterTypeDescription
ruleMinRuleThe rule

Returns

The collection of rules.

GetItems(this MissingRule rule)

Gets the collection of items within the rule.

Declaration

1
public static IEnumerable<Rule> GetItems(this MissingRule rule)
ParameterTypeDescription
ruleMissingRuleThe rule

Returns

The collection of rules.

GetItems(this MissingSomeRule rule)

Gets the rule that returns the items collection.

Declaration

1
public static Rule GetItems(this MissingSomeRule rule)
ParameterTypeDescription
ruleMissingSomeRuleThe rule

Returns

A rule.

GetItems(this MultiplyRule rule)

Gets the collection of items within the rule.

Declaration

1
public static IEnumerable<Rule> GetItems(this MultiplyRule rule)
ParameterTypeDescription
ruleMultiplyRuleThe rule

Returns

The collection of rules.

GetItems(this OrRule rule)

Gets the collection of items within the rule.

Declaration

1
public static IEnumerable<Rule> GetItems(this OrRule rule)
ParameterTypeDescription
ruleOrRuleThe rule

Returns

The collection of rules.

GetItems(this RuleCollection rule)

Gets the collection of items within the rule.

Declaration

1
public static IEnumerable<Rule> GetItems(this RuleCollection rule)
ParameterTypeDescription
ruleRuleCollectionThe rule

Returns

The collection of rules.

GetItems(this SubtractRule rule)

Gets the collection of items within the rule.

Declaration

1
public static IEnumerable<Rule> GetItems(this SubtractRule rule)
ParameterTypeDescription
ruleSubtractRuleThe rule

Returns

The collection of rules.

GetLeft(this LessThanEqualRule rule)

Gets the rule that returns the left operand.

Declaration

1
public static Rule GetLeft(this LessThanEqualRule rule)
ParameterTypeDescription
ruleLessThanEqualRuleThe rule

Returns

A rule.

GetLeft(this LessThanRule rule)

Gets the rule that returns the left operand.

Declaration

1
public static Rule GetLeft(this LessThanRule rule)
ParameterTypeDescription
ruleLessThanRuleThe rule

Returns

A rule.

GetLeft(this LooseEqualsRule rule)

Gets the rule that returns the left operand.

Declaration

1
public static Rule GetLeft(this LooseEqualsRule rule)
ParameterTypeDescription
ruleLooseEqualsRuleThe rule

Returns

A rule.

GetLeft(this LooseNotEqualsRule rule)

Gets the rule that returns the left operand.

Declaration

1
public static Rule GetLeft(this LooseNotEqualsRule rule)
ParameterTypeDescription
ruleLooseNotEqualsRuleThe rule

Returns

A rule.

GetLeft(this MoreThanEqualRule rule)

Gets the rule that returns the left operand.

Declaration

1
public static Rule GetLeft(this MoreThanEqualRule rule)
ParameterTypeDescription
ruleMoreThanEqualRuleThe rule

Returns

A rule.

GetLeft(this MoreThanRule rule)

Gets the rule that returns the left operand.

Declaration

1
public static Rule GetLeft(this MoreThanRule rule)
ParameterTypeDescription
ruleMoreThanRuleThe rule

Returns

A rule.

GetLeft(this StrictEqualsRule rule)

Gets the rule that returns the left operand.

Declaration

1
public static Rule GetLeft(this StrictEqualsRule rule)
ParameterTypeDescription
ruleStrictEqualsRuleThe rule

Returns

A rule.

GetLeft(this StrictNotEqualsRule rule)

Gets the rule that returns the left operand.

Declaration

1
public static Rule GetLeft(this StrictNotEqualsRule rule)
ParameterTypeDescription
ruleStrictNotEqualsRuleThe rule

Returns

A rule.

GetMiddle(this LessThanEqualRule rule)

Gets the rule that returns the middle operand, if there is one.

Declaration

1
public static Rule GetMiddle(this LessThanEqualRule rule)
ParameterTypeDescription
ruleLessThanEqualRuleThe rule

Returns

A rule.

GetMiddle(this LessThanRule rule)

Gets the rule that returns the middle operand, if there is one.

Declaration

1
public static Rule GetMiddle(this LessThanRule rule)
ParameterTypeDescription
ruleLessThanRuleThe rule

Returns

A rule.

GetPath(this VariableRule rule)

Gets the rule that returns the path.

Declaration

1
public static Rule GetPath(this VariableRule rule)
ParameterTypeDescription
ruleVariableRuleThe rule

Returns

A rule.

GetRequiredCount(this MissingSomeRule rule)

Gets the rule that returns the required count.

Declaration

1
public static Rule GetRequiredCount(this MissingSomeRule rule)
ParameterTypeDescription
ruleMissingSomeRuleThe rule

Returns

A rule.

GetRight(this LessThanEqualRule rule)

Gets the rule that returns the right operand.

Declaration

1
public static Rule GetRight(this LessThanEqualRule rule)
ParameterTypeDescription
ruleLessThanEqualRuleThe rule

Returns

A rule.

GetRight(this LessThanRule rule)

Gets the rule that returns the right operand.

Declaration

1
public static Rule GetRight(this LessThanRule rule)
ParameterTypeDescription
ruleLessThanRuleThe rule

Returns

A rule.

GetRight(this LooseEqualsRule rule)

Gets the rule that returns the right operand.

Declaration

1
public static Rule GetRight(this LooseEqualsRule rule)
ParameterTypeDescription
ruleLooseEqualsRuleThe rule

Returns

A rule.

GetRight(this LooseNotEqualsRule rule)

Gets the rule that returns the right operand.

Declaration

1
public static Rule GetRight(this LooseNotEqualsRule rule)
ParameterTypeDescription
ruleLooseNotEqualsRuleThe rule

Returns

A rule.

GetRight(this MoreThanEqualRule rule)

Gets the rule that returns the right operand.

Declaration

1
public static Rule GetRight(this MoreThanEqualRule rule)
ParameterTypeDescription
ruleMoreThanEqualRuleThe rule

Returns

A rule.

GetRight(this MoreThanRule rule)

Gets the rule that returns the right operand.

Declaration

1
public static Rule GetRight(this MoreThanRule rule)
ParameterTypeDescription
ruleMoreThanRuleThe rule

Returns

A rule.

GetRight(this StrictEqualsRule rule)

Gets the rule that returns the right operand.

Declaration

1
public static Rule GetRight(this StrictEqualsRule rule)
ParameterTypeDescription
ruleStrictEqualsRuleThe rule

Returns

A rule.

GetRight(this StrictNotEqualsRule rule)

Gets the rule that returns the right operand.

Declaration

1
public static Rule GetRight(this StrictNotEqualsRule rule)
ParameterTypeDescription
ruleStrictNotEqualsRuleThe rule

Returns

A rule.

GetRule(this AllRule rule)

Gets the rule that the items in the input should follow.

Declaration

1
public static Rule GetRule(this AllRule rule)
ParameterTypeDescription
ruleAllRuleThe rule

Returns

A rule.

GetRule(this FilterRule rule)

Gets the rule that the items in the input should follow.

Declaration

1
public static Rule GetRule(this FilterRule rule)
ParameterTypeDescription
ruleFilterRuleThe rule

Returns

A rule.

GetRule(this MapRule rule)

Gets the rule to process the items in the input.

Declaration

1
public static Rule GetRule(this MapRule rule)
ParameterTypeDescription
ruleMapRuleThe rule

Returns

A rule.

GetRule(this NoneRule rule)

Gets the rule that the items in the input should not follow.

Declaration

1
public static Rule GetRule(this NoneRule rule)
ParameterTypeDescription
ruleNoneRuleThe rule

Returns

A rule.

GetRule(this ReduceRule rule)

Gets the rule to process the items in the input.

Declaration

1
public static Rule GetRule(this ReduceRule rule)
ParameterTypeDescription
ruleReduceRuleThe rule

Returns

A rule.

GetRule(this SomeRule rule)

Gets the rule that the items in the input should follow.

Declaration

1
public static Rule GetRule(this SomeRule rule)
ParameterTypeDescription
ruleSomeRuleThe rule

Returns

A rule.

GetStart(this SubstrRule rule)

Gets the rule that returns the start index.

Declaration

1
public static Rule GetStart(this SubstrRule rule)
ParameterTypeDescription
ruleSubstrRuleThe rule

Returns

A rule.

GetTest(this InRule rule)

Gets the rule that returns the test.

Declaration

1
public static Rule GetTest(this InRule rule)
ParameterTypeDescription
ruleInRuleThe rule

Returns

A rule.

GetThen(this IfRule rule)

Gets the rule that returns the then requirement.

Declaration

1
public static Rule GetThen(this IfRule rule)
ParameterTypeDescription
ruleIfRuleThe rule

Returns

A rule.

GetValue(this BooleanCastRule rule)

Gets the rule that returns the value.

Declaration

1
public static Rule GetValue(this BooleanCastRule rule)
ParameterTypeDescription
ruleBooleanCastRuleThe rule

Returns

A rule.

GetValue(this InRule rule)

Gets the rule that returns the value.

Declaration

1
public static Rule GetValue(this InRule rule)
ParameterTypeDescription
ruleInRuleThe rule

Returns

A rule.

GetValue(this LiteralRule rule)

Gets the rule that returns the value.

Declaration

1
public static Rule GetValue(this LiteralRule rule)
ParameterTypeDescription
ruleLiteralRuleThe rule

Returns

A rule.

GetValue(this LogRule rule)

Gets the rule that returns the log entry.

Declaration

1
public static Rule GetValue(this LogRule rule)
ParameterTypeDescription
ruleLogRuleThe rule

Returns

A rule.

GetValue(this NotRule rule)

Gets the rule that returns the value.

Declaration

1
public static Rule GetValue(this NotRule rule)
ParameterTypeDescription
ruleNotRuleThe rule

Returns

A rule.

Contents