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 of org.opengis.metadata package.
Since:
2.2
Version:
3.0
  • Constructor Details

    • MetadataValidator

      protected MetadataValidator(ValidatorContainer container, 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 Details

    • validateCollection

      final <T> void validateCollection(Class<T> elementType, 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, or null.