NAME

Netscape::Bookmarks::Isa - mixin methods for object identity

SYNOPSIS

        use base qw( Netscape::Bookmarks::Isa );

        my $bookmarks = Netscape::Bookmarks->new( $bookmarks_file );

        foreach my $element ( $bookmarks->elements )
                {
                print "Found category!\n" if $element->is_category;
                }

DESCRIPTION

This module is a base class for Netscape::Bookmarks modules. Each object can respond to queries about its identity. Use this module as a mixin class.

METHODS

Methods return false unless otherwise noted.

is_category

Returns true if the object is a Category.

Returns true if the object is a Link or alias to a Link.

is_alias

Returns true if the object is an Alias.

is_separator

Returns true if the object is a Separator.

is_collection

Returns true if the object is a Category.

AUTHOR

brian d foy <bdfoy@cpan.org>

COPYRIGHT AND LICENSE

Copyright © 2002-2018, brian d foy <bdfoy@cpan.org>. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0.

SEE ALSO

Netscape::Bookmarks::Category, Netscape::Bookmarks::Link, Netscape::Bookmarks::Alias, Netscape::Bookmarks::Separator.