Interface NodePathValidator
- All Superinterfaces:
Validator
Validator interface for validating node paths.
For validators interested in the actual properties use either
DocumentViewXmlValidator or GenericJcrDataValidator.
In contrast to JcrPathValidator might be called multiple times per file in case it covers multiple nodes.-
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable Collection<ValidationMessage>Deprecated.default @Nullable Collection<ValidationMessage>validate(@NotNull NodeContext nodeContext) Called for each node being found in a package.
-
Method Details
-
validate
@Deprecated @Nullable default @Nullable Collection<ValidationMessage> validate(@NotNull @NotNull String nodePath) Deprecated.Usevalidate(NodeContext)instead!Called for each node being found in a package. Empty node elements (in DocView files) are not included as they are only used for ordering purposes.- Parameters:
nodePath- the absolute node path- Returns:
- validation messages or
null
-
validate
@Nullable default @Nullable Collection<ValidationMessage> validate(@NotNull @NotNull NodeContext nodeContext) Called for each node being found in a package. Empty node elements (in DocView files) are not included as they are only used for ordering purposes.- Parameters:
nodeContext- the information about the node context- Returns:
- validation messages or
null
-
validate(NodeContext)instead!