public abstract class AbstractValidationChain extends org.apache.commons.chain.impl.ChainBase implements ValidationRule
ValidationRule,
so we can distinguish command chains that can be used for data
validation.| Constructor and Description |
|---|
AbstractValidationChain() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCaption()
Gets a caption describing the rule.
|
abstract boolean |
isApplicable(String location)
Tests whether a rule is applicable to a target location.
|
void |
setCaption(String caption)
Sets the caption for this chain.
|
public abstract boolean isApplicable(String location)
ValidationRuleisApplicable in interface ValidationRulelocation - the target location to validatepublic String getCaption()
ValidationRulegetCaption in interface ValidationRulepublic void setCaption(String caption)
caption - the new caption stringCopyright © 2020. All rights reserved.