public class DefaultValidatorDescriptor extends Object implements ValidatorDescriptor
ValidatorDescriptor implementation.ValidatorDescriptor.Builder| Constructor and Description |
|---|
DefaultValidatorDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getFractionDigits()
Get the fractional digits count.
|
Set<?> |
getIn()
Get the admitted values
|
Integer |
getIntegerDigits()
Get the integer digits count.
|
Number |
getMax()
Get the maximum value.
|
Number |
getMin()
Get the minimum value.
|
Set<?> |
getNotIn()
Get the not admitted values
|
String |
getPattern()
Get the value regexp pattern.
|
boolean |
isEmail()
Get whether the value is of email type.
|
boolean |
isExclusiveMax()
Get whether the maximum value is exclusive.
|
boolean |
isExclusiveMin()
Get whether the minimum value is exclusive.
|
boolean |
isFuture()
Get whether the value must be in the future.
|
boolean |
isPast()
Get whether the value must be in the past.
|
boolean |
isRequired()
Get whether the value is required.
|
void |
setEmail(boolean email)
Set whether the value is of email type.
|
void |
setExclusiveMax(boolean exclusiveMax)
Set whether the maximum value is exclusive.
|
void |
setExclusiveMin(boolean exclusiveMin)
Set whether the minimum value is exclusive.
|
void |
setFractionDigits(Integer fractionDigits)
Set the fractional digits count.
|
void |
setFuture(boolean future)
Set whether the value must be in the future.
|
void |
setIn(Set<?> in)
Set the admitted values.
|
void |
setIntegerDigits(Integer integerDigits)
Set the integer digits count.
|
void |
setMax(Number max)
Set the maximum value.
|
void |
setMin(Number min)
Set the miminum value.
|
void |
setNotIn(Set<?> notIn)
Set the not admitted values.
|
void |
setPast(boolean past)
Set whether the value must be in the past.
|
void |
setPattern(String pattern)
Set the value regexp pattern.
|
void |
setRequired(boolean required)
Set whether the value is required.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuilderpublic boolean isRequired()
ValidatorDescriptorisRequired in interface ValidatorDescriptorpublic void setRequired(boolean required)
required - whether the value is requiredpublic boolean isEmail()
ValidatorDescriptorisEmail in interface ValidatorDescriptorpublic void setEmail(boolean email)
email - whether the value is of email type.public boolean isPast()
ValidatorDescriptorisPast in interface ValidatorDescriptorpublic void setPast(boolean past)
past - whether the value must be in the pastpublic boolean isFuture()
ValidatorDescriptorisFuture in interface ValidatorDescriptorpublic void setFuture(boolean future)
future - whether the value must be in the futurepublic Number getMin()
ValidatorDescriptorgetMin in interface ValidatorDescriptorpublic void setMin(Number min)
min - the miminum valuepublic Number getMax()
ValidatorDescriptorgetMax in interface ValidatorDescriptorpublic void setMax(Number max)
max - the maximum valuepublic boolean isExclusiveMin()
ValidatorDescriptorisExclusiveMin in interface ValidatorDescriptorpublic boolean isExclusiveMax()
ValidatorDescriptorisExclusiveMax in interface ValidatorDescriptorpublic void setExclusiveMin(boolean exclusiveMin)
exclusiveMin - whether the minimum value is exclusivepublic void setExclusiveMax(boolean exclusiveMax)
exclusiveMax - whether the maximum value is exclusivepublic String getPattern()
ValidatorDescriptorgetPattern in interface ValidatorDescriptorpublic void setPattern(String pattern)
pattern - the value regexp patternpublic Integer getIntegerDigits()
ValidatorDescriptorgetIntegerDigits in interface ValidatorDescriptorpublic void setIntegerDigits(Integer integerDigits)
integerDigits - the integer digits countpublic Integer getFractionDigits()
ValidatorDescriptorgetFractionDigits in interface ValidatorDescriptorpublic void setFractionDigits(Integer fractionDigits)
fractionDigits - the fractional digits countpublic Set<?> getIn()
ValidatorDescriptorgetIn in interface ValidatorDescriptorpublic Set<?> getNotIn()
ValidatorDescriptorgetNotIn in interface ValidatorDescriptorpublic void setIn(Set<?> in)
in - Valuespublic void setNotIn(Set<?> notIn)
notIn - ValuesCopyright © 2019 The Holon Platform. All rights reserved.