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 eitherDocumentViewXmlValidator
orGenericJcrDataValidator
. In contrast toJcrPathValidator
might be called multiple times per file in case it covers multiple nodes.
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default @Nullable Collection<ValidationMessage>
validate(@NotNull String nodePath)
Deprecated.Usevalidate(NodeContext)
instead!default @Nullable Collection<ValidationMessage>
validate(@NotNull NodeContext nodeContext)
Called for each node being found in a package.
-
-
-
Method Detail
-
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
-
-