public abstract class NameableNodeValidator<I extends Nameable> extends BasicNodeValidator<I>
Constructor and Description |
---|
NameableNodeValidator(Validator ruleMissing,
Validator ruleDenied)
Creates a new validator.
|
Modifier and Type | Method and Description |
---|---|
private void |
createFailure(OverviewContext context,
Set<String> knownDuplicates,
Validator validator,
Node node,
String name)
Create a failure on this node unless we have created a failure
for the same validator already.
|
void |
postValidate(DbControl dc,
OverviewContext context,
Node node,
Node parentNode)
Do nothing.
|
getDeniedItemFix, getMissingItemFix, postDeniedItem, postMissingItem, postValidateFolder, preDeniedItem, preMissingItem, preValidate
public NameableNodeValidator(Validator ruleMissing, Validator ruleDenied)
ruleMissing
- The validation rule that is broken if an item is missing,
or null to not report missing items as a failureruleDenied
- The validation rule that is broken if we are denied access
to an item, or null to not report this as a failurepublic void postValidate(DbControl dc, OverviewContext context, Node node, Node parentNode)
BasicNodeValidator
postValidate
in interface NodeValidator<I extends Nameable>
postValidate
in class BasicNodeValidator<I extends Nameable>
dc
- A DbControl to use if the validation needs to access the databasecontext
- The current overview contextnode
- The node object that represents itemparentNode
- The parent node that is linked with the item