Package org.opengis.test.metadata
Class ExtentValidator
- Object
-
- Validator
-
- MetadataValidator
-
- ExtentValidator
-
public class ExtentValidator extends MetadataValidator
ValidatesExtent
and related objects from theorg.opengis.metadata.extent
package.This class is provided for users wanting to override the validation methods. When the default behavior is sufficient, the
Validators
static methods provide a more convenient way to validate various kinds of objects.- Since:
- 2.2
-
-
Field Summary
-
Fields inherited from class Validator
container, DEFAULT_TOLERANCE, enforceForbiddenAttributes, logger, requireMandatoryAttributes
-
-
Constructor Summary
Constructors Constructor Description ExtentValidator(ValidatorContainer container)
Creates a new validator instance.
-
Method Summary
Modifier and Type Method Description int
dispatch(GeographicExtent object)
For each interface implemented by the given object, invokes the correspondingvalidate(…)
method defined in this class (if any).void
validate(BoundingPolygon object)
Validates the bounding polygon.void
validate(Extent object)
Validates the given extent.void
validate(GeographicBoundingBox object)
Validates the geographic bounding box.void
validate(GeographicDescription object)
Validates the geographic description.void
validate(TemporalExtent object)
Validates the temporal extent.void
validate(VerticalExtent object)
Validates the vertical extent.-
Methods inherited from class Validator
conditional, forbidden, mandatory, validate
-
-
-
-
Constructor Detail
-
ExtentValidator
public ExtentValidator(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
-
dispatch
public int dispatch(GeographicExtent object)
For each interface implemented by the given object, invokes the correspondingvalidate(…)
method defined in this class (if any).- Parameters:
object
- the object to dispatch tovalidate(…)
methods, ornull
.- Returns:
- number of
validate(…)
methods invoked in this class for the given object.
-
validate
public void validate(GeographicDescription object)
Validates the geographic description.- Parameters:
object
- the object to validate, ornull
.
-
validate
public void validate(BoundingPolygon object)
Validates the bounding polygon.- Parameters:
object
- the object to validate, ornull
.- TODO:
- Not yet implemented.
-
validate
public void validate(GeographicBoundingBox object)
Validates the geographic bounding box.- Parameters:
object
- the object to validate, ornull
.
-
validate
public void validate(VerticalExtent object)
Validates the vertical extent.- Parameters:
object
- the object to validate, ornull
.
-
validate
public void validate(TemporalExtent object)
Validates the temporal extent.- Parameters:
object
- the object to validate, ornull
.- TODO:
- Validation of temporal primitives not yet implemented.
-
-