Object
Validator
MetadataValidator
CitationValidator
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
-
Field Summary
Fields inherited from class org.opengis.test.Validator
container, DEFAULT_TOLERANCE, enforceForbiddenAttributes, logger, requireMandatoryAttributes
-
Constructor Summary
ConstructorsConstructorDescriptionCitationValidator
(ValidatorContainer container) Creates a new validator instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Validates the given address.void
Validates the given citation.void
validate
(CitationDate... dates) Validates citation dates.void
Validates the given contact information.void
validate
(OnlineResource object) Validates the given online resource.void
Validates the given party.void
validate
(Responsibility object) Validates the given responsible party.void
Validates the given telephone information.
-
Constructor Details
-
CitationValidator
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
-
validate
Validates citation dates. If more than one dates is given, then this method will check for the following constraints:DateType.CREATION
shall be before or equals to all other type of dates, ignoring user-defined codes.DateType.LAST_UPDATE
shall be before or equals toDateType.NEXT_UPDATE
.DateType.VALIDITY_BEGINS
shall be before or equals toDateType.VALIDITY_EXPIRES
.
- Parameters:
dates
- the citation dates to validate.- Since:
- 3.1
-
validate
Validates the given responsible party.- Parameters:
object
- the object to validate, ornull
.- Since:
- 3.1
-
validate
-
validate
-
validate
-
validate
-
validate
Validates the given online resource.- Parameters:
object
- the object to validate, ornull
.- Since:
- 3.1
-