|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.javalite.activejdbc.validation.ValidationBuilder<NumericValidator>
org.javalite.activejdbc.validation.NumericValidationBuilder
public class NumericValidationBuilder
| Field Summary |
|---|
| Fields inherited from class org.javalite.activejdbc.validation.ValidationBuilder |
|---|
validators |
| Constructor Summary | |
|---|---|
NumericValidationBuilder(List<NumericValidator> validators)
|
|
| Method Summary | |
|---|---|
NumericValidationBuilder |
allowNull(boolean allow)
Will ignore validation if set to true. |
NumericValidationBuilder |
convertNullIfEmpty()
Deprecated. use Model.blankToNull(java.lang.String...) instead |
NumericValidationBuilder |
greaterThan(double min)
Specify a lower bound for a value, not inclusive. |
NumericValidationBuilder |
lessThan(double max)
Specify a upper bound for a value, not inclusive. |
NumericValidationBuilder |
onlyInteger()
Will invalidate the value if it is not integer. |
| Methods inherited from class org.javalite.activejdbc.validation.ValidationBuilder |
|---|
message |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NumericValidationBuilder(List<NumericValidator> validators)
| Method Detail |
|---|
public NumericValidationBuilder allowNull(boolean allow)
true. Default is false.
allow - set to true to ignore validation if value if null.
public NumericValidationBuilder onlyInteger()
public NumericValidationBuilder lessThan(double max)
max - lower bound for numeric value.
public NumericValidationBuilder greaterThan(double min)
min - lower bound for numeric value.
@Deprecated public NumericValidationBuilder convertNullIfEmpty()
Model.blankToNull(java.lang.String...) instead
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||