@Requirement(reqId="DOI_ARCHI_020", reqName="Logs") private static class ClientMDS.MyValidationEventHandler extends Object implements ValidationEventHandler
Modifier and Type | Field and Description |
---|---|
private String |
errorMsg
Error message.
|
private boolean |
hasError
Indicates if an error was happening.
|
private Logger |
logger
Logger.
|
Constructor and Description |
---|
MyValidationEventHandler(Logger logger)
Validation handler
|
Modifier and Type | Method and Description |
---|---|
String |
getErrorMsg()
Returns the errorMsg or null when no error message.
|
boolean |
handleEvent(ValidationEvent event)
Handles event
|
boolean |
isNotValid()
Returns true when metadata is not valid against the schema otherwise
false.
|
boolean |
isValid()
Returns true when metadata is valid against the schema otherwise
false.
|
private final Logger logger
private boolean hasError
private String errorMsg
MyValidationEventHandler(Logger logger)
logger
- loggerpublic boolean handleEvent(ValidationEvent event)
handleEvent
in interface ValidationEventHandler
event
- eventpublic boolean isValid()
public boolean isNotValid()
public String getErrorMsg()
Copyright © 2017–2020 CNES. All rights reserved.