NAME

XML::XBEL::Bookmark - OOP for reading and writing XBEL bookmarks.

SYNOPSIS

use XML::XBEL::Bookmark;

DESCRIPTION

OOP for reading and writing XBEL bookmarks.

PACKAGE METHODS

__PACKAGE__->new(\%args)

Valid args are:

  • title

    String.

  • href

    String.

  • id

    String.

  • desc

    String.

  • added

    String.

  • modified

    String.

  • visited

    String.

  • info

    Hash ref, with the following key/value pairs :

    • owner

      Array ref.

Returns a XML::XBEL::Bookmark object.

OBJECT METHODS

$obj->href(href)

Get/set the href attribute for an XBEL bookmark.

If modified, the object's modified method is automatically called with the current datetime.

$obj->title($title)

Get/set the title for an XBEL bookmark.

If modified, the object's modified method is automatically called with the current datetime.

Returns a string when called with no arguments; otherwise returns true or false.

$obj->desc($description)

Get/set the description for an XBEL bookmark.

If modified, the object's modified method is automatically called with the current datetime.

Returns a string when called with no arguments; otherwise returns true or false.

$obj->info(\%args)

Get/set the metadata for an XBEL document.

Valid args are :

  • owner

    Array reference

Returns an array reference when called with no arguments; otherwise returns true or false.

$obj->id($id)

Get/set the id attribute for an XBEL bookmark.

If modified, the object's modified method is automatically called with the current datetime.

Returns a string when called with no arguments; otherwise returns true or false.

$obj->added($datetime)

Get/set the creation datetime for an XBEL bookmark.

Returns a string when called with no arguments; otherwise returns true or false.

$obj->modified($datetime)

Get/set the last modified datetime for an XBEL bookmark.

Returns a string when called with no arguments; otherwise returns true or false.

$obj->visited($datetime)

Get/set the last visited datetime for an XBEL bookmark.

Returns a string when called with no arguments; otherwise returns true or false.

$obj->toString($format)

$obj->toFile($filename,$format)

$obj->toFH(\*$fh,$format)

VERSION

$Revision: 1.4 $

DATE

$Date: 2004/06/23 06:23:57 $

AUTHOR

Aaron Straup Cope <ascope@cpan.org>

SEE ALSO

XML::XBEL

XML::XBEL::Folder

XML::XBEL::Alias

XML::XBEL::Separator

LICENSE

Copyright (c) 2004 Aaron Straup Cope. All rights reserved.

This is free software, you may use it and distribute it under the same terms as Perl itself.