Biblio::SICI::Role::ValidSegment(3pm)

Biblio::SICI::Role::ValidSegment3pm

Role to provide common validation error handling functionality to the segments

Version

version 0.04

Overview

A role that provides an attribute and some methods used for validation error handling functionality in the three SICI segments.

Attributes

validationErrors

Stores the problem reports that are gathered when any attribute is set. Do not access this directly - use the methods below.

Methods

"log_problem_on"( STRING, ARRAYREF )

Stores an array ref of problem descriptions for a particular attribute.

"clear_problem_on"( STRING )

Removes the problem report for a particular attribute.

HASH "list_problems"()

Returns a hash structure with all error reports.

BOOL "is_valid"()

Checks if any problem reports were recorded for any attribute. If yes, returns FALSE; otherwise, returns TRUE.

Does not yet do extended verification; e.g. checking if all required data is present or if there are any conflicts within the stored SICI data!

Releases

Unchanged in 2 releases since Debian 12 (Bookworm).

  1. 12–13

Author

Heiko Jansen <[email protected]>

From libbiblio-sici-perl 0.04-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.