CPAN RT

MOBY::Client::CollectionArticle - a small object describing the Collection articles from the findService Response message of MOBY Central or representing the collection part of a MOBY invocation or response block

This module can be used in two ways.
One is to represent the Collection portion of a findService response.
The other is to represent the Collecion portion of a MOBY service invocation or response message.

This describes the Collection articles from either the findService Response of MOBY Central (i.e. the description of the service), or Collection articles as provided in a service invocation or response message (i.e. simple articles containing data)

Usage : $simples = $IN->addSimple($SimpleArticle)
Function : add another SimpleArticle
Returns : arrayref of MOBY::Client::SimpleArticle's or 0 if argument
was not a MOBY::Client::SimpleArticle (or other failure)
Arguments : a new MOBY::Client::SimpleArticle to add to collection

Usage : $boolean = $IN->isSimple()
Function : is this a SimpleArticle type
(yes, I know this is obvious, but since you can
get both Simple and Collection objects in your
Input and output lists, it is good to be able
to test what you have in-hand)
Returns : 0 (false)

Usage : $boolean = $IN->isCollection()
Function : is this a CollectionArticle type
(yes, I know this is obvious, but since you can
get both Simple and Collection objects in your
Input and output lists, it is good to be able
to test what you have in-hand)
Returns : 1 (true)