279. TypeRepository

Type repository for validation of user-defined types

279.1. Authors

  • Stanislav Visnovsky <visnov@suse.cz>

279.2. Summary of Module Globals

List of Global Functions

List of Global Variables

    279.3. Global Functions

    279.3.1. TypeRepository

    Constructor, defines the known types.

    Return value

    • void

    279.3.2. enum_validator

    Generic enumerated type validator.

    Function parameters

    • list values

    • string value

    Return value

    • boolean - true if successful

    279.3.3. is_a

    Validate, that the given value is of given type.

    Function parameters

    • any value

    • string type

    Return value

    • boolean - true, if the value can be considered to be of a given type

    279.3.4. regex_validator

    Generic regular expression validator.

    Function parameters

    • string regex

    • string value

    Return value

    • boolean - true if successful

    279.4. Global Variables

    279.5. Module Requirements

    279.5.1. Module Imports

    • Address
    • Hostname
    • IP
    • Netmask
    • URL

    279.5.2. Module Includes