NAME
Siebel::Srvrmgr::ListParser::Output::ListCompDef - subclass to parse component definitions
SYNOPSIS
use Siebel::Srvrmgr::ListParser::Output::ListCompDef;
my $comp_defs = Siebel::Srvrmgr::ListParser::Output::ListCompDef->new({});
DESCRIPTION
This subclass of SiebeL::Srvrmgr::ListParser::Output parses the output of the command list comp def COMPONENT_NAME
.
The order of the fields and their configuration must follow the pattern defined below:
srvrmgr> configure list comp def
CC_NAME (76): Component name
CT_NAME (76): Component type name
CC_RUNMODE (31): Component run mode (enum)
CC_ALIAS (31): Component alias
CC_DISP_ENABLE_ST (61): Display enablement state (translatable)
CC_DESC_TEXT (251): Component description
CG_NAME (76): Component group
CG_ALIAS (31): Component Group Alias
CC_INCARN_NO (23): Incarnation Number
ATTRIBUTES
All attributes of SiebeL::Srvrmgr::ListParser::Output plus the ones explaned below.
comp_params
An array reference with all the definitions of the component informed in the command list comp def
.
METHODS
All methods of SiebeL::Srvrmgr::ListParser::Output plus the ones explaned below.
get_comp_defs
Returns the content of comp_params
attribute.
set_comp_defs
Set the content of the comp_defs
attribute. Expects an array reference as parameter.
parse
Parses the content of raw_data
attribute, setting the result on parsed_data
attribute.
The contents of raw_data
is changed to an empty array reference at the end of the process.
It raises an exception when the parser is not able to define the fields_pattern
attribute.