XBinder C# Runtime Library
2.8
|
Provides pattern validation for text. More...
Public Member Functions | |
XBPatternValidator (XBPatternValidator nestedValidator) | |
virtual void | addPattern (System.String pattern) |
Add a pattern to the list of patterns that may validate a string. More... | |
virtual void | validate (System.String text) |
Checks text against each pattern that was given to the host object. As soon as a match is found, this returns. If no match is found, XBPatternViolation is thrown. More... | |
Provides pattern validation for text.
XBPatternValidators may be nested. Text passes validation when it fits any one of the patterns that were supplied and passes any nested XBPatternValidator.
<author> Kevin
</author>
|
virtual |
Add a pattern to the list of patterns that may validate a string.
pattern |
|
virtual |
Checks text against each pattern that was given to the host object. As soon as a match is found, this returns. If no match is found, XBPatternViolation is thrown.
text |
<throws> XBPatternViolation </throws>