Interface NodePathValidator

All Superinterfaces:
Validator

@ProviderType public interface NodePathValidator extends 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 Details

    • validate

      @Deprecated @Nullable default @Nullable Collection<ValidationMessage> validate(@NotNull @NotNull String nodePath)
      Deprecated.
      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