public interface NodeValidatorFactory<L,K>
NodeValidator
:s for a given key domain.Modifier and Type | Method and Description |
---|---|
NodeValidator<? extends L> |
createNodeValidator(K key)
Create a node validator that knows how to validate nodes for items
that are specified by the given key.
|
boolean |
isDisabled()
Check if node validation has been disabled.
|
void |
setDisabled(boolean disabled)
Disable/enabled node validation programmatically.
|
void setDisabled(boolean disabled)
createNodeValidator(Object)
should return null or a NullNodeValidator
for all
requests.disabled
- TRUE to disable node validationboolean isDisabled()
NodeValidator<? extends L> createNodeValidator(K key)
key
- A key that can be used to identify which items the node
validator should handleItemNotFoundException
- If a node loader for the given key
can't be found. NOTE! Instead of throwing an exception it is possible
to simply return null or a NullNodeValidator
or any other
"generic" implementation.BaseException
- If there is any other problem creating the
node validator