Class CitationValidator


public class CitationValidator extends MetadataValidator
Validates Citation and related objects from the org.opengis.metadata.citation 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
  • Constructor Details

    • CitationValidator

      public CitationValidator(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 Details

    • validate

      public void validate(Citation object)
      Validates the given citation.
      Parameters:
      object - the object to validate, or null.
    • validate

      public void validate(CitationDate... dates)
      Validates citation dates. If more than one dates is given, then this method will check for the following constraints: Those constraints are verified in their iteration order. It is possible for example to have more than one (validity begins, validity expires) pair.
      Parameters:
      dates - the citation dates to validate.
      Since:
      3.1
    • validate

      public void validate(Responsibility object)
      Validates the given responsible party.
      Parameters:
      object - the object to validate, or null.
      Since:
      3.1
    • validate

      public void validate(Party object)
      Validates the given party.
      Parameters:
      object - the object to validate, or null.
      Since:
      3.1
    • validate

      public void validate(Contact object)
      Validates the given contact information.
      Parameters:
      object - the object to validate, or null.
      Since:
      3.1
    • validate

      public void validate(Telephone object)
      Validates the given telephone information.
      Parameters:
      object - the object to validate, or null.
      Since:
      3.1
    • validate

      public void validate(Address object)
      Validates the given address.
      Parameters:
      object - the object to validate, or null.
      Since:
      3.1
    • validate

      public void validate(OnlineResource object)
      Validates the given online resource.
      Parameters:
      object - the object to validate, or null.
      Since:
      3.1