Class ValidationConfiguration

java.lang.Object
com.sun.ts.tests.common.taglibsig.validation.ValidationConfiguration

public class ValidationConfiguration extends Object
This configuration class defines the Validator names that will be used to perform the validation of the TaglibraryDescriptor objects. This class is used exclusively by the ValidatorFactory, which will take the names contained within and create Validator instances.
  • Field Details

  • Constructor Details

    • ValidationConfiguration

      public ValidationConfiguration()
      Constructs a new ValidationConfiguation instance.
  • Method Details

    • addValidator

      public void addValidator(String validatorName)
      Adds the name of a Validator implementation to this configuration. The name must be a known name (i.e. be a constant name defined by this class), or a Validator will not be added. If a non-standard validator is required, use addValidator(String, String) instead.
      Parameters:
      validatorName - - Validator name
    • addValidator

      public void addValidator(String validatorName, String validatorClass)
      Adds a custom Validator name to the current configuration.
      Parameters:
      validatorName - - Validator name
      validatorClass - - The class name of this Validator
    • removeValidator

      public void removeValidator(String validatorName)
      Removes the specified Validator name from the current configuration.
      Parameters:
      validatorName - - Validator name
    • getValidatorNames

      public Iterator getValidatorNames()
      Returns an Iterator of the Validator names in the current configuration.
      Returns:
      Iterator of this configuration's Validator names
    • getValidatorClass

      public String getValidatorClass(String validatorName)
      Returns the name of the Validator implementation class.
      Parameters:
      validatorName - - Validator name
      Returns:
      The name of the Validator implementation class.
    • hasBeenConfigured

      public boolean hasBeenConfigured()
      True if Validator names have been added to the current configuration, otherwise false.
      Returns:
      True if Validator names have been added to the current configuration, otherwise false.