Class BoundValidator

java.lang.Object
org.netbeans.validation.api.builtin.stringvalidation.BoundValidator
All Implemented Interfaces:
Validator<String>

public class BoundValidator extends Object implements Validator<String>
Author:
Tim Boudreau
  • Method Details

    • validate

      public void validate(Problems problems, String compName, String model)
      Description copied from interface: Validator
      Validate the passed model. If the component is invalid, this method shall add problems to the passed list.
      Specified by:
      validate in interface Validator<String>
      Parameters:
      problems - A list of problems.
      compName - The name of the component in question (may be null in some cases)
      model - The model in question
    • modelType

      public Class<String> modelType()
      Description copied from interface: Validator
      The type of the model object which can be validated. Necessary due to limitations of the Java implementation of generics, so that model conversions can be done at runtime, and declaratively registered ValidationListeners can be matched with Validator types.

      The return value of this method is expected to remain constant throughout the life of this validator.

      Specified by:
      modelType in interface Validator<String>
      Returns:
      The type of the model object expected. Note that a validator may be passed a subclass of this type.