Package org.opengis.test.coverage.image
Class ImageValidator
-
public class ImageValidator extends Validator
Validators for implementations ofjava.awt.imageorjavax.imageioservices.- Since:
- 3.1
-
-
Field Summary
-
Fields inherited from class Validator
container, DEFAULT_TOLERANCE, enforceForbiddenAttributes, logger, requireMandatoryAttributes
-
-
Constructor Summary
Constructors Constructor Description ImageValidator(ValidatorContainer container)Creates a new validator instance.
-
Method Summary
Modifier and Type Method Description voidvalidate(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.-
Methods inherited from class Validator
conditional, forbidden, mandatory, validate
-
-
-
-
Constructor Detail
-
ImageValidator
public ImageValidator(ValidatorContainer container)
Creates a new validator instance.- Parameters:
container- the set of validators to use for validating other kinds of objects (see field javadoc).
-
-
Method Detail
-
validate
public void validate(ImageReaderSpi provider)
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
public void validate(ImageWriterSpi provider)
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
public void validate(IIOMetadataFormat format)
Validates the given metadata format.- Parameters:
format- the metadata format to validate, ornullif none.
-
-