Skip to content

Commit

Permalink
documentation updates
Browse files Browse the repository at this point in the history
  • Loading branch information
JE Bailey committed Aug 8, 2018
1 parent 5e75c95 commit 1ee5bd1
Show file tree
Hide file tree
Showing 5 changed files with 146 additions and 148 deletions.
46 changes: 24 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,28 +29,30 @@

### Operators

| Name | Comparison Type | Description |
| --------- | --------------- | -------------------------------- |
| and | NA | Logical AND |
| && | NA | Logical AND |
| or | NA | Logical OR |
|||| NA | Logical OR |
| == | String | Equal operator for Strings |
| < | Number | Less than operator for Numbers |
| <= | Number | Less than or equal operator for Numbers |
| > | Number | Greater than operator for Numbers |
| >= | Number | Greater than or equal operator for Numbers |
| != | String | Is not equal to for Strings |
| less than | Number | less than operator for Numbers |
| greater than| Number | greater than operator for Numbers |
| is | String | Equal operator for Strings |
| is not | String | Is not equal operator for Strings |
| like | String - Regex | Regex match against String |
| like not | String - Regex | Regex match against String |
| contains | String[] &#124; String[] | String[] contains all of items |
| contains not | String[] | String[] does not contain all of the items |
| contains any | String[] | String[] contains at least one of items |
| contains not any | String[] | String[] does not contain any of the items |
| Name | Comparison Type | Description |
| --------- | --------------- | -------------------------------- |
| and | NA | Logical AND |
| && | NA | Logical AND |
| or | NA | Logical OR |
|&#124;&#124; | NA | Logical OR |
| == | String | Equal operator for Strings |
| < | Number | Less than operator for Numbers |
| <= | Number | Less than or equal operator for Numbers |
| > | Number | Greater than operator for Numbers |
| >= | Number | Greater than or equal operator for Numbers |
| != | String | Is not equal to for Strings |
| ~= | String - Regex | Regex match against String |
| less than | Number | less than operator for Numbers |
| greater than | Number | greater than operator for Numbers |
| is | String | Equal operator for Strings |
| is not | String | Is not equal operator for Strings |
| like | String - Regex | Regex match against String |
| is like | String - Regex | Regex match against String |
| not like | String - Regex | Regex does not match String |
| contains | String[] | String[] contains all of items |
| contains not | String[] | String[] does not contain all of the items |
| contains any | String[] | String[] contains at least one of items |
| contains not any | String[] | String[] does not contain any of the items |
### Logical Operators
The 'and' and 'or' operators are logical operators that string together conditions. 'And' operators take precedence. 'Or' operators evaluate from left to right

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
package org.apache.sling.resource.filter;

/**
* Used to wrap internally generated Parser exceptions when a malformed scipt is
* provided
* Used to wrap internally generated Parser exceptions when a malformed script
* is provided
*
*
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public interface FilterParserConstants {
"\"contains not\"",
"\"contains any\"",
"\"contains not any\"",
"\"in\"",
"<IN>",
"\"not in\"",
"\"$\"",
"<FUNCTION_NAME>",
Expand Down
Loading

0 comments on commit 1ee5bd1

Please sign in to comment.