Package org.opengis.test.metadata
Class MetadataValidator
java.lang.Object
org.opengis.test.Validator
org.opengis.test.metadata.MetadataValidator
- Direct Known Subclasses:
CitationValidator
,ExtentValidator
Base class for validators of
org.opengis.metadata
package.- Since:
- 2.2
- Version:
- 3.0
-
Field Summary
Fields inherited from class org.opengis.test.Validator
container, DEFAULT_TOLERANCE, enforceForbiddenAttributes, logger, requireMandatoryAttributes
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
MetadataValidator
(ValidatorContainer container, String packageName) Creates a new validator instance. -
Method Summary
Modifier and TypeMethodDescription(package private) final <T> void
validateCollection
(Class<T> elementType, Collection<? extends T> objects) Validates all elements in the given collection.(package private) final void
validateMandatory
(InternationalString object) Validates the given mandatory string.(package private) final void
validateOptional
(InternationalString object) Validates the given mandatory string.
-
Constructor Details
-
MetadataValidator
Creates a new validator instance.- Parameters:
container
- The container of this validator.packageName
- The name of the package containing the classes to be validated.
-
-
Method Details
-
validateCollection
Validates all elements in the given collection.- Type Parameters:
T
- The type of elements in the collection.- Parameters:
elementType
- The type of elements in the collection.objects
- The collection to validate.
-
validateMandatory
Validates the given mandatory string.- Parameters:
object
- The object to validate.
-
validateOptional
Validates the given mandatory string.- Parameters:
object
- The object to validate, ornull
.
-