<<

NAME

Youri::Check::Input::Updates::Source - Abstract updates source

DESCRIPTION

This abstract class defines the updates source interface for Youri::Check::Input::Updates.

CLASS METHODS

new(%args)

Creates and returns a new Youri::Check::Input::Updates object.

Generic parameters (subclasses may define additional ones):

aliases $aliases

Hash of package aliases.

Warning: do not call directly, call subclass constructor instead.

INSTANCE METHODS

Excepted explicit statement, package name is expressed with Mandriva naming conventions.

get_id()

Returns source identity.

get_version($package)

Returns available version for given package, which can be either a full Youri::Package object or just a package name.

get_url($name)

Returns the URL of information source for package with given name.

name($name)

Returns name converted to specific source naming conventions for package with given name.

_version($name)

Hook called by default version() implementation after name translation.

_url($name)

Hook called by default url() implementation after name translation.

_name($name)

Hook called by default name() implementation if given name was not found in the aliases.

SUBCLASSING

The following methods have to be implemented:

version

As an alternative, the _version() hook can be implemented.

url

As an alternative, the <_url()> hook can be implemented.

name

As an alternative, the _name() hook can be implemented.

COPYRIGHT AND LICENSE

Copyright (C) 2002-2006, YOURI project

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

<<