-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spelling #299
Spelling #299
Changes from all commits
8c49ffe
30c75f0
6efb96c
2d7bc20
ffea280
4b2a69d
3214cdd
97910d9
2209138
0b063c6
f3fb05b
4355a00
dc78478
a517700
179e1ed
c4c382a
36dcccc
1b865fe
2b4d421
fc9ccf2
dcf59c7
9272738
9a8188b
d69faa9
3e14a64
17e1a66
be30a8a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -122,16 +122,27 @@ <h2 title="Class BooleanFunction" class="title">Class BooleanFunction</h2> | |
extends <a href="../../../../../com/api/jsonata4java/expressions/functions/FunctionBase.html" title="class in com.api.jsonata4java.expressions.functions">FunctionBase</a> | ||
implements <a href="../../../../../com/api/jsonata4java/expressions/functions/Function.html" title="interface in com.api.jsonata4java.expressions.functions">Function</a></pre> | ||
<div class="block">From http://docs.jsonata.org/boolean-functions.html | ||
|
||
$boolean(arg) | ||
|
||
Casts the argument to a Boolean using the following rules: | ||
|
||
Boolean: unchanged string: empty false string: non-empty true number: 0 false | ||
number: non-zero true null: false array: empty false array: contains a member | ||
that casts to true true array: all members cast to false false object: empty | ||
false object: non-empty true function: (functions are not currently | ||
supported) false</div> | ||
Comment on lines
-130
to
-134
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this absolutely was incomprehensible |
||
<p> | ||
$boolean(arg) | ||
</p> | ||
<table><caption>Casts the argument to a Boolean using the following rules</caption><thead> | ||
<tr><th>Argument type</th><th>Result</th></tr> | ||
</thead><tbody> | ||
<tr><td>Boolean</td><td>unchanged</td></tr> | ||
<tr><td>string: empty</td><td>false</td></tr> | ||
<tr><td>string: non-empty</td><td>true</td></tr> | ||
<tr><td>number: 0</td><td>false</td></tr> | ||
<tr><td>number: non-zero</td><td>true</td></tr> | ||
<tr><td>null</td><td>false</td></tr> | ||
<tr><td>array: empty</td><td>false</td></tr> | ||
<tr><td>array: contains a member that casts to true</td><td>true</td></tr> | ||
<tr><td>array: all members cast to false</td><td>false</td></tr> | ||
<tr><td>object: empty</td><td>false</td></tr> | ||
<tr><td>object: non-empty</td><td>true</td></tr> | ||
<tr><td>function: (functions are not currently supported)</td><td>false</td></tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</li> | ||
</ul> | ||
</div> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -152,7 +152,7 @@ <h3>Method Summary</h3> | |
<div class="block">See http://docs.jsonata.org/boolean-functions.html#booleanarg | ||
|
||
The convertJsonNodeToBoolean method converts the node passed in to a boolean | ||
based on the casting semnatics defined by JSONata.</div> | ||
based on the casting semantics defined by JSONata.</div> | ||
</td> | ||
</tr> | ||
</table> | ||
|
@@ -201,16 +201,32 @@ <h3>Method Detail</h3> | |
<li class="blockList"> | ||
<h4>convertJsonNodeToBoolean</h4> | ||
<pre>public static boolean convertJsonNodeToBoolean(com.fasterxml.jackson.databind.JsonNode node)</pre> | ||
<div class="block">See http://docs.jsonata.org/boolean-functions.html#booleanarg | ||
|
||
The convertJsonNodeToBoolean method converts the node passed in to a boolean | ||
based on the casting semnatics defined by JSONata. | ||
Comment on lines
-206
to
-207
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i'm not quite sure where this should go. Since it sorta fell in the middle of a block i'm consistently replacing... I kicked it below, but i'm not wed to that. |
||
|
||
Boolean: unchanged string: empty false string: non-empty true number: 0 false | ||
number: non-zero true null: false array: empty false array: contains a member | ||
that casts to true true array: all members cast to false false object: empty | ||
false object: non-empty true function: (functions are not currently | ||
supported) false</div> | ||
<div class="block">From http://docs.jsonata.org/boolean-functions.html | ||
<p> | ||
$boolean(arg) | ||
</p> | ||
<table><caption>Casts the argument to a Boolean using the following rules</caption><thead> | ||
<tr><th>Argument type</th><th>Result</th></tr> | ||
</thead><tbody> | ||
<tr><td>Boolean</td><td>unchanged</td></tr> | ||
<tr><td>string: empty</td><td>false</td></tr> | ||
<tr><td>string: non-empty</td><td>true</td></tr> | ||
<tr><td>number: 0</td><td>false</td></tr> | ||
<tr><td>number: non-zero</td><td>true</td></tr> | ||
<tr><td>null</td><td>false</td></tr> | ||
<tr><td>array: empty</td><td>false</td></tr> | ||
<tr><td>array: contains a member that casts to true</td><td>true</td></tr> | ||
<tr><td>array: all members cast to false</td><td>false</td></tr> | ||
<tr><td>object: empty</td><td>false</td></tr> | ||
<tr><td>object: non-empty</td><td>true</td></tr> | ||
<tr><td>function: (functions are not currently supported)</td><td>false</td></tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
|
||
The convertJsonNodeToBoolean method converts the node passed in to a boolean | ||
based on the casting semantics defined by JSONata. | ||
|
||
<dl> | ||
<dt><span class="paramLabel">Parameters:</span></dt> | ||
<dd><code>node</code> - The node to convert to a boolean</dd> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was more or less incomprehensible