Package com.helger.jaxb
Interface IJAXBValidator<JAXBTYPE>
- Type Parameters:
JAXBTYPE- The JAXB type to be written
- All Known Implementing Classes:
GenericJAXBMarshaller,JAXBValidationBuilder
public interface IJAXBValidator<JAXBTYPE>
Interface for validating JAXB documents.
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptionbooleandefault booleanCheck if the passed JAXB document is valid according to the XSD or not.default com.helger.commons.error.list.IErrorListValidate the passed JAXB document.voidValidate the passed JAXB document.
-
Method Details
-
isUseSchema
boolean isUseSchema()- Returns:
trueif an eventually configured XML Schema should be used,falseto explicitly disable the usage of XML Schema.- Since:
- 11.0.3
-
isValid
Check if the passed JAXB document is valid according to the XSD or not.- Parameters:
aJAXBDocument- The JAXB document to be validated. May not benull.- Returns:
trueif the document is valid,falseif not.- See Also:
-
validate
void validate(@Nonnull JAXBTYPE aJAXBDocument, @Nonnull com.helger.commons.error.list.ErrorList aErrorList) Validate the passed JAXB document.- Parameters:
aJAXBDocument- The JAXB document to be validated. May not benull.aErrorList- The error list to be filled. May not benull.- Since:
- v9.3.7
-
validate
Validate the passed JAXB document.- Parameters:
aJAXBDocument- The JAXB document to be validated. May not benull.- Returns:
- The validation results. Never
null.
-