public class UnlessHelper extends BasicSectionHelper
{{#unless item.active}}
Not active.
{{/unless}}
Multiple params may be evaluated. The default evaluation logic is disjunction:
{{#unless item.active item.valid}}
Not active or not valid.
{{/unless}}
The evaluation logic may be specified:
{{#unless item.active item.valid logic="and"}}
Nor active nor valid.
{{/unless}}
| Modifier and Type | Class and Description |
|---|---|
protected static class |
MatchingSectionHelper.EvaluationLogic |
SECTION_TYPESHELPER_TAG_TYPESconfiguration| Constructor and Description |
|---|
UnlessHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(Options options)
Execute the helper.
|
protected MatchingSectionHelper.EvaluationLogic |
getDefaultLogic() |
protected boolean |
hasEmptyParamsSupport() |
protected boolean |
isMatching(Object value) |
protected int |
numberOfRequiredParameters() |
allowedTagTypesnumberOfRequiredHashEntries, validateappend, getHashValue, init, isSection, isUnescapeVariable, isVariablegetConfigurationKeys, checkNotInitialized, initclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfigurationKeys, initprotected boolean isMatching(Object value)
protected MatchingSectionHelper.EvaluationLogic getDefaultLogic()
public void execute(Options options)
Helperprotected boolean hasEmptyParamsSupport()
protected int numberOfRequiredParameters()
numberOfRequiredParameters in class BasicHelperCopyright © 2015. All Rights Reserved.