File Coverage

lib/eBay/API/XML/DataType/ErrorParameterType.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::ErrorParameterType;
4              
5 1     1   1420 use strict;
  1         3  
  1         35  
6 1     1   5 use warnings;
  1         4  
  1         38  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. ErrorParameterType.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::ErrorParameterType
21              
22             =head1 DESCRIPTION
23              
24             A variable that contains specific information about the context of this error.
25             For example, if you pass in an attribute set ID that does not match
26             the specified category, the attribute set ID might be returned as an error parameter.
27             Use error parameters to flag fields that users need to correct.
28             Also use error parameters to distinguish between errors when multiple
29             errors are returned.
30              
31              
32              
33             =head1 SYNOPSIS
34              
35             =cut
36              
37              
38             =head1 INHERITANCE
39              
40             eBay::API::XML::DataType::ErrorParameterType inherits from the L class
41              
42             =cut
43              
44 1     1   44 use eBay::API::XML::BaseDataType;
  0            
  0            
45             our @ISA = ("eBay::API::XML::BaseDataType");
46              
47              
48              
49             my @gaProperties = ( [ 'Value', 'xs:string', '', '', '' ]
50             );
51             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
52              
53             my @gaAttributes = ( [ 'ParamID', 'xs:string', '', '', '' ]
54             );
55             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
56              
57             =head1 Subroutines:
58              
59             =cut
60              
61             sub new {
62             my $classname = shift;
63             my %args = @_;
64             my $self = $classname->SUPER::new(%args);
65             return $self;
66             }
67              
68             sub isScalar {
69             return 0;
70             }
71              
72              
73              
74             =head2 setValue()
75              
76             The value of the variable (e.g., the attribute set ID)
77              
78             # Argument: 'xs:string'
79              
80             =cut
81              
82             sub setValue {
83             my $self = shift;
84             $self->{'Value'} = shift
85             }
86              
87             =head2 getValue()
88              
89             Calls: Returned: Conditionally
90             AllCalls:
91              
92             # Returns: 'xs:string'
93              
94             =cut
95              
96             sub getValue {
97             my $self = shift;
98             return $self->{'Value'};
99             }
100              
101              
102              
103              
104             =head2 setParamID()
105              
106             The index of the parameter in the list of parameter types returned
107             within the error type.
108              
109             # Argument: 'xs:string'
110              
111             =cut
112              
113             sub setParamID {
114             my $self = shift;
115             $self->{'ParamID'} = shift
116             }
117              
118             =head2 getParamID()
119              
120             Calls: Returned: Conditionally
121             AllCalls:
122              
123             # Returns: 'xs:string'
124              
125             =cut
126              
127             sub getParamID {
128             my $self = shift;
129             return $self->{'ParamID'};
130             }
131              
132              
133              
134             ## Attribute and Property lists
135             sub getPropertiesList {
136             my $self = shift;
137             return \@gaProperties;
138             }
139              
140             sub getAttributesList {
141             my $self = shift;
142             return \@gaAttributes;
143             }
144              
145              
146              
147             1;