Package org.opengis.test.metadata
Class MetadataValidator
- java.lang.Object
-
- org.opengis.test.Validator
-
- org.opengis.test.metadata.MetadataValidator
-
- Direct Known Subclasses:
CitationValidator
,ExtentValidator
public abstract class MetadataValidator extends Validator
Base class for validators oforg.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
Constructors Modifier Constructor Description protected
MetadataValidator(ValidatorContainer container, java.lang.String packageName)
Creates a new validator instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) <T> void
validateCollection(java.lang.Class<T> elementType, java.util.Collection<? extends T> objects)
Validates all elements in the given collection.(package private) void
validateMandatory(InternationalString object)
Validates the given mandatory string.(package private) void
validateOptional(InternationalString object)
Validates the given mandatory string.
-
-
-
Constructor Detail
-
MetadataValidator
protected MetadataValidator(ValidatorContainer container, java.lang.String packageName)
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 Detail
-
validateCollection
final <T> void validateCollection(java.lang.Class<T> elementType, java.util.Collection<? extends T> objects)
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
final void validateMandatory(InternationalString object)
Validates the given mandatory string.- Parameters:
object
- The object to validate.
-
validateOptional
final void validateOptional(InternationalString object)
Validates the given mandatory string.- Parameters:
object
- The object to validate, ornull
.
-
-