File Coverage

lib/eBay/API/XML/DataType/CategoryArrayType.pm
Criterion Covered Total %
statement 7 9 77.7
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 10 12 83.3


line stmt bran cond sub pod time code
1             #!/usr/bin/perl
2              
3             package eBay::API::XML::DataType::CategoryArrayType;
4              
5 1     1   1031 use strict;
  1         2  
  1         27  
6 1     1   4 use warnings;
  1         2  
  1         25  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. CategoryArrayType.pm
12             # Generated by: ......... genEBayApiDataTypes.pl
13             # Last Generated: ....... 08/24/2008 16:44
14             # API Release Number: ... 579
15             #
16             ##########################################################################
17              
18             =head1 NAME
19              
20             eBay::API::XML::DataType::CategoryArrayType
21              
22             =head1 DESCRIPTION
23              
24             Container for a list of categories.
25              
26              
27              
28             =head1 SYNOPSIS
29              
30             =cut
31              
32              
33             =head1 INHERITANCE
34              
35             eBay::API::XML::DataType::CategoryArrayType inherits from the L class
36              
37             =cut
38              
39 1     1   34 use eBay::API::XML::BaseDataType;
  0            
  0            
40             our @ISA = ("eBay::API::XML::BaseDataType");
41              
42             use eBay::API::XML::DataType::CategoryType;
43              
44              
45             my @gaProperties = ( [ 'Category', 'ns:CategoryType', '1'
46             ,'eBay::API::XML::DataType::CategoryType', '1' ]
47             );
48             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
49              
50             my @gaAttributes = (
51             );
52             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
53              
54             =head1 Subroutines:
55              
56             =cut
57              
58             sub new {
59             my $classname = shift;
60             my %args = @_;
61             my $self = $classname->SUPER::new(%args);
62             return $self;
63             }
64              
65             sub isScalar {
66             return 0;
67             }
68              
69              
70              
71             =head2 setCategory()
72              
73             Contains details about one category. For GetCategories,
74             this node is not returned when no detail level is specified.
75              
76             # Argument: reference to an array
77             of 'ns:CategoryType'
78              
79             =cut
80              
81             sub setCategory {
82             my $self = shift;
83             $self->{'Category'} =
84             $self->convertArray_To_RefToArrayIfNeeded(@_);
85             }
86              
87             =head2 getCategory()
88              
89             Calls: GetCategories
90             Returned: Always
91             Details: DetailLevel: ReturnAll
92              
93             Calls: GetCategoryListings
94             GetPopularKeywords
95             Returned: Always
96              
97             Calls: GetCategory2CS
98             Returned: Always
99             Details: DetailLevel: ReturnAll
100             Context: MappedCategoryArray
101              
102             Calls: GetCategory2CS
103             Returned: Conditionally
104             Details: DetailLevel: ReturnAll
105             Context: UnmappedCategoryArray
106              
107             Calls: GetSearchResults
108             Returned: Conditionally
109             Details: DetailLevel: ItemReturnAttributes, ItemReturnCategories, none, ReturnAll
110              
111             # Returns: reference to an array
112             of 'ns:CategoryType'
113              
114             =cut
115              
116             sub getCategory {
117             my $self = shift;
118             return $self->_getDataTypeArray('Category');
119             }
120              
121              
122              
123              
124              
125             ## Attribute and Property lists
126             sub getPropertiesList {
127             my $self = shift;
128             return \@gaProperties;
129             }
130              
131             sub getAttributesList {
132             my $self = shift;
133             return \@gaAttributes;
134             }
135              
136              
137              
138             1;