Class ValidationProblems
java.lang.Object
ro.sync.exml.workspace.api.editor.validation.ValidationProblems
Holds a set of problems which were reported during the validation process.
- Since:
- 13
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The problem was generated by the automatic validation.static final int
The problem was generated by the custom schema validation.static final int
The problem was generated by the validate and check for completeness action.static final int
The problem was generated by the regular validation. -
Constructor Summary
ConstructorsConstructorDescriptionValidationProblems
(List<DocumentPositionedInfo> problemsList, int problemType) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addValidationProblems
(ValidationProblems validationProblems) Add the validation problems to the new one.Get the list of problems.int
Get the validation type.void
setProblemsList
(List<DocumentPositionedInfo> problemsList) Set the list of problems.
-
Field Details
-
VALIDATION_AUTOMATIC
public static final int VALIDATION_AUTOMATICThe problem was generated by the automatic validation.- See Also:
-
VALIDATION_CUSTOM
public static final int VALIDATION_CUSTOMThe problem was generated by the custom schema validation.- See Also:
-
VALIDATION_NORMAL
public static final int VALIDATION_NORMALThe problem was generated by the regular validation.- See Also:
-
VALIDATION_DITA_MAP_CHECK_FOR_COMPLETENESS
public static final int VALIDATION_DITA_MAP_CHECK_FOR_COMPLETENESSThe problem was generated by the validate and check for completeness action.- See Also:
-
-
Constructor Details
-
ValidationProblems
Constructor.- Parameters:
problemsList
- The list of problems, can benull
if validation was successful.problemType
- The type of validation, one of the constants in this class.
-
-
Method Details
-
addValidationProblems
Add the validation problems to the new one.- Parameters:
validationProblems
- The validation problems to add.
-
getProblemsList
Get the list of problems. Can benull
or an empty list if there are no problems.- Returns:
- The list of problems. The actual internal list, not a clone. Can be
null
-
setProblemsList
Set the list of problems.- Parameters:
problemsList
- The list of problems.
-
getValidationType
public int getValidationType()Get the validation type. One of the constants defined in the class.- Returns:
- The validation type (manual or automatic).
-