Object/Table.pm untested

filter: Statementstmt 0.0% 0 / 92 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 22 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 118 CC 2 SCAR 8.5
CC
2
Cov
0%
TO_JSON
6.0
new
2.0
BEGIN
2.0
CRAP 2.3
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::Table;
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::EffectFormat;
41 use AsposeSlidesCloud::Object::FillFormat;
42 use AsposeSlidesCloud::Object::Hyperlink;
43 use AsposeSlidesCloud::Object::LineFormat;
44 use AsposeSlidesCloud::Object::ResourceUri;
45 use AsposeSlidesCloud::Object::ShapeBase;
46 use AsposeSlidesCloud::Object::TableColumn;
47 use AsposeSlidesCloud::Object::TableRow;
48 use AsposeSlidesCloud::Object::ThreeDFormat;
49  
50 use base ("Class::Accessor", "Class::Data::Inheritable");
51  
52  
53 #
54 #Represents Table shape resource.
55 #
56 # NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
57 # REF: https://github.com/swagger-api/swagger-codegen
58 #
59  
60 #
61 # NOTE: This class is auto generated by the swagger code generator program.
62 # Do not edit the class manually.
63 # Ref: https://github.com/swagger-api/swagger-codegen
64 #
65 __PACKAGE__->mk_classdata('attribute_map' => {});
66 __PACKAGE__->mk_classdata('swagger_types' => {});
67 __PACKAGE__->mk_classdata('method_documentation' => {});
68 __PACKAGE__->mk_classdata('class_documentation' => {});
69  
70 # new object
71 sub new {
72 my ($class, %args) = @_;
73  
74 my $self = bless {}, $class;
75
76 foreach my $attribute (keys %{$class->attribute_map}) {
77 my $args_key = $class->attribute_map->{$attribute};
78 $self->$attribute( $args{ $args_key } );
79 }
80 $self->{ type } = 'Table';
81 return $self;
82 }
83  
84 # used by JSON for serialization
85 sub TO_JSON {
86 my $self = shift;
87 my $_data = {};
88 foreach my $_key (keys %{$self->attribute_map}) {
89 if (defined $self->{$_key}) {
90 $_data->{$self->attribute_map->{$_key}} = $self->{$_key};
91 }
92 }
93 return $_data;
94 }
95  
96  
97 __PACKAGE__->class_documentation({description => 'Represents Table shape resource.',
98 class => 'Table',
99 required => [], # TODO
100 } );
101  
102 __PACKAGE__->method_documentation({
103 'self_uri' => {
104 datatype => 'ResourceUri',
105 base_name => 'SelfUri',
106 description => 'Gets or sets the link to this resource.',
107 format => '',
108 read_only => '',
109 },
110 'alternate_links' => {
111 datatype => 'ARRAY[ResourceUri]',
112 base_name => 'AlternateLinks',
113 description => 'List of alternate links.',
114 format => '',
115 read_only => '',
116 },
117 'name' => {
118 datatype => 'string',
119 base_name => 'Name',
120 description => 'Gets or sets the name.',
121 format => '',
122 read_only => '',
123 },
124 'width' => {
125 datatype => 'double',
126 base_name => 'Width',
127 description => 'Gets or sets the width.',
128 format => '',
129 read_only => '',
130 },
131 'height' => {
132 datatype => 'double',
133 base_name => 'Height',
134 description => 'Gets or sets the height.',
135 format => '',
136 read_only => '',
137 },
138 'alternative_text' => {
139 datatype => 'string',
140 base_name => 'AlternativeText',
141 description => 'Gets or sets the alternative text.',
142 format => '',
143 read_only => '',
144 },
145 'alternative_text_title' => {
146 datatype => 'string',
147 base_name => 'AlternativeTextTitle',
148 description => 'The title of alternative text associated with the shape.',
149 format => '',
150 read_only => '',
151 },
152 'hidden' => {
153 datatype => 'boolean',
154 base_name => 'Hidden',
155 description => 'Gets or sets a value indicating whether this ShapeBase is hidden.',
156 format => '',
157 read_only => '',
158 },
159 'is_decorative' => {
160 datatype => 'boolean',
161 base_name => 'IsDecorative',
162 description => 'Gets or sets 'Mark as decorative' option.',
163 format => '',
164 read_only => '',
165 },
166 'x' => {
167 datatype => 'double',
168 base_name => 'X',
169 description => 'Gets or sets the X',
170 format => '',
171 read_only => '',
172 },
173 'y' => {
174 datatype => 'double',
175 base_name => 'Y',
176 description => 'Gets or sets the Y.',
177 format => '',
178 read_only => '',
179 },
180 'z_order_position' => {
181 datatype => 'int',
182 base_name => 'ZOrderPosition',
183 description => 'Gets z-order position of shape',
184 format => '',
185 read_only => '',
186 },
187 'fill_format' => {
188 datatype => 'FillFormat',
189 base_name => 'FillFormat',
190 description => 'Gets or sets the fill format.',
191 format => '',
192 read_only => '',
193 },
194 'effect_format' => {
195 datatype => 'EffectFormat',
196 base_name => 'EffectFormat',
197 description => 'Gets or sets the effect format.',
198 format => '',
199 read_only => '',
200 },
201 'three_d_format' => {
202 datatype => 'ThreeDFormat',
203 base_name => 'ThreeDFormat',
204 description => 'Gets or sets the 3D format',
205 format => '',
206 read_only => '',
207 },
208 'line_format' => {
209 datatype => 'LineFormat',
210 base_name => 'LineFormat',
211 description => 'Gets or sets the line format.',
212 format => '',
213 read_only => '',
214 },
215 'hyperlink_click' => {
216 datatype => 'Hyperlink',
217 base_name => 'HyperlinkClick',
218 description => 'Hyperlink defined for mouse click.',
219 format => '',
220 read_only => '',
221 },
222 'hyperlink_mouse_over' => {
223 datatype => 'Hyperlink',
224 base_name => 'HyperlinkMouseOver',
225 description => 'Hyperlink defined for mouse over.',
226 format => '',
227 read_only => '',
228 },
229 'type' => {
230 datatype => 'string',
231 base_name => 'Type',
232 description => 'Shape type.',
233 format => '',
234 read_only => '',
235 },
236 'style' => {
237 datatype => 'string',
238 base_name => 'Style',
239 description => 'Builtin table style.',
240 format => '',
241 read_only => '',
242 },
243 'rows' => {
244 datatype => 'ARRAY[TableRow]',
245 base_name => 'Rows',
246 description => 'Rows.',
247 format => '',
248 read_only => '',
249 },
250 'columns' => {
251 datatype => 'ARRAY[TableColumn]',
252 base_name => 'Columns',
253 description => 'Columns.',
254 format => '',
255 read_only => '',
256 },
257 'first_col' => {
258 datatype => 'boolean',
259 base_name => 'FirstCol',
260 description => 'Determines whether the first column of a table has to be drawn with a special formatting.',
261 format => '',
262 read_only => '',
263 },
264 'first_row' => {
265 datatype => 'boolean',
266 base_name => 'FirstRow',
267 description => 'Determines whether the first row of a table has to be drawn with a special formatting.',
268 format => '',
269 read_only => '',
270 },
271 'horizontal_banding' => {
272 datatype => 'boolean',
273 base_name => 'HorizontalBanding',
274 description => 'Determines whether the even rows has to be drawn with a different formatting.',
275 format => '',
276 read_only => '',
277 },
278 'last_col' => {
279 datatype => 'boolean',
280 base_name => 'LastCol',
281 description => 'Determines whether the last column of a table has to be drawn with a special formatting.',
282 format => '',
283 read_only => '',
284 },
285 'last_row' => {
286 datatype => 'boolean',
287 base_name => 'LastRow',
288 description => 'Determines whether the last row of a table has to be drawn with a special formatting.',
289 format => '',
290 read_only => '',
291 },
292 'right_to_left' => {
293 datatype => 'boolean',
294 base_name => 'RightToLeft',
295 description => 'Determines whether the table has right to left reading order.',
296 format => '',
297 read_only => '',
298 },
299 'vertical_banding' => {
300 datatype => 'boolean',
301 base_name => 'VerticalBanding',
302 description => 'Determines whether the even columns has to be drawn with a different formatting.',
303 format => '',
304 read_only => '',
305 },
306 'transparency' => {
307 datatype => 'double',
308 base_name => 'Transparency',
309 description => 'Transparency.',
310 format => '',
311 read_only => '',
312 },
313 });
314  
315 __PACKAGE__->swagger_types( {
316 'self_uri' => 'ResourceUri',
317 'alternate_links' => 'ARRAY[ResourceUri]',
318 'name' => 'string',
319 'width' => 'double',
320 'height' => 'double',
321 'alternative_text' => 'string',
322 'alternative_text_title' => 'string',
323 'hidden' => 'boolean',
324 'is_decorative' => 'boolean',
325 'x' => 'double',
326 'y' => 'double',
327 'z_order_position' => 'int',
328 'fill_format' => 'FillFormat',
329 'effect_format' => 'EffectFormat',
330 'three_d_format' => 'ThreeDFormat',
331 'line_format' => 'LineFormat',
332 'hyperlink_click' => 'Hyperlink',
333 'hyperlink_mouse_over' => 'Hyperlink',
334 'type' => 'string',
335 'style' => 'string',
336 'rows' => 'ARRAY[TableRow]',
337 'columns' => 'ARRAY[TableColumn]',
338 'first_col' => 'boolean',
339 'first_row' => 'boolean',
340 'horizontal_banding' => 'boolean',
341 'last_col' => 'boolean',
342 'last_row' => 'boolean',
343 'right_to_left' => 'boolean',
344 'vertical_banding' => 'boolean',
345 'transparency' => 'double'
346 } );
347  
348 __PACKAGE__->attribute_map( {
349 'self_uri' => 'SelfUri',
350 'alternate_links' => 'AlternateLinks',
351 'name' => 'Name',
352 'width' => 'Width',
353 'height' => 'Height',
354 'alternative_text' => 'AlternativeText',
355 'alternative_text_title' => 'AlternativeTextTitle',
356 'hidden' => 'Hidden',
357 'is_decorative' => 'IsDecorative',
358 'x' => 'X',
359 'y' => 'Y',
360 'z_order_position' => 'ZOrderPosition',
361 'fill_format' => 'FillFormat',
362 'effect_format' => 'EffectFormat',
363 'three_d_format' => 'ThreeDFormat',
364 'line_format' => 'LineFormat',
365 'hyperlink_click' => 'HyperlinkClick',
366 'hyperlink_mouse_over' => 'HyperlinkMouseOver',
367 'type' => 'Type',
368 'style' => 'Style',
369 'rows' => 'Rows',
370 'columns' => 'Columns',
371 'first_col' => 'FirstCol',
372 'first_row' => 'FirstRow',
373 'horizontal_banding' => 'HorizontalBanding',
374 'last_col' => 'LastCol',
375 'last_row' => 'LastRow',
376 'right_to_left' => 'RightToLeft',
377 'vertical_banding' => 'VerticalBanding',
378 'transparency' => 'Transparency'
379 } );
380  
381 __PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map});
382  
383  
384 1;