Object/TableCell.pm untested

filter: Statementstmt 0.0% 0 / 76 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 17 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 97 CC 2 SCAR 8.9
CC
2
Cov
0%
TO_JSON
6.0
new
2.0
BEGIN
2.0
CRAP 2.4
1 =begin comment
2  
3 Copyright (c) 2019 Aspose Pty Ltd
4  
5 Permission is hereby granted, free of charge, to any person obtaining a copy
6 of this software and associated documentation files (the "Software"), to deal
7 in the Software without restriction, including without limitation the rights
8 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 copies of the Software, and to permit persons to whom the Software is
10 furnished to do so, subject to the following conditions:
11  
12 The above copyright notice and this permission notice shall be included in all
13 copies or substantial portions of the Software.
14  
15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 SOFTWARE.
22  
23 =end comment
24  
25 =cut
26  
27 package AsposeSlidesCloud::Object::TableCell;
28  
29 require 5.6.0;
30 use strict;
31 use warnings;
32 use utf8;
33 use JSON qw(decode_json);
34 use Data::Dumper;
35 use Module::Runtime qw(use_module);
36 use Log::Any qw($log);
37 use Date::Parse;
38 use DateTime;
39  
40 use AsposeSlidesCloud::Object::FillFormat;
41 use AsposeSlidesCloud::Object::LineFormat;
42 use AsposeSlidesCloud::Object::ResourceUri;
43 use AsposeSlidesCloud::Object::TextFrameFormat;
44  
45 use base ("Class::Accessor", "Class::Data::Inheritable");
46  
47  
48 #
49 #Represents one cell of table.
50 #
51 # NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
52 # REF: https://github.com/swagger-api/swagger-codegen
53 #
54  
55 #
56 # NOTE: This class is auto generated by the swagger code generator program.
57 # Do not edit the class manually.
58 # Ref: https://github.com/swagger-api/swagger-codegen
59 #
60 __PACKAGE__->mk_classdata('attribute_map' => {});
61 __PACKAGE__->mk_classdata('swagger_types' => {});
62 __PACKAGE__->mk_classdata('method_documentation' => {});
63 __PACKAGE__->mk_classdata('class_documentation' => {});
64  
65 # new object
66 sub new {
67 my ($class, %args) = @_;
68  
69 my $self = bless {}, $class;
70
71 foreach my $attribute (keys %{$class->attribute_map}) {
72 my $args_key = $class->attribute_map->{$attribute};
73 $self->$attribute( $args{ $args_key } );
74 }
75 return $self;
76 }
77  
78 # used by JSON for serialization
79 sub TO_JSON {
80 my $self = shift;
81 my $_data = {};
82 foreach my $_key (keys %{$self->attribute_map}) {
83 if (defined $self->{$_key}) {
84 $_data->{$self->attribute_map->{$_key}} = $self->{$_key};
85 }
86 }
87 return $_data;
88 }
89  
90  
91 __PACKAGE__->class_documentation({description => 'Represents one cell of table.',
92 class => 'TableCell',
93 required => [], # TODO
94 } );
95  
96 __PACKAGE__->method_documentation({
97 'text' => {
98 datatype => 'string',
99 base_name => 'Text',
100 description => 'Cell text.',
101 format => '',
102 read_only => '',
103 },
104 'row_span' => {
105 datatype => 'int',
106 base_name => 'RowSpan',
107 description => 'The number of rows spanned by a merged cell.',
108 format => '',
109 read_only => '',
110 },
111 'col_span' => {
112 datatype => 'int',
113 base_name => 'ColSpan',
114 description => 'The number of columns spanned by a merged cell.',
115 format => '',
116 read_only => '',
117 },
118 'margin_top' => {
119 datatype => 'double',
120 base_name => 'MarginTop',
121 description => 'The top margin of the cell.',
122 format => '',
123 read_only => '',
124 },
125 'margin_right' => {
126 datatype => 'double',
127 base_name => 'MarginRight',
128 description => 'The right margin of the cell.',
129 format => '',
130 read_only => '',
131 },
132 'margin_left' => {
133 datatype => 'double',
134 base_name => 'MarginLeft',
135 description => 'The left margin of the cell.',
136 format => '',
137 read_only => '',
138 },
139 'margin_bottom' => {
140 datatype => 'double',
141 base_name => 'MarginBottom',
142 description => 'The bottom margin of the cell.',
143 format => '',
144 read_only => '',
145 },
146 'transparency' => {
147 datatype => 'double',
148 base_name => 'Transparency',
149 description => 'Transparency.',
150 format => '',
151 read_only => '',
152 },
153 'text_anchor_type' => {
154 datatype => 'string',
155 base_name => 'TextAnchorType',
156 description => 'Text anchor type.',
157 format => '',
158 read_only => '',
159 },
160 'text_vertical_type' => {
161 datatype => 'string',
162 base_name => 'TextVerticalType',
163 description => 'The type of vertical text.',
164 format => '',
165 read_only => '',
166 },
167 'fill_format' => {
168 datatype => 'FillFormat',
169 base_name => 'FillFormat',
170 description => 'Fill properties set of the cell.',
171 format => '',
172 read_only => '',
173 },
174 'border_top' => {
175 datatype => 'LineFormat',
176 base_name => 'BorderTop',
177 description => 'Line properties set for the top border of the cell.',
178 format => '',
179 read_only => '',
180 },
181 'border_right' => {
182 datatype => 'LineFormat',
183 base_name => 'BorderRight',
184 description => 'Line properties set for the right border of the cell.',
185 format => '',
186 read_only => '',
187 },
188 'border_left' => {
189 datatype => 'LineFormat',
190 base_name => 'BorderLeft',
191 description => 'Line properties set for the left border of the cell.',
192 format => '',
193 read_only => '',
194 },
195 'border_bottom' => {
196 datatype => 'LineFormat',
197 base_name => 'BorderBottom',
198 description => 'Line properties set for the bottom border of the cell.',
199 format => '',
200 read_only => '',
201 },
202 'border_diagonal_up' => {
203 datatype => 'LineFormat',
204 base_name => 'BorderDiagonalUp',
205 description => 'Line properties set for the diagonal up border of the cell.',
206 format => '',
207 read_only => '',
208 },
209 'border_diagonal_down' => {
210 datatype => 'LineFormat',
211 base_name => 'BorderDiagonalDown',
212 description => 'Line properties set for the diagonal down border of the cell.',
213 format => '',
214 read_only => '',
215 },
216 'column_index' => {
217 datatype => 'int',
218 base_name => 'ColumnIndex',
219 description => 'Cell column index',
220 format => '',
221 read_only => '',
222 },
223 'row_index' => {
224 datatype => 'int',
225 base_name => 'RowIndex',
226 description => 'Cell row index',
227 format => '',
228 read_only => '',
229 },
230 'text_frame_format' => {
231 datatype => 'TextFrameFormat',
232 base_name => 'TextFrameFormat',
233 description => 'Returns TextFrame's formatting properties.',
234 format => '',
235 read_only => '',
236 },
237 'paragraphs' => {
238 datatype => 'ResourceUri',
239 base_name => 'Paragraphs',
240 description => 'Get or sets list to paragraphs list',
241 format => '',
242 read_only => '',
243 },
244 });
245  
246 __PACKAGE__->swagger_types( {
247 'text' => 'string',
248 'row_span' => 'int',
249 'col_span' => 'int',
250 'margin_top' => 'double',
251 'margin_right' => 'double',
252 'margin_left' => 'double',
253 'margin_bottom' => 'double',
254 'transparency' => 'double',
255 'text_anchor_type' => 'string',
256 'text_vertical_type' => 'string',
257 'fill_format' => 'FillFormat',
258 'border_top' => 'LineFormat',
259 'border_right' => 'LineFormat',
260 'border_left' => 'LineFormat',
261 'border_bottom' => 'LineFormat',
262 'border_diagonal_up' => 'LineFormat',
263 'border_diagonal_down' => 'LineFormat',
264 'column_index' => 'int',
265 'row_index' => 'int',
266 'text_frame_format' => 'TextFrameFormat',
267 'paragraphs' => 'ResourceUri'
268 } );
269  
270 __PACKAGE__->attribute_map( {
271 'text' => 'Text',
272 'row_span' => 'RowSpan',
273 'col_span' => 'ColSpan',
274 'margin_top' => 'MarginTop',
275 'margin_right' => 'MarginRight',
276 'margin_left' => 'MarginLeft',
277 'margin_bottom' => 'MarginBottom',
278 'transparency' => 'Transparency',
279 'text_anchor_type' => 'TextAnchorType',
280 'text_vertical_type' => 'TextVerticalType',
281 'fill_format' => 'FillFormat',
282 'border_top' => 'BorderTop',
283 'border_right' => 'BorderRight',
284 'border_left' => 'BorderLeft',
285 'border_bottom' => 'BorderBottom',
286 'border_diagonal_up' => 'BorderDiagonalUp',
287 'border_diagonal_down' => 'BorderDiagonalDown',
288 'column_index' => 'ColumnIndex',
289 'row_index' => 'RowIndex',
290 'text_frame_format' => 'TextFrameFormat',
291 'paragraphs' => 'Paragraphs'
292 } );
293  
294 __PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map});
295  
296  
297 1;