-
Field Summary
Fields inherited from class org.opengis.test.Validator
container, DEFAULT_TOLERANCE, enforceForbiddenAttributes, logger, requireMandatoryAttributes -
Constructor Summary
ConstructorsConstructorDescriptionImageValidator(ValidatorContainer container) Creates a new validator instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate(IIOMetadataFormat format) Validates the given metadata format.voidvalidate(ImageReaderSpi provider) Validates the given provider of image readers.voidvalidate(ImageWriterSpi provider) Validates the given provider of image writers.
-
Constructor Details
-
ImageValidator
Creates a new validator instance.- Parameters:
container- the set of validators to use for validating other kinds of objects (see field javadoc).
-
-
Method Details
-
validate
Validates the given provider of image readers. First, this method verifies that mandatory elements are non-null, arrays are non-empty (Image I/O specification requires them to benullrather than empty), and class names are valid. Next, this method invokesvalidate(IIOMetadataFormat)for each metadata format (which can be null).- Parameters:
provider- the provider to validate, ornullif none.
-
validate
Validates the given provider of image writers. First, this method verifies that mandatory elements are non-null, arrays are non-empty (Image I/O specification requires them to benullrather than empty), and class names are valid. Next, this method invokesvalidate(IIOMetadataFormat)for each metadata format (which can be null).- Parameters:
provider- the provider to validate, ornullif none.
-
validate
Validates the given metadata format.- Parameters:
format- the metadata format to validate, ornullif none.
-