Class MissingValueHelper
java.lang.Object
org.craftercms.deployer.utils.handlebars.MissingValueHelper
- All Implemented Interfaces:
com.github.jknack.handlebars.Helper<Object>
public class MissingValueHelper
extends Object
implements com.github.jknack.handlebars.Helper<Object>
Handlebars helper that will add a missing field error to the current
ValidationResult
if the parameter value is
missing.- Author:
- avasquez
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MissingValueHelper
protected ThreadLocal
<org.craftercms.commons.validation.ValidationResult> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
org.craftercms.commons.validation.ValidationResult
-
Field Details
-
INSTANCE
-
validationResult
-
-
Constructor Details
-
MissingValueHelper
protected MissingValueHelper()
-
-
Method Details
-
getValidationResult
public org.craftercms.commons.validation.ValidationResult getValidationResult() -
clearValidationResult
public void clearValidationResult() -
apply
public Object apply(Object context, com.github.jknack.handlebars.Options options) throws IOException - Specified by:
apply
in interfacecom.github.jknack.handlebars.Helper<Object>
- Throws:
IOException
-