NAME
Siebel::Srvrmgr::ListParser::OutputFactory - abstract factory class to create Siebel::Srvrmgr::ListParser::Output objects
SYNOPSIS
use Siebel::Srvrmgr::ListParser::OutputFactory;
my $output = Siebel::Srvrmgr::ListParser::OutputFactory->create(
$type,
{
data_type => $type,
raw_data => \@data,
cmd_line => 'list something'
}
);
DESCRIPTION
This is an abstract factory class to create instances of subclass of Siebel::Srvrmgr::ListParser::Output superclass.
It has the mapping between the types parsed by Siebel::Srvrmgr::ListParser class to the respective class of output. See Siebel::Srvrmgr::ListParser::OutputFactory::table_mapping
for the mapping between types and classes.
METHODS
create
Returns the instance of the class defined by the type given as parameter. Expects two parameters: an string with the type of output and an hash reference with the parameters expected by the new
method of Siebel::Srvrmgr::ListParser::Output.
can_create
Expects a string as the output type.
Returns true if there is a mapping between the given type and a subclass of Siebel::Srvrmgr::ListParser::Output; otherwise it returns false;