Designer 10.5 | webMethods Mobile Development | User Interface Object Reference | Objects to Use for Event Listeners | StringValidator Properties
 
StringValidator Properties
Property
Description
Class Name
The value of this property can be the simple name of a class (e.g., MyStringValidator) or a fully qualified class name (e.g., com.company.validators.MyStringValidator). If a simple name is specified, the corresponding Java class is generated into src/bundleId/data/validator/classname.java. If a fully qualified class name is provided, the validator class is not generated but must be defined in the projects class path. Press CTRL+SPACE to view the list of built-in validators provided by Mobile Development. All string validator implementations must implement IStringValidator.
Constructor Arguments
A couple of string values can be specified here to be passed to the validator as constructor arguments. Only data type String is supported. The validator needs to offer a constructor to handle the specified number of String arguments, e.g., a pattern for a regular expression can be specified here.
Related Topics