-
Field Summary
Fields inherited from class org.opengis.test.Validator
container, DEFAULT_TOLERANCE, enforceForbiddenAttributes, logger, requireMandatoryAttributes
-
Constructor Summary
ConstructorDescriptionImageValidator
(ValidatorContainer container) Creates a new validator instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
validate
(IIOMetadataFormat format) Validates the given metadata format.void
validate
(ImageReaderSpi provider) Validates the given provider of image readers.void
validate
(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 benull
rather 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, ornull
if 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 benull
rather 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, ornull
if none.
-
validate
Validates the given metadata format.- Parameters:
format
- the metadata format to validate, ornull
if none.
-