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 TypeMethodDescriptionvoid
addValidator
(String validatorName) Adds the name of aValidator
implementation to this configuration.void
addValidator
(String validatorName, String validatorClass) Adds a customValidator
name to the current configuration.getValidatorClass
(String validatorName) Returns the name of theValidator
implementation class.Returns an Iterator of theValidator
names in the current configuration.boolean
True ifValidator
names have been added to the current configuration, otherwise false.void
removeValidator
(String validatorName) Removes the specifiedValidator
name from the current configuration.
-
Field Details
-
URI_VALIDATOR
- See Also:
-
-
Constructor Details
-
ValidationConfiguration
public ValidationConfiguration()Constructs a newValidationConfiguation
instance.
-
-
Method Details
-
addValidator
Adds the name of aValidator
implementation to this configuration. The name must be a known name (i.e. be a constant name defined by this class), or aValidator
will not be added. If a non-standard validator is required, useaddValidator(String, String)
instead.- Parameters:
validatorName
- - Validator name
-
addValidator
Adds a customValidator
name to the current configuration.- Parameters:
validatorName
- - Validator namevalidatorClass
- - The class name of thisValidator
-
removeValidator
Removes the specifiedValidator
name from the current configuration.- Parameters:
validatorName
- - Validator name
-
getValidatorNames
Returns an Iterator of theValidator
names in the current configuration.- Returns:
- Iterator of this configuration's
Validator
names
-
getValidatorClass
Returns the name of theValidator
implementation class.- Parameters:
validatorName
- - Validator name- Returns:
- The name of the
Validator
implementation class.
-
hasBeenConfigured
public boolean hasBeenConfigured()True ifValidator
names have been added to the current configuration, otherwise false.- Returns:
- True if
Validator
names have been added to the current configuration, otherwise false.
-