Class PlanregistratieValidator
java.lang.Object
nl.b3p.planmonitorwonen.api.validation.PlanregistratieValidator
Validates a planregistratie received from a client. Only the fields of the basisset 2.0 and the fields needed to
identify and authorize the planregistratie are required, the provincie specific fields are optional because
planregistraties may be delivered by software of a gemeente. Optional fields left out or null are not filled in, but
when filled in the value must be valid.
Whether the geometry lies within the gemeente is checked by
PlanregistratieCompletionService because it needs the database.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic List<ValidationError> validate(Planregistratie planregistratie, EnumValues enumValues) Returns the validation errors of the planregistratie, empty when valid.
-
Field Details
-
PLAN_NAAM_MIN_LENGTH
public static final int PLAN_NAAM_MIN_LENGTH- See Also:
-
-
Method Details
-
validate
public static List<ValidationError> validate(Planregistratie planregistratie, EnumValues enumValues) Returns the validation errors of the planregistratie, empty when valid.- Parameters:
enumValues- the values of the enum types in the database
-