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 TypeMethodDescriptionvoidValidates the given address.voidValidates the given citation.voidvalidate(CitationDate... dates) Validates citation dates.voidValidates the given contact information.voidvalidate(OnlineResource object) Validates the given online resource.voidValidates the given party.voidvalidate(Responsibility object) Validates the given responsible party.voidValidates 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.CREATIONshall be before or equals to all other type of dates, ignoring user-defined codes.DateType.LAST_UPDATEshall be before or equals toDateType.NEXT_UPDATE.DateType.VALIDITY_BEGINSshall 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
-