The validators specified here are registered at DataSift startup, and are always available to the user without further configuration.
Config parameter | Type | Required | Default value | Description |
---|---|---|---|---|
acceptNull | java.lang.Boolean | No | Boolean.FALSE |
If true validation will succeed if the data parameter is null.
|
expectedValue | java.lang.Boolean | Yes | The boolean value to look for. |
Data parameter | Type | Description |
---|---|---|
data | java.lang.Boolean | Piece of data to be validated. |
Config parameter | Type | Required | Default value | Description |
---|---|---|---|---|
acceptNull | java.lang.Boolean | No | Boolean.FALSE |
If true validation will succeed if the data parameter is null.
|
minValue | java.lang.Double | No | Double.MIN_VALUE | Minimum value of the number in the data object for the validation to succeed. |
maxValue | java.lang.Double | No | Double.MAX_VALUE | Maximum value of the number in the data object for the validation to succeed. |
Data parameter | Type | Description |
---|---|---|
data | java.lang.Double | Piece of data to be validated. |
Config parameter | Type | Required | Default value | Description |
---|---|---|---|---|
acceptNull | java.lang.Boolean | No | Boolean.FALSE |
If true validation will succeed if the data parameter is null.
|
minValue | java.lang.Float | No | Float.MIN_VALUE | Minimum value of the number in the data object for the validation to succeed. |
maxValue | java.lang.Integer | No | Float.MAX_VALUE | Maximum value of the number in the data object for the validation to succeed. |
Data parameter | Type | Description |
---|---|---|
data | java.lang.Float | Piece of data to be validated. |
Config parameter | Type | Required | Default value | Description |
---|---|---|---|---|
acceptNull | java.lang.Boolean | No | Boolean.FALSE |
If true validation will succeed if the data parameter is null.
|
minValue | java.lang.Integer | No | Integer.MIN_VALUE | Minimum value of the number in the data object for the validation to succeed. |
maxValue | java.lang.Integer | No | Integer.MAX_VALUE | Maximum value of the number in the data object for the validation to succeed. |
Data parameter | Type | Description |
---|---|---|
data | java.lang.Integer | Piece of data to be validated. |
Config parameter | Type | Required | Default value | Description |
---|---|---|---|---|
acceptNull | java.lang.Boolean | No | Boolean.FALSE |
If true validation will succeed if the data parameter is null.
|
trim | java.lang.Boolean | No | Boolean.TRUE | Trim the String before checking it. |
expectedValue | java.lang.Boolean | No |
If the String is a correct boolean value, allows to check for a specific value
(true or false ).
|
Data parameter | Type | Description |
---|---|---|
data | java.lang.String | Piece of data to be validated. |
Config parameter | Type | Required | Default value | Description |
---|---|---|---|---|
acceptNull | java.lang.Boolean | No | Boolean.FALSE |
If true validation will succeed if the data parameter is null.
|
trim | java.lang.Boolean | No | Boolean.TRUE | Trim the String before checking it. |
pattern | java.lang.String | Yes |
Date pattern to use for matching. This pattern will be defined as specified in
java.text.SimpleDateFormat .
| |
locale | java.lang.String | No | (Default locale) | Locale to be used for date constants (month names, etc). For instance: "es", "es_ES", "es_ES.UTF-8"... |
allowedDates | java.lang.String[] | No | ANY |
Dates that will be allowed. Possible values are:
Only the date fields present in the specified pattern will be used for comparison. |
Data parameter | Type | Description |
---|---|---|
data | java.lang.String | Piece of data to be validated. |
Config parameter | Type | Required | Default value | Description |
---|---|---|---|---|
acceptNull | java.lang.Boolean | No | Boolean.FALSE |
If true validation will succeed if the data parameter is null.
|
trim | java.lang.Boolean | No | Boolean.TRUE | Trim the String before checking it. |
minValue | java.lang.Integer | No | Integer.MIN_VALUE | Minimum value of the number in the String object for the validation to succeed. |
maxValue | java.lang.Integer | No | Integer.MAX_VALUE | Maximum value of the number in the String object for the validation to succeed. |
Data parameter | Type | Description |
---|---|---|
data | java.lang.String | Piece of data to be validated. |
Config parameter | Type | Required | Default value | Description |
---|---|---|---|---|
acceptNull | java.lang.Boolean | No | Boolean.FALSE |
If true validation will succeed if the data parameter is null.
|
trim | java.lang.Boolean | No | Boolean.TRUE | Trim the String before checking it. |
minValue | java.lang.Double | No | Double.MIN_VALUE | Minimum value of the number in the String object for the validation to succeed. |
maxValue | java.lang.Double | No | Double.MAX_VALUE | Maximum value of the number in the String object for the validation to succeed. |
Data parameter | Type | Description |
---|---|---|
data | java.lang.String | Piece of data to be validated. |
Config parameter | Type | Required | Default value | Description |
---|---|---|---|---|
acceptNull | java.lang.Boolean | No | Boolean.FALSE |
If true validation will succeed if the data parameter is null.
|
trim | java.lang.Boolean | No | Boolean.TRUE | Trim the String before checking it. |
Data parameter | Type | Description |
---|---|---|
data | java.lang.String | Piece of data to be validated. Validation will succeed if the string is an email address. |
Config parameter | Type | Required | Default value | Description |
---|---|---|---|---|
acceptNull | java.lang.Boolean | No | Boolean.FALSE |
If true validation will succeed if the data parameter is null.
|
trim | java.lang.Boolean | No | Boolean.TRUE | Trim the String before checking it. |
minValue | java.lang.Float | No | Float.MIN_VALUE | Minimum value of the number in the String object for the validation to succeed. |
maxValue | java.lang.Float | No | Float.MAX_VALUE | Maximum value of the number in the String object for the validation to succeed. |
Data parameter | Type | Description |
---|---|---|
data | java.lang.String | Piece of data to be validated. |
Config parameter | Type | Required | Default value | Description |
---|---|---|---|---|
acceptNull | java.lang.Boolean | No | Boolean.FALSE |
If true validation will succeed if the data parameter is null.
|
trim | java.lang.Boolean | No | Boolean.TRUE | Trim the String before checking it. |
Data parameter | Type | Description |
---|---|---|
data | java.lang.String |
Piece of data to be validated (will be valid if String conforms to a URL
specification as defined in java.net.URL ).
|
Config parameter | Type | Required | Default value | Description |
---|---|---|---|---|
acceptNull | java.lang.Boolean | No | Boolean.FALSE |
If true validation will succeed if the data parameter is null.
|
trim | java.lang.Boolean | No | Boolean.TRUE | Trim the String before checking it. |
minLength | java.lang.Integer | No | 0 | Minimum length of the String for the validation to succeed. |
maxLength | java.lang.Integer | No | Integer.MAX_VALUE | Maximum length of the String for the validation to succeed. |
Data parameter | Type | Description |
---|---|---|
data | java.lang.String | Piece of data to be validated. |
Config parameter | Type | Required | Default value | Description |
---|---|---|---|---|
acceptNull | java.lang.Boolean | No | Boolean.FALSE |
If true validation will succeed if the data parameter is null.
|
trim | java.lang.Boolean | No | Boolean.TRUE | Trim the String before checking it. |
pattern | java.lang.String | Yes |
Pattern (java.util.regex.Pattern style) against which the
string will be tried to match.
|
Data parameter | Type | Description |
---|---|---|
data | java.lang.String | Piece of data to be validated. |
This validator performs all its nested validations on every item of an array of objects
(applying an ObjectResolver
to each of the array items).
Config parameter | Type | Required | Default value | Description |
---|---|---|---|---|
acceptNull | java.lang.Boolean | No | Boolean.FALSE |
If true validation will succeed if the data parameter is null.
|
successCondition | java.lang.String | No | AND |
Condition to apply on the results of the iteration items. Possible values:
|
Data parameter | Type | Description |
---|---|---|
data | java.lang.Object[] | Piece of data to be validated. |
This validator performs all its nested validations on every item of a Collection
(applying an ObjectResolver
to each of the Collection items).
Config parameter | Type | Required | Default value | Description |
---|---|---|---|---|
acceptNull | java.lang.Boolean | No | Boolean.FALSE |
If true validation will succeed if the data parameter is null.
|
successCondition | java.lang.String | No | AND |
Condition to apply on the results of the iteration items. Possible values:
|
Data parameter | Type | Description |
---|---|---|
data | java.util.Collection | Piece of data to be validated. |
This validator performs all its nested validations on every entry of a Map
(applying a MapEntryResolver
to each of the Map entries).
Config parameter | Type | Required | Default value | Description |
---|---|---|---|---|
acceptNull | java.lang.Boolean | No | Boolean.FALSE |
If true validation will succeed if the data parameter is null.
|
successCondition | java.lang.String | No | AND |
Condition to apply on the results of the iteration items. Possible values:
|
Data parameter | Type | Description |
---|---|---|
data | java.util.Map | Piece of data to be validated. |