SelectionCriterion methods syntax: Difference between revisions
m (Automatically generated page update) |
m (Automatically generated page update) |
||
Line 2: | Line 2: | ||
replaced, so any manual edits will be lost. You've been warned. --> | replaced, so any manual edits will be lost. You've been warned. --> | ||
{{Template:Syntax list header|class=SelectionCriterion}} | {{Template:Syntax list header|class=SelectionCriterion}} | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top:1px solid;"><span class="term">%selectionCriterion</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(SelectionCriterion For </span><span class="term">itemType</span><span class="literal">)</span><span class="squareb">]</span><span class="literal"> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top:1px solid;"><span class="term">%selectionCriterion</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(SelectionCriterion For </span><span class="term">itemType</span><span class="literal">):</span><span class="squareb">]</span><span class="literal">[[And (SelectionCriterion function)|And]]</span><span class="literal">(</span> <span class="term" title="List">list</span><span class="literal">)</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%selectionCriterion</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(SelectionCriterion For </span><span class="term">itemType</span><span class="literal">)</span><span class="squareb">]</span><span class="literal"> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%selectionCriterion</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(SelectionCriterion For </span><span class="term">itemType</span><span class="literal">):</span><span class="squareb">]</span><span class="literal">[[Eq (SelectionCriterion function)|Eq]]</span><span class="literal">(</span> <span class="term" title="ItemFunctionEnum">itemFunctionEnum</span><span class="comma">,</span> - | ||
<span class="term" title="Result">result</span><span class="literal">)</span></p> | <span class="term" title="Result">result</span><span class="literal">)</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%selectionCriterion</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(SelectionCriterion For </span><span class="term">itemType</span><span class="literal">)</span><span class="squareb">]</span><span class="literal"> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%selectionCriterion</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(SelectionCriterion For </span><span class="term">itemType</span><span class="literal">):</span><span class="squareb">]</span><span class="literal">[[False (SelectionCriterion function)|False]]</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%selectionCriterion</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(SelectionCriterion For </span><span class="term">itemType</span><span class="literal">)</span><span class="squareb">]</span><span class="literal"> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%selectionCriterion</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(SelectionCriterion For </span><span class="term">itemType</span><span class="literal">):</span><span class="squareb">]</span><span class="literal">[[Ge (SelectionCriterion function)|Ge]]</span><span class="literal">(</span> <span class="term" title="ItemFunction">itemFunction</span><span class="comma">,</span> - | ||
<span class="term" title="%output">%output</span><span class="literal">)</span></p> | <span class="term" title="%output">%output</span><span class="literal">)</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%selectionCriterion</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(SelectionCriterion For </span><span class="term">itemType</span><span class="literal">)</span><span class="squareb">]</span><span class="literal"> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%selectionCriterion</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(SelectionCriterion For </span><span class="term">itemType</span><span class="literal">):</span><span class="squareb">]</span><span class="literal">[[Gt (SelectionCriterion function)|Gt]]</span><span class="literal">(</span> <span class="term" title="ItemFunction">itemFunction</span><span class="comma">,</span> - | ||
<span class="term" title="%output">%output</span><span class="literal">)</span></p> | <span class="term" title="%output">%output</span><span class="literal">)</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%selectionCriterion</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(SelectionCriterion For </span><span class="term">itemType</span><span class="literal">)</span><span class="squareb">]</span><span class="literal"> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%selectionCriterion</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(SelectionCriterion For </span><span class="term">itemType</span><span class="literal">):</span><span class="squareb">]</span><span class="literal">[[IsNotNull (SelectionCriterion function)|IsNotNull]]</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%selectionCriterion</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(SelectionCriterion For </span><span class="term">itemType</span><span class="literal">)</span><span class="squareb">]</span><span class="literal"> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%selectionCriterion</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(SelectionCriterion For </span><span class="term">itemType</span><span class="literal">):</span><span class="squareb">]</span><span class="literal">[[IsNull (SelectionCriterion function)|IsNull]]</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%selectionCriterion</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(SelectionCriterion For </span><span class="term">itemType</span><span class="literal">)</span><span class="squareb">]</span><span class="literal"> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%selectionCriterion</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(SelectionCriterion For </span><span class="term">itemType</span><span class="literal">):</span><span class="squareb">]</span><span class="literal">[[Le (SelectionCriterion function)|Le]]</span><span class="literal">(</span> <span class="term" title="ItemFunction">itemFunction</span><span class="comma">,</span> - | ||
<span class="term" title="%output">%output</span><span class="literal">)</span></p> | <span class="term" title="%output">%output</span><span class="literal">)</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%selectionCriterion</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(SelectionCriterion For </span><span class="term">itemType</span><span class="literal">)</span><span class="squareb">]</span><span class="literal"> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%selectionCriterion</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(SelectionCriterion For </span><span class="term">itemType</span><span class="literal">):</span><span class="squareb">]</span><span class="literal">[[Lt (SelectionCriterion function)|Lt]]</span><span class="literal">(</span> <span class="term" title="ItemFunction">itemFunction</span><span class="comma">,</span> - | ||
<span class="term" title="%output">%output</span><span class="literal">)</span></p> | <span class="term" title="%output">%output</span><span class="literal">)</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%selectionCriterion</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(SelectionCriterion For </span><span class="term">itemType</span><span class="literal">)</span><span class="squareb">]</span><span class="literal"> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%selectionCriterion</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(SelectionCriterion For </span><span class="term">itemType</span><span class="literal">):</span><span class="squareb">]</span><span class="literal">[[Ne (SelectionCriterion function)|Ne]]</span><span class="literal">(</span> <span class="term" title="ItemFunctionEnum">itemFunctionEnum</span><span class="comma">,</span> - | ||
<span class="term" title="Result">result</span><span class="literal">)</span></p> | <span class="term" title="Result">result</span><span class="literal">)</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%selectionCriterion</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(SelectionCriterion For </span><span class="term">itemType</span><span class="literal">)</span><span class="squareb">]</span><span class="literal"> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%selectionCriterion</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(SelectionCriterion For </span><span class="term">itemType</span><span class="literal">):</span><span class="squareb">]</span><span class="literal">[[Not (SelectionCriterion function)|Not]]</span><span class="literal">(</span> <span class="term" title="SelectionCriterion">selectionCriterion</span><span class="literal">)</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%selectionCriterion</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(SelectionCriterion For </span><span class="term">itemType</span><span class="literal">)</span><span class="squareb">]</span><span class="literal"> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%selectionCriterion</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(SelectionCriterion For </span><span class="term">itemType</span><span class="literal">):</span><span class="squareb">]</span><span class="literal">[[Or (SelectionCriterion function)|Or]]</span><span class="literal">(</span> <span class="term" title="List">list</span><span class="literal">)</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%selectionCriterion</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(SelectionCriterion For </span><span class="term">itemType</span><span class="literal">)</span><span class="squareb">]</span><span class="literal"> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%selectionCriterion</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(SelectionCriterion For </span><span class="term">itemType</span><span class="literal">):</span><span class="squareb">]</span><span class="literal">[[True (SelectionCriterion function)|True]]</span></p> |
Latest revision as of 21:09, 30 November 2011
The syntax for each of the SelectionCriterion class methods is shown below.
Square brackets indicate optional elements of the method invocation. See also the notation conventions for methods and the List of SelectionCriterion methods.
%selectionCriterion = [%(SelectionCriterion For itemType):]And( list)
%selectionCriterion = [%(SelectionCriterion For itemType):]Eq( itemFunctionEnum, - result)
%selectionCriterion = [%(SelectionCriterion For itemType):]False
%selectionCriterion = [%(SelectionCriterion For itemType):]Ge( itemFunction, - %output)
%selectionCriterion = [%(SelectionCriterion For itemType):]Gt( itemFunction, - %output)
%selectionCriterion = [%(SelectionCriterion For itemType):]IsNotNull
%selectionCriterion = [%(SelectionCriterion For itemType):]IsNull
%selectionCriterion = [%(SelectionCriterion For itemType):]Le( itemFunction, - %output)
%selectionCriterion = [%(SelectionCriterion For itemType):]Lt( itemFunction, - %output)
%selectionCriterion = [%(SelectionCriterion For itemType):]Ne( itemFunctionEnum, - result)
%selectionCriterion = [%(SelectionCriterion For itemType):]Not( selectionCriterion)
%selectionCriterion = [%(SelectionCriterion For itemType):]Or( list)
%selectionCriterion = [%(SelectionCriterion For itemType):]True