@Component(value="schema") @RefreshScope public class IdObjectSchemaValidator extends Object implements IdObjectValidator
| Constructor and Description |
|---|
IdObjectSchemaValidator() |
| Modifier and Type | Method and Description |
|---|---|
void |
loadSchema()
Load schema.
|
boolean |
validateIdObject(Object idObject,
IdObjectValidatorSupportedOperations operation)
Validates a JSON object passed as string with the schema provided.
|
@PostConstruct public void loadSchema() throws IdObjectIOException
IdObjectIOException - the id object IO exceptionpublic boolean validateIdObject(Object idObject, IdObjectValidatorSupportedOperations operation) throws IdObjectValidationFailedException, IdObjectIOException
validateIdObject in interface IdObjectValidatoridObject - the id objectoperation - the operationIdObjectValidationFailedException - the id object validation failed exceptionIdObjectIOException - the id object IO exceptionCopyright © 2020. All rights reserved.