The manakai project

Web::DOM::AtomSourceElement

DOM AtomSourceElement object

DESCRIPTION

The Web::DOM::AtomSourceElement class implements the DOM AtomSourceElement interface. The class is used by the Atom source element.

METHODS

In addition to the methods for classes Web::DOM::Element and Web::DOM::AtomElement, following methods are available:

$string = $el->atom_id
$el->atom_id ($string)

Return or set the value of the atom:id child element. [ATOMDOM]

$col = $el->author_elements

Return a Web::DOM::HTMLCollection containing the atom:author element childs. [ATOMDOM]

$col = $el->category_elements

Return a Web::DOM::HTMLCollection containing the atom:category element childs. [ATOMDOM]

$col = $el->contributor_elements

Return a Web::DOM::HTMLCollection containing the atom:contributor element childs. [ATOMDOM]

$el2 = $el->generator_element

Return the atom:generator element child, if any. [ATOMDOM]

If the manakai-create-child-element configuration parameter is set to true and there is no atom:generator element child, a new element is created and returned. Otherwise, no element is created and undef is returned.

$url = $el->icon
$el->icon ($url)

Return or set the value of the atom:icon child element. The method returns the resoloved absolute URL if the value is a relative URL. [ATOMDOM]

Return a Web::DOM::HTMLCollection containing the atom:link element childs. [ATOMDOM]

$el->logo ($url)

Return or set the value of the atom:logo child element. The method returns the resoloved absolute URL if the value is a relative URL. [ATOMDOM]

$el2 = $el->rights_element

Return the atom:rights element child, if any. [ATOMDOM]

If the manakai-create-child-element configuration parameter is set to true and there is no atom:rights element child, a new element is created and returned. Otherwise, no element is created and undef is returned.

$el2 = $el->subtitle_element

Return the atom:subtitle element child, if any. [ATOMDOM]

If the manakai-create-child-element configuration parameter is set to true and there is no atom:subtitle element child, a new element is created and returned. Otherwise, no element is created and undef is returned.

$el2 = $el->title_element

Return the atom:title element child, if any. [ATOMDOM]

If the manakai-create-child-element configuration parameter is set to true and there is no atom:title element child, a new element is created and returned. Otherwise, no element is created and undef is returned.

$el2 = $el->updated_element

Return the atom:updated element child, if any. [ATOMDOM]

If the manakai-create-child-element configuration parameter is set to true and there is no atom:updated element child, a new element is created and returned. Otherwise, no element is created and undef is returned.

See also "DEPENDENCY" in Web::DOM.

DEPENDENCY

For the value method, the perl-web-datetime package <https://github.com/manakai/perl-web-datetime> is required.

SPECIFICATION

ATOMDOM

Atom DOM <http://suika.suikawiki.org/www/markup/xml/atomdom>.

SEE ALSO

Web::DOM::AtomElement, Web::DOM::AtomFeedElement.

AUTHOR

Wakaba <wakaba@suikawiki.org>.

LICENSE

Copyright 2013-2014 Wakaba <wakaba@suikawiki.org>.

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