File Coverage

lib/eBay/API/XML/DataType/ProductFinderConstraintType.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::ProductFinderConstraintType;
4              
5 1     1   1081 use strict;
  1         2  
  1         32  
6 1     1   5 use warnings;
  1         2  
  1         34  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. ProductFinderConstraintType.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::ProductFinderConstraintType
21              
22             =head1 DESCRIPTION
23              
24             An attribute (constraint) that was specified in a search request that was
25             based on a product finder query. Used to help you map each query in a batch
26             request to the corresponding search result in the response.
27              
28              
29              
30             =head1 SYNOPSIS
31              
32             =cut
33              
34              
35             =head1 INHERITANCE
36              
37             eBay::API::XML::DataType::ProductFinderConstraintType inherits from the L class
38              
39             =cut
40              
41 1     1   43 use eBay::API::XML::BaseDataType;
  0            
  0            
42             our @ISA = ("eBay::API::XML::BaseDataType");
43              
44              
45              
46             my @gaProperties = ( [ 'DisplayName', 'xs:string', '', '', '' ]
47             , [ 'DisplayValue', 'xs:string', '', '', '' ]
48             );
49             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
50              
51             my @gaAttributes = (
52             );
53             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
54              
55             =head1 Subroutines:
56              
57             =cut
58              
59             sub new {
60             my $classname = shift;
61             my %args = @_;
62             my $self = $classname->SUPER::new(%args);
63             return $self;
64             }
65              
66             sub isScalar {
67             return 0;
68             }
69              
70              
71              
72             =head2 setDisplayName()
73              
74             The search attribute name (e.g., Manufacturer).
75              
76             # Argument: 'xs:string'
77              
78             =cut
79              
80             sub setDisplayName {
81             my $self = shift;
82             $self->{'DisplayName'} = shift
83             }
84              
85             =head2 getDisplayName()
86              
87             Calls: GetProductSearchResults
88             Returned: Conditionally
89              
90             # Returns: 'xs:string'
91              
92             =cut
93              
94             sub getDisplayName {
95             my $self = shift;
96             return $self->{'DisplayName'};
97             }
98              
99              
100             =head2 setDisplayValue()
101              
102             The search attribute value the user specified in the query
103             (e.g., the actual name the user chose for the manufacturer).
104              
105             # Argument: 'xs:string'
106              
107             =cut
108              
109             sub setDisplayValue {
110             my $self = shift;
111             $self->{'DisplayValue'} = shift
112             }
113              
114             =head2 getDisplayValue()
115              
116             Calls: GetProductSearchResults
117             Returned: Conditionally
118              
119             # Returns: 'xs:string'
120              
121             =cut
122              
123             sub getDisplayValue {
124             my $self = shift;
125             return $self->{'DisplayValue'};
126             }
127              
128              
129              
130              
131              
132             ## Attribute and Property lists
133             sub getPropertiesList {
134             my $self = shift;
135             return \@gaProperties;
136             }
137              
138             sub getAttributesList {
139             my $self = shift;
140             return \@gaAttributes;
141             }
142              
143              
144              
145             1;