Interface DocumentViewXmlValidator
-
- All Superinterfaces:
Validator
@ProviderType public interface DocumentViewXmlValidator extends Validator
Validator interface for (enhanced) Document View XML files within content packages.- See Also:
- Filevault DocView
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default @Nullable Collection<ValidationMessage>
validate(@NotNull DocViewNode2 node, @NotNull NodeContext nodeContext, boolean isRoot)
Called for the beginning of each deserialized new JCR document view node.default @Nullable Collection<ValidationMessage>
validate(@NotNull DocViewNode node, @NotNull String nodePath, @NotNull Path filePath, boolean isRoot)
Deprecated.Usevalidate(DocViewNode2, NodeContext, boolean)
insteaddefault @Nullable Collection<ValidationMessage>
validate(@NotNull DocViewNode node, @NotNull NodeContext nodeContext, boolean isRoot)
Deprecated.Usevalidate(DocViewNode2, NodeContext, boolean)
insteaddefault @Nullable Collection<ValidationMessage>
validateEnd(@NotNull DocViewNode2 node, @NotNull NodeContext nodeContext, boolean isRoot)
Called for the end of each new deserialized JCR document view node (after all child nodes have been processed).default @Nullable Collection<ValidationMessage>
validateEnd(@NotNull DocViewNode node, @NotNull NodeContext nodeContext, boolean isRoot)
Deprecated.UsevalidateEnd(DocViewNode2, NodeContext, boolean)
instead
-
-
-
Method Detail
-
validate
@Deprecated @Nullable default @Nullable Collection<ValidationMessage> validate(@NotNull @NotNull DocViewNode node, @NotNull @NotNull String nodePath, @NotNull @NotNull Path filePath, boolean isRoot)
Deprecated.Usevalidate(DocViewNode2, NodeContext, boolean)
insteadCalled for the beginning of each new JCR document view node. Deserialization of the node information was already done when this method is called! The node and attribute names have the string representation outlined inName
(i.e. including the namespace uri in the format{namespaceURI}localPart
). This is also referred to as JCR name expanded form. To construct such names either useNameUtil
or use the constants fromNameConstants
. The node's label refers to the XML element name specifying the node. There shouldn't be any checks derived from it, but only from the expanded name.- Parameters:
node
- the node which should be validatednodePath
- the absolute repository path of the given nodefilePath
- the relative file path of the docview file containing this nodeisRoot
-true
in case this is the root node of the docview file otherwisefalse
- Returns:
- validation messages or
null
-
validate
@Deprecated @Nullable default @Nullable Collection<ValidationMessage> validate(@NotNull @NotNull DocViewNode node, @NotNull @NotNull NodeContext nodeContext, boolean isRoot)
Deprecated.Usevalidate(DocViewNode2, NodeContext, boolean)
insteadCalled for the beginning of each new JCR document view node. Deserialization of the node information was already done when this method is called! The node and attribute names have the string representation outlined inName
(i.e. including the namespace uri in the format{namespaceURI}localPart
). This is also referred to as JCR name expanded form. To construct such names either useNameUtil
or use the constants fromNameConstants
. The node's label refers to the XML element name specifying the node. There shouldn't be any checks derived from it, but only from the expanded name.- Parameters:
node
- the node which should be validatednodeContext
- the information about the node context (like path)isRoot
-true
in case this is the root node of the docview file otherwisefalse
- Returns:
- validation messages or
null
-
validate
@Nullable default @Nullable Collection<ValidationMessage> validate(@NotNull @NotNull DocViewNode2 node, @NotNull @NotNull NodeContext nodeContext, boolean isRoot)
Called for the beginning of each deserialized new JCR document view node. Child nodes have not yet been deserialized at this point in time but only the node itself and its direct properties.- Parameters:
node
- the node which should be validatednodeContext
- the information about the node context (like path)isRoot
-true
in case this is the root node of the docview file otherwisefalse
- Returns:
- validation messages or
null
- Since:
- 3.6.0
-
validateEnd
@Deprecated @Nullable default @Nullable Collection<ValidationMessage> validateEnd(@NotNull @NotNull DocViewNode node, @NotNull @NotNull NodeContext nodeContext, boolean isRoot)
Deprecated.UsevalidateEnd(DocViewNode2, NodeContext, boolean)
insteadCalled for the end of each new JCR document view node. Deserialization of the node information was already done when this method is called as well as all child nodes within the same docview file have been processed. The node and attribute names have the string representation outlined inName
(i.e. including the namespace uri in the format{namespaceURI}localPart
). This is also referred to as JCR name expanded form. To construct such names either useNameUtil
or use the constants fromNameConstants
. The node's label refers to the XML element name specifying the node. There shouldn't be any checks derived from it, but only from the expanded name.- Parameters:
node
- the node which should be validatednodeContext
- the information about the node context (like path)isRoot
-true
in case this is the root node of the docview file otherwisefalse
- Returns:
- validation messages or
null
-
validateEnd
@Nullable default @Nullable Collection<ValidationMessage> validateEnd(@NotNull @NotNull DocViewNode2 node, @NotNull @NotNull NodeContext nodeContext, boolean isRoot)
Called for the end of each new deserialized JCR document view node (after all child nodes have been processed).- Parameters:
node
- the node which should be validatednodeContext
- the information about the node context (like path)isRoot
-true
in case this is the root node of the docview file otherwisefalse
- Returns:
- validation messages or
null
- Since:
- 3.6.0
-
-