T
- type of the field to validatepublic abstract class AbstractFieldValidator<T extends IntelligentField> extends Object
Modifier and Type | Field and Description |
---|---|
protected T |
field
The field to validate.
|
Constructor and Description |
---|
AbstractFieldValidator(T field) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkDateRange(Date value)
Checks if the date is within the range supported by the database-system in use.
|
protected void |
checkIfMandatoryFieldIsSet()
Checks if mandatory field is set.
|
protected void |
checkLengthOfInput(String text)
Checks the length of the field's value.
|
abstract void |
validate()
Validates the field.
|
protected final T extends IntelligentField field
public AbstractFieldValidator(T field)
field
- the field to validatepublic abstract void validate() throws FieldValidationException, AuthenticationException, SystemException
FieldValidationException
- when the value of the field is not validAuthenticationException
- re-logon requiredSystemException
protected void checkIfMandatoryFieldIsSet() throws FieldValidationException
FieldValidationException
- when the field is mandatory but has no value setprotected void checkLengthOfInput(String text) throws FieldValidationException
text
- the value of the fieldFieldValidationException
- when the length of the field's value exceeds the specified maximum lengthprotected void checkDateRange(Date value) throws FieldValidationException, AuthenticationException, SystemException
value
- the value of the fieldFieldValidationException
- when the date entered in the field is not in the supported rangeAuthenticationException
SystemException
Copyright © 2021 Hyland Software Germany GmbH. All rights reserved.