XBinder C# Runtime Library  2.7
Public Member Functions | List of all members
com.objsys.xbinder.runtime.XBPatternValidator Class Reference

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...
 

Detailed Description

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>

Member Function Documentation

◆ addPattern()

virtual void com.objsys.xbinder.runtime.XBPatternValidator.addPattern ( System.String  pattern)
virtual

Add a pattern to the list of patterns that may validate a string.

Parameters
pattern

◆ validate()

virtual void com.objsys.xbinder.runtime.XBPatternValidator.validate ( System.String  text)
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.

Parameters
text

<throws> XBPatternViolation </throws>