public interface Validator
Title: Service Event Fabric Runtime
Description: Interface for any object validator.
Copyright: Copyright (c) 2013
Company: StreamScape Technologies
Modifier and Type | Method and Description |
---|---|
void |
validate(java.lang.Object object)
Validates object and its field.
|
void validate(java.lang.Object object) throws ValidationException
ValidationException
with all found errors description.
ValidationException.getErrors()
contains all found field error.
ValidationError.name
contains field name on which validation failed,
ValidationError.value
contains validation error description.object
- object to validateValidationException
- if validation failedCopyright © 2015-2024 StreamScape Technologies. All rights reserved.