Skip to content

Commit 766ecc7

Browse files
jeremiahjstaceykwwall
authored andcommitted
Issue #511 Copying Docs from DefValidator (#518)
DefaultValidator has method documentation, so I'm just copying the contents verbatim to the interface. Quick win.
1 parent b6cf32e commit 766ecc7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/org/owasp/esapi/Validator.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,14 @@
4848
*/
4949
public interface Validator {
5050

51+
/**
52+
* Add a validation rule to the registry using the "type name" of the rule as the key.
53+
*/
5154
void addRule( ValidationRule rule );
5255

56+
/**
57+
* Get a validation rule from the registry with the "type name" of the rule as the key.
58+
*/
5359
ValidationRule getRule( String name );
5460

5561
/**

0 commit comments

Comments
 (0)