Lire::Config::Index(3pm)

Lire::Config::Index3pm

Index registry and interface

Usage

  use base qw/Lire::Config::Index/;
  sub has_entry { my ($self, $name) = @_; ... }
  sub entries { my $self = $_[0]; ... }
  sub get_ref { my ($self, $name) = @_; ... }

Overview

The Lire::Config::Index interface is used by the Lire::Config::ReferenceSpec(3pm) to validate and obtain referenced object.

Index registry

These are the class methods used to register and obtain Index objects.

has_index( $name )

Returns true if an index was registered under $name.

get_index( $name )

Retuurns the Index named $name. Croaks if no such index was registered.

set_index( $name, $index )

Registers $index under $name. Replaces any previous index registered under the same name.

Index interface

has_entry( $name )

Should return true if $name is defined in this index.

entries()

Should return all the entries defined in the index.

get_ref( $name )

Should return the object indexed under $name. An error should be thrown if there is no such entry.;.

Version

$Id: Index.pm,v 1.2 2006/07/23 13:16:30 vanbaal Exp $

Releases

6 releases since Debian 3.1 (Sarge); the text changed 5 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7
  6. Arch

Author

  Francis J. Lacoste <[email protected]>

From lire 2.1.1-8 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.