Package com.deltaxml.docbook.config
Class Validation
java.lang.Object
com.deltaxml.docbook.config.Validation
Contains parameters that control input validation and reporting.
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a newValidationinstance.Validation(boolean validateInputs) Create a newValidationinstance, setting whether to validate input documents.Validation(WarningReportMode warningReportMode) Create a newValidationinstance, setting the mode to use for reporting recoverable errors and warnings. -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the warningReportMode parameter.booleanGets whether input files should be validated against the DocBook schema.voidsetValidateInputs(boolean value) Sets whether to validate input documents.voidSets the mode to use for reporting recoverable errors and warnings.
-
Constructor Details
-
Validation
public Validation()Create a newValidationinstance. Contains parameters that control input validation and reporting. -
Validation
public Validation(boolean validateInputs) Create a newValidationinstance, setting whether to validate input documents. Contains parameters that control input validation and reporting.- Parameters:
validateInputs- setting whether to validate input documents.
-
Validation
Create a newValidationinstance, setting the mode to use for reporting recoverable errors and warnings. Contains parameters that control input validation and reporting.- Parameters:
warningReportMode- the mode to use for reporting recoverable errors and warnings.
-
-
Method Details
-
isValidateInputs
public boolean isValidateInputs()Gets whether input files should be validated against the DocBook schema.- Returns:
- whether inputs should be validated
-
setValidateInputs
public void setValidateInputs(boolean value) Sets whether to validate input documents.
If set to
trueand the inputs include a DOCTYPE, they will be validated against it. If they are not valid, the compare method will throw an InputLoadException.Default:
true- Parameters:
value- whether to validate inputs
-
getWarningReportMode
Gets the value of the warningReportMode parameter.- Returns:
- current value of the warning report mode parameter
-
setWarningReportMode
Sets the mode to use for reporting recoverable errors and warnings.
Default:
WarningReportMode.PROCESSING_INSTRUCTIONS- Parameters:
value- new value to use for the warning report mode parameter- Throws:
IllegalArgumentException- if the value is null- See Also:
-