Class ValidationConfiguration
java.lang.Object
com.sun.ts.tests.common.taglibsig.validation.ValidationConfiguration
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddValidator(String validatorName) Adds the name of aValidatorimplementation to this configuration.voidaddValidator(String validatorName, String validatorClass) Adds a customValidatorname to the current configuration.getValidatorClass(String validatorName) Returns the name of theValidatorimplementation class.Returns an Iterator of theValidatornames in the current configuration.booleanTrue ifValidatornames have been added to the current configuration, otherwise false.voidremoveValidator(String validatorName) Removes the specifiedValidatorname from the current configuration.
-
Field Details
-
URI_VALIDATOR
- See Also:
-
-
Constructor Details
-
ValidationConfiguration
public ValidationConfiguration()Constructs a newValidationConfiguationinstance.
-
-
Method Details
-
addValidator
Adds the name of aValidatorimplementation to this configuration. The name must be a known name (i.e. be a constant name defined by this class), or aValidatorwill not be added. If a non-standard validator is required, useaddValidator(String, String)instead.- Parameters:
validatorName- - Validator name
-
addValidator
Adds a customValidatorname to the current configuration.- Parameters:
validatorName- - Validator namevalidatorClass- - The class name of thisValidator
-
removeValidator
Removes the specifiedValidatorname from the current configuration.- Parameters:
validatorName- - Validator name
-
getValidatorNames
Returns an Iterator of theValidatornames in the current configuration.- Returns:
- Iterator of this configuration's
Validatornames
-
getValidatorClass
Returns the name of theValidatorimplementation class.- Parameters:
validatorName- - Validator name- Returns:
- The name of the
Validatorimplementation class.
-
hasBeenConfigured
public boolean hasBeenConfigured()True ifValidatornames have been added to the current configuration, otherwise false.- Returns:
- True if
Validatornames have been added to the current configuration, otherwise false.
-