def __init__(self, p_type = 'str', p_border = None, p_font = None, p_fill = None, p_alignment = None, p_valueMapping = {}):
        """Create a new Spartacus.Reports.Data instance.

            Args:
                p_type (str): the data type of each cell of this column. Defaults to 'str'.
                    Must be one of: int, float, float4, percent, date, str, bool, int_formula, float_formula, float4_formula, percent_formula, date_formula, str_formula.
                p_border (openpyxl.styles.borders.Border): the border to be applied to cells of this column. Defaults to None.
                    Examples:
                        p_border = openpyxl.styles.borders.Border(
                            left = openpyxl.styles.borders.Side(
                                style = 'thick'
                            ),
                            top = openpyxl.styles.borders.Side(
                                style = 'thick'
                            ),
                            bottom = openpyxl.styles.borders.Side(
                                style = 'thick'
                            )
                        )
                p_font (openpyxl.styles.Font): the font to be applied to cells of this column. Defaults to None.
                    Examples:
                        p_font = openpyxl.styles.Font(
                            bold = True
                        )
                p_fill (openpyxl.styles.PatternFill): the fill to be applied to cells of this column. Defaults to None.
                    Examples:
                        p_fill = openpyxl.styles.PatternFill(
                            'solid',
                            fgColor = 'DBE5F1'
                        )
                p_alignment (openpyxl.styles.Alignment): the alignment to be applied to cells of this column. Defaults to None.
                    Examples:
                        p_alignment = openpyxl.styles.Alignment(
                            horizontal = 'center',
                            vertical = 'center',
                            wrapText = True
                        )
                p_valueMapping (dict): a mapping of internal values do report display values. If a a given data value match to some key in the dict, it will be replaced by the corresponding dict entry value. Defaults to {}.
                    Notes:
                        Applied just if non-formula data fields.

                    Examples:
                        {
                            'True': 'Y',
                            'False': 'N'
                        }

                        We've used a 'bool' Data.type in the example above. As you can see, it matches by dict key, so False will be checked as corresponding str form of it, that means, 'False' in this case.

            Raises:
                Spartacus.Report.Exception: custom exceptions occurred in this script.
        """

        if not isinstance(p_type, str):
            raise Spartacus.Report.Exception('Error during instantiation of class "Spartacus.Reports.Data": Parameter "p_type" must be of type "str".')

        if not p_type in ['int', 'float', 'float4', 'percent', 'date', 'str', 'bool', 'int_formula', 'float_formula', 'float4_formula', 'percent_formula', 'date_formula', 'str_formula']:
            raise Spartacus.Report.Exception('Error during instantiation of class "Spartacus.Reports.Data": Parameter "p_type" must be one of: "int", "float", "float4", "percent", "date", "str", "bool", "int_formula", "float_formula", "float4_formula", "percent_formula", "date_formula", "str_formula".')

        if p_border is not None and not isinstance(p_border, openpyxl.styles.borders.Border):
            raise Spartacus.Report.Exception('Error during instantiation of class "Spartacus.Reports.Data": Parameter "p_border" must be None or of type "openpyxl.styles.borders.Border".')

        if p_font is not None and not isinstance(p_font, openpyxl.styles.Font):
            raise Spartacus.Report.Exception('Error during instantiation of class "Spartacus.Reports.Data": Parameter "p_font" must be None or of type "openpyxl.styles.Font".')

        if p_fill is not None and not isinstance(p_fill, openpyxl.styles.PatternFill):
            raise Spartacus.Report.Exception('Error during instantiation of class "Spartacus.Reports.Data": Parameter "p_fill" must be None or of type "openpyxl.styles.PatternFill".')

        if p_alignment is not None and not isinstance(p_alignment, openpyxl.styles.Alignment):
            raise Spartacus.Report.Exception('Error during instantiation of class "Spartacus.Reports.Data": Parameter "p_alignment" must be of type "openpyxl.styles.Alignment".')

        if not isinstance(p_valueMapping, dict):
            raise Spartacus.Report.Exception('Error during instantiation of class "Spartacus.Reports.Data": Parameter "p_valueMapping" must be of type "dict".')

        self.type = p_type
        self.border = p_border
        self.font = p_font
        self.fill = p_fill
        self.alignment = p_alignment
        self.valueMapping = p_valueMapping
def __init__ ( self , p_type = 'str' , p_border = None , p_font = None , p_fill = None , p_alignment = None , p_valueMapping = { } ) : if not isinstance ( p_type , str ) : raise Spartacus . Report . Exception ( 'Error during instantiation of class "Spartacus.Reports.Data": Parameter "p_type" must be of type "str".' ) if not p_type in [ 'int' , 'float' , 'float4' , 'percent' , 'date' , 'str' , 'bool' , 'int_formula' , 'float_formula' , 'float4_formula' , 'percent_formula' , 'date_formula' , 'str_formula' ] : raise Spartacus . Report . Exception ( 'Error during instantiation of class "Spartacus.Reports.Data": Parameter "p_type" must be one of: "int", "float", "float4", "percent", "date", "str", "bool", "int_formula", "float_formula", "float4_formula", "percent_formula", "date_formula", "str_formula".' ) if p_border is not None and not isinstance ( p_border , openpyxl . styles . borders . Border ) : raise Spartacus . Report . Exception ( 'Error during instantiation of class "Spartacus.Reports.Data": Parameter "p_border" must be None or of type "openpyxl.styles.borders.Border".' ) if p_font is not None and not isinstance ( p_font , openpyxl . styles . Font ) : raise Spartacus . Report . Exception ( 'Error during instantiation of class "Spartacus.Reports.Data": Parameter "p_font" must be None or of type "openpyxl.styles.Font".' ) if p_fill is not None and not isinstance ( p_fill , openpyxl . styles . PatternFill ) : raise Spartacus . Report . Exception ( 'Error during instantiation of class "Spartacus.Reports.Data": Parameter "p_fill" must be None or of type "openpyxl.styles.PatternFill".' ) if p_alignment is not None and not isinstance ( p_alignment , openpyxl . styles . Alignment ) : raise Spartacus . Report . Exception ( 'Error during instantiation of class "Spartacus.Reports.Data": Parameter "p_alignment" must be of type "openpyxl.styles.Alignment".' ) if not isinstance ( p_valueMapping , dict ) : raise Spartacus . Report . Exception ( 'Error during instantiation of class "Spartacus.Reports.Data": Parameter "p_valueMapping" must be of type "dict".' ) self . type = p_type self . border = p_border self . font = p_font self . fill = p_fill self . alignment = p_alignment self . valueMapping = p_valueMapping
Create a new Spartacus.Reports.Data instance.

            Args:
                p_type (str): the data type of each cell of this column. Defaults to 'str'.
                    Must be one of: int, float, float4, percent, date, str, bool, int_formula, float_formula, float4_formula, percent_formula, date_formula, str_formula.
                p_border (openpyxl.styles.borders.Border): the border to be applied to cells of this column. Defaults to None.
                    Examples:
                        p_border = openpyxl.styles.borders.Border(
                            left = openpyxl.styles.borders.Side(
                                style = 'thick'
                            ),
                            top = openpyxl.styles.borders.Side(
                                style = 'thick'
                            ),
                            bottom = openpyxl.styles.borders.Side(
                                style = 'thick'
                            )
                        )
                p_font (openpyxl.styles.Font): the font to be applied to cells of this column. Defaults to None.
                    Examples:
                        p_font = openpyxl.styles.Font(
                            bold = True
                        )
                p_fill (openpyxl.styles.PatternFill): the fill to be applied to cells of this column. Defaults to None.
                    Examples:
                        p_fill = openpyxl.styles.PatternFill(
                            'solid',
                            fgColor = 'DBE5F1'
                        )
                p_alignment (openpyxl.styles.Alignment): the alignment to be applied to cells of this column. Defaults to None.
                    Examples:
                        p_alignment = openpyxl.styles.Alignment(
                            horizontal = 'center',
                            vertical = 'center',
                            wrapText = True
                        )
                p_valueMapping (dict): a mapping of internal values do report display values. If a a given data value match to some key in the dict, it will be replaced by the corresponding dict entry value. Defaults to {}.
                    Notes:
                        Applied just if non-formula data fields.

                    Examples:
                        {
                            'True': 'Y',
                            'False': 'N'
                        }

                        We've used a 'bool' Data.type in the example above. As you can see, it matches by dict key, so False will be checked as corresponding str form of it, that means, 'False' in this case.

            Raises:
                Spartacus.Report.Exception: custom exceptions occurred in this script.