File Coverage

lib/eBay/API/XML/DataType/RelatedSearchKeywordArrayType.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::RelatedSearchKeywordArrayType;
4              
5 1     1   1224 use strict;
  1         2  
  1         35  
6 1     1   6 use warnings;
  1         1  
  1         34  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. RelatedSearchKeywordArrayType.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::RelatedSearchKeywordArrayType
21              
22             =head1 DESCRIPTION
23              
24             Container for a list of related keywords.
25              
26              
27              
28             =head1 SYNOPSIS
29              
30             =cut
31              
32              
33             =head1 INHERITANCE
34              
35             eBay::API::XML::DataType::RelatedSearchKeywordArrayType inherits from the L class
36              
37             =cut
38              
39 1     1   44 use eBay::API::XML::BaseDataType;
  0            
  0            
40             our @ISA = ("eBay::API::XML::BaseDataType");
41              
42              
43              
44             my @gaProperties = ( [ 'Keyword', 'xs:string', '1', '', '' ]
45             );
46             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
47              
48             my @gaAttributes = (
49             );
50             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
51              
52             =head1 Subroutines:
53              
54             =cut
55              
56             sub new {
57             my $classname = shift;
58             my %args = @_;
59             my $self = $classname->SUPER::new(%args);
60             return $self;
61             }
62              
63             sub isScalar {
64             return 0;
65             }
66              
67              
68              
69             =head2 setKeyword()
70              
71             Related keyword.
72              
73             # Argument: reference to an array
74             of 'xs:string'
75              
76             =cut
77              
78             sub setKeyword {
79             my $self = shift;
80             $self->{'Keyword'} =
81             $self->convertArray_To_RefToArrayIfNeeded(@_);
82             }
83              
84             =head2 getKeyword()
85              
86             Calls: GetSearchResults
87             Returned: Conditionally
88             Details: DetailLevel: ItemReturnCategories, ItemReturnAttributes, ReturnAll, none
89              
90             Calls: GetCategoryListings
91             Returned: Conditionally
92              
93             # Returns: reference to an array
94             of 'xs:string'
95              
96             =cut
97              
98             sub getKeyword {
99             my $self = shift;
100             return $self->_getDataTypeArray('Keyword');
101             }
102              
103              
104              
105              
106              
107             ## Attribute and Property lists
108             sub getPropertiesList {
109             my $self = shift;
110             return \@gaProperties;
111             }
112              
113             sub getAttributesList {
114             my $self = shift;
115             return \@gaAttributes;
116             }
117              
118              
119              
120             1;