com.bankframe.fe.statemachine.ext.apploaders
Class ValidationRule
java.lang.Object
com.bankframe.fe.statemachine.ext.apploaders.ValidationRule
public class ValidationRule
- extends Object
EMPTY
public static String EMPTY
RULES
public static String[] RULES
ValidationRule
public ValidationRule()
toString
public String toString()
- Overrides:
toString
in class Object
getKey
public String getKey()
isExactLength
public boolean isExactLength()
isMandatory
public boolean isMandatory()
isValidateIf
public boolean isValidateIf()
getValidateIfField
public String getValidateIfField()
getValidateIfValue
public String getValidateIfValue()
getMinLength
public Integer getMinLength()
getMaxLength
public Integer getMaxLength()
getDesc
public String getDesc()
getRule
public String getRule()
isValidate
public boolean isValidate()
getMinRange
public Double getMinRange()
getMaxRange
public Double getMaxRange()
setKey
public void setKey(String newKey)
setExactLength
public void setExactLength(boolean newExactLength)
setMandatory
public void setMandatory(boolean newMandatory)
setValidateIf
public void setValidateIf(boolean newValidateIf)
setValidateIfField
public void setValidateIfField(String newValidateIfField)
setValidateIfValue
public void setValidateIfValue(String newValidateIfValue)
setMinLength
public void setMinLength(Integer newMinLength)
setMaxLength
public void setMaxLength(Integer newMaxLength)
setDesc
public void setDesc(String newDesc)
setRule
public void setRule(String newRule)
setValidate
public void setValidate(boolean newValidate)
setMinRange
public void setMinRange(Double newMinRange)
setMaxRange
public void setMaxRange(Double newMaxRange)
convert
public static ValidationRule convert(String ruleStr)
setMinLengthWithString
public void setMinLengthWithString(String value)
setMaxLengthWithString
public void setMaxLengthWithString(String value)
setMinRangeWithString
public void setMinRangeWithString(String value)
setMaxRangeWithString
public void setMaxRangeWithString(String value)
requiresPattern
public boolean requiresPattern()
requiresKey
public boolean requiresKey()
requiresKeyOrPattern
public static boolean requiresKeyOrPattern(String key)
isRange
public boolean isRange()
isRange
public static boolean isRange(String text)
getMinLengthAsStr
public String getMinLengthAsStr()
getMaxLengthAsStr
public String getMaxLengthAsStr()
getMinRangeAsStr
public String getMinRangeAsStr()
getMaxRangeAsStr
public String getMaxRangeAsStr()
executeValidate
public void executeValidate(Inputs inputs,
Object value)
throws ValidationException
- Throws:
ValidationException
setDescAsDPName
public void setDescAsDPName(String dpName)
Copyright © 2005, 2007, Oracle. All rights reserved.