|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NodeValidatorFactory<L,K>
A node validator factory is a class that know how to
create NodeValidator
:s for a given key domain.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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 handle
ItemNotFoundException
- 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
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |